Skip to content

Commit 3958f6d

Browse files
TE-N-ShengjiuWanggregkh
authored andcommitted
ASoC: bt-sco: fix duplicate DAPM widget names for wideband DAI
[ Upstream commit 0b604e8 ] The bt-sco-pcm-wb DAI uses the same stream_name strings as bt-sco-pcm ("Playback" and "Capture"). This causes duplicate DAPM AIF widget names within the same component, leading to debugfs warnings: debugfs: 'Playback' already exists in 'dapm' debugfs: 'Capture' already exists in 'dapm' Give the wideband DAI distinct stream names ("WB Playback" and "WB Capture") and add corresponding DAPM AIF widgets and routes for them. Fixes: 5947e1b ("ASoC: bt-sco: extend rate and add a general compatible string") Assisted-by: VeroCoder:claude-sonnet-4-5 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Link: https://patch.msgid.link/20260715100620.1387159-1-shengjiu.wang@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 3ddb0d3 commit 3958f6d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

sound/soc/codecs/bt-sco.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@ static const struct snd_soc_dapm_widget bt_sco_widgets[] = {
1717
SND_SOC_NOPM, 0, 0),
1818
SND_SOC_DAPM_AIF_OUT("BT_SCO_TX", "Capture", 0,
1919
SND_SOC_NOPM, 0, 0),
20+
SND_SOC_DAPM_AIF_IN("BT_SCO_RX_WB", "WB Playback", 0,
21+
SND_SOC_NOPM, 0, 0),
22+
SND_SOC_DAPM_AIF_OUT("BT_SCO_TX_WB", "WB Capture", 0,
23+
SND_SOC_NOPM, 0, 0),
2024
};
2125

2226
static const struct snd_soc_dapm_route bt_sco_routes[] = {
2327
{ "BT_SCO_TX", NULL, "RX" },
2428
{ "TX", NULL, "BT_SCO_RX" },
29+
{ "BT_SCO_TX_WB", NULL, "RX" },
30+
{ "TX", NULL, "BT_SCO_RX_WB" },
2531
};
2632

2733
static struct snd_soc_dai_driver bt_sco_dai[] = {
@@ -45,14 +51,14 @@ static struct snd_soc_dai_driver bt_sco_dai[] = {
4551
{
4652
.name = "bt-sco-pcm-wb",
4753
.playback = {
48-
.stream_name = "Playback",
54+
.stream_name = "WB Playback",
4955
.channels_min = 1,
5056
.channels_max = 1,
5157
.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
5258
.formats = SNDRV_PCM_FMTBIT_S16_LE,
5359
},
5460
.capture = {
55-
.stream_name = "Capture",
61+
.stream_name = "WB Capture",
5662
.channels_min = 1,
5763
.channels_max = 1,
5864
.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,

0 commit comments

Comments
 (0)