build/patch/kernel/archive/sunxi-5.15/patches.megous/ASoC-codecs-bt-sco-Fix-stream_name-conflict-that-leads-to-debug.patch

46 lines
1.4 KiB
Diff
Raw Normal View History

From 5f5ecb94acd22d41e86fcb7e98b47d27188a58a2 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Sun, 17 Jan 2021 20:55:04 +0100
Subject: [PATCH 406/478] ASoC: codecs: bt-sco: Fix stream_name conflict that
leads to debugfs errors
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
sound/soc/codecs/bt-sco.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c
index 4d286844e3c8..ecb73d119a5b 100644
--- a/sound/soc/codecs/bt-sco.c
+++ b/sound/soc/codecs/bt-sco.c
@@ -17,7 +17,9 @@ static const struct snd_soc_dapm_widget bt_sco_widgets[] = {
static const struct snd_soc_dapm_route bt_sco_routes[] = {
{ "Capture", NULL, "RX" },
+ { "Wideband Capture", NULL, "RX" },
{ "TX", NULL, "Playback" },
+ { "TX", NULL, "Wideband Playback" },
};
static struct snd_soc_dai_driver bt_sco_dai[] = {
@@ -41,14 +43,14 @@ static struct snd_soc_dai_driver bt_sco_dai[] = {
{
.name = "bt-sco-pcm-wb",
.playback = {
- .stream_name = "Playback",
+ .stream_name = "Wideband Playback",
.channels_min = 1,
.channels_max = 1,
.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
.formats = SNDRV_PCM_FMTBIT_S16_LE,
},
.capture = {
- .stream_name = "Capture",
+ .stream_name = "Wideband Capture",
.channels_min = 1,
.channels_max = 1,
.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
--
2.35.3