projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6b675a
)
ASoC: rl6231: Modify the target DMIC clock rate
author
Oder Chiou
<oder_chiou@realtek.com>
Thu, 4 Jun 2020 07:10:16 +0000
(15:10 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 4 Jun 2020 13:42:29 +0000
(14:42 +0100)
Some DMIC components will not work correctly in the clock rate 3.072MHz.
We recommend the clock rate 1.536MHz in the gerenal case.
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Link:
https://lore.kernel.org/r/20200604071016.3981-1-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rl6231.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rl6231.c
b/sound/soc/codecs/rl6231.c
index 2586d1cafc0cda31c2f5e22cc10abe04f8c17ca5..8c9daf32bab8460f797e817bc10e567a830d0856 100644
(file)
--- a/
sound/soc/codecs/rl6231.c
+++ b/
sound/soc/codecs/rl6231.c
@@
-80,8
+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
3.072
MHz */
- if (
3072
000 * div[i] >= rate)
+ /* find divider that gives DMIC frequency below
1.536
MHz */
+ if (
1536
000 * div[i] >= rate)
return i;
}