ASoC: simple-card-utils: share same dev_dbg() for DAI format
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 5 Jun 2017 04:28:12 +0000 (04:28 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jun 2017 18:46:07 +0000 (19:46 +0100)
Let's share same debug message for DAI format

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c
sound/soc/generic/simple-card-utils.c
sound/soc/generic/simple-card.c

index 93c167a91d2dd48db3c122e9de614b939d31a6ca..1769a39a22c451a1b041408134f1d3516536e469 100644 (file)
@@ -170,7 +170,6 @@ static int asoc_graph_card_dai_link_of(struct device_node *cpu_port,
        dai_link->init = asoc_graph_card_dai_init;
 
        dev_dbg(dev, "\tname : %s\n", dai_link->stream_name);
-       dev_dbg(dev, "\tformat : %04x\n", dai_link->dai_fmt);
        dev_dbg(dev, "\tcpu : %s / %d\n",
                dai_link->cpu_dai_name,
                cpu_dai->sysclk);
index da24ac171aec6783896e21233c8789b4b3c80e6a..59e770125596b0bd970c3de88d1d528316602303 100644 (file)
@@ -51,6 +51,8 @@ int asoc_simple_card_parse_daifmt(struct device *dev,
 
        *retfmt = daifmt;
 
+       dev_dbg(dev, "format : %04x\n", daifmt);
+
        return 0;
 }
 EXPORT_SYMBOL_GPL(asoc_simple_card_parse_daifmt);
index 4dacaf78a0de99464b26abc683a4336b6b179ebb..d364f08a7182c41c1d45c43df6bd6a7f3a6c740a 100644 (file)
@@ -302,7 +302,6 @@ static int asoc_simple_card_dai_link_of(struct device_node *node,
        dai_link->init = asoc_simple_card_dai_init;
 
        dev_dbg(dev, "\tname : %s\n", dai_link->stream_name);
-       dev_dbg(dev, "\tformat : %04x\n", dai_link->dai_fmt);
        dev_dbg(dev, "\tcpu : %s / %d\n",
                dai_link->cpu_dai_name,
                dai_props->cpu_dai.sysclk);