diff options
-rw-r--r-- | sound/soc/codecs/wm8994.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 1d1b43fe1722..ab332e380fb3 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -2258,6 +2258,18 @@ out: | |||
2258 | 2258 | ||
2259 | configure_clock(codec); | 2259 | configure_clock(codec); |
2260 | 2260 | ||
2261 | /* | ||
2262 | * If SYSCLK will be less than 50kHz adjust AIFnCLK dividers | ||
2263 | * for detection. | ||
2264 | */ | ||
2265 | if (max(wm8994->aifclk[0], wm8994->aifclk[1]) < 50000) { | ||
2266 | dev_dbg(codec->dev, "Configuring AIFs for 128fs\n"); | ||
2267 | snd_soc_update_bits(codec, WM8994_AIF1_RATE, | ||
2268 | WM8994_AIF1CLK_RATE_MASK, 0x1); | ||
2269 | snd_soc_update_bits(codec, WM8994_AIF2_RATE, | ||
2270 | WM8994_AIF2CLK_RATE_MASK, 0x1); | ||
2271 | } | ||
2272 | |||
2261 | return 0; | 2273 | return 0; |
2262 | } | 2274 | } |
2263 | 2275 | ||