[linux-yocto] [PATCH 1/1] sound: soc: xilinx: give a name to stream_name in xilinx_dp_dai_links
quanyang.wang at windriver.com
quanyang.wang at windriver.com
Mon Nov 11 02:30:09 PST 2019
From: Quanyang Wang <quanyang.wang at windriver.com>
If .stream_name is NULL, when calling "aplay -l", it will show:
card 0: monitor [DisplayPort monitor], device 0: (null) xilinx-dp-snd-codec-dai-0 [(null) xilinx-dp-snd-codec-dai-0]
Adding .stream_name can eliminate the "(null)" in the output.
Signed-off-by: Quanyang Wang <quanyang.wang at windriver.com>
---
sound/soc/xilinx/xilinx-dp-card.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/xilinx/xilinx-dp-card.c b/sound/soc/xilinx/xilinx-dp-card.c
index c99faccf666a..a149da095df8 100644
--- a/sound/soc/xilinx/xilinx-dp-card.c
+++ b/sound/soc/xilinx/xilinx-dp-card.c
@@ -37,11 +37,13 @@ static const struct snd_soc_ops xilinx_dp_ops = {
static struct snd_soc_dai_link xilinx_dp_dai_links[] = {
{
.name = "xilinx-dp0",
+ .stream_name = "xilinx-dp0",
.codec_dai_name = "xilinx-dp-snd-codec-dai",
.ops = &xilinx_dp_ops,
},
{
.name = "xilinx-dp1",
+ .stream_name = "xilinx-dp1",
.codec_dai_name = "xilinx-dp-snd-codec-dai",
.ops = &xilinx_dp_ops,
},
--
2.17.1
More information about the linux-yocto
mailing list