Skip to content

Commit

Permalink
ASoC: simple-card-utils: share same dev_dbg() for Dai Name
Browse files Browse the repository at this point in the history
Let's share same debug message for DAI Name

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Jun 6, 2017
1 parent aaad9c1 commit 4579771
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion sound/soc/generic/audio-graph-card.c
Original file line number Diff line number Diff line change
@@ -169,7 +169,6 @@ static int asoc_graph_card_dai_link_of(struct device_node *cpu_port,
dai_link->ops = &asoc_graph_card_ops;
dai_link->init = asoc_graph_card_dai_init;

dev_dbg(dev, "\tname : %s\n", dai_link->stream_name);
dev_dbg(dev, "\tcpu : %s / %d\n",
dai_link->cpu_dai_name,
cpu_dai->sysclk);
2 changes: 2 additions & 0 deletions sound/soc/generic/simple-card-utils.c
Original file line number Diff line number Diff line change
@@ -74,6 +74,8 @@ int asoc_simple_card_set_dailink_name(struct device *dev,

dai_link->name = name;
dai_link->stream_name = name;

dev_dbg(dev, "name : %s\n", name);
}

return ret;
1 change: 0 additions & 1 deletion sound/soc/generic/simple-card.c
Original file line number Diff line number Diff line change
@@ -301,7 +301,6 @@ static int asoc_simple_card_dai_link_of(struct device_node *node,
dai_link->ops = &asoc_simple_card_ops;
dai_link->init = asoc_simple_card_dai_init;

dev_dbg(dev, "\tname : %s\n", dai_link->stream_name);
dev_dbg(dev, "\tcpu : %s / %d\n",
dai_link->cpu_dai_name,
dai_props->cpu_dai.sysclk);

0 comments on commit 4579771

Please sign in to comment.