ALSA: hda - fix NULL-dereference in patch_realtek
authorRaymond Yau <superquad.vortex2@gmail.com>
Tue, 3 May 2011 05:33:53 +0000 (13:33 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 May 2011 08:32:04 +0000 (10:32 +0200)
commitce85c9ac8dd53a658d85b4f39f612c23aa704e49
treebc7fe813443b063248cdbb0dc862df6b36a8c942
parent20ec8b24636e2d43435a27a55dbb7e8331c563ca
ALSA: hda - fix NULL-dereference in patch_realtek

Fix NULL-dereference when try to use alt_playback since those codecs
which support multistreaming playback usually have more than 1 adc but
the driver should create alt_capture when spec->stream_analog_alt_capture
is also defined.

Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c