Commit 506a4196 authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarTakashi Iwai <tiwai@suse.de>
parent d2859fd4
...@@ -3790,7 +3790,7 @@ static void cx_auto_check_auto_mic(struct hda_codec *codec) ...@@ -3790,7 +3790,7 @@ static void cx_auto_check_auto_mic(struct hda_codec *codec)
int pset[INPUT_PIN_ATTR_NORMAL + 1]; int pset[INPUT_PIN_ATTR_NORMAL + 1];
int i; int i;
for (i = 0; i < INPUT_PIN_ATTR_NORMAL; i++) for (i = 0; i < ARRAY_SIZE(pset); i++)
pset[i] = -1; pset[i] = -1;
for (i = 0; i < spec->private_imux.num_items; i++) { for (i = 0; i < spec->private_imux.num_items; i++) {
hda_nid_t pin = spec->imux_info[i].pin; hda_nid_t pin = spec->imux_info[i].pin;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment