]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: mediatek: mt8195: add playback support to PCM1_BE dai_link
authorTrevor Wu <trevor.wu@mediatek.com>
Thu, 30 Dec 2021 08:47:31 +0000 (16:47 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 31 Dec 2021 13:20:58 +0000 (13:20 +0000)
PCM1_BE should be a dai_link for both playback and capture.
In the patch, the missing DPCM playback support is added.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://lore.kernel.org/r/20211230084731.31372-3-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1011-rt5682.c
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c

index 8adbd46c4bc41945eef24f3516e2df9edea8f229..5443a29da7b1be7c334154a06f3015be61df0c7f 100644 (file)
@@ -1045,6 +1045,7 @@ static struct snd_soc_dai_link mt8195_mt6359_rt1011_rt5682_dai_links[] = {
                .dai_fmt = SND_SOC_DAIFMT_I2S |
                        SND_SOC_DAIFMT_NB_NF |
                        SND_SOC_DAIFMT_CBS_CFS,
+               .dpcm_playback = 1,
                .dpcm_capture = 1,
                SND_SOC_DAILINK_REG(PCM1_BE),
        },
index 20b351faeaff082042dc17dfe9f651868f5cb58b..29c2d3407cc7c00b3ceb48844bc93d548f4ddf91 100644 (file)
@@ -1191,6 +1191,7 @@ static struct snd_soc_dai_link mt8195_mt6359_rt1019_rt5682_dai_links[] = {
                .dai_fmt = SND_SOC_DAIFMT_I2S |
                        SND_SOC_DAIFMT_NB_NF |
                        SND_SOC_DAIFMT_CBS_CFS,
+               .dpcm_playback = 1,
                .dpcm_capture = 1,
                SND_SOC_DAILINK_REG(PCM1_BE),
        },