[PATCH 8/9] sound: soc: xilinx: give a name to stream_name in xilinx_dp_dai_links

quanyang.wang
 

From: Quanyang Wang <quanyang.wang@...>

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@...>
Reviewed-by: Hyun Kwon <hyun.kwon@...>
Signed-off-by: Bruce Ashfield <bruce.ashfield@...>
---
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 7f4063ef5b21..f216b40c647d 100644
--- a/sound/soc/xilinx/xilinx-dp-card.c
+++ b/sound/soc/xilinx/xilinx-dp-card.c
@@ -42,11 +42,13 @@ SND_SOC_DAILINK_DEFS(pcm,
static struct snd_soc_dai_link xilinx_dp_dai_links[] = {
{
.name = "xilinx-dp0",
+ .stream_name = "xilinx-dp0",
.ops = &xilinx_dp_ops,
SND_SOC_DAILINK_REG(pcm),
},
{
.name = "xilinx-dp1",
+ .stream_name = "xilinx-dp1",
.ops = &xilinx_dp_ops,
SND_SOC_DAILINK_REG(pcm),
},
--
2.17.1

Join linux-yocto@lists.yoctoproject.org to automatically receive all group messages.