]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: generic: change the DAC ctl name for LO+SPK or LO+HP
authorHui Wang <hui.wang@canonical.com>
Tue, 4 May 2021 07:39:17 +0000 (15:39 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 May 2021 08:46:36 +0000 (10:46 +0200)
commit9c448997184b27d42d633d74c46ee826e8f3b393
treeda673939bece154f3a0f74b492f952d9ab6d9433
parentcb2c5a65808ccca9027f7c3ec463893a75038242
ALSA: hda: generic: change the DAC ctl name for LO+SPK or LO+HP

Without this change, the DAC ctl's name could be changed only when
the machine has both Speaker and Headphone, but we met some machines
which only has Lineout and Headhpone, and the Lineout and Headphone
share the Audio Mixer0 and DAC0, the ctl's name is set to "Front".

On most of machines, the "Front" is used for Speaker only or Lineout
only, but on this machine it is shared by Lineout and Headphone,
This introduces an issue in the pipewire and pulseaudio, suppose users
want the Headphone to be on and the Speaker/Lineout to be off, they
could turn off the "Front", this works on most of the machines, but on
this machine, the "Front" couldn't be turned off otherwise the
headphone will be off too. Here we do some change to let the ctl's
name change to "Headphone+LO" on this machine, and pipewire and
pulseaudio already could handle "Headphone+LO" and "Speaker+LO".
(https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/747)

BugLink: http://bugs.launchpad.net/bugs/804178
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20210504073917.22406-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c