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>
This commit is contained in:
Родитель
0886225147
Коммит
d4dbcb63c8
|
@ -295,8 +295,6 @@ static int asoc_graph_card_parse_of(struct graph_card_data *priv)
|
||||||
if (ret)
|
if (ret)
|
||||||
goto parse_of_err;
|
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_rate %d\n", priv->convert_rate);
|
||||||
dev_dbg(dev, "convert_channels %d\n", priv->convert_channels);
|
dev_dbg(dev, "convert_channels %d\n", priv->convert_channels);
|
||||||
|
|
||||||
|
|
|
@ -100,6 +100,8 @@ int asoc_simple_card_parse_card_name(struct snd_soc_card *card,
|
||||||
if (!card->name && card->dai_link)
|
if (!card->name && card->dai_link)
|
||||||
card->name = card->dai_link->name;
|
card->name = card->dai_link->name;
|
||||||
|
|
||||||
|
dev_dbg(card->dev, "Card Name: %s\n", card->name ? card->name : "");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(asoc_simple_card_parse_card_name);
|
EXPORT_SYMBOL_GPL(asoc_simple_card_parse_card_name);
|
||||||
|
|
|
@ -246,8 +246,6 @@ static int asoc_simple_card_parse_of(struct device_node *node,
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
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_rate %d\n", priv->convert_rate);
|
||||||
dev_dbg(dev, "convert_channels %d\n", priv->convert_channels);
|
dev_dbg(dev, "convert_channels %d\n", priv->convert_channels);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче