From 81a195b75ba1fa9a251faf4b71c8464ba383d15f Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 2 Dec 2011 15:29:12 +0100 Subject: [PATCH] --- yaml --- r: 276557 b: refs/heads/master c: cce4aa378a049f4275416ee6302dd24f37b289df h: refs/heads/master i: 276555: 1df4130f4076db69b0f9fff981e25ee1c5aeff4a v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_realtek.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f841a788af79..08f41023c3a8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fc084e0b930d546872ab23667052499f7daf0fed +refs/heads/master: cce4aa378a049f4275416ee6302dd24f37b289df diff --git a/trunk/sound/pci/hda/patch_realtek.c b/trunk/sound/pci/hda/patch_realtek.c index cbde019d3d52..a7d1bc4e0d09 100644 --- a/trunk/sound/pci/hda/patch_realtek.c +++ b/trunk/sound/pci/hda/patch_realtek.c @@ -297,6 +297,8 @@ static int alc_mux_select(struct hda_codec *codec, unsigned int adc_idx, imux = &spec->input_mux[mux_idx]; if (!imux->num_items && mux_idx > 0) imux = &spec->input_mux[0]; + if (!imux->num_items) + return 0; if (idx >= imux->num_items) idx = imux->num_items - 1;