]> git.alsa-project.org Git - alsa-ucm-conf.git/commit
codecs/es8316: Fix mono speaker settings from previous boot getting applied
authorHans de Goede <hdegoede@redhat.com>
Sun, 29 Oct 2023 14:50:07 +0000 (15:50 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 31 Oct 2023 14:07:59 +0000 (15:07 +0100)
commit24b9ea47b7bfafd963abc224968f91f8afdc7a85
tree0fc8bcb8850c5d7a4e79b8d201536e0dd795e2f7
parent70e39a3d45248eafd553d7cecacde02b5da67f96
codecs/es8316: Fix mono speaker settings from previous boot getting applied

When codecs/es8316/MonoSpeaker.conf's EnableSeq was run last before
shutdown the 'Playback Polarity' and 'DAC Mono Mix Switch' controls for
Mono Speaker output get saved and restored on the next boot.

These settings are undone by the MonoSpeaker DisableSeq, but that never
runs when an updated kernel switches from the default "cfg-spk:1" in
components to "cfg-spk:2" for devices which do actually have 2 speakers,
which causes the ucm profile to use codecs/es8316/Speaker.conf instead.

Set the 'Playback Polarity' and 'DAC Mono Mix Switch' controls to their
defaults in codecs/es8316/EnableSeq.conf to avoid them getting stuck
in Mono mix mode in this scenario.

Link: https://lore.kernel.org/alsa-devel/20231029145007.24106-1-hdegoede@redhat.com/
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/es8316/EnableSeq.conf