struct snd_soc_codec *codec = dai->codec;
struct wm8915_priv *wm8915 = snd_soc_codec_get_drvdata(codec);
int lfclk = 0;
+ int ratediv = 0;
int src;
int old;
snd_soc_update_bits(codec, WM8915_AIF_RATE,
WM8915_SYSCLK_RATE, 0);
break;
+ case 24576000:
+ ratediv = WM8915_SYSCLK_DIV;
case 12288000:
snd_soc_update_bits(codec, WM8915_AIF_RATE,
WM8915_SYSCLK_RATE, WM8915_SYSCLK_RATE);
}
snd_soc_update_bits(codec, WM8915_AIF_CLOCKING_1,
- WM8915_SYSCLK_SRC_MASK,
- src << WM8915_SYSCLK_SRC_SHIFT);
+ WM8915_SYSCLK_SRC_MASK | WM8915_SYSCLK_DIV_MASK,
+ src << WM8915_SYSCLK_SRC_SHIFT | ratediv);
snd_soc_update_bits(codec, WM8915_CLOCKING_1, WM8915_LFCLK_ENA, lfclk);
snd_soc_update_bits(codec, WM8915_AIF_CLOCKING_1,
WM8915_SYSCLK_ENA, old);