diff options
author | Jiaxin Yu <jiaxin.yu@mediatek.com> | 2022-03-02 02:35:33 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-03 13:48:37 +0100 |
commit | 8f2b025abc31bc15d38657d1286d7470bbbd5efa (patch) | |
tree | 648ec67dc599f718ab17e57a50478a885360e406 /sound/soc/codecs/bt-sco.c | |
parent | ASoC: hdac_hda: Avoid unexpected match when pcm_name is "Analog" (diff) | |
download | linux-8f2b025abc31bc15d38657d1286d7470bbbd5efa.tar.xz linux-8f2b025abc31bc15d38657d1286d7470bbbd5efa.zip |
ASoC: bt-sco: fix bt-sco-pcm-wb dai widget don't connect to the endpoint
This patch fix the second dai driver's dai widget can't connect to the
endpoint. Because "bt-sco-pcm" and "bt-sco-pcm-wb" dai driver have the
same stream_name, so it will cause they have the same widget name.
Therefor it will just create only one route when do snd_soc_dapm_add_route
that only find the widget through the widget name.
Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com>
Link: https://lore.kernel.org/r/20220302013533.29068-1-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/bt-sco.c')
-rw-r--r-- | sound/soc/codecs/bt-sco.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c index 4d286844e3c8..cf17b9741bd8 100644 --- a/sound/soc/codecs/bt-sco.c +++ b/sound/soc/codecs/bt-sco.c @@ -13,11 +13,15 @@ static const struct snd_soc_dapm_widget bt_sco_widgets[] = { SND_SOC_DAPM_INPUT("RX"), SND_SOC_DAPM_OUTPUT("TX"), + SND_SOC_DAPM_AIF_IN("BT_SCO_RX", "Playback", 0, + SND_SOC_NOPM, 0, 0), + SND_SOC_DAPM_AIF_OUT("BT_SCO_TX", "Capture", 0, + SND_SOC_NOPM, 0, 0), }; static const struct snd_soc_dapm_route bt_sco_routes[] = { - { "Capture", NULL, "RX" }, - { "TX", NULL, "Playback" }, + { "BT_SCO_TX", NULL, "RX" }, + { "TX", NULL, "BT_SCO_RX" }, }; static struct snd_soc_dai_driver bt_sco_dai[] = { |