summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKarl Asseily <karl@asseily.com>2026-11-18 16:27:27 +0200
committerMark Brown <broonie@kernel.org>2026-11-18 18:24:09 +0000
commit27b63a33d6d582da0e8e3ae88f3cfaa9103d68c5 (patch)
tree6fa0cbd3d133b85b88c0704673fa1c731a554799 /tools/perf/scripts/python
parent6a4f9e7cf13ecbcc45ece48c7a0ce164feb120eb (diff)
ASoC: es9039q2m: Enable the DAC clock at component probe
es9039q2m_suspend() gates the part's internal clock tree by clearing ENABLE_DAC_CLK in register 1, bypassing the cache so that regcache_sync() sets it again on resume. The part keeps its registers through a warm reset - only removing power clears them - so a reset while the system is suspended skips the resume and leaves the bit clear for the next boot. Nothing in the driver sets it again. The register cache has no defaults, so the first access to register 1 at probe reads the gated value from the part and caches it, and every later suspend/resume cycle restores that same value. A stream then runs as far as ALSA can tell, but the part automutes both channels and the analogue output stays silent until power is removed. Boards that remove the supplies in suspend reset the part and are not affected. Set ENABLE_DAC_CLK at component probe, after the mute and before the datapath is enabled. Of the two writes the driver makes behind the cache, this is the one probe did not already repeat; the other is the mute at resume. On a part that came up from power the bit is already set and the write changes nothing. Tested on an RK3588 board whose ES9039Q2M is clocked by a fixed 24.576 MHz oscillator: suspend, reset while asleep, then play a 1 kHz tone. Without this patch register 1 reads 0x35 where 0xb5 is expected, both Automute Active controls read 1, and nothing is heard; setting ENABLE_DAC_CLK by hand mid-stream clears both at once and the tone comes back. With this patch the same sequence reads 0 on both controls and the tone is heard, and a part left gated before the fix was installed recovers on the next warm boot without power being removed. Fixes: 004e260a5475 ("ASoC: es9039q2m: add ESS Technology ES9039Q2M codec driver") Signed-off-by: Karl Asseily <karl@asseily.com> Link: https://patch.msgid.link/20261118142728.101180-1-karl@asseily.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions