Skip to content

Commit 03c7874

Browse files
Stuart Hendersonbroonie
authored andcommitted
ASoC: wm8962: Enable oscillator if selecting WM8962_FLL_OSC
Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com> Link: https://msgid.link/r/20240306161439.1385643-1-stuarth@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 482c9f3 commit 03c7874

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/soc/codecs/wm8962.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2914,8 +2914,12 @@ static int wm8962_set_fll(struct snd_soc_component *component, int fll_id, int s
29142914
switch (fll_id) {
29152915
case WM8962_FLL_MCLK:
29162916
case WM8962_FLL_BCLK:
2917+
fll1 |= (fll_id - 1) << WM8962_FLL_REFCLK_SRC_SHIFT;
2918+
break;
29172919
case WM8962_FLL_OSC:
29182920
fll1 |= (fll_id - 1) << WM8962_FLL_REFCLK_SRC_SHIFT;
2921+
snd_soc_component_update_bits(component, WM8962_PLL2,
2922+
WM8962_OSC_ENA, WM8962_OSC_ENA);
29192923
break;
29202924
case WM8962_FLL_INT:
29212925
snd_soc_component_update_bits(component, WM8962_FLL_CONTROL_1,

0 commit comments

Comments
 (0)