ALSA: hda/realtek - Fixed single output machine get empty hp sense
authorKailang Yang <kailang@realtek.com>
Thu, 3 Apr 2014 09:28:39 +0000 (17:28 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 Apr 2014 09:48:33 +0000 (11:48 +0200)
commit8314f22589297bdb100788112f901fe885edacbc
tree84734d68261ee339d8b5ee78357aa114e67bfdf7
parent69dd89fd2b9406603d218cab8996cfb232d5b8b9
ALSA: hda/realtek - Fixed single output machine get empty hp sense

If it only has single output of HP out of machine.
The driver parser will copy hp_pins to line_out_pins.
hp_pins will empty for alc283_init and alc283_shutup functions.
This will cause not have value for hp_pin_sense.
Add check line_out_type code will solve it .

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