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 <[email protected]> Reviewed-by: Daniel Baluta <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d0b3b7b commit cbe8761

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)