Skip to content

Commit cbe8761

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: fsl_asrc: use internal measured ratio for non-ideal ratio mode
When USRC=0, there is underrun issue for the non-ideal ratio mode; according to the reference mannual, the internal measured ratio can be used with USRC=1 and IDRC=0. Fixes: d0250cf ("ASoC: fsl_asrc: Add an option to select internal ratio mode") Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://patch.msgid.link/20250625020504.2728161-1-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d0b3b7b commit cbe8761

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sound/soc/fsl/fsl_asrc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ static int fsl_asrc_config_pair(struct fsl_asrc_pair *pair, bool use_ideal_rate)
517517
regmap_update_bits(asrc->regmap, REG_ASRCTR,
518518
ASRCTR_ATSi_MASK(index), ASRCTR_ATS(index));
519519
regmap_update_bits(asrc->regmap, REG_ASRCTR,
520-
ASRCTR_USRi_MASK(index), 0);
520+
ASRCTR_IDRi_MASK(index) | ASRCTR_USRi_MASK(index),
521+
ASRCTR_USR(index));
521522

522523
/* Set the input and output clock sources */
523524
regmap_update_bits(asrc->regmap, REG_ASRCSR,

0 commit comments

Comments
 (0)