linux/sound/soc/fsl
Alexander Shiyan 4f14f5c11d ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode
The i.MX51 datasheet says:
Chapter 56.1.2.4 I2S Mode
...
When I2S modes are entered (I2S master (01) or I2S slave (10)),
the following settings are recommended:
...
- TX Frame Rate should be 2 i.e. (STCCR[12:8] = 1)
- RX Frame Rate should be 2 i.e. (SRCCR[12:8] = 1)

Chapter 56.3.3.12 SSI Transmit and Receive Clock Control Registers (STCCR & SRCCR)
...
Bits 12-8 DC4-DC0
Frame Rate Divider Control. These bits are used to control the divide ratio
for the programmable frame rate dividers. The divide ratio works on the word
clock. In Normal mode, this ratio determines the word transfer rate.
In Network mode, this ratio sets the number of words per frame. The divide
ratio ranges from 1 to 32 in Normal mode and from 2 to 32 in Network mode.
In Normal mode, a divide ratio of 1 (DC=00000) provides continuous periodic
data word transfer. A bit-length frame sync must be used in this case.

Function fsl_ssi_hw_params() setup Normal mode for MONO output,
so with DC=0, SSI enters to continuous periodic data word transfer.
To fix this, setup DC for any I2S mode.
Patch has tested on custom board based on Digi CCMX-51 module (i.MX51).

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-06-29 19:20:11 +01:00
..
Kconfig ASoC: fsl-asoc-card: add cs4271 and cs4272 support 2016-02-05 13:32:40 +00:00
Makefile ASoC: fsl: add imx-es8328 machine driver 2014-08-16 17:18:07 -05:00
efika-audio-fabric.c ASoC: fsl: Add .owner to struct snd_soc_card 2011-12-22 17:34:32 +00:00
eukrea-tlv320.c ASoC: fsl: fix typos for sound/soc/fsl/* 2015-08-12 13:36:58 +01:00
fsl-asoc-card.c ASoC: fsl-asoc-card: add cs4271 and cs4272 support 2016-02-05 13:32:40 +00:00
fsl_asrc.c Merge remote-tracking branches 'asoc/topic/fsl-asrc' and 'asoc/topic/fsl-ssi' into asoc-next 2016-01-11 13:54:36 +00:00
fsl_asrc.h ASoC: fsl_asrc: sound is wrong after suspend/resume 2016-01-05 13:19:11 +00:00
fsl_asrc_dma.c ASoC: fsl_sarc_dma: Check pair before using it 2014-08-04 15:48:41 +01:00
fsl_dma.c ASoC: fsl: fsl_dma: Use true/false for boolean init 2015-05-11 16:13:36 +01:00
fsl_dma.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
fsl_esai.c Merge remote-tracking branches 'asoc/topic/dpcm', 'asoc/topic/dwc', 'asoc/topic/fsl', 'asoc/topic/fsl-asrc' and 'asoc/topic/fsl-esai' into asoc-next 2015-12-23 00:23:40 +00:00
fsl_esai.h ASoC: fsl_esai: Fix incorrect xDC field width of xCCR registers 2014-12-30 11:29:19 +00:00
fsl_sai.c ASoC: fsl_sai: Allow setting the SAI MCLK direction 2016-05-05 16:44:22 +01:00
fsl_sai.h ASoC: fsl_sai: add tdm slots operation support 2015-11-25 12:03:30 +00:00
fsl_spdif.c Merge remote-tracking branches 'asoc/topic/fsl-spdif', 'asoc/topic/img' and 'asoc/topic/intel' into asoc-next 2015-12-23 00:23:43 +00:00
fsl_spdif.h ASoC: fsl_spdif: Add support for output sample rates 96kHz and 192kHz 2014-06-17 15:36:54 +01:00
fsl_ssi.c ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode 2016-06-29 19:20:11 +01:00
fsl_ssi.h ASoC: fsl-ssi: Use regmap 2014-06-01 11:55:08 +01:00
fsl_ssi_dbg.c ASoC: fsl-ssi: Move debugging to seperate file 2014-05-20 23:02:26 +01:00
fsl_utils.c ASoC: fsl: Remove fsl_asoc_xlate_tdm_slot_mask() 2015-01-14 19:04:56 +00:00
fsl_utils.h ASoC: fsl: Remove fsl_asoc_xlate_tdm_slot_mask() 2015-01-14 19:04:56 +00:00
imx-audmux.c ASoC: fsl: Constify platform_device_id 2015-05-01 17:51:43 +01:00
imx-audmux.h ASoC: imx-audmux: Move definitions to dt-bindings 2013-08-16 11:05:17 +01:00
imx-es8328.c ASoC: imx-es8328: Register jacks at the card level 2015-03-04 17:09:52 +00:00
imx-mc13783.c ASoC: fsl: imx-mc13783: Simplify trivial if-return sequence 2015-05-11 16:13:45 +01:00
imx-pcm-dma.c ASoC: imx-pcm-dma: add NULL test 2015-12-23 00:01:53 +00:00
imx-pcm-fiq.c ASoC: fsl: imx-pcm-fiq: use correct format specifier 2016-04-13 06:39:11 +01:00
imx-pcm.h ASoC: fsl: Add dedicated DMA buffer size for each cpu dai 2015-07-07 13:16:12 +01:00
imx-sgtl5000.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
imx-spdif.c ASoC: imx-spdif: Fix crash on suspend 2016-01-27 11:30:02 +00:00
imx-ssi.c ASoC: imx-ssi: Fix DAI hardware signal inversions 2015-09-29 17:28:33 +01:00
imx-ssi.h ASoC: fsl: imx-ssi: omit ssi counter to avoid harm in unbalanced situation 2013-12-02 11:57:02 +00:00
imx-wm8962.c ASoC: Vendor drivers get a link's runtime by snd_soc_get_pcm_runtime() 2015-11-18 18:32:24 +00:00
mpc5200_dma.c ASoC: mpc5200_dma: Don't overwrite ac97 device private_data 2014-11-18 15:26:05 +00:00
mpc5200_dma.h ASoC: fsl: mpc5200 combine psc_dma platform data 2012-09-18 23:03:42 -04:00
mpc5200_psc_ac97.c ASoC: fsl-mpc5200: Use usleep_range() instead of msleep() 2016-01-22 16:48:34 +00:00
mpc5200_psc_ac97.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
mpc5200_psc_i2s.c ASoC: fsl: constify of_device_id array 2015-03-22 18:02:56 +00:00
mpc8610_hpcd.c ASoC: twl6040, fsl: use to_platform_device 2015-12-24 19:42:42 +00:00
mx27vis-aic32x4.c ASoC: mx27vis-aci32x4: Use static DAI format setup 2015-01-06 17:34:27 +00:00
p1022_ds.c ASoC: twl6040, fsl: use to_platform_device 2015-12-24 19:42:42 +00:00
p1022_rdk.c ASoC: twl6040, fsl: use to_platform_device 2015-12-24 19:42:42 +00:00
pcm030-audio-fabric.c ASoC: fsl: constify of_device_id array 2015-03-22 18:02:56 +00:00
phycore-ac97.c ASoC: fsl: remove use of imx-fiq-pcm-audio from imx-ssi 2013-05-15 09:27:27 +04:00
wm1133-ev1.c ASoC: wm1133-ev1: Use card DAPM context to access widgets 2015-04-12 12:42:34 +01:00