[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250106050659.57924-3-gordoste@iinet.net.au>
Date: Mon, 6 Jan 2025 16:06:59 +1100
From: Stephen Gordon <gordoste@...et.net.au>
To: kuninori.morimoto.gx@...esas.com,
broonie@...nel.org,
perex@...ex.cz,
tiwai@...e.com
Cc: linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
Stephen Gordon <gordoste@...et.net.au>
Subject: [PATCH v2 2/2] ASoC: simple_card: Show if link is unidirectional
It is handy to know whether the link has playback-only/capture-only flags
when debugging.
Signed-off-by: Stephen Gordon <gordoste@...et.net.au>
---
include/sound/simple_card_utils.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h
index af79f680c72a..f6bfd485c31a 100644
--- a/include/sound/simple_card_utils.h
+++ b/include/sound/simple_card_utils.h
@@ -267,6 +267,10 @@ static inline void simple_util_debug_info(struct simple_util_priv *priv)
dev_dbg(dev, "link name = %s\n", link->name);
if (link->dai_fmt)
dev_dbg(dev, "link format = %04x\n", link->dai_fmt);
+ if (link->playback_only)
+ dev_dbg(dev, "link has playback_only");
+ if (link->capture_only)
+ dev_dbg(dev, "link has capture_only");
if (props->adata.convert_rate)
dev_dbg(dev, "convert_rate = %d\n", props->adata.convert_rate);
if (props->adata.convert_channels)
--
2.39.5
Powered by blists - more mailing lists