aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-03-06 10:58:35 -0500
committerTakashi Iwai <tiwai@suse.de>2008-04-24 06:00:22 -0400
commit0ccb541c96e6d40844d00ec88fae734568bdd0bd (patch)
tree45327d76633580284375f51e38cece3386a3f0f0 /sound/pci
parent7194cae62e92c5db8b87df1120fbf24f83f488f8 (diff)
[ALSA] hda-codec - Add internal mic item for ALC268 acer model
Added the internal mic as a capture source item for ALC268 acer model. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_realtek.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index c67c32faa903..7937d97219d4 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -9775,8 +9775,12 @@ static struct snd_kcontrol_new alc268_acer_mixer[] = {
9775}; 9775};
9776 9776
9777static struct hda_verb alc268_acer_verbs[] = { 9777static struct hda_verb alc268_acer_verbs[] = {
9778 {0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, /* internal dmic? */
9779 {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
9778 {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, 9780 {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
9779 {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, 9781 {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
9782 {0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
9783 {0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
9780 9784
9781 {0x14, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN}, 9785 {0x14, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN},
9782 { } 9786 { }
@@ -9990,6 +9994,15 @@ static struct hda_input_mux alc268_capture_source = {
9990 }, 9994 },
9991}; 9995};
9992 9996
9997static struct hda_input_mux alc268_acer_capture_source = {
9998 .num_items = 3,
9999 .items = {
10000 { "Mic", 0x0 },
10001 { "Internal Mic", 0x6 },
10002 { "Line", 0x2 },
10003 },
10004};
10005
9993#ifdef CONFIG_SND_DEBUG 10006#ifdef CONFIG_SND_DEBUG
9994static struct snd_kcontrol_new alc268_test_mixer[] = { 10007static struct snd_kcontrol_new alc268_test_mixer[] = {
9995 /* Volume widgets */ 10008 /* Volume widgets */
@@ -10332,7 +10345,7 @@ static struct alc_config_preset alc268_presets[] = {
10332 .hp_nid = 0x02, 10345 .hp_nid = 0x02,
10333 .num_channel_mode = ARRAY_SIZE(alc268_modes), 10346 .num_channel_mode = ARRAY_SIZE(alc268_modes),
10334 .channel_mode = alc268_modes, 10347 .channel_mode = alc268_modes,
10335 .input_mux = &alc268_capture_source, 10348 .input_mux = &alc268_acer_capture_source,
10336 .unsol_event = alc268_acer_unsol_event, 10349 .unsol_event = alc268_acer_unsol_event,
10337 .init_hook = alc268_acer_init_hook, 10350 .init_hook = alc268_acer_init_hook,
10338 }, 10351 },