OSDN Git Service

ASoC: rl6231: fix range of DMIC clock
authorJohn Lin <john.lin@realtek.com>
Mon, 16 Nov 2015 06:41:07 +0000 (14:41 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 13:17:01 +0000 (13:17 +0000)
commit7336dcefac4d8f94fa205a668138a6462841acc4
tree4128e1ab1526bc2b7c9787f6abbbcd1ff13c096a
parent2f64b6ed44c26eeb3d1bf5428936629cf552eda7
ASoC: rl6231: fix range of DMIC clock

The maximum DMIC clock rate is 3.072 MHz for most DMIC. And it will get better
performance in higher clock rate. If we set maximum to 3 MHz in driver, we will
get a clock rate which is not even close to 3 MHz.
For example, if DMIC clock source is 24.576 MHz, the DMIC clock will be about
1.5 MHz in current code. But it will be 3.072 MHz with this patch.

Signed-off-by: John Lin <john.lin@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rl6231.c