projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
447ee6a
)
ALSA: hda - Fix auto-mic for CX2064x codecs
author
Takashi Iwai
<tiwai@suse.de>
Fri, 13 May 2011 14:18:37 +0000
(16:18 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 13 May 2011 14:18:37 +0000
(16:18 +0200)
The wrong id is assigned for external/internal mics in the auto-mic
selection parser.
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
35bebe5
..
eecc154
100644
(file)
--- a/
sound/pci/hda/patch_conexant.c
+++ b/
sound/pci/hda/patch_conexant.c
@@
-3420,13
+3420,13
@@
static void cx_auto_check_auto_mic(struct hda_codec *codec)
if (is_ext_mic(codec, cfg->inputs[0].pin) &&
is_int_mic(codec, cfg->inputs[1].pin)) {
spec->auto_mic = 1;
- spec->auto_mic_ext =
1
;
+ spec->auto_mic_ext =
0
;
return;
}
- if (is_int_mic(codec, cfg->inputs[
1
].pin) &&
- is_ext_mic(codec, cfg->inputs[
0
].pin)) {
+ if (is_int_mic(codec, cfg->inputs[
0
].pin) &&
+ is_ext_mic(codec, cfg->inputs[
1
].pin)) {
spec->auto_mic = 1;
- spec->auto_mic_ext =
0
;
+ spec->auto_mic_ext =
1
;
return;
}
}