diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-06-05 04:27:56 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-06 19:46:07 +0100 |
commit | d4dbcb63c8bde48741468cf7c711b76ed3e7fce5 (patch) | |
tree | 8e2cd9f95a74ce6d9684ed70a9fd76de308c862a | |
parent | 08862251476f899c4c4528e922df5854076b8661 (diff) | |
download | blackbird-op-linux-d4dbcb63c8bde48741468cf7c711b76ed3e7fce5.tar.gz blackbird-op-linux-d4dbcb63c8bde48741468cf7c711b76ed3e7fce5.zip |
ASoC: simple-card-utils: share same dev_dbg() for Card Name
Let's share same debug message for Card Name
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/generic/audio-graph-scu-card.c | 2 | ||||
-rw-r--r-- | sound/soc/generic/simple-card-utils.c | 2 | ||||
-rw-r--r-- | sound/soc/generic/simple-scu-card.c | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c index c5c52d1f500c..1ce727b6bc21 100644 --- a/sound/soc/generic/audio-graph-scu-card.c +++ b/sound/soc/generic/audio-graph-scu-card.c @@ -295,8 +295,6 @@ static int asoc_graph_card_parse_of(struct graph_card_data *priv) if (ret) goto parse_of_err; - dev_dbg(dev, "New card: %s\n", - card->name ? card->name : ""); dev_dbg(dev, "convert_rate %d\n", priv->convert_rate); dev_dbg(dev, "convert_channels %d\n", priv->convert_channels); diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index 9c7f5b91b90a..da24ac171aec 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -100,6 +100,8 @@ int asoc_simple_card_parse_card_name(struct snd_soc_card *card, if (!card->name && card->dai_link) card->name = card->dai_link->name; + dev_dbg(card->dev, "Card Name: %s\n", card->name ? card->name : ""); + return 0; } EXPORT_SYMBOL_GPL(asoc_simple_card_parse_card_name); diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c index 9b9b01e12149..5f4384f322c1 100644 --- a/sound/soc/generic/simple-scu-card.c +++ b/sound/soc/generic/simple-scu-card.c @@ -246,8 +246,6 @@ static int asoc_simple_card_parse_of(struct device_node *node, if (ret < 0) return ret; - dev_dbg(dev, "New card: %s\n", - card->name ? card->name : ""); dev_dbg(dev, "convert_rate %d\n", priv->convert_rate); dev_dbg(dev, "convert_channels %d\n", priv->convert_channels); |