mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 10:29:52 +00:00
ASoC: Fix WM8996 24.576MHz clock operation
commit 37d5993c5c upstream.
Record the clock after the divider as that is what all SYSCLK users see.
Without this the other clock configuration in the device comes out at
half rate.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c5bebbd132
commit
fd4d1165bc
@@ -1895,6 +1895,7 @@ static int wm8996_set_sysclk(struct snd_soc_dai *dai,
|
||||
break;
|
||||
case 24576000:
|
||||
ratediv = WM8996_SYSCLK_DIV;
|
||||
wm8996->sysclk /= 2;
|
||||
case 12288000:
|
||||
snd_soc_update_bits(codec, WM8996_AIF_RATE,
|
||||
WM8996_SYSCLK_RATE, WM8996_SYSCLK_RATE);
|
||||
|
||||
Reference in New Issue
Block a user