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

Commit f1176614 authored by Jeeja KP's avatar Jeeja KP Committed by Mark Brown
Browse files

ASoC: dpcm: Don't apply symmetry for BE with hw param fixup



If be_hw_param_fixup is defined for BE then it will
force the BE to a specific configuration supported
by HW. In this case don't apply symmetry.

Signed-off-by: default avatarJeeja KP <jeeja.kp@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 29b4817d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1694,6 +1694,9 @@ static int dpcm_apply_symmetry(struct snd_pcm_substream *fe_substream,
		struct snd_soc_pcm_runtime *rtd = be_substream->private_data;
		struct snd_soc_pcm_runtime *rtd = be_substream->private_data;
		int i;
		int i;


		if (rtd->dai_link->be_hw_params_fixup)
			continue;

		if (soc_pcm_has_symmetry(be_substream))
		if (soc_pcm_has_symmetry(be_substream))
			be_substream->runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX;
			be_substream->runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX;