ASoC: simple-card-utils: share same dev_dbg() for Card Name
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 5 Jun 2017 04:27:56 +0000 (04:27 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 18:46:07 +0000 (19:46 +0100)
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>
sound/soc/generic/audio-graph-scu-card.c
sound/soc/generic/simple-card-utils.c
sound/soc/generic/simple-scu-card.c

index c5c52d1f500c5554fea2f69115ed599a8fabfb68..1ce727b6bc21806ee0267008c0e2e60ec7240bc0 100644 (file)
@@ -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);
 
index 9c7f5b91b90acb4fa6aaa7c7104f57dae4c20824..da24ac171aec6783896e21233c8789b4b3c80e6a 100644 (file)
@@ -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);
index 9b9b01e121497f3f5cdaeedcdbf224dbcb39bfe9..5f4384f322c10f3e221721e62946b005a97be72c 100644 (file)
@@ -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);