projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c588fe
)
ASoC: simple_card: Show if link is unidirectional
author
Stephen Gordon
<gordoste@iinet.net.au>
Mon, 6 Jan 2025 05:06:59 +0000
(16:06 +1100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 6 Jan 2025 13:08:18 +0000
(13:08 +0000)
It is handy to know whether the link has playback-only/capture-only flags
when debugging.
Signed-off-by: Stephen Gordon <gordoste@iinet.net.au>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://patch.msgid.link/20250106050659.57924-3-gordoste@iinet.net.au
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
patch
|
blob
|
blame
|
history
diff --git
a/include/sound/simple_card_utils.h
b/include/sound/simple_card_utils.h
index af79f680c72a9c9ca18bf04bfa57046e1c823422..f6bfd485c31a933ca8cc91bcd1b7fa54640353b6 100644
(file)
--- 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)