OSDN Git Service

ALSA: hda - Fix Internal Mic boost can't control with ALC283
authorKailang Yang <kailang@realtek.com>
Fri, 27 Sep 2013 12:02:28 +0000 (14:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Sep 2013 12:04:05 +0000 (14:04 +0200)
ALC283 pin control for Line1 default control by hidden register.
Use line1 as internal Mic will not get sound when boost value up.
Set control by verb for hidden register will solve this issue.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index bc07d36..41f18f4 100644 (file)
@@ -3439,6 +3439,9 @@ static void alc283_fixup_chromebook(struct hda_codec *codec,
                /* Set to manual mode */
                val = alc_read_coef_idx(codec, 0x06);
                alc_write_coef_idx(codec, 0x06, val & ~0x000c);
+               /* Enable Line1 input control by verb */
+               val = alc_read_coef_idx(codec, 0x1a);
+               alc_write_coef_idx(codec, 0x1a, val | (1 << 4));
                break;
        }
 }