瀏覽代碼

asoc: udpate qcs405 compress playback dai ops

Currently only Compress2 stream is using hw params as async ops
and hence the startup latency and setup sequence varies for this
usecase as compared to other compress playback streams.
Update qcs405 compress playback dai ops to mark hw params as async
for all compress playback FE dai entries, so that all compressed
playback streams have uniform latency and setup sequence.

Change-Id: Iac965b0ca1c059c49b9b0a985f70df7d382f7446
Signed-off-by: Dhananjay Kumar <[email protected]>
Dhananjay Kumar 6 年之前
父節點
當前提交
de1ce572ce
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      asoc/qcs405.c

+ 6 - 0
asoc/qcs405.c

@@ -6390,6 +6390,7 @@ static struct snd_soc_dai_link msm_common_dai_links[] = {
 		.cpu_dai_name = "MultiMedia7",
 		.platform_name = "msm-compress-dsp",
 		.dynamic = 1,
+		.async_ops = ASYNC_DPCM_SND_SOC_HW_PARAMS,
 		.dpcm_playback = 1,
 		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
 			 SND_SOC_DPCM_TRIGGER_POST},
@@ -6597,6 +6598,7 @@ static struct snd_soc_dai_link msm_common_dai_links[] = {
 		.cpu_dai_name = "MultiMedia11",
 		.platform_name = "msm-compress-dsp",
 		.dynamic = 1,
+		.async_ops = ASYNC_DPCM_SND_SOC_HW_PARAMS,
 		.dpcm_playback = 1,
 		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
 			 SND_SOC_DPCM_TRIGGER_POST},
@@ -6613,6 +6615,7 @@ static struct snd_soc_dai_link msm_common_dai_links[] = {
 		.cpu_dai_name = "MultiMedia12",
 		.platform_name = "msm-compress-dsp",
 		.dynamic = 1,
+		.async_ops = ASYNC_DPCM_SND_SOC_HW_PARAMS,
 		.dpcm_playback = 1,
 		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
 			 SND_SOC_DPCM_TRIGGER_POST},
@@ -6629,6 +6632,7 @@ static struct snd_soc_dai_link msm_common_dai_links[] = {
 		.cpu_dai_name = "MultiMedia13",
 		.platform_name = "msm-compress-dsp",
 		.dynamic = 1,
+		.async_ops = ASYNC_DPCM_SND_SOC_HW_PARAMS,
 		.dpcm_playback = 1,
 		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
 			 SND_SOC_DPCM_TRIGGER_POST},
@@ -6645,6 +6649,7 @@ static struct snd_soc_dai_link msm_common_dai_links[] = {
 		.cpu_dai_name = "MultiMedia14",
 		.platform_name = "msm-compress-dsp",
 		.dynamic = 1,
+		.async_ops = ASYNC_DPCM_SND_SOC_HW_PARAMS,
 		.dpcm_playback = 1,
 		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
 			 SND_SOC_DPCM_TRIGGER_POST},
@@ -6661,6 +6666,7 @@ static struct snd_soc_dai_link msm_common_dai_links[] = {
 		.cpu_dai_name = "MultiMedia15",
 		.platform_name = "msm-compress-dsp",
 		.dynamic = 1,
+		.async_ops = ASYNC_DPCM_SND_SOC_HW_PARAMS,
 		.dpcm_playback = 1,
 		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
 			 SND_SOC_DPCM_TRIGGER_POST},