Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df6ab65f authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: wm8962: Check if we runtime resume the device when starting FLL

parent 7e9614eb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2886,7 +2886,11 @@ static int wm8962_set_fll(struct snd_soc_codec *codec, int fll_id, int source,

	try_wait_for_completion(&wm8962->fll_lock);

	pm_runtime_get_sync(codec->dev);
	ret = pm_runtime_get_sync(codec->dev);
	if (ret < 0) {
		dev_err(codec->dev, "Failed to resume device: %d\n", ret);
		return ret;
	}

	snd_soc_update_bits(codec, WM8962_FLL_CONTROL_1,
			    WM8962_FLL_FRAC | WM8962_FLL_REFCLK_SRC_MASK |