From ff2d021fb6ebaabf42282e7310bb789f54ea2111 Mon Sep 17 00:00:00 2001 From: Mingshu Pang Date: Wed, 27 May 2020 15:55:38 +0800 Subject: [PATCH] ASoC: add dai link for playback compress3 add dai link for playback compress3 CRs-fixed: 2695615 Change-Id: I8076dc0c6383adf1404a22a577c55d8dcd11a089 Signed-off-by: Mingshu Pang --- asoc/bengal.c | 16 ++++++++++++++++ asoc/kona.c | 13 +++++++++++++ asoc/lahaina.c | 13 +++++++++++++ 3 files changed, 42 insertions(+) diff --git a/asoc/bengal.c b/asoc/bengal.c index 22677cb258..c657d249b1 100644 --- a/asoc/bengal.c +++ b/asoc/bengal.c @@ -4985,6 +4985,22 @@ static struct snd_soc_dai_link msm_common_misc_fe_dai_links[] = { .no_host_mode = SND_SOC_DAI_LINK_NO_HOST, .ops = &msm_cdc_dma_be_ops, }, + {/* hw:x,39 */ + .name = MSM_DAILINK_NAME(Compress3), + .stream_name = "Compress3", + .cpu_dai_name = "MultiMedia10", + .platform_name = "msm-compress-dsp", + .dynamic = 1, + .dpcm_playback = 1, + .trigger = {SND_SOC_DPCM_TRIGGER_POST, + SND_SOC_DPCM_TRIGGER_POST}, + .codec_dai_name = "snd-soc-dummy-dai", + .codec_name = "snd-soc-dummy", + .ignore_suspend = 1, + .ignore_pmdown_time = 1, + /* this dainlink has playback support */ + .id = MSM_FRONTEND_DAI_MULTIMEDIA10, + }, }; static struct snd_soc_dai_link msm_common_be_dai_links[] = { diff --git a/asoc/kona.c b/asoc/kona.c index 0cc60ead59..27585b85c4 100644 --- a/asoc/kona.c +++ b/asoc/kona.c @@ -6139,6 +6139,19 @@ static struct snd_soc_dai_link msm_common_misc_fe_dai_links[] = { .ops = &msm_cdc_dma_be_ops, SND_SOC_DAILINK_REG(tx_cdcdma5_tx), }, + {/* hw:x,40 */ + .name = MSM_DAILINK_NAME(Compress3), + .stream_name = "Compress3", + .dynamic = 1, + .dpcm_playback = 1, + .trigger = {SND_SOC_DPCM_TRIGGER_POST, + SND_SOC_DPCM_TRIGGER_POST}, + .ignore_suspend = 1, + .ignore_pmdown_time = 1, + /* this dainlink has playback support */ + .id = MSM_FRONTEND_DAI_MULTIMEDIA10, + SND_SOC_DAILINK_REG(multimedia10), + }, }; static struct snd_soc_dai_link msm_common_be_dai_links[] = { diff --git a/asoc/lahaina.c b/asoc/lahaina.c index f026c5c3d3..04c0bd4a95 100644 --- a/asoc/lahaina.c +++ b/asoc/lahaina.c @@ -6019,6 +6019,19 @@ static struct snd_soc_dai_link msm_common_misc_fe_dai_links[] = { .ignore_suspend = 1, SND_SOC_DAILINK_REG(afepcm_tx1), }, + {/* hw:x,43 */ + .name = MSM_DAILINK_NAME(Compress3), + .stream_name = "Compress3", + .dynamic = 1, + .dpcm_playback = 1, + .trigger = {SND_SOC_DPCM_TRIGGER_POST, + SND_SOC_DPCM_TRIGGER_POST}, + .ignore_suspend = 1, + .ignore_pmdown_time = 1, + /* this dainlink has playback support */ + .id = MSM_FRONTEND_DAI_MULTIMEDIA10, + SND_SOC_DAILINK_REG(multimedia10), + }, }; static struct snd_soc_dai_link msm_common_be_dai_links[] = {