summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorJeeja KP <jeeja.kp@intel.com>2016-09-06 14:17:55 +0530
committerMark Brown <broonie@kernel.org>2016-09-14 16:35:00 +0100
commitf11766143caa065b3aef4d794c104ea0f37ada76 (patch)
tree42b4d991838a6709fe47171919d33f00c453b86a /sound/soc/soc-pcm.c
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
downloadlinux-f11766143caa065b3aef4d794c104ea0f37ada76.tar.gz
linux-f11766143caa065b3aef4d794c104ea0f37ada76.tar.bz2
linux-f11766143caa065b3aef4d794c104ea0f37ada76.zip
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: Jeeja KP <jeeja.kp@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 60d702f8b9f0..c1bfe9d8406d 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -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;
int i;
+ if (rtd->dai_link->be_hw_params_fixup)
+ continue;
+
if (soc_pcm_has_symmetry(be_substream))
be_substream->runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX;