linux/sound/soc/intel
Cássio Gabriel afb2a3a9d8
ASoC: Intel: bytcht_es8316: Fix MCLK leak on init errors
byt_cht_es8316_init() enables MCLK before configuring the codec sysclk
and creating the headset jack. If either of those later steps fails, the
function returns without disabling MCLK, leaving the clock enabled after
card registration fails.

Track whether this driver enabled MCLK and disable it on the init error
paths. Add the matching DAI link exit callback so the same clock enable
is also balanced when ASoC cleans up a successfully initialized link.

Fixes: a03bdaa565 ("ASoC: Intel: add machine driver for BYT/CHT + ES8316")
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260519-asoc-bytcht-es8316-mclk-leak-v1-1-b4a11cdc2afd@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
History 2026-05-25 13:33:23 +01:00
..
atom ASoC: intel: name back to pcm_new()/pcm_free() 2026-03-16 13:37:53 +00:00
avs sound updates for 7.1-rc1 2026-04-15 09:20:49 -07:00
boards ASoC: Intel: bytcht_es8316: Fix MCLK leak on init errors 2026-05-25 13:33:23 +01:00
catpt ASoC: Merge up fixes 2026-03-24 17:29:47 +00:00
common ASoC: Intel: soc-acpi-intel-ptl-match: Remove unnecessary cs42l43 match 2026-05-21 19:18:01 +01:00
keembay ASoC: intel: name back to pcm_new()/pcm_free() 2026-03-16 13:37:53 +00:00
Kconfig ASoC: Intel: avs: Include CPUID header at file scope 2026-03-28 00:29:30 +01:00
Makefile ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00