diff options
| author | Mark Brown <broonie@kernel.org> | 2026-04-03 15:15:04 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-03 15:15:04 +0100 |
| commit | cba9ce8c1afeef4bbfa29891ff76634f6236c697 (patch) | |
| tree | b31bd782b93269b2be8cec699149ee527c0c090a /tools/perf/scripts/python | |
| parent | ccd7e53b7d6f06b0fef0f657c8cf377be2e8978d (diff) | |
| parent | 85c38c2fa17da23b2258edd96c89e63f92426ba5 (diff) | |
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.
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
