mirror-linux/sound/soc/intel
Mark Brown cba9ce8c1a
ASoC: Intel: Fix MCLK leaks and clean up error
aravindanilraj0702@gmail.com <aravindanilraj0702@gmail.com> says:

From: Aravind Anilraj <aravindanilraj0702@gmail.com>

This series fixes MCLK resource leaks in the platform_clock_control()
implementations for bytcr_rt5640, bytcr_rt5651, and cht_bsw_rt5672.

In the SND_SOC_DAPM_EVENT_ON() path, clk_prepare_enable() is called to
enable MCLK, but subsequent failures in codec clock configuration (eg:
*_prepare_and_enable_pll1() or snd_soc_dai_set_sysclk()) return without
disabling the clock, leaking a reference.

Patches 1-3 fix this by adding the missing clk_disable_unprepare() calls
in the relevant error paths, ensuring proper symmetry between enable and
disable operations within the EVENT_ON scope.

Patch 4 moves unrelated logging changes into a separate patch and
standardizes error messages.
2026-04-03 15:15:04 +01:00
..
atom ASoC: intel: name back to pcm_new()/pcm_free() 2026-03-16 13:37:53 +00:00
avs ASoC: intel: name back to pcm_new()/pcm_free() 2026-03-16 13:37:53 +00:00
boards ASoC: Intel: Fix MCLK leaks and clean up error 2026-04-03 15:15:04 +01:00
catpt ASoC: Merge up fixes 2026-03-24 17:29:47 +00:00
common ASoC: Intel: soc-acpi-intel-ptl-match: drop rt722 monolithic match tables 2026-03-26 16:22:41 +00:00
keembay ASoC: intel: name back to pcm_new()/pcm_free() 2026-03-16 13:37:53 +00:00
Kconfig ASoC: intel: Standardize ASoC menu 2025-06-24 01:01:26 +01:00
Makefile ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00