Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: rl6231: avoid using divisible by 3 for DMIC clk

Few codecs will meet no DMIC clock output issue when select a divided
number which is divisible by 3. To prevent this issue, the patch ignore
the numbers when calculating the DMIC clock divider.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bard Liao and committed by
Mark Brown
2f64b6ed 6ff33f39

+2
+2
sound/soc/codecs/rl6231.c
··· 80 80 } 81 81 82 82 for (i = 0; i < ARRAY_SIZE(div); i++) { 83 + if ((div[i] % 3) == 0) 84 + continue; 83 85 /* find divider that gives DMIC frequency below 3MHz */ 84 86 if (3000000 * div[i] >= rate) 85 87 return i;