linux/sound/soc/intel
Guenter Roeck 879ee8b6f2
ASOC: Intel: kbl_rt5663_rt5514_max98927: Do not try to disable disabled clock
In kabylake_set_bias_level(), enabling mclk may fail if the clock has
already been enabled by the firmware. Attempts to disable that clock
later will fail with a warning backtrace.

mclk already disabled
WARNING: CPU: 2 PID: 108 at drivers/clk/clk.c:952 clk_core_disable+0x1b6/0x1cf
...
Call Trace:
 clk_disable+0x2d/0x3a
 kabylake_set_bias_level+0x72/0xfd [snd_soc_kbl_rt5663_rt5514_max98927]
 snd_soc_card_set_bias_level+0x2b/0x6f
 snd_soc_dapm_set_bias_level+0xe1/0x209
 dapm_pre_sequence_async+0x63/0x96
 async_run_entry_fn+0x3d/0xd1
 process_one_work+0x2a9/0x526
...

Only disable the clock if it has been enabled.

Fixes: 15747a8020 ("ASoC: eve: implement set_bias_level function for rt5514")
Cc: Brent Lu <brent.lu@intel.com>
Cc: Curtis Malainey <cujomalainey@chromium.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201111205434.207610-1-linux@roeck-us.net
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-11-18 17:59:23 +00:00
..
atom ASoC: Intel: atom: Remove duplicate kconfigs 2020-10-14 20:29:54 +01:00
boards ASOC: Intel: kbl_rt5663_rt5514_max98927: Do not try to disable disabled clock 2020-11-18 17:59:23 +00:00
catpt Merge Intel catpt DSP fixes into asoc-5.10 2020-11-16 23:29:07 +00:00
common ASoC: Intel: Remove sst_dsp_get_thread_context 2020-10-06 15:12:29 +01:00
keembay ASoC: Intel: KMB: Fix S24_LE configuration 2020-11-16 20:02:40 +00:00
skylake Linux 5.9-rc5 2020-10-06 16:19:24 +01:00
Kconfig ASoC: Intel: atom: Remove duplicate kconfigs 2020-10-14 20:29:54 +01:00
Makefile ASoC: Intel: Remove baytrail solution 2020-10-06 15:12:21 +01:00