projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: rl6231: avoid using divisible by 3 for DMIC clk
[cascardo/linux.git]
/
sound
/
soc
/
codecs
/
rl6231.c
diff --git
a/sound/soc/codecs/rl6231.c
b/sound/soc/codecs/rl6231.c
index
aca479f
..
18b4292
100644
(file)
--- a/
sound/soc/codecs/rl6231.c
+++ b/
sound/soc/codecs/rl6231.c
@@
-80,6
+80,8
@@
int rl6231_calc_dmic_clk(int rate)
}
for (i = 0; i < ARRAY_SIZE(div); i++) {
+ if ((div[i] % 3) == 0)
+ continue;
/* find divider that gives DMIC frequency below 3MHz */
if (3000000 * div[i] >= rate)
return i;