]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Add auto_mute_via_amp flag to generic parser
authorTakashi Iwai <tiwai@suse.de>
Mon, 24 Jun 2013 14:00:21 +0000 (16:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Jun 2013 06:13:51 +0000 (08:13 +0200)
commite152a346e2be0c043702ec26b34db98ea86f63b3
treecdf1a8acef8802984e3de1ee84d964ed5fa62215
parent155d19c1399897bf4e06ef21e6419c4402b3d14d
ALSA: hda - Add auto_mute_via_amp flag to generic parser

Add a new flag, auto_mute_via_amp, to determine the behavior of the
headphone / line-out auto-mute.  When this flag is set, the generic
driver mutes the speaker and line outputs via the amp mute of each
pin, instead of changing the pin control values.

This is introduced for devices that don't work expectedly with the pin
control values; for example, some devices are known to keep enabling
the speaker outputs no matter which pin control values are set on the
speaker pins.

The driver doesn't check actually whether the pins have the output amp
caps, but assumes that the proper mixer (mute) controls are created on
all these pins.  If not the case, you can't use this flag for your
device.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h