android_kernel_xiaomi_sm8350/sound/soc/fsl
Shengjiu Wang b59ed5668c ASoC: fsl_ssi: Fix bclk calculation for mono channel
[ Upstream commit ed1220df6e666500ebf58c4f2fccc681941646fb ]

For mono channel, SSI will switch to Normal mode.

In Normal mode and Network mode, the Word Length Control bits
control the word length divider in clock generator, which is
different with I2S Master mode (the word length is fixed to
32bit), it should be the value of params_width(hw_params).

The condition "slots == 2" is not good for I2S Master mode,
because for Network mode and Normal mode, the slots can also
be 2. Then we need to use (ssi->i2s_net & SSI_SCR_I2S_MODE_MASK)
to check if it is I2S Master mode.

So we refine the formula for mono channel, otherwise there
will be sound issue for S24_LE.

Fixes: b0a7043d5c ("ASoC: fsl_ssi: Caculate bit clock rate using slot number and width")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/034eff1435ff6ce300b6c781130cefd9db22ab9a.1592276147.git.shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-30 15:36:55 -04:00
..
efika-audio-fabric.c
eukrea-tlv320.c
fsl_asrc_dma.c ASoC: fsl_asrc_dma: Fix dma_chan leak when config DMA channel failed 2020-06-24 17:50:36 +02:00
fsl_asrc.c
fsl_asrc.h
fsl_audmix.c ASoC: fsl_audmix: add missed pm_runtime_disable 2020-02-01 09:34:42 +00:00
fsl_audmix.h ASoC: fsl_audmix: Add spin lock to protect tdms 2019-12-17 19:56:14 +01:00
fsl_dma.c
fsl_dma.h
fsl_esai.c ASoC: fsl_esai: Disable exception interrupt before scheduling tasklet 2020-06-24 17:50:09 +02:00
fsl_esai.h
fsl_micfil.c
fsl_micfil.h
fsl_sai.c ASoC: fsl_sai: Fix exiting path on probing failure 2020-02-28 17:22:26 +01:00
fsl_sai.h ASoC: fsl_sai: Fix noise when using EDMA 2019-09-17 16:56:19 +01:00
fsl_spdif.c
fsl_spdif.h
fsl_ssi_dbg.c
fsl_ssi.c ASoC: fsl_ssi: Fix bclk calculation for mono channel 2020-06-30 15:36:55 -04:00
fsl_ssi.h
fsl_utils.c
fsl_utils.h
fsl-asoc-card.c
imx-audmix.c ASoC: imx-audmix: register the card on a proper dev 2019-08-27 11:44:39 +01:00
imx-audmux.c
imx-audmux.h
imx-es8328.c
imx-mc13783.c
imx-pcm-dma.c
imx-pcm-fiq.c
imx-pcm.h
imx-sgtl5000.c
imx-spdif.c
imx-ssi.c
imx-ssi.h
Kconfig
Makefile
mpc5200_dma.c
mpc5200_dma.h
mpc5200_psc_ac97.c
mpc5200_psc_i2s.c
mpc8610_hpcd.c
mx27vis-aic32x4.c
p1022_ds.c
p1022_rdk.c
pcm030-audio-fabric.c
phycore-ac97.c
wm1133-ev1.c