aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-27 04:24:22 -0400
committerMark Brown <broonie@linaro.org>2014-06-01 06:55:08 -0400
commitb5dd91b3dcf937ce42583711fe4d679cacdbd2d0 (patch)
tree1403927adcc74a0aa8955fab05ad5c8927560118 /sound/soc/fsl
parentd8ced4793f3f114fa82fb423b71c2899caf8b7b0 (diff)
ASoC: fsl-ssi: Set framerate divider correctly for i2s master mode
In i2s master mode the fsl_ssi driver depends on someone calling .set_tdm_slot correctly. In this mode though only a DC value of 2 is allowed, so set it in this case and no longer depend on .set_tdm_slot. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Tested-By: Michael Grzeschik <mgr@pengutronix.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/fsl_ssi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index b3033d9108b2..dbcde106adca 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -709,6 +709,10 @@ static int _fsl_ssi_set_dai_fmt(struct fsl_ssi_private *ssi_private,
709 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { 709 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
710 case SND_SOC_DAIFMT_CBS_CFS: 710 case SND_SOC_DAIFMT_CBS_CFS:
711 ssi_private->i2s_mode |= CCSR_SSI_SCR_I2S_MODE_MASTER; 711 ssi_private->i2s_mode |= CCSR_SSI_SCR_I2S_MODE_MASTER;
712 write_ssi_mask(&ssi->stccr, CCSR_SSI_SxCCR_DC_MASK,
713 CCSR_SSI_SxCCR_DC(2));
714 write_ssi_mask(&ssi->srccr, CCSR_SSI_SxCCR_DC_MASK,
715 CCSR_SSI_SxCCR_DC(2));
712 break; 716 break;
713 case SND_SOC_DAIFMT_CBM_CFM: 717 case SND_SOC_DAIFMT_CBM_CFM:
714 ssi_private->i2s_mode |= CCSR_SSI_SCR_I2S_MODE_SLAVE; 718 ssi_private->i2s_mode |= CCSR_SSI_SCR_I2S_MODE_SLAVE;