]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
ALSA: hda - Don't check invalid HP pin
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Nov 2009 13:23:15 +0000 (14:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Nov 2009 13:23:15 +0000 (14:23 +0100)
commitad87c64f00e01a694bf90bddc2b4a6c90796d13c
treed79ca7cd5e34a9213570dc64d77067a18119a8af
parenta1bf808849f25a4d668f81415ecebb2da9fecf8e
ALSA: hda - Don't check invalid HP pin

alc_automute_pin() might be called even if any HP pin is defined, and
it will result in verbs with NID=0.

This patch adds a check for the validity of HP widget before issuing
any verbs.

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