projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2859fd
)
ALSA: hda - Fix auto-mic detection in Conexant codec-parser
author
Takashi Iwai
<tiwai@suse.de>
Mon, 23 May 2011 18:07:15 +0000
(20:07 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 23 May 2011 18:07:15 +0000
(20:07 +0200)
Fix the auto-mic detection for Cxt auto-parser due to off-by-one
missing initialization.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_conexant.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_conexant.c
b/sound/pci/hda/patch_conexant.c
index e8725d24bd050de4a5ae5c84890eaa8e5d430353..cd1a93ae217094125f31be7e63e6db4583ae264e 100644
(file)
--- 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;