]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: i2c: ak4xxx-adda: seed AK5365 cache with reset defaults
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Wed, 8 Apr 2026 15:17:37 +0000 (12:17 -0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Apr 2026 10:01:01 +0000 (12:01 +0200)
commitaa6c1052b7730e18d5999f9a5cfb1dadaac82310
tree077f72e6baf3cbba4c6a7acf0cd49f8945a04261
parentde65275fc94e2e0acc79bd016d60889bf251ccd9
ALSA: i2c: ak4xxx-adda: seed AK5365 cache with reset defaults

snd_akm4xxx_init() clears the register and volume caches before
dispatching by codec type. The AK5365 case then returns immediately,
leaving the software cache at zero instead of the documented AK5365
reset defaults.

The AK5365 capture volume controls read from volumes[] and the proc
register dump reads from images[], so the initial capture volume state
and proc output are wrong until a control write happens.

Seed the AK5365 cache with its documented reset defaults instead of
adding a guessed init sequence. The datasheet documents the reset
values and states that MCLK/LRCK changes do not require a PDN/PWN
reset because the chip has a built-in reset-free circuit.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260408-ak5365-cache-defaults-v1-1-fff639aca3e3@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/i2c/other/ak4xxx-adda.c