author: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 2021-04-12 08:52:23 +0900
committer: Mark Brown <broonie@kernel.org> 2021-04-13 12:32:50 +0100
commit: ac813c625ad5c3ee98a99e1b37659a0d85178978
parent: 1cf6805700ecf25942468a01eff902ab8c32ce3c
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 2 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);