]> git.alsa-project.org Git - alsa-ucm-conf.git/commit
codecs/rt5640: Rename DAPM PIN switches to avoid having 2 Speaker and Headphones...
authorHans de Goede <hdegoede@redhat.com>
Wed, 29 Sep 2021 09:11:41 +0000 (11:11 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 29 Sep 2021 10:57:14 +0000 (12:57 +0200)
commitc0e3ef7303af76b164f0995bf0a709a20bc4e9b9
tree81d664c5787c0cc433dae978fd5510c74ca333b7
parentd2416a4e2644ca04b21d4c0b5e9fff2aab1ec169
codecs/rt5640: Rename DAPM PIN switches to avoid having 2 Speaker and Headphones switches

Now that we rename the mutes from their weird 'Channel Switch' postfix
to the standard 'Playback Switch' postfix we end up having 2 Switches
for the 'Speaker' resp. 'Headphones' volume controls, with 1 of the two
getting ignored by the alsa-lib mixer code because it is duplicate.

This is caused by the bytcr-rt5640 machine driver adding DAPM PIN
Switches which are named 'Headphone Switch' resp. 'Speaker Switch',
rename these to 'Headphone Output Switch' / 'Speaker Output Switch'
so that they get seen as separate controls by the alsa-lib mixer code.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt5640/init.conf