diff options
author | Nicolin Chen <Guangyu.Chen@freescale.com> | 2014-01-09 05:42:48 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-09 12:33:31 -0500 |
commit | 2b56b5f02029531007c8601b23f282b840715401 (patch) | |
tree | 122a069e4cff21d7e9dfb9d44ac922c529e0ec4d /sound/soc/fsl/fsl_ssi.c | |
parent | e1cffe8c9f3a4f74b8b212c9fbe2873a8ee2f395 (diff) |
ASoC: fsl_ssi: Set default slot number for common cases
For those platforms using DAI master mode like I2S, it's better to pre-set
a default slot number so that there's no need for these common cases to set
the slot number from its machine driver any more.
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl/fsl_ssi.c')
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 6c2f040f49ae..7864ec5cf5f9 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -711,6 +711,17 @@ static int fsl_ssi_setup(struct fsl_ssi_private *ssi_private) | |||
711 | if (ssi_private->imx_ac97) | 711 | if (ssi_private->imx_ac97) |
712 | fsl_ssi_setup_ac97(ssi_private); | 712 | fsl_ssi_setup_ac97(ssi_private); |
713 | 713 | ||
714 | /* | ||
715 | * Set a default slot number so that there is no need for those common | ||
716 | * cases like I2S mode to call the extra set_tdm_slot() any more. | ||
717 | */ | ||
718 | if (!ssi_private->imx_ac97) { | ||
719 | write_ssi_mask(&ssi->stccr, CCSR_SSI_SxCCR_DC_MASK, | ||
720 | CCSR_SSI_SxCCR_DC(2)); | ||
721 | write_ssi_mask(&ssi->srccr, CCSR_SSI_SxCCR_DC_MASK, | ||
722 | CCSR_SSI_SxCCR_DC(2)); | ||
723 | } | ||
724 | |||
714 | return 0; | 725 | return 0; |
715 | } | 726 | } |
716 | 727 | ||