Lines Matching +full:mic +full:- +full:int
1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * 6-channel independent captures.
18 * In addition, an independent DAC for the multi-playback (not used in this
26 static int alc662_parse_auto_config(struct hda_codec *codec) in alc662_parse_auto_config()
33 if (codec->core.vendor_id == 0x10ec0272 || codec->core.vendor_id == 0x10ec0663 || in alc662_parse_auto_config()
34 codec->core.vendor_id == 0x10ec0665 || codec->core.vendor_id == 0x10ec0670 || in alc662_parse_auto_config()
35 codec->core.vendor_id == 0x10ec0671) in alc662_parse_auto_config()
43 const struct hda_fixup *fix, int action) in alc272_fixup_mario()
56 static unsigned int gpio_led_power_filter(struct hda_codec *codec, in gpio_led_power_filter()
58 unsigned int power_state) in gpio_led_power_filter()
60 struct alc_spec *spec = codec->spec; in gpio_led_power_filter()
61 if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data) in gpio_led_power_filter()
67 const struct hda_fixup *fix, int action) in alc662_fixup_led_gpio1()
69 struct alc_spec *spec = codec->spec; in alc662_fixup_led_gpio1()
73 spec->mute_led_polarity = 1; in alc662_fixup_led_gpio1()
74 codec->power_filter = gpio_led_power_filter; in alc662_fixup_led_gpio1()
81 struct alc_spec *spec = codec->spec; in alc662_usi_automute_hook()
82 int vref; in alc662_usi_automute_hook()
86 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc662_usi_automute_hook()
93 const struct hda_fixup *fix, int action) in alc662_fixup_usi_headset_mic()
95 struct alc_spec *spec = codec->spec; in alc662_fixup_usi_headset_mic()
97 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc662_fixup_usi_headset_mic()
98 spec->gen.hp_automute_hook = alc662_usi_automute_hook; in alc662_fixup_usi_headset_mic()
108 * 0x15 - front left/front right in alc662_aspire_ethos_mute_speakers()
109 * 0x18 - front center/ LFE in alc662_aspire_ethos_mute_speakers()
121 const struct hda_fixup *fix, int action) in alc662_fixup_aspire_ethos_hp()
144 const struct hda_fixup *fix, int action) in alc671_fixup_hp_headset_mic2()
146 struct alc_spec *spec = codec->spec; in alc671_fixup_hp_headset_mic2()
149 { 0x19, 0x02a11040 }, /* use as headset mic, with its own jack detect */ in alc671_fixup_hp_headset_mic2()
156 spec->gen.mixer_nid = 0; in alc671_fixup_hp_headset_mic2()
157 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc671_fixup_hp_headset_mic2()
169 struct alc_spec *spec = codec->spec; in alc897_hp_automute_hook()
170 int vref; in alc897_hp_automute_hook()
173 vref = spec->gen.hp_jack_present ? (PIN_HP | AC_PINCTL_VREF_100) : PIN_HP; in alc897_hp_automute_hook()
178 const struct hda_fixup *fix, int action) in alc897_fixup_lenovo_headset_mic()
180 struct alc_spec *spec = codec->spec; in alc897_fixup_lenovo_headset_mic()
182 spec->gen.hp_automute_hook = alc897_hp_automute_hook; in alc897_fixup_lenovo_headset_mic()
183 spec->no_shutup_pins = 1; in alc897_fixup_lenovo_headset_mic()
191 const struct hda_fixup *fix, int action) in alc897_fixup_lenovo_headset_mode()
193 struct alc_spec *spec = codec->spec; in alc897_fixup_lenovo_headset_mode()
196 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc897_fixup_lenovo_headset_mode()
197 spec->gen.hp_automute_hook = alc897_hp_automute_hook; in alc897_fixup_lenovo_headset_mode()
231 const struct hda_fixup *fix, int action) in alc_fixup_headset_mode_alc662()
233 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_alc662()
236 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_alc662()
237 spec->gen.hp_mic = 1; /* Mic-in is same pin as headphone */ in alc_fixup_headset_mode_alc662()
239 /* Disable boost for mic-in permanently. (This code is only called in alc_fixup_headset_mode_alc662()
248 const struct hda_fixup *fix, int action) in alc_fixup_headset_mode_alc668()
350 {0x18, 0x01a19030}, /* mic */
351 {0x19, 0x90a7013f}, /* int-mic */
386 { 0x18, 0x01a19c20 }, /* mic */
387 { 0x19, 0x99a3092f }, /* int-mic */
398 { 0x18, 0x01a19820 }, /* mic */
399 { 0x19, 0x99a3092f }, /* int-mic */
411 { 0x18, 0x01a19840 }, /* mic */
412 { 0x19, 0x99a3094f }, /* int-mic */
424 { 0x18, 0x01a19840 }, /* mic */
425 { 0x19, 0x99a3094f }, /* int-mic */
438 { 0x18, 0x01a19840 }, /* mic */
439 { 0x19, 0x99a3094f }, /* int-mic */
450 { 0x18, 0x01a19840 }, /* mic */
451 { 0x19, 0x99a3094f }, /* int-mic */
463 { 0x18, 0x01a19840 }, /* mic */
464 { 0x19, 0x99a3094f }, /* int-mic */
476 { 0x12, 0x99a30970 }, /* int-mic */
479 { 0x18, 0x01a19840 }, /* mic */
522 { 0x19, 0x03a1113c }, /* use as headset mic, without its own jack detect */
523 /* headphone mic by setting pin control of 0x1b (headphone out) to in + vref_50 */
536 { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
537 { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
589 { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
591 { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
621 { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
622 { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
650 { 0x19, 0x02a1913c }, /* use as headset mic, without its own jack detect */
683 { 0x1a, 0x02a1113c }, /* use as headset mic, without its own jack detect */
692 { 0x1a, 0x01a11140 }, /* use as headset mic, without its own jack detect */
738 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
749 { 0x1a, 0x01a11140 }, /* use as headset mic, without its own jack detect */
765 { 0x19, 0x03a11050 }, /* use as headset mic */
773 SND_PCI_QUIRK(0x1019, 0x9859, "JP-IK LEAP W502", ALC897_FIXUP_HEADSET_MIC_PIN3),
782 SND_PCI_QUIRK(0x1025, 0x123c, "Acer Nitro N50-600", ALC662_FIXUP_ACER_NITRO_HEADSET_MODE),
829 SND_PCI_QUIRK(0x17aa, 0x3742, "Lenovo TianYi510Pro-14IOB", ALC897_FIXUP_HEADSET_MIC_PIN2),
837 SND_PCI_QUIRK(0x1c6c, 0x1239, "Compaq N14JP6-V2", ALC897_FIXUP_HP_HSMIC_VERB),
903 {.id = ALC662_FIXUP_HP_RP5800, .name = "hp-rp5800"},
904 {.id = ALC662_FIXUP_ASUS_MODE1, .name = "asus-mode1"},
905 {.id = ALC662_FIXUP_ASUS_MODE2, .name = "asus-mode2"},
906 {.id = ALC662_FIXUP_ASUS_MODE3, .name = "asus-mode3"},
907 {.id = ALC662_FIXUP_ASUS_MODE4, .name = "asus-mode4"},
908 {.id = ALC662_FIXUP_ASUS_MODE5, .name = "asus-mode5"},
909 {.id = ALC662_FIXUP_ASUS_MODE6, .name = "asus-mode6"},
910 {.id = ALC662_FIXUP_ASUS_MODE7, .name = "asus-mode7"},
911 {.id = ALC662_FIXUP_ASUS_MODE8, .name = "asus-mode8"},
912 {.id = ALC662_FIXUP_ZOTAC_Z68, .name = "zotac-z68"},
913 {.id = ALC662_FIXUP_INV_DMIC, .name = "inv-dmic"},
914 {.id = ALC662_FIXUP_DELL_MIC_NO_PRESENCE, .name = "alc662-headset-multi"},
915 {.id = ALC668_FIXUP_DELL_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
916 {.id = ALC662_FIXUP_HEADSET_MODE, .name = "alc662-headset"},
917 {.id = ALC668_FIXUP_HEADSET_MODE, .name = "alc668-headset"},
921 {.id = ALC668_FIXUP_DELL_XPS13, .name = "dell-xps13"},
922 {.id = ALC662_FIXUP_ASUS_Nx50, .name = "asus-nx50"},
923 {.id = ALC668_FIXUP_ASUS_Nx51, .name = "asus-nx51"},
924 {.id = ALC668_FIXUP_ASUS_G751, .name = "asus-g751"},
925 {.id = ALC891_FIXUP_HEADSET_MODE, .name = "alc891-headset"},
926 {.id = ALC891_FIXUP_DELL_MIC_NO_PRESENCE, .name = "alc891-headset-multi"},
927 {.id = ALC662_FIXUP_ACER_VERITON, .name = "acer-veriton"},
928 {.id = ALC892_FIXUP_ASROCK_MOBO, .name = "asrock-mobo"},
929 {.id = ALC662_FIXUP_USI_HEADSET_MODE, .name = "usi-headset"},
930 {.id = ALC662_FIXUP_LENOVO_MULTI_CODECS, .name = "dual-codecs"},
931 {.id = ALC669_FIXUP_ACER_ASPIRE_ETHOS, .name = "aspire-ethos"},
932 {.id = ALC897_FIXUP_UNIS_H3C_X500S, .name = "unis-h3c-x500s"},
997 static int alc662_probe(struct hda_codec *codec, const struct hda_device_id *id) in alc662_probe()
1000 int err; in alc662_probe()
1006 spec = codec->spec; in alc662_probe()
1008 spec->shutup = alc_eapd_shutup; in alc662_probe()
1011 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc662_probe()
1015 switch (codec->core.vendor_id) { in alc662_probe()
1017 spec->init_hook = alc668_restore_default_value; in alc662_probe()
1031 spec->gen.beep_nid = 0x01; in alc662_probe()
1034 codec->bus->pci && codec->bus->pci->subsystem_vendor == 0x1025 && in alc662_probe()
1035 spec->cdefine.platform_type == 1) { in alc662_probe()
1046 if (!spec->gen.no_analog && spec->gen.beep_nid) { in alc662_probe()
1047 switch (codec->core.vendor_id) { in alc662_probe()
1108 MODULE_DESCRIPTION("Realtek ALC662 and compatible HD-audio codec");