From a5540a8bb236b8df5a64b63dd512fa7a1728cf19 Mon Sep 17 00:00:00 2001 From: Raymond Yau Date: Tue, 3 May 2011 13:33:53 +0800 Subject: [PATCH] --- yaml --- r: 248462 b: refs/heads/master c: ce85c9ac8dd53a658d85b4f39f612c23aa704e49 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_realtek.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 1bec085af713..e4b1a3c3c678 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 20ec8b24636e2d43435a27a55dbb7e8331c563ca +refs/heads/master: ce85c9ac8dd53a658d85b4f39f612c23aa704e49 diff --git a/trunk/sound/pci/hda/patch_realtek.c b/trunk/sound/pci/hda/patch_realtek.c index c9f77152e079..4dd0cccc5a9e 100644 --- a/trunk/sound/pci/hda/patch_realtek.c +++ b/trunk/sound/pci/hda/patch_realtek.c @@ -4424,7 +4424,7 @@ static int alc_build_pcms(struct hda_codec *codec) alc_pcm_null_stream; info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = 0; } - if (spec->num_adc_nids > 1) { + if (spec->num_adc_nids > 1 && spec->stream_analog_alt_capture) { info->stream[SNDRV_PCM_STREAM_CAPTURE] = *spec->stream_analog_alt_capture; info->stream[SNDRV_PCM_STREAM_CAPTURE].nid =