summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-05-23 20:07:15 +0200
committerTakashi Iwai <tiwai@suse.de>2011-05-23 20:07:15 +0200
commit506a4196d44218eca20db529c84410dc1095e457 (patch)
tree63c984fa5a1cde3f94e36b746973a005c0efe437 /sound
parentd2859fd49200f1f3efd8acdb54b6d51d3ab82302 (diff)
downloadlinux-3.10-506a4196d44218eca20db529c84410dc1095e457.tar.gz
linux-3.10-506a4196d44218eca20db529c84410dc1095e457.tar.bz2
linux-3.10-506a4196d44218eca20db529c84410dc1095e457.zip
ALSA: hda - Fix auto-mic detection in Conexant codec-parser
Fix the auto-mic detection for Cxt auto-parser due to off-by-one missing initialization. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_conexant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index e8725d24bd0..cd1a93ae217 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -3790,7 +3790,7 @@ static void cx_auto_check_auto_mic(struct hda_codec *codec)
int pset[INPUT_PIN_ATTR_NORMAL + 1];
int i;
- for (i = 0; i < INPUT_PIN_ATTR_NORMAL; i++)
+ for (i = 0; i < ARRAY_SIZE(pset); i++)
pset[i] = -1;
for (i = 0; i < spec->private_imux.num_items; i++) {
hda_nid_t pin = spec->imux_info[i].pin;