linux/sound/soc/intel/boards
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
..
bdw-rt5650.c ASoC: Intel: bdw-rt5650: Mark FE DAIs as nonatomic 2020-10-05 18:18:41 +01:00
bdw-rt5677.c ASoC: Intel: bdw-rt5677: Mark FE DAIs as nonatomic 2020-10-05 18:18:42 +01:00
broadwell.c ASoC: Intel: broadwell: Mark FE DAIs as nonatomic 2020-10-05 18:18:43 +01:00
bxt_da7219_max98357a.c ASoC: Intel: bxt-da7219-max98357a: return -EINVAL on unrecognized speaker amplifier 2020-07-02 17:18:50 +01:00
bxt_rt298.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
bytcht_cx2072x.c ASoC: Intel: bytcht_cx2072x: simplify return handling 2020-08-17 15:42:59 +01:00
bytcht_da7213.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
bytcht_es8316.c Linux 5.9-rc5 2020-10-06 16:19:24 +01:00
bytcht_nocodec.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
bytcr_rt5640.c ASoC: Intel: Make atom components independent of sst-dsp 2020-10-06 15:12:27 +01:00
bytcr_rt5651.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
cht_bsw_max98090_ti.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
cht_bsw_nau8824.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
cht_bsw_rt5645.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
cht_bsw_rt5672.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
cml_rt1011_rt5682.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
ehl_rt5660.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
glk_rt5682_max98357a.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
haswell.c ASoC: Intel: haswell: Mark FE DAIs as nonatomic 2020-10-05 18:18:44 +01:00
hda_dsp_common.c ASoC: Intel: hda_dsp_common: use static function in conditional block 2020-09-23 18:47:59 +01:00
hda_dsp_common.h ASoC: Intel: hda_dsp_common: use static function in conditional block 2020-09-23 18:47:59 +01:00
kbl_da7219_max98357a.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
kbl_da7219_max98927.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
kbl_rt5660.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
kbl_rt5663_max98927.c ASoC: Intel: kbl_rt5663_max98927: Fix kabylake_ssp_fixup function 2020-10-14 20:29:53 +01:00
kbl_rt5663_rt5514_max98927.c ASOC: Intel: kbl_rt5663_rt5514_max98927: Do not try to disable disabled clock 2020-11-18 17:59:23 +00:00
Kconfig ASoC: Intel: Remove rt5640 support for baytrail solution 2020-10-06 15:12:20 +01:00
Makefile ASoC: Intel: Remove rt5640 support for baytrail solution 2020-10-06 15:12:20 +01:00
skl_hda_dsp_common.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
skl_hda_dsp_common.h ASoC: intel/skl/hda - fix probe regression on systems without i915 2020-07-22 13:34:24 +01:00
skl_hda_dsp_generic.c ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in autosuspend delay 2020-08-19 12:12:53 +01:00
skl_nau88l25_max98357a.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
skl_nau88l25_ssm4567.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
skl_rt286.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
sof_da7219_max98373.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
sof_maxim_common.c ASoC: Intel: tgl_max98373: fix a runtime pm issue in multi-thread case 2020-08-24 20:15:14 +01:00
sof_maxim_common.h ASoC: Intel: sof_sdw: Add MAX98373 support 2020-06-26 16:10:59 +01:00
sof_pcm512x.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00
sof_rt5682.c ASoC: SOF: Intel: Use DMI oem string search for tgl_max98373_rt5682 2020-09-11 15:52:19 +01:00
sof_sdw_common.h ASOC: Intel: sof_sdw: restore playback functionality with max98373 amps 2020-09-23 18:13:17 +01:00
sof_sdw_dmic.c ASoC: Intel: sof_sdw: clean-up inclusion of header files 2020-08-24 13:41:36 +01:00
sof_sdw_hdmi.c ASoC: Intel: sof_sdw: avoid crash if invalid DSP topology loaded 2020-07-20 16:08:22 +01:00
sof_sdw_max98373.c ASOC: Intel: sof_sdw: restore playback functionality with max98373 amps 2020-09-23 18:13:17 +01:00
sof_sdw_rt700.c ASoC: Intel: sof_sdw_rt700: add codec prefix 2020-09-23 18:13:15 +01:00
sof_sdw_rt711_sdca.c ASoC: intel: sof_sdw: add rt711 rt1316 rt714 SDCA codec support. 2020-08-24 13:41:35 +01:00
sof_sdw_rt711.c ASoC: Intel: sof_sdw: clean-up inclusion of header files 2020-08-24 13:41:36 +01:00
sof_sdw_rt715_sdca.c ASoC: intel: sof_sdw: add rt711 rt1316 rt714 SDCA codec support. 2020-08-24 13:41:35 +01:00
sof_sdw_rt715.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_rt1308.c ASoC: Intel: sof_sdw_rt1308: add extra check on init 2020-10-05 14:40:19 +01:00
sof_sdw_rt1316.c ASoC: Intel: sof_sdw_rt1316: add missing component string 2020-10-05 14:40:20 +01:00
sof_sdw_rt5682.c ASoC: Intel: sof_sdw: clean-up inclusion of header files 2020-08-24 13:41:36 +01:00
sof_sdw.c ASoC: Intel: sof_sdw: add version_id to avoid rt714/rt715 confusion 2020-10-05 14:40:22 +01:00
sof_wm8804.c ASoC: intel/boards: use asoc_substream_to_rtd() 2020-07-27 14:00:22 +01:00