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)
commit7eebffd3f4328c6dc220521f14b384affdaf9427
treecdf1a8acef8802984e3de1ee84d964ed5fa62215
parent1ca2f2ec9e74e9d6e398e09b6468b4462c6d6b6e
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