diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-04-12 01:52:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-13 13:32:50 +0200 |
commit | ac813c625ad5c3ee98a99e1b37659a0d85178978 (patch) | |
tree | 14f6dcacd5b49450178b01858259c991f86de1f4 /include/sound/simple_card_utils.h | |
parent | ASoC: simple-card-utils: care multi DAI at asoc_simple_clean_reference() (diff) | |
download | linux-ac813c625ad5c3ee98a99e1b37659a0d85178978.tar.xz linux-ac813c625ad5c3ee98a99e1b37659a0d85178978.zip |
ASoC: simple-card-utils: indicate dai_fmt if exist
link->dai_fmt might be 0.
Don't indicate it in such case when debugging.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87mtu4wf9k.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/simple_card_utils.h')
-rw-r--r-- | include/sound/simple_card_utils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index 23f17ccc7908..080fe7eb560f 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -222,9 +222,8 @@ static inline void asoc_simple_debug_info(struct asoc_simple_priv *priv) if (link->name) dev_dbg(dev, "dai name = %s\n", link->name); - - dev_dbg(dev, "dai format = %04x\n", link->dai_fmt); - + if (link->dai_fmt) + dev_dbg(dev, "dai format = %04x\n", link->dai_fmt); if (props->adata.convert_rate) dev_dbg(dev, "convert_rate = %d\n", props->adata.convert_rate); |