ALSA: hda - Support multiple headphone auto-mute
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Sep 2010 13:30:49 +0000 (15:30 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 Sep 2010 13:48:29 +0000 (15:48 +0200)
commitbb35febd16fe5ac8c30f9116a25210c4f63a5267
tree72e476187fb90cdc27767c3b9962c764c54ccf59
parent03642c9a444079aa13f0864383a8f9ca04bfd198
ALSA: hda - Support multiple headphone auto-mute

Currently headphone auto-mute using alc_automute_pin() assumes only
the single pin used for the headphone output.  Since there are devices
with multiple headphone jacks, we need to check all these pins there,
too.

Also this patch merges the common code between alc_automute_pin() and
alc_automute_amp() helper functions.

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