WSL2-Linux-Kernel/sound/soc/fsl
Ahmad Fatoum d00887c106
ASoC: fsl_sai: fix 1:1 bclk:mclk ratio support
Refactoring in commit a50b7926d0 ("ASoC: fsl_sai: implement 1:1
bclk:mclk ratio support") led to the bypass never happening
as (ratio = 1) was caught in the existing if (ratio & 1) continue;
check. The correct check sequence instead is:

 - skip all ratios lower than one and higher than 512
 - skip all odd ratios except for 1:1
 - skip 1:1 ratio if and only if !support_1_1_ratio

And for all others, calculate the appropriate divider. Adjust the
code to facilitate this.

Fixes: a50b7926d0 ("ASoC: fsl_sai: implement 1:1 bclk:mclk ratio support")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20220405155731.745413-1-a.fatoum@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-04-06 15:50:05 +01:00
..
Kconfig ASoC: fsl-asoc-card: Add missing Kconfig option for tlv320aic31xx 2021-12-06 13:49:19 +00:00
Makefile
efika-audio-fabric.c
eukrea-tlv320.c
fsl-asoc-card.c ASoC: fsl-asoc-card: Fix jack_event() always return 0 2022-03-21 12:04:37 +00:00
fsl_asrc.c ASoC: fsl_asrc: refine the check of available clock divider 2022-01-06 13:55:54 +00:00
fsl_asrc.h
fsl_asrc_common.h
fsl_asrc_dma.c
fsl_aud2htx.c ASoC: fsl: Drop unused argument from imx_pcm_dma_init() 2022-02-28 13:33:57 +00:00
fsl_aud2htx.h
fsl_audmix.c
fsl_audmix.h
fsl_dma.c
fsl_dma.h
fsl_easrc.c
fsl_easrc.h
fsl_esai.c ASoC: fsl: Drop unused argument from imx_pcm_dma_init() 2022-02-28 13:33:57 +00:00
fsl_esai.h
fsl_micfil.c
fsl_micfil.h
fsl_mqs.c ASoC: fsl_mqs: fix MODULE_ALIAS 2022-01-04 14:59:37 +00:00
fsl_rpmsg.c ASoC: fsl_rpmsg: Remove SET_SYSTEM_SLEEP_PM_OPS callback 2022-03-09 13:31:44 +00:00
fsl_rpmsg.h
fsl_sai.c ASoC: fsl_sai: fix 1:1 bclk:mclk ratio support 2022-04-06 15:50:05 +01:00
fsl_sai.h ASoC: fsl_sai: store full version instead of major/minor 2022-03-07 13:13:06 +00:00
fsl_spdif.c ASoC: fsl_spdif: Add new registers included on i.MX8ULP 2022-03-17 18:00:14 +00:00
fsl_spdif.h ASoC: fsl_spdif: Add new registers included on i.MX8ULP 2022-03-17 18:00:14 +00:00
fsl_ssi.c ASoC: fsl: Drop unused argument from imx_pcm_dma_init() 2022-02-28 13:33:57 +00:00
fsl_ssi.h
fsl_ssi_dbg.c
fsl_utils.c
fsl_utils.h
fsl_xcvr.c
fsl_xcvr.h
imx-audio-rpmsg.c
imx-audmix.c
imx-audmux.c
imx-audmux.h
imx-card.c ASoC: imx-card: improve the sound quality for low rate 2022-01-06 13:55:45 +00:00
imx-es8328.c ASoC: imx-es8328: Fix error return code in imx_es8328_probe() 2022-03-10 12:17:52 +00:00
imx-hdmi.c ASoC: imx-hdmi: add put_device() after of_find_device_by_node() 2021-11-26 13:24:28 +00:00
imx-pcm-dma.c ASoC: fsl: Drop unused argument from imx_pcm_dma_init() 2022-02-28 13:33:57 +00:00
imx-pcm-fiq.c
imx-pcm-rpmsg.c
imx-pcm-rpmsg.h
imx-pcm.h ASoC: fsl: Drop unused argument from imx_pcm_dma_init() 2022-02-28 13:33:57 +00:00
imx-rpmsg.c
imx-sgtl5000.c ASoC: fsl: Use dev_err_probe() helper 2021-12-20 12:47:14 +00:00
imx-spdif.c ASoC: fsl: Use dev_err_probe() helper 2021-12-20 12:47:14 +00:00
imx-ssi.h
mpc5200_dma.c
mpc5200_dma.h
mpc5200_psc_ac97.c
mpc5200_psc_i2s.c
mpc8610_hpcd.c
p1022_ds.c
p1022_rdk.c
pcm030-audio-fabric.c ASoC: fsl: Add missing error handling in pcm030_fabric_probe 2022-01-28 13:05:18 +00:00