Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cde18c8 authored by Walter Yang's avatar Walter Yang Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: Machine driver async ops change for msm8996



Asoc framework supports parallelization of operations which
reduces the startup latency. Machine driver will specify
which dailinks support parallelization. This change updates the
machine driver to enable the parallelization. Set the ASYNC flag
for some basic dailinks in msm8996.

Change-Id: If85fcfb7288963b173b94abd9f00da770c3fbb40
Signed-off-by: default avatarWalter Yang <yandongy@codeaurora.org>
Signed-off-by: default avatarFred Oh <fred@codeaurora.org>
parent 1d5adc1e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1924,6 +1924,7 @@ static struct snd_soc_dai_link msm8996_common_dai_links[] = {
		.cpu_dai_name = "MultiMedia1",
		.platform_name = "msm-pcm-dsp.0",
		.dynamic = 1,
		.async_ops = ASYNC_DPCM_SND_SOC_PREPARE,
		.dpcm_playback = 1,
		.dpcm_capture = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
@@ -1992,6 +1993,7 @@ static struct snd_soc_dai_link msm8996_common_dai_links[] = {
		.cpu_dai_name = "MultiMedia3",
		.platform_name = "msm-pcm-dsp.2",
		.dynamic = 1,
		.async_ops = ASYNC_DPCM_SND_SOC_PREPARE,
		.dpcm_playback = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
			SND_SOC_DPCM_TRIGGER_POST},
@@ -2061,6 +2063,7 @@ static struct snd_soc_dai_link msm8996_common_dai_links[] = {
		.cpu_dai_name = "MultiMedia4",
		.platform_name = "msm-compress-dsp",
		.dynamic = 1,
		.async_ops = ASYNC_DPCM_SND_SOC_HW_PARAMS,
		.dpcm_playback = 1,
		.dpcm_capture = 1,
		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
@@ -2164,6 +2167,7 @@ static struct snd_soc_dai_link msm8996_common_dai_links[] = {
		.cpu_dai_name = "MultiMedia5",
		.platform_name = "msm-pcm-dsp.1",
		.dynamic = 1,
		.async_ops = ASYNC_DPCM_SND_SOC_PREPARE,
		.dpcm_playback = 1,
		.dpcm_capture = 1,
		.codec_dai_name = "snd-soc-dummy-dai",
@@ -2859,6 +2863,8 @@ static struct snd_soc_dai_link msm8996_tomtom_be_dai_links[] = {
		.codec_name = "tomtom_codec",
		.codec_dai_name = "tomtom_rx1",
		.no_pcm = 1,
		.async_ops = ASYNC_DPCM_SND_SOC_PREPARE |
			ASYNC_DPCM_SND_SOC_HW_PARAMS,
		.dpcm_playback = 1,
		.be_id = MSM_BACKEND_DAI_SLIMBUS_0_RX,
		.init = &msm_audrx_init,
@@ -2876,6 +2882,8 @@ static struct snd_soc_dai_link msm8996_tomtom_be_dai_links[] = {
		.codec_name = "tomtom_codec",
		.codec_dai_name = "tomtom_tx1",
		.no_pcm = 1,
		.async_ops = ASYNC_DPCM_SND_SOC_PREPARE |
			ASYNC_DPCM_SND_SOC_HW_PARAMS,
		.dpcm_capture = 1,
		.be_id = MSM_BACKEND_DAI_SLIMBUS_0_TX,
		.be_hw_params_fixup = msm_slim_0_tx_be_hw_params_fixup,