Lines Matching +full:ports +full:- +full:offset2
1 // SPDX-License-Identifier: GPL-2.0-or-later
34 /* extra amp-initialization sequence types */
145 struct alc_spec *spec = codec->spec; in coef_mutex_lock()
148 mutex_lock(&spec->coef_mutex); in coef_mutex_lock()
153 struct alc_spec *spec = codec->spec; in coef_mutex_unlock()
155 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock()
207 if (val != -1) in __alc_update_coefex_idx()
227 struct alc_spec *spec = codec->spec; in alc_get_coef0()
229 if (!spec->coef0) in alc_get_coef0()
230 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
231 return spec->coef0; in alc_get_coef0()
244 #define WRITE_COEFEX(_nid, _idx, _val) UPDATE_COEFEX(_nid, _idx, -1, _val)
252 for (; fw->nid; fw++) { in alc_process_coef_fw()
253 if (fw->mask == (unsigned short)-1) in alc_process_coef_fw()
254 __alc_write_coefex_idx(codec, fw->nid, fw->idx, fw->val); in alc_process_coef_fw()
256 __alc_update_coefex_idx(codec, fw->nid, fw->idx, in alc_process_coef_fw()
257 fw->mask, fw->val); in alc_process_coef_fw()
269 struct alc_spec *spec = codec->spec; in alc_setup_gpio()
271 spec->gpio_mask |= mask; in alc_setup_gpio()
272 spec->gpio_dir |= mask; in alc_setup_gpio()
273 spec->gpio_data |= mask; in alc_setup_gpio()
278 struct alc_spec *spec = codec->spec; in alc_write_gpio_data()
281 spec->gpio_data); in alc_write_gpio_data()
287 struct alc_spec *spec = codec->spec; in alc_update_gpio_data()
288 unsigned int oldval = spec->gpio_data; in alc_update_gpio_data()
291 spec->gpio_data |= mask; in alc_update_gpio_data()
293 spec->gpio_data &= ~mask; in alc_update_gpio_data()
294 if (oldval != spec->gpio_data) in alc_update_gpio_data()
300 struct alc_spec *spec = codec->spec; in alc_write_gpio()
302 if (!spec->gpio_mask) in alc_write_gpio()
305 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio()
306 AC_VERB_SET_GPIO_MASK, spec->gpio_mask); in alc_write_gpio()
307 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio()
308 AC_VERB_SET_GPIO_DIRECTION, spec->gpio_dir); in alc_write_gpio()
309 if (spec->gpio_write_delay) in alc_write_gpio()
359 struct alc_spec *spec = codec->spec; in alc_fix_pll()
361 if (spec->pll_nid) in alc_fix_pll()
362 alc_update_coefex_idx(codec, spec->pll_nid, spec->pll_coef_idx, in alc_fix_pll()
363 1 << spec->pll_coef_bit, 0); in alc_fix_pll()
369 struct alc_spec *spec = codec->spec; in alc_fix_pll_init()
370 spec->pll_nid = nid; in alc_fix_pll_init()
371 spec->pll_coef_idx = coef_idx; in alc_fix_pll_init()
372 spec->pll_coef_bit = coef_bit; in alc_fix_pll_init()
376 /* update the master volume per volume-knob's unsol event */
390 val = snd_hda_codec_read(codec, jack->nid, 0, in alc_update_knob_master()
393 uctl->value.integer.value[0] = val; in alc_update_knob_master()
394 uctl->value.integer.value[1] = val; in alc_update_knob_master()
395 kctl->put(kctl, uctl); in alc_update_knob_master()
413 switch (codec->core.vendor_id) { in alc_fill_eapd_coef()
528 /* alc888-VA */ in alc888_coef_init()
530 /* alc888-VB */ in alc888_coef_init()
570 if (codec->bus->shutdown) in alc_headset_mic_no_shutup()
573 snd_array_for_each(&codec->init_pins, i, pin) { in alc_headset_mic_no_shutup()
575 if (pin->nid != mic_pin) in alc_headset_mic_no_shutup()
576 snd_hda_codec_read(codec, pin->nid, 0, in alc_headset_mic_no_shutup()
580 codec->pins_shutup = 1; in alc_headset_mic_no_shutup()
585 struct alc_spec *spec = codec->spec; in alc_shutup_pins()
587 switch (codec->core.vendor_id) { in alc_shutup_pins()
602 if (!spec->no_shutup_pins) in alc_shutup_pins()
609 * just turning off EAPD and a little pause for avoiding pop-noise
613 struct alc_spec *spec = codec->spec; in alc_eapd_shutup()
616 if (!spec->no_depop_delay) in alc_eapd_shutup()
628 switch (codec->core.vendor_id) { in alc_auto_init_amp()
649 if (spec->gen.autocfg.hp_pins[0]) in alc_get_hp_pin()
650 return spec->gen.autocfg.hp_pins[0]; in alc_get_hp_pin()
651 if (spec->gen.autocfg.line_out_type == AC_JACK_HP_OUT) in alc_get_hp_pin()
652 return spec->gen.autocfg.line_out_pins[0]; in alc_get_hp_pin()
660 /* Could be any non-zero and even value. When used as fixup, tells
668 struct alc_spec *spec = codec->spec; in alc_fixup_sku_ignore()
670 spec->cdefine.fixup = 1; in alc_fixup_sku_ignore()
671 spec->cdefine.sku_cfg = ALC_FIXUP_SKU_IGNORE; in alc_fixup_sku_ignore()
678 struct alc_spec *spec = codec->spec; in alc_fixup_no_depop_delay()
681 spec->no_depop_delay = 1; in alc_fixup_no_depop_delay()
682 codec->depop_delay = 0; in alc_fixup_no_depop_delay()
690 struct alc_spec *spec = codec->spec; in alc_auto_parse_customize_define()
692 spec->cdefine.enable_pcbeep = 1; /* assume always enabled */ in alc_auto_parse_customize_define()
694 if (spec->cdefine.fixup) { in alc_auto_parse_customize_define()
695 ass = spec->cdefine.sku_cfg; in alc_auto_parse_customize_define()
697 return -1; in alc_auto_parse_customize_define()
701 if (!codec->bus->pci) in alc_auto_parse_customize_define()
702 return -1; in alc_auto_parse_customize_define()
703 ass = codec->core.subsystem_id & 0xffff; in alc_auto_parse_customize_define()
704 if (ass != codec->bus->pci->subsystem_device && (ass & 1)) in alc_auto_parse_customize_define()
708 if (codec->core.vendor_id == 0x10ec0260) in alc_auto_parse_customize_define()
714 codec->core.chip_name, ass); in alc_auto_parse_customize_define()
715 return -1; in alc_auto_parse_customize_define()
725 return -1; in alc_auto_parse_customize_define()
727 spec->cdefine.port_connectivity = ass >> 30; in alc_auto_parse_customize_define()
728 spec->cdefine.enable_pcbeep = (ass & 0x100000) >> 20; in alc_auto_parse_customize_define()
729 spec->cdefine.check_sum = (ass >> 16) & 0xf; in alc_auto_parse_customize_define()
730 spec->cdefine.customization = ass >> 8; in alc_auto_parse_customize_define()
732 spec->cdefine.sku_cfg = ass; in alc_auto_parse_customize_define()
733 spec->cdefine.external_amp = (ass & 0x38) >> 3; in alc_auto_parse_customize_define()
734 spec->cdefine.platform_type = (ass & 0x4) >> 2; in alc_auto_parse_customize_define()
735 spec->cdefine.swap = (ass & 0x2) >> 1; in alc_auto_parse_customize_define()
736 spec->cdefine.override = ass & 0x1; in alc_auto_parse_customize_define()
739 nid, spec->cdefine.sku_cfg); in alc_auto_parse_customize_define()
741 spec->cdefine.port_connectivity); in alc_auto_parse_customize_define()
742 codec_dbg(codec, "SKU: enable_pcbeep=0x%x\n", spec->cdefine.enable_pcbeep); in alc_auto_parse_customize_define()
743 codec_dbg(codec, "SKU: check_sum=0x%08x\n", spec->cdefine.check_sum); in alc_auto_parse_customize_define()
744 codec_dbg(codec, "SKU: customization=0x%08x\n", spec->cdefine.customization); in alc_auto_parse_customize_define()
745 codec_dbg(codec, "SKU: external_amp=0x%x\n", spec->cdefine.external_amp); in alc_auto_parse_customize_define()
746 codec_dbg(codec, "SKU: platform_type=0x%x\n", spec->cdefine.platform_type); in alc_auto_parse_customize_define()
747 codec_dbg(codec, "SKU: swap=0x%x\n", spec->cdefine.swap); in alc_auto_parse_customize_define()
748 codec_dbg(codec, "SKU: override=0x%x\n", spec->cdefine.override); in alc_auto_parse_customize_define()
753 /* return the position of NID in the list, or -1 if not found */
760 return -1; in find_idx_in_nid_list()
768 /* check subsystem ID and set up device-specific initialization;
771 /* 32-bit subsystem ID for BIOS loading in HD Audio codec.
775 * port-A --> pin 39/41, port-E --> pin 14/15, port-D --> pin 35/36
777 static int alc_subsystem_id(struct hda_codec *codec, const hda_nid_t *ports) in alc_subsystem_id() argument
781 struct alc_spec *spec = codec->spec; in alc_subsystem_id()
783 if (spec->cdefine.fixup) { in alc_subsystem_id()
784 ass = spec->cdefine.sku_cfg; in alc_subsystem_id()
790 ass = codec->core.subsystem_id & 0xffff; in alc_subsystem_id()
791 if (codec->bus->pci && in alc_subsystem_id()
792 ass != codec->bus->pci->subsystem_device && (ass & 1)) in alc_subsystem_id()
805 if (codec->core.vendor_id == 0x10ec0260) in alc_subsystem_id()
826 ass & 0xffff, codec->core.vendor_id); in alc_subsystem_id()
830 * 2 : 0 --> Desktop, 1 --> Laptop in alc_subsystem_id()
835 if (spec->init_amp == ALC_INIT_UNDEFINED) { in alc_subsystem_id()
848 spec->init_amp = ALC_INIT_DEFAULT; in alc_subsystem_id()
860 * 12~11: Headphone out -> 00: PortA, 01: PortE, 02: PortD, 03: Resvered in alc_subsystem_id()
862 * 15 : 1 --> enable the function "Mute internal speaker in alc_subsystem_id()
868 nid = ports[tmp]; in alc_subsystem_id()
869 if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins, in alc_subsystem_id()
870 spec->gen.autocfg.line_outs)) in alc_subsystem_id()
872 spec->gen.autocfg.hp_pins[0] = nid; in alc_subsystem_id()
877 /* Check the validity of ALC subsystem-id
878 * ports contains an array of 4 pin NIDs for port-A, E, D and I */
879 static void alc_ssid_check(struct hda_codec *codec, const hda_nid_t *ports) in alc_ssid_check() argument
881 if (!alc_subsystem_id(codec, ports)) { in alc_ssid_check()
882 struct alc_spec *spec = codec->spec; in alc_ssid_check()
883 if (spec->init_amp == ALC_INIT_UNDEFINED) { in alc_ssid_check()
886 spec->init_amp = ALC_INIT_DEFAULT; in alc_ssid_check()
897 struct alc_spec *spec = codec->spec; in alc_fixup_inv_dmic()
899 spec->gen.inv_dmic_split = 1; in alc_fixup_inv_dmic()
926 ((codec)->core.dev.power.power_state.event == PM_EVENT_RESUME)
928 ((codec)->core.dev.power.power_state.event == PM_EVENT_RESTORE)
932 struct alc_spec *spec = codec->spec; in alc_init()
938 if (spec->init_hook) in alc_init()
939 spec->init_hook(codec); in alc_init()
941 spec->gen.skip_verbs = 1; /* applied in below */ in alc_init()
944 alc_auto_init_amp(codec, spec->init_amp); in alc_init()
957 struct alc_spec *spec = codec->spec; in alc_shutup()
962 if (spec && spec->shutup) in alc_shutup()
963 spec->shutup(codec); in alc_shutup()
975 struct alc_spec *spec = codec->spec; in alc_suspend()
977 if (spec && spec->power_hook) in alc_suspend()
978 spec->power_hook(codec); in alc_suspend()
984 struct alc_spec *spec = codec->spec; in alc_resume()
986 if (!spec->no_depop_delay) in alc_resume()
988 codec->patch_ops.init(codec); in alc_resume()
1041 { 0x10ec0887, 0x00f0, 0x0030, "ALC887-VD" },
1042 { 0x10ec0888, 0x00f0, 0x0030, "ALC888-VD" },
1087 for (p = rename_tbl; p->vendor_id; p++) { in alc_codec_rename_from_preset()
1088 if (p->vendor_id != codec->core.vendor_id) in alc_codec_rename_from_preset()
1090 if ((alc_get_coef0(codec) & p->coef_mask) == p->coef_bits) in alc_codec_rename_from_preset()
1091 return alc_codec_rename(codec, p->name); in alc_codec_rename_from_preset()
1094 if (!codec->bus->pci) in alc_codec_rename_from_preset()
1096 for (q = rename_pci_tbl; q->codec_vendor_id; q++) { in alc_codec_rename_from_preset()
1097 if (q->codec_vendor_id != codec->core.vendor_id) in alc_codec_rename_from_preset()
1099 if (q->pci_subvendor != codec->bus->pci->subsystem_vendor) in alc_codec_rename_from_preset()
1101 if (!q->pci_subdevice || in alc_codec_rename_from_preset()
1102 q->pci_subdevice == codec->bus->pci->subsystem_device) in alc_codec_rename_from_preset()
1103 return alc_codec_rename(codec, q->name); in alc_codec_rename_from_preset()
1111 * Digital-beep handlers
1130 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
1133 return -ENOMEM; in set_beep_amp()
1134 knew->private_value = beep_amp; in set_beep_amp()
1147 SND_PCI_QUIRK(0x1458, 0xa002, "GA-MA790X", 1),
1149 /* denylist -- no beep available */
1157 struct alc_spec *spec = codec->spec; in has_cdefine_beep()
1159 q = snd_pci_quirk_lookup(codec->bus->pci, beep_allow_list); in has_cdefine_beep()
1161 return q->value; in has_cdefine_beep()
1162 return spec->cdefine.enable_pcbeep; in has_cdefine_beep()
1177 struct alc_spec *spec = codec->spec; in alc_parse_auto_config()
1178 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc_parse_auto_config()
1182 spec->parse_flags); in alc_parse_auto_config()
1203 return -ENOMEM; in alc_alloc_spec()
1204 codec->spec = spec; in alc_alloc_spec()
1205 snd_hda_gen_spec_init(&spec->gen); in alc_alloc_spec()
1206 spec->gen.mixer_nid = mixer_nid; in alc_alloc_spec()
1207 spec->gen.own_eapd_ctl = 1; in alc_alloc_spec()
1208 codec->single_adc_amp = 1; in alc_alloc_spec()
1210 codec->spdif_status_reset = 1; in alc_alloc_spec()
1211 codec->forced_resume = 1; in alc_alloc_spec()
1212 codec->patch_ops = alc_patch_ops; in alc_alloc_spec()
1213 mutex_init(&spec->coef_mutex); in alc_alloc_spec()
1231 * ALC880 fix-ups
1261 /* enable the volume-knob widget support on NID 0x21 */
1302 { 0x1a, 0x0181344f }, /* line-in */
1350 { 0x19, 0x01a19950 }, /* mic-in */
1370 { 0x19, 0x01a19950 }, /* mic-in */
1410 { 0x18, 0x01a19950 }, /* mic-in */
1412 { 0x1a, 0x01813031 }, /* line-in */
1443 { 0x14, 0x01014010 }, /* line-out */
1447 { 0x18, 0x01a19c30 }, /* mic-in */
1449 { 0x1a, 0x01813031 }, /* line-in */
1450 { 0x1b, 0x02a19c40 }, /* front-mic */
1483 { 0x18, 0x01a19c30 }, /* mic-in */
1485 { 0x1a, 0x01813031 }, /* line-in */
1486 { 0x1b, 0x02a19c40 }, /* front-mic */
1519 { 0x18, 0x01a19c30 }, /* mic-in */
1520 { 0x19, 0x02a19c40 }, /* front-mic */
1521 { 0x1a, 0x01813031 }, /* line-in */
1585 * It's not quite sure whether BIOS sets the correct pin-config table
1610 SND_PCI_QUIRK(0x1695, 0x4012, "EPox EP-5LDA", ALC880_FIXUP_5ST_DIG),
1625 SND_PCI_QUIRK(0xa0a0, 0x0560, "AOpen i915GMm-HFS", ALC880_FIXUP_5ST_DIG),
1632 {.id = ALC880_FIXUP_3ST_DIG, .name = "3stack-digout"},
1634 {.id = ALC880_FIXUP_5ST_DIG, .name = "5stack-digout"},
1636 {.id = ALC880_FIXUP_6ST_DIG, .name = "6stack-digout"},
1637 {.id = ALC880_FIXUP_6ST_AUTOMUTE, .name = "6stack-automute"},
1654 spec = codec->spec; in patch_alc880()
1655 spec->gen.need_dac_fix = 1; in patch_alc880()
1656 spec->gen.beep_nid = 0x01; in patch_alc880()
1658 codec->patch_ops.unsol_event = alc880_unsol_event; in patch_alc880()
1671 if (!spec->gen.no_analog) { in patch_alc880()
1716 struct alc_spec *spec = codec->spec; in alc260_gpio1_automute()
1718 alc_update_gpio_data(codec, 0x01, spec->gen.hp_jack_present); in alc260_gpio1_automute()
1724 struct alc_spec *spec = codec->spec; in alc260_fixup_gpio1_toggle()
1729 spec->gen.automute_hook = alc260_gpio1_automute; in alc260_fixup_gpio1_toggle()
1730 spec->gen.detect_hp = 1; in alc260_fixup_gpio1_toggle()
1731 spec->gen.automute_speaker = 1; in alc260_fixup_gpio1_toggle()
1732 spec->gen.autocfg.hp_pins[0] = 0x0f; /* copy it for automute */ in alc260_fixup_gpio1_toggle()
1742 struct alc_spec *spec = codec->spec; in alc260_fixup_kn1()
1762 spec->init_amp = ALC_INIT_NONE; in alc260_fixup_kn1()
1770 struct alc_spec *spec = codec->spec; in alc260_fixup_fsc_s7020()
1772 spec->init_amp = ALC_INIT_NONE; in alc260_fixup_fsc_s7020()
1778 struct alc_spec *spec = codec->spec; in alc260_fixup_fsc_s7020_jwse()
1780 spec->gen.add_jack_modes = 1; in alc260_fixup_fsc_s7020_jwse()
1781 spec->gen.hp_mic = 1; in alc260_fixup_fsc_s7020_jwse()
1888 {.id = ALC260_FIXUP_FSC_S7020_JWSE, .name = "fujitsu-jwse"},
1903 spec = codec->spec; in patch_alc260()
1908 spec->gen.prefer_hp_amp = 1; in patch_alc260()
1909 spec->gen.beep_nid = 0x01; in patch_alc260()
1911 spec->shutup = alc_eapd_shutup; in patch_alc260()
1924 if (!spec->gen.no_analog) { in patch_alc260()
1946 * 6-channel independent captures.
1948 * In addition, an independent DAC for the multi-playback (not used in this
2012 struct alc_spec *spec = codec->spec; in alc885_fixup_macpro_gpio()
2014 spec->gpio_write_delay = true; in alc885_fixup_macpro_gpio()
2048 struct alc_spec *spec = codec->spec; in alc889_fixup_mbp_vref()
2060 spec->gen.keep_vref_in_automute = 1; in alc889_fixup_mbp_vref()
2068 struct alc_spec *spec = codec->spec; in alc889_fixup_mac_pins()
2077 spec->gen.keep_vref_in_automute = 1; in alc889_fixup_mac_pins()
2112 * all-in-one desktop PCs (for example VGC-LN51JGB) through DAC 0x05
2117 struct alc_spec *spec = codec->spec; in alc882_fixup_no_primary_hp()
2119 spec->gen.no_primary_hp = 1; in alc882_fixup_no_primary_hp()
2120 spec->gen.no_multi_io = 1; in alc882_fixup_no_primary_hp()
2127 /* For dual-codec configuration, we need to disable some features to avoid
2133 struct alc_spec *spec = codec->spec; in alc_fixup_dual_codecs()
2138 spec->gen.suppress_vmaster = 1; in alc_fixup_dual_codecs()
2139 /* auto-mute and auto-mic switch don't work with multiple codecs */ in alc_fixup_dual_codecs()
2140 spec->gen.suppress_auto_mute = 1; in alc_fixup_dual_codecs()
2141 spec->gen.suppress_auto_mic = 1; in alc_fixup_dual_codecs()
2143 spec->gen.mixer_nid = 0; in alc_fixup_dual_codecs()
2145 codec->force_pin_prefix = 1; in alc_fixup_dual_codecs()
2155 snd_ctl_rename(codec->card, kctl, newname); in rename_ctl()
2166 strcpy(codec->card->longname, "HDAudio-Gigabyte-ALC1220DualCodecs"); in alc1220_fixup_gb_dual_codecs()
2171 codec->addr == 0 ? in alc1220_fixup_gb_dual_codecs()
2172 "Rear-Panel Capture Volume" : in alc1220_fixup_gb_dual_codecs()
2173 "Front-Panel Capture Volume"); in alc1220_fixup_gb_dual_codecs()
2175 codec->addr == 0 ? in alc1220_fixup_gb_dual_codecs()
2176 "Rear-Panel Capture Switch" : in alc1220_fixup_gb_dual_codecs()
2177 "Front-Panel Capture Switch"); in alc1220_fixup_gb_dual_codecs()
2237 struct alc_spec *spec = codec->spec; in alc887_asus_hp_automute_hook()
2242 if (spec->gen.hp_jack_present) in alc887_asus_hp_automute_hook()
2252 struct alc_spec *spec = codec->spec; in alc887_fixup_asus_jack()
2256 spec->gen.hp_automute_hook = alc887_asus_hp_automute_hook; in alc887_fixup_asus_jack()
2410 /* setting bits 1-5 disables DAC nids 0x02-0x06
2578 SND_PCI_QUIRK(0x1025, 0x0155, "Packard-Bell M5120", ALC882_FIXUP_PB_M5210),
2595 SND_PCI_QUIRK(0x1043, 0x8797, "ASUS TUF B550M-PLUS", ALCS1200A_FIXUP_MIC_VREF),
2596 SND_PCI_QUIRK(0x104d, 0x9043, "Sony Vaio VGC-LN51JGB", ALC882_FIXUP_NO_PRIMARY_HP),
2628 SND_PCI_QUIRK(0x13fe, 0x1009, "Advantech MIT-W101", ALC886_FIXUP_EAPD),
2629 SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte EP45-DS3/Z87X-UD3H", ALC889_FIXUP_FRONT_HP_NO_PRESENCE),
2630 SND_PCI_QUIRK(0x1458, 0xa0b8, "Gigabyte AZ370-Gaming", ALC1220_FIXUP_GB_DUAL_CODECS),
2634 SND_PCI_QUIRK(0x1462, 0x11f7, "MSI-GE63", ALC1220_FIXUP_CLEVO_P950),
2635 SND_PCI_QUIRK(0x1462, 0x1228, "MSI-GP63", ALC1220_FIXUP_CLEVO_P950),
2636 SND_PCI_QUIRK(0x1462, 0x1229, "MSI-GP73", ALC1220_FIXUP_CLEVO_P950),
2637 SND_PCI_QUIRK(0x1462, 0x1275, "MSI-GL63", ALC1220_FIXUP_CLEVO_P950),
2638 SND_PCI_QUIRK(0x1462, 0x1276, "MSI-GL73", ALC1220_FIXUP_CLEVO_P950),
2639 SND_PCI_QUIRK(0x1462, 0x1293, "MSI-GP65", ALC1220_FIXUP_CLEVO_P950),
2640 SND_PCI_QUIRK(0x1462, 0x7350, "MSI-7350", ALC889_FIXUP_CD),
2642 SND_PCI_QUIRK(0x1462, 0xda57, "MSI Z270-Gaming", ALC1220_FIXUP_GB_DUAL_CODECS),
2644 SND_PCI_QUIRK(0x147b, 0x107a, "Abit AW9D-MAX", ALC882_FIXUP_ABIT_AW9D_MAX),
2650 SND_PCI_QUIRK(0x1558, 0x65e5, "Clevo PC50D[PRS](?:-D|-G)?", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2654 SND_PCI_QUIRK(0x1558, 0x66a6, "Clevo PE60SN[CDE]-[GS]", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2657 SND_PCI_QUIRK(0x1558, 0x67e5, "Clevo PC70D[PRS](?:-D|-G)?", ALC1220_FIXUP_CLEVO_PB51ED_PINS),
2662 SND_PCI_QUIRK(0x1558, 0x7715, "Clevo X170KM-G", ALC1220_FIXUP_CLEVO_PB51ED),
2672 SND_PCI_QUIRK(0x1558, 0x96e1, "Clevo P960[ER][CDFN]-K", ALC1220_FIXUP_CLEVO_P950),
2674 SND_PCI_QUIRK(0x1558, 0x97e2, "Clevo P970RC-M", ALC1220_FIXUP_CLEVO_P950),
2684 {.id = ALC882_FIXUP_ABIT_AW9D_MAX, .name = "abit-aw9d"},
2685 {.id = ALC882_FIXUP_LENOVO_Y530, .name = "lenovo-y530"},
2686 {.id = ALC882_FIXUP_ACER_ASPIRE_7736, .name = "acer-aspire-7736"},
2687 {.id = ALC882_FIXUP_ASUS_W90V, .name = "asus-w90v"},
2689 {.id = ALC889_FIXUP_FRONT_HP_NO_PRESENCE, .name = "no-front-hp"},
2690 {.id = ALC889_FIXUP_VAIO_TT, .name = "vaio-tt"},
2692 {.id = ALC882_FIXUP_EAPD, .name = "alc882-eapd"},
2693 {.id = ALC883_FIXUP_EAPD, .name = "alc883-eapd"},
2697 {.id = ALC889_FIXUP_COEF, .name = "alc889-coef"},
2698 {.id = ALC882_FIXUP_ASUS_W2JC, .name = "asus-w2jc"},
2699 {.id = ALC882_FIXUP_ACER_ASPIRE_4930G, .name = "acer-aspire-4930g"},
2700 {.id = ALC882_FIXUP_ACER_ASPIRE_8930G, .name = "acer-aspire-8930g"},
2701 {.id = ALC883_FIXUP_ACER_EAPD, .name = "acer-aspire"},
2702 {.id = ALC885_FIXUP_MACPRO_GPIO, .name = "macpro-gpio"},
2703 {.id = ALC889_FIXUP_DAC_ROUTE, .name = "dac-route"},
2704 {.id = ALC889_FIXUP_MBP_VREF, .name = "mbp-vref"},
2705 {.id = ALC889_FIXUP_IMAC91_VREF, .name = "imac91-vref"},
2706 {.id = ALC889_FIXUP_MBA11_VREF, .name = "mba11-vref"},
2707 {.id = ALC889_FIXUP_MBA21_VREF, .name = "mba21-vref"},
2708 {.id = ALC889_FIXUP_MP11_VREF, .name = "mp11-vref"},
2709 {.id = ALC889_FIXUP_MP41_VREF, .name = "mp41-vref"},
2710 {.id = ALC882_FIXUP_INV_DMIC, .name = "inv-dmic"},
2711 {.id = ALC882_FIXUP_NO_PRIMARY_HP, .name = "no-primary-hp"},
2712 {.id = ALC887_FIXUP_ASUS_BASS, .name = "asus-bass"},
2713 {.id = ALC1220_FIXUP_GB_DUAL_CODECS, .name = "dual-codecs"},
2714 {.id = ALC1220_FIXUP_GB_X570, .name = "gb-x570"},
2715 {.id = ALC1220_FIXUP_CLEVO_P950, .name = "clevo-p950"},
2729 SND_HDA_PIN_QUIRK(0x10ec1220, 0x1462, "MS-7C35", ALC1220_FIXUP_CLEVO_P950,
2763 spec = codec->spec; in patch_alc882()
2765 switch (codec->core.vendor_id) { in patch_alc882()
2788 spec->gen.beep_nid = 0x01; in patch_alc882()
2795 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc882()
2913 SND_PCI_QUIRK(0x17ff, 0x058d, "Benq T31-16", ALC262_FIXUP_BENQ_T31),
2919 {.id = ALC262_FIXUP_INV_DMIC, .name = "inv-dmic"},
2920 {.id = ALC262_FIXUP_FSC_H270, .name = "fsc-h270"},
2921 {.id = ALC262_FIXUP_FSC_S7110, .name = "fsc-s7110"},
2922 {.id = ALC262_FIXUP_HP_Z200, .name = "hp-z200"},
2924 {.id = ALC262_FIXUP_LENOVO_3000, .name = "lenovo-3000"},
2926 {.id = ALC262_FIXUP_BENQ_T31, .name = "benq-t31"},
2942 spec = codec->spec; in patch_alc262()
2943 spec->gen.shared_mic_vref_pin = 0x18; in patch_alc262()
2945 spec->shutup = alc_eapd_shutup; in patch_alc262()
2949 * under-run in patch_alc262()
2964 spec->gen.beep_nid = 0x01; in patch_alc262()
2971 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc262()
2997 mutex_lock(&codec->control_mutex); in alc268_beep_switch_put()
2998 pval = kcontrol->private_value; in alc268_beep_switch_put()
2999 kcontrol->private_value = (pval & ~0xff) | 0x0f; in alc268_beep_switch_put()
3002 kcontrol->private_value = (pval & ~0xff) | 0x10; in alc268_beep_switch_put()
3005 kcontrol->private_value = pval; in alc268_beep_switch_put()
3006 mutex_unlock(&codec->control_mutex); in alc268_beep_switch_put()
3059 {.id = ALC268_FIXUP_INV_DMIC, .name = "inv-dmic"},
3060 {.id = ALC268_FIXUP_HP_EAPD, .name = "hp-eapd"},
3091 /* ALC268 has no aa-loopback mixer */ in patch_alc268()
3096 spec = codec->spec; in patch_alc268()
3098 spec->gen.beep_nid = 0x01; in patch_alc268()
3100 spec->shutup = alc_eapd_shutup; in patch_alc268()
3112 if (err > 0 && !spec->gen.no_analog && in patch_alc268()
3113 spec->gen.autocfg.speaker_pins[0] != 0x1d) { in patch_alc268()
3115 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, in patch_alc268()
3117 err = -ENOMEM; in patch_alc268()
3152 /* different alc269-variants */
3186 struct alc_spec *spec = codec->spec; in alc269_parse_auto_config()
3189 switch (spec->codec_variant) { in alc269_parse_auto_config()
3237 if (jack->unsol_res & (7 << 13)) in alc_headset_btn_callback()
3240 if (jack->unsol_res & (1 << 16 | 3 << 8)) in alc_headset_btn_callback()
3244 if (jack->unsol_res & (7 << 23)) in alc_headset_btn_callback()
3248 if (jack->unsol_res & (7 << 10)) in alc_headset_btn_callback()
3251 snd_hda_jack_set_button_state(codec, jack->nid, report); in alc_headset_btn_callback()
3256 struct alc_spec *spec = codec->spec; in alc_disable_headset_jack_key()
3258 if (!spec->has_hs_key) in alc_disable_headset_jack_key()
3261 switch (codec->core.vendor_id) { in alc_disable_headset_jack_key()
3286 struct alc_spec *spec = codec->spec; in alc_enable_headset_jack_key()
3288 if (!spec->has_hs_key) in alc_enable_headset_jack_key()
3291 switch (codec->core.vendor_id) { in alc_enable_headset_jack_key()
3317 struct alc_spec *spec = codec->spec; in alc_fixup_headset_jack()
3322 spec->has_hs_key = 1; in alc_fixup_headset_jack()
3347 struct alc_spec *spec = codec->spec; in alc269_shutup()
3349 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_shutup()
3351 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_shutup()
3365 WRITE_COEF(0x0b, 0xcccc), /* JD offset2 */
3398 struct alc_spec *spec = codec->spec; in alc282_init()
3435 struct alc_spec *spec = codec->spec; in alc282_shutup()
3458 if (!spec->no_shutup_pins) in alc282_shutup()
3477 WRITE_COEF(0x0b, 0xcccc), /* JD offset2 */
3514 struct alc_spec *spec = codec->spec; in alc283_init()
3550 struct alc_spec *spec = codec->spec; in alc283_shutup()
3572 if (!spec->no_shutup_pins) in alc283_shutup()
3587 struct alc_spec *spec = codec->spec; in alc256_init()
3591 if (spec->ultra_low_power) { in alc256_init()
3628 * Documentation/sound/hd-audio/realtek-pc-beep.rst for details of in alc256_init()
3636 struct alc_spec *spec = codec->spec; in alc256_shutup()
3659 if (spec->en_3kpull_low) in alc256_shutup()
3662 if (!spec->no_shutup_pins) in alc256_shutup()
3671 if (spec->ultra_low_power) { in alc256_shutup()
3684 struct alc_spec *spec = codec->spec; in alc285_hp_init()
3734 struct alc_spec *spec = codec->spec; in alc225_init()
3738 if (spec->ultra_low_power) { in alc225_init()
3745 if (spec->codec_variant != ALC269_TYPE_ALC287 && in alc225_init()
3746 spec->codec_variant != ALC269_TYPE_ALC245) in alc225_init()
3748 if (!spec->done_hp_init || in alc225_init()
3752 spec->done_hp_init = true; in alc225_init()
3788 struct alc_spec *spec = codec->spec; in alc225_shutup()
3826 if (spec->ultra_low_power) { in alc225_shutup()
3838 struct alc_spec *spec = codec->spec; in alc_default_init()
3865 struct alc_spec *spec = codec->spec; in alc_default_shutup()
3884 if (!spec->no_shutup_pins) in alc_default_shutup()
3896 struct alc_spec *spec = codec->spec; in alc294_hp_init()
3908 if (!spec->no_shutup_pins) in alc294_hp_init()
3928 struct alc_spec *spec = codec->spec; in alc294_init()
3931 if (!spec->done_hp_init || in alc294_init()
3932 codec->core.dev.power.power_state.event == PM_EVENT_RESTORE) { in alc294_init()
3934 spec->done_hp_init = true; in alc294_init()
4034 struct alc_spec *spec = codec->spec; in alc269_suspend()
4036 if (spec->has_alc5505_dsp) in alc269_suspend()
4044 struct alc_spec *spec = codec->spec; in alc269_resume()
4046 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_resume()
4048 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_resume()
4053 codec->patch_ops.init(codec); in alc269_resume()
4055 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_resume()
4057 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_resume()
4069 if (spec->gpio_data) in alc269_resume()
4072 if (spec->has_alc5505_dsp) in alc269_resume()
4082 struct alc_spec *spec = codec->spec; in alc269_fixup_pincfg_no_hp_to_lineout()
4085 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc269_fixup_pincfg_no_hp_to_lineout()
4111 struct alc_spec *spec = codec->spec; in alc269_fixup_headset_mic()
4114 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc269_fixup_headset_mic()
4127 if (strcmp(codec->core.chip_name, "ALC271X") && in alc271_fixup_dmic()
4128 strcmp(codec->core.chip_name, "ALC269VB")) in alc271_fixup_dmic()
4147 struct alc_spec *spec = codec->spec; in alc269_fixup_pcm_44k()
4155 spec->gen.stream_analog_playback = &alc269_44k_pcm_analog_playback; in alc269_fixup_pcm_44k()
4156 spec->gen.stream_analog_capture = &alc269_44k_pcm_analog_capture; in alc269_fixup_pcm_44k()
4162 /* The digital-mic unit sends PDM (differential signal) instead of in alc269_fixup_stereo_dmic()
4182 struct alc_spec *spec = codec->spec; in alc269_fixup_quanta_mute()
4185 spec->gen.automute_hook = alc269_quanta_automute; in alc269_fixup_quanta_mute()
4191 struct alc_spec *spec = codec->spec; in alc269_x101_hp_automute_hook()
4196 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc269_x101_hp_automute_hook()
4225 alc_write_coef_idx(codec, 0x23, initval->value_0x23); in alc298_huawei_mbx_stereo_seq()
4227 if (initval->value_0x23 != 0x1e) in alc298_huawei_mbx_stereo_seq()
4228 alc_write_coef_idx(codec, 0x25, initval->value_0x25); in alc298_huawei_mbx_stereo_seq()
4267 for (seq = dac_init; seq->value_0x23; seq++) in alc298_fixup_huawei_mbx_stereo()
4274 struct alc_spec *spec = codec->spec; in alc269_fixup_x101_headset_mic()
4276 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc269_fixup_x101_headset_mic()
4277 spec->gen.hp_automute_hook = alc269_x101_hp_automute_hook; in alc269_fixup_x101_headset_mic()
4299 /* update mute-LED according to the speaker mute state via mic VREF pin */
4303 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in vref_mute_led_set()
4304 struct alc_spec *spec = codec->spec; in vref_mute_led_set()
4306 alc_update_vref_led(codec, spec->mute_led_nid, in vref_mute_led_set()
4307 spec->mute_led_polarity, brightness); in vref_mute_led_set()
4316 struct alc_spec *spec = codec->spec; in led_power_filter()
4319 (nid != spec->mute_led_nid && nid != spec->cap_mute_led_nid)) in led_power_filter()
4332 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_mute_led()
4340 if (sscanf(dev->name, "HP_Mute_LED_%d_%x", &pol, &pin) != 2) in alc269_fixup_hp_mute_led()
4344 spec->mute_led_polarity = pol; in alc269_fixup_hp_mute_led()
4345 spec->mute_led_nid = pin - 0x0a + 0x18; in alc269_fixup_hp_mute_led()
4347 codec->power_filter = led_power_filter; in alc269_fixup_hp_mute_led()
4349 "Detected mute LED for %x:%d\n", spec->mute_led_nid, in alc269_fixup_hp_mute_led()
4350 spec->mute_led_polarity); in alc269_fixup_hp_mute_led()
4359 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_mute_led_micx()
4362 spec->mute_led_polarity = 0; in alc269_fixup_hp_mute_led_micx()
4363 spec->mute_led_nid = pin; in alc269_fixup_hp_mute_led_micx()
4365 codec->power_filter = led_power_filter; in alc269_fixup_hp_mute_led_micx()
4393 alc_update_gpio_data(codec, mask, !enabled); /* muted -> LED on */ in alc_update_gpio_led()
4400 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in gpio_mute_led_set()
4401 struct alc_spec *spec = codec->spec; in gpio_mute_led_set()
4403 alc_update_gpio_led(codec, spec->gpio_mute_led_mask, in gpio_mute_led_set()
4404 spec->mute_led_polarity, !brightness); in gpio_mute_led_set()
4408 /* turn on/off mic-mute LED via GPIO per capture hook */
4412 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in micmute_led_set()
4413 struct alc_spec *spec = codec->spec; in micmute_led_set()
4415 alc_update_gpio_led(codec, spec->gpio_mic_led_mask, in micmute_led_set()
4416 spec->micmute_led_polarity, !brightness); in micmute_led_set()
4420 /* setup mute and mic-mute GPIO bits, add hooks appropriately */
4426 struct alc_spec *spec = codec->spec; in alc_fixup_hp_gpio_led()
4433 spec->gpio_mute_led_mask = mute_mask; in alc_fixup_hp_gpio_led()
4437 spec->gpio_mic_led_mask = micmute_mask; in alc_fixup_hp_gpio_led()
4475 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_gpio_led()
4478 spec->micmute_led_polarity = 1; in alc245_fixup_hp_gpio_led()
4482 /* turn on/off mic-mute LED per capture hook via VREF change */
4486 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in vref_micmute_led_set()
4487 struct alc_spec *spec = codec->spec; in vref_micmute_led_set()
4489 alc_update_vref_led(codec, spec->cap_mute_led_nid, in vref_micmute_led_set()
4490 spec->micmute_led_polarity, brightness); in vref_micmute_led_set()
4497 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_gpio_mic1_led()
4504 spec->gpio_mask |= 0x10; in alc269_fixup_hp_gpio_mic1_led()
4505 spec->gpio_dir |= 0x10; in alc269_fixup_hp_gpio_mic1_led()
4506 spec->cap_mute_led_nid = 0x18; in alc269_fixup_hp_gpio_mic1_led()
4508 codec->power_filter = led_power_filter; in alc269_fixup_hp_gpio_mic1_led()
4515 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_gpio4()
4519 spec->cap_mute_led_nid = 0x18; in alc280_fixup_hp_gpio4()
4521 codec->power_filter = led_power_filter; in alc280_fixup_hp_gpio4()
4531 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_x360_amp()
4535 spec->gpio_mask |= 0x01; in alc245_fixup_hp_x360_amp()
4536 spec->gpio_dir |= 0x01; in alc245_fixup_hp_x360_amp()
4567 struct alc_spec *spec = codec->spec; in alc274_fixup_hp_envy_gpio()
4570 spec->gpio_mask |= 0x04; in alc274_fixup_hp_envy_gpio()
4571 spec->gpio_dir |= 0x04; in alc274_fixup_hp_envy_gpio()
4572 spec->gen.pcm_playback_hook = alc274_hp_envy_pcm_hook; in alc274_fixup_hp_envy_gpio()
4583 alc_update_coef_idx(codec, led->idx, led->mask, in alc_update_coef_led()
4584 on ? led->on : led->off); in alc_update_coef_led()
4587 /* update mute-LED according to the speaker mute state via COEF bit */
4591 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in coef_mute_led_set()
4592 struct alc_spec *spec = codec->spec; in coef_mute_led_set()
4594 alc_update_coef_led(codec, &spec->mute_led_coef, in coef_mute_led_set()
4595 spec->mute_led_polarity, brightness); in coef_mute_led_set()
4603 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_mute_led_coefbit()
4606 spec->mute_led_polarity = 0; in alc285_fixup_hp_mute_led_coefbit()
4607 spec->mute_led_coef.idx = 0x0b; in alc285_fixup_hp_mute_led_coefbit()
4608 spec->mute_led_coef.mask = 1 << 3; in alc285_fixup_hp_mute_led_coefbit()
4609 spec->mute_led_coef.on = 1 << 3; in alc285_fixup_hp_mute_led_coefbit()
4610 spec->mute_led_coef.off = 0; in alc285_fixup_hp_mute_led_coefbit()
4619 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_mute_led_coefbit()
4622 spec->mute_led_polarity = 0; in alc236_fixup_hp_mute_led_coefbit()
4623 spec->mute_led_coef.idx = 0x34; in alc236_fixup_hp_mute_led_coefbit()
4624 spec->mute_led_coef.mask = 1 << 5; in alc236_fixup_hp_mute_led_coefbit()
4625 spec->mute_led_coef.on = 0; in alc236_fixup_hp_mute_led_coefbit()
4626 spec->mute_led_coef.off = 1 << 5; in alc236_fixup_hp_mute_led_coefbit()
4634 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_mute_led_coefbit2()
4637 spec->mute_led_polarity = 0; in alc236_fixup_hp_mute_led_coefbit2()
4638 spec->mute_led_coef.idx = 0x07; in alc236_fixup_hp_mute_led_coefbit2()
4639 spec->mute_led_coef.mask = 1; in alc236_fixup_hp_mute_led_coefbit2()
4640 spec->mute_led_coef.on = 1; in alc236_fixup_hp_mute_led_coefbit2()
4641 spec->mute_led_coef.off = 0; in alc236_fixup_hp_mute_led_coefbit2()
4650 struct alc_spec *spec = codec->spec; in alc245_fixup_hp_mute_led_coefbit()
4653 spec->mute_led_polarity = 0; in alc245_fixup_hp_mute_led_coefbit()
4654 spec->mute_led_coef.idx = 0x0b; in alc245_fixup_hp_mute_led_coefbit()
4655 spec->mute_led_coef.mask = 3 << 2; in alc245_fixup_hp_mute_led_coefbit()
4656 spec->mute_led_coef.on = 2 << 2; in alc245_fixup_hp_mute_led_coefbit()
4657 spec->mute_led_coef.off = 1 << 2; in alc245_fixup_hp_mute_led_coefbit()
4662 /* turn on/off mic-mute LED per capture hook by coef bit */
4666 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in coef_micmute_led_set()
4667 struct alc_spec *spec = codec->spec; in coef_micmute_led_set()
4669 alc_update_coef_led(codec, &spec->mic_led_coef, in coef_micmute_led_set()
4670 spec->micmute_led_polarity, brightness); in coef_micmute_led_set()
4677 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_coef_micmute_led()
4680 spec->mic_led_coef.idx = 0x19; in alc285_fixup_hp_coef_micmute_led()
4681 spec->mic_led_coef.mask = 1 << 13; in alc285_fixup_hp_coef_micmute_led()
4682 spec->mic_led_coef.on = 1 << 13; in alc285_fixup_hp_coef_micmute_led()
4683 spec->mic_led_coef.off = 0; in alc285_fixup_hp_coef_micmute_led()
4691 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_gpio_micmute_led()
4694 spec->micmute_led_polarity = 1; in alc285_fixup_hp_gpio_micmute_led()
4701 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_coef_micmute_led()
4704 spec->mic_led_coef.idx = 0x35; in alc236_fixup_hp_coef_micmute_led()
4705 spec->mic_led_coef.mask = 3 << 2; in alc236_fixup_hp_coef_micmute_led()
4706 spec->mic_led_coef.on = 2 << 2; in alc236_fixup_hp_coef_micmute_led()
4707 spec->mic_led_coef.off = 1 << 2; in alc236_fixup_hp_coef_micmute_led()
4736 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_micmute_led_vref()
4739 spec->cap_mute_led_nid = 0x1a; in alc236_fixup_hp_micmute_led_vref()
4741 codec->power_filter = led_power_filter; in alc236_fixup_hp_micmute_led_vref()
4798 struct alc_spec *spec = codec->spec; in gpio2_mic_hotkey_event()
4802 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 1); in gpio2_mic_hotkey_event()
4803 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
4804 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 0); in gpio2_mic_hotkey_event()
4805 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
4810 struct alc_spec *spec = codec->spec; in alc_register_micmute_input_device()
4813 spec->kb_dev = input_allocate_device(); in alc_register_micmute_input_device()
4814 if (!spec->kb_dev) { in alc_register_micmute_input_device()
4816 return -ENOMEM; in alc_register_micmute_input_device()
4819 spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX] = KEY_MICMUTE; in alc_register_micmute_input_device()
4821 spec->kb_dev->name = "Microphone Mute Button"; in alc_register_micmute_input_device()
4822 spec->kb_dev->evbit[0] = BIT_MASK(EV_KEY); in alc_register_micmute_input_device()
4823 spec->kb_dev->keycodesize = sizeof(spec->alc_mute_keycode_map[0]); in alc_register_micmute_input_device()
4824 spec->kb_dev->keycodemax = ARRAY_SIZE(spec->alc_mute_keycode_map); in alc_register_micmute_input_device()
4825 spec->kb_dev->keycode = spec->alc_mute_keycode_map; in alc_register_micmute_input_device()
4826 for (i = 0; i < ARRAY_SIZE(spec->alc_mute_keycode_map); i++) in alc_register_micmute_input_device()
4827 set_bit(spec->alc_mute_keycode_map[i], spec->kb_dev->keybit); in alc_register_micmute_input_device()
4829 if (input_register_device(spec->kb_dev)) { in alc_register_micmute_input_device()
4831 input_free_device(spec->kb_dev); in alc_register_micmute_input_device()
4832 spec->kb_dev = NULL; in alc_register_micmute_input_device()
4833 return -ENOMEM; in alc_register_micmute_input_device()
4847 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_gpio2_mic_hotkey()
4851 spec->init_amp = ALC_INIT_DEFAULT; in alc280_fixup_hp_gpio2_mic_hotkey()
4855 spec->gpio_mask |= 0x06; in alc280_fixup_hp_gpio2_mic_hotkey()
4856 spec->gpio_dir |= 0x02; in alc280_fixup_hp_gpio2_mic_hotkey()
4857 spec->gpio_data |= 0x02; in alc280_fixup_hp_gpio2_mic_hotkey()
4858 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in alc280_fixup_hp_gpio2_mic_hotkey()
4860 snd_hda_jack_detect_enable_callback(codec, codec->core.afg, in alc280_fixup_hp_gpio2_mic_hotkey()
4865 if (!spec->kb_dev) in alc280_fixup_hp_gpio2_mic_hotkey()
4870 input_unregister_device(spec->kb_dev); in alc280_fixup_hp_gpio2_mic_hotkey()
4871 spec->kb_dev = NULL; in alc280_fixup_hp_gpio2_mic_hotkey()
4881 struct alc_spec *spec = codec->spec; in alc233_fixup_lenovo_line2_mic_hotkey()
4885 spec->init_amp = ALC_INIT_DEFAULT; in alc233_fixup_lenovo_line2_mic_hotkey()
4894 if (!spec->kb_dev) in alc233_fixup_lenovo_line2_mic_hotkey()
4899 input_unregister_device(spec->kb_dev); in alc233_fixup_lenovo_line2_mic_hotkey()
4900 spec->kb_dev = NULL; in alc233_fixup_lenovo_line2_mic_hotkey()
4911 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_line1_mic1_led()
4915 spec->cap_mute_led_nid = 0x18; in alc269_fixup_hp_line1_mic1_led()
4957 struct alc_spec *spec = codec->spec; in alc_headset_mode_unplugged()
5007 UPDATE_COEF(0x1a, 1<<3, 1<<3), /* Combo JD gating with LINE1-VREFO */ in alc_headset_mode_unplugged()
5032 if (spec->no_internal_mic_pin) { in alc_headset_mode_unplugged()
5037 switch (codec->core.vendor_id) { in alc_headset_mode_unplugged()
5130 UPDATE_COEF(0x1a, 1<<3, 0), /* Combo JD gating without LINE1-VREFO */ in alc_headset_mode_mic_in()
5152 switch (codec->core.vendor_id) { in alc_headset_mode_mic_in()
5228 codec_dbg(codec, "Headset jack set to mic-in mode.\n"); in alc_headset_mode_mic_in()
5280 UPDATE_COEF(0x1a, 1<<3, 0), /* Combo JD gating without LINE1-VREFO */ in alc_headset_mode_default()
5297 switch (codec->core.vendor_id) { in alc_headset_mode_default()
5408 switch (codec->core.vendor_id) { in alc_headset_mode_ctia()
5472 codec_dbg(codec, "Headset jack set to iPhone-style headset mode.\n"); in alc_headset_mode_ctia()
5525 switch (codec->core.vendor_id) { in alc_headset_mode_omtp()
5575 codec_dbg(codec, "Headset jack set to Nokia-style headset mode.\n"); in alc_headset_mode_omtp()
5582 struct alc_spec *spec = codec->spec; in alc_determine_headset_type()
5621 if (spec->no_internal_mic_pin) { in alc_determine_headset_type()
5626 switch (codec->core.vendor_id) { in alc_determine_headset_type()
5767 codec_dbg(codec, "Headset jack detected iPhone-style headset: %s\n", in alc_determine_headset_type()
5769 spec->current_headset_type = is_ctia ? ALC_HEADSET_TYPE_CTIA : ALC_HEADSET_TYPE_OMTP; in alc_determine_headset_type()
5774 struct alc_spec *spec = codec->spec; in alc_update_headset_mode()
5776 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in alc_update_headset_mode()
5783 else if (mux_pin == spec->headset_mic_pin) in alc_update_headset_mode()
5785 else if (mux_pin == spec->headphone_mic_pin) in alc_update_headset_mode()
5790 if (new_headset_mode == spec->current_headset_mode) { in alc_update_headset_mode()
5798 spec->current_headset_mode = ALC_HEADSET_MODE_UNKNOWN; in alc_update_headset_mode()
5799 spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN; in alc_update_headset_mode()
5800 spec->gen.hp_jack_present = false; in alc_update_headset_mode()
5803 if (spec->current_headset_type == ALC_HEADSET_TYPE_UNKNOWN) in alc_update_headset_mode()
5805 if (spec->current_headset_type == ALC_HEADSET_TYPE_CTIA) in alc_update_headset_mode()
5807 else if (spec->current_headset_type == ALC_HEADSET_TYPE_OMTP) in alc_update_headset_mode()
5809 spec->gen.hp_jack_present = true; in alc_update_headset_mode()
5812 alc_headset_mode_mic_in(codec, hp_pin, spec->headphone_mic_pin); in alc_update_headset_mode()
5813 spec->gen.hp_jack_present = false; in alc_update_headset_mode()
5817 spec->gen.hp_jack_present = true; in alc_update_headset_mode()
5823 if (spec->headphone_mic_pin && spec->headphone_mic_pin != hp_pin) in alc_update_headset_mode()
5824 snd_hda_set_pin_ctl_cache(codec, spec->headphone_mic_pin, in alc_update_headset_mode()
5827 spec->current_headset_mode = new_headset_mode; in alc_update_headset_mode()
5849 struct alc_spec *spec = codec->spec; in alc_probe_headset_mode()
5850 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc_probe_headset_mode()
5853 for (i = 0; i < cfg->num_inputs; i++) { in alc_probe_headset_mode()
5854 if (cfg->inputs[i].is_headset_mic && !spec->headset_mic_pin) in alc_probe_headset_mode()
5855 spec->headset_mic_pin = cfg->inputs[i].pin; in alc_probe_headset_mode()
5856 if (cfg->inputs[i].is_headphone_mic && !spec->headphone_mic_pin) in alc_probe_headset_mode()
5857 spec->headphone_mic_pin = cfg->inputs[i].pin; in alc_probe_headset_mode()
5860 WARN_ON(spec->gen.cap_sync_hook); in alc_probe_headset_mode()
5861 spec->gen.cap_sync_hook = alc_update_headset_mode_hook; in alc_probe_headset_mode()
5862 spec->gen.automute_hook = alc_update_headset_mode; in alc_probe_headset_mode()
5863 spec->gen.hp_automute_hook = alc_update_headset_jack_cb; in alc_probe_headset_mode()
5869 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode()
5873 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC | HDA_PINCFG_HEADPHONE_MIC; in alc_fixup_headset_mode()
5880 spec->current_headset_mode = ALC_HEADSET_MODE_UNKNOWN; in alc_fixup_headset_mode()
5881 spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN; in alc_fixup_headset_mode()
5892 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_no_hp_mic()
5893 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_no_hp_mic()
5918 switch (codec->core.vendor_id) { in alc255_set_default_jack_type()
5945 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_alc255_no_hp_mic()
5946 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_alc255_no_hp_mic()
5956 struct alc_spec *spec = codec->spec; in alc288_update_headset_jack_cb()
5960 alc_update_gpio_data(codec, 0x40, spec->gen.hp_jack_present); in alc288_update_headset_jack_cb()
5968 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_dell_alc288()
5970 spec->gpio_mask |= 0x40; in alc_fixup_headset_mode_dell_alc288()
5971 spec->gpio_dir |= 0x40; in alc_fixup_headset_mode_dell_alc288()
5972 spec->gen.hp_automute_hook = alc288_update_headset_jack_cb; in alc_fixup_headset_mode_dell_alc288()
5980 struct alc_spec *spec = codec->spec; in alc_fixup_auto_mute_via_amp()
5981 spec->gen.auto_mute_via_amp = 1; in alc_fixup_auto_mute_via_amp()
5989 struct alc_spec *spec = codec->spec; in alc_fixup_no_shutup()
5990 spec->no_shutup_pins = 1; in alc_fixup_no_shutup()
5998 struct alc_spec *spec = codec->spec; in alc_fixup_disable_aamix()
5999 /* Disable AA-loopback as it causes white noise */ in alc_fixup_disable_aamix()
6000 spec->gen.mixer_nid = 0; in alc_fixup_disable_aamix()
6013 struct alc_spec *spec = codec->spec; in alc_fixup_tpt440_dock()
6016 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc_fixup_tpt440_dock()
6017 codec->power_save_node = 0; /* avoid click noises */ in alc_fixup_tpt440_dock()
6030 struct alc_spec *spec = codec->spec; in alc_fixup_tpt470_dock()
6033 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc_fixup_tpt470_dock()
6056 struct alc_spec *spec = codec->spec; in alc_fixup_tpt470_dacs()
6059 spec->gen.preferred_dacs = preferred_pairs; in alc_fixup_tpt470_dacs()
6068 struct alc_spec *spec = codec->spec; in alc295_fixup_asus_dacs()
6071 spec->gen.preferred_dacs = preferred_pairs; in alc295_fixup_asus_dacs()
6076 struct alc_spec *spec = codec->spec; in alc_shutup_dell_xps13()
6088 struct alc_spec *spec = codec->spec; in alc_fixup_dell_xps13()
6089 struct hda_input_mux *imux = &spec->gen.input_mux; in alc_fixup_dell_xps13()
6094 /* mic pin 0x19 must be initialized with Vref Hi-Z, otherwise in alc_fixup_dell_xps13()
6098 spec->shutup = alc_shutup_dell_xps13; in alc_fixup_dell_xps13()
6102 for (i = 0; i < imux->num_items; i++) { in alc_fixup_dell_xps13()
6103 if (spec->gen.imux_pins[i] == 0x12) { in alc_fixup_dell_xps13()
6104 spec->gen.cur_mux[0] = i; in alc_fixup_dell_xps13()
6115 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_alc662()
6118 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_alc662()
6119 spec->gen.hp_mic = 1; /* Mic-in is same pin as headphone */ in alc_fixup_headset_mode_alc662()
6121 /* Disable boost for mic-in permanently. (This code is only called in alc_fixup_headset_mode_alc662()
6143 struct alc_spec *spec = codec->spec; in find_ext_mic_pin()
6144 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in find_ext_mic_pin()
6149 for (i = 0; i < cfg->num_inputs; i++) { in find_ext_mic_pin()
6150 if (cfg->inputs[i].type != AUTO_PIN_MIC) in find_ext_mic_pin()
6152 nid = cfg->inputs[i].pin; in find_ext_mic_pin()
6166 struct alc_spec *spec = codec->spec; in alc271_hp_gate_mic_jack()
6182 struct alc_spec *spec = codec->spec; in alc269_fixup_limit_int_mic_boost()
6183 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc269_fixup_limit_int_mic_boost()
6193 for (i = 0; i < cfg->num_inputs; i++) { in alc269_fixup_limit_int_mic_boost()
6194 hda_nid_t nid = cfg->inputs[i].pin; in alc269_fixup_limit_int_mic_boost()
6196 if (cfg->inputs[i].type != AUTO_PIN_MIC) in alc269_fixup_limit_int_mic_boost()
6213 struct alc_spec *spec = codec->spec; in alc283_hp_automute_hook()
6219 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc283_hp_automute_hook()
6229 struct alc_spec *spec = codec->spec; in alc283_fixup_chromebook()
6234 /* Disable AA-loopback as it causes white noise */ in alc283_fixup_chromebook()
6235 spec->gen.mixer_nid = 0; in alc283_fixup_chromebook()
6238 /* MIC2-VREF control */ in alc283_fixup_chromebook()
6250 struct alc_spec *spec = codec->spec; in alc283_fixup_sense_combo_jack()
6254 spec->gen.hp_automute_hook = alc283_hp_automute_hook; in alc283_fixup_sense_combo_jack()
6257 /* MIC2-VREF control */ in alc283_fixup_sense_combo_jack()
6267 struct alc_spec *spec = codec->spec; in asus_tx300_automute()
6270 spec->gen.mute_bits |= (1ULL << 0x14); in asus_tx300_automute()
6276 struct alc_spec *spec = codec->spec; in alc282_fixup_asus_tx300()
6284 spec->init_amp = ALC_INIT_DEFAULT; in alc282_fixup_asus_tx300()
6288 spec->gen.auto_mute_via_amp = 1; in alc282_fixup_asus_tx300()
6289 spec->gen.automute_hook = asus_tx300_automute; in alc282_fixup_asus_tx300()
6294 spec->init_amp = ALC_INIT_DEFAULT; in alc282_fixup_asus_tx300()
6327 Amp-out capability. we change the speaker's route to: in alc298_fixup_speaker_volume()
6328 Node 0x02 (Audio Output) -> Node 0x0c (Audio Mixer) -> Node 0x17 ( in alc298_fixup_speaker_volume()
6329 Pin Complex), since Node 0x02 has Amp-out caps, we can adjust in alc298_fixup_speaker_volume()
6361 struct alc_spec *spec = codec->spec; in alc280_hp_gpio4_automute_hook()
6365 alc_update_gpio_led(codec, 0x10, spec->mute_led_polarity, in alc280_hp_gpio4_automute_hook()
6366 !spec->gen.hp_jack_present); in alc280_hp_gpio4_automute_hook()
6379 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_9480m()
6384 spec->gpio_mask |= 0x10; in alc280_fixup_hp_9480m()
6385 spec->gpio_dir |= 0x10; in alc280_fixup_hp_9480m()
6386 spec->gen.hp_automute_hook = alc280_hp_gpio4_automute_hook; in alc280_fixup_hp_9480m()
6394 struct alc_spec *spec = codec->spec; in alc275_fixup_gpio4_off()
6397 spec->gpio_mask |= 0x04; in alc275_fixup_gpio4_off()
6398 spec->gpio_dir |= 0x04; in alc275_fixup_gpio4_off()
6405 * DAC1 (NID 0x02) -> Speaker (NID 0x14); some eq applied secretly
6406 * DAC2 (NID 0x03) -> Bass (NID 0x17) & Headphone (NID 0x21); sharing a DAC
6407 * DAC3 (NID 0x06) -> Unused, due to the lack of volume amp
6416 struct alc_spec *spec = codec->spec; in alc285_fixup_thinkpad_x1_gen7()
6421 spec->gen.preferred_dacs = preferred_pairs; in alc285_fixup_thinkpad_x1_gen7()
6444 strcpy(codec->card->longname, "HDAudio-Lenovo-DualCodecs"); in alc233_alc662_fixup_lenovo_dual_codecs()
6449 codec->addr == 0 ? in alc233_alc662_fixup_lenovo_dual_codecs()
6450 "Rear-Panel Capture Volume" : in alc233_alc662_fixup_lenovo_dual_codecs()
6451 "Front-Panel Capture Volume"); in alc233_alc662_fixup_lenovo_dual_codecs()
6453 codec->addr == 0 ? in alc233_alc662_fixup_lenovo_dual_codecs()
6454 "Rear-Panel Capture Switch" : in alc233_alc662_fixup_lenovo_dual_codecs()
6455 "Front-Panel Capture Switch"); in alc233_alc662_fixup_lenovo_dual_codecs()
6466 codec->power_save_node = 1; in alc225_fixup_s3_pop_noise()
6473 struct alc_spec *spec = codec->spec; in alc274_fixup_bind_dacs()
6482 spec->gen.preferred_dacs = preferred_pairs; in alc274_fixup_bind_dacs()
6483 spec->gen.auto_mute_via_amp = 1; in alc274_fixup_bind_dacs()
6484 codec->power_save_node = 0; in alc274_fixup_bind_dacs()
6494 struct alc_spec *spec = codec->spec; in alc289_fixup_asus_ga401()
6497 spec->gen.preferred_dacs = preferred_pairs; in alc289_fixup_asus_ga401()
6498 spec->gen.obey_preferred_dacs = 1; in alc289_fixup_asus_ga401()
6514 switch (codec->core.vendor_id) { in alc_combo_jack_hp_jd_restart()
6539 struct alc_spec *spec = codec->spec; in alc295_fixup_chromebook()
6543 spec->ultra_low_power = true; in alc295_fixup_chromebook()
6644 struct alc_spec *spec = codec->spec; in alc_fixup_no_int_mic()
6650 spec->no_internal_mic_pin = true; in alc_fixup_no_int_mic()
6666 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_spectre_x360_eb1()
6678 spec->micmute_led_polarity = 1; in alc285_fixup_hp_spectre_x360_eb1()
6680 spec->gpio_mask |= 0x01; in alc285_fixup_hp_spectre_x360_eb1()
6681 spec->gpio_dir |= 0x01; in alc285_fixup_hp_spectre_x360_eb1()
6746 snd_hda_codec_amp_stereo(codec, 0x21, HDA_OUTPUT, 0, -1, 0); in alc285_fixup_hp_envy_x360()
6748 /* Auto-enable headset mic when plugged */ in alc285_fixup_hp_envy_x360()
6759 "B&O-Tuned Playback Volume"); in alc285_fixup_hp_envy_x360()
6783 struct alc_spec *spec = codec->spec; in alc287_fixup_legion_15imhg05_speakers()
6787 spec->gen.suppress_auto_mute = 1; in alc287_fixup_legion_15imhg05_speakers()
6795 struct alc_spec *spec = cdc->spec; in comp_bind()
6797 return component_bind_all(dev, spec->comps); in comp_bind()
6803 struct alc_spec *spec = cdc->spec; in comp_unbind()
6805 component_unbind_all(dev, spec->comps); in comp_unbind()
6816 struct alc_spec *spec = cdc->spec; in comp_generic_playback_hook()
6820 if (spec->comps[i].dev && spec->comps[i].pre_playback_hook) in comp_generic_playback_hook()
6821 spec->comps[i].pre_playback_hook(spec->comps[i].dev, action); in comp_generic_playback_hook()
6824 if (spec->comps[i].dev && spec->comps[i].playback_hook) in comp_generic_playback_hook()
6825 spec->comps[i].playback_hook(spec->comps[i].dev, action); in comp_generic_playback_hook()
6828 if (spec->comps[i].dev && spec->comps[i].post_playback_hook) in comp_generic_playback_hook()
6829 spec->comps[i].post_playback_hook(spec->comps[i].dev, action); in comp_generic_playback_hook()
6844 int n = strlen(p->bus); in comp_match_cs35l41_dev_name()
6848 if (strncmp(d, p->bus, n)) in comp_match_cs35l41_dev_name()
6854 snprintf(tmp, sizeof(tmp), "-%s:00-cs35l41-hda.%d", p->hid, p->index); in comp_match_cs35l41_dev_name()
6863 int n = strlen(p->bus); in comp_match_tas2781_dev_name()
6867 if (strncmp(d, p->bus, n)) in comp_match_tas2781_dev_name()
6873 snprintf(tmp, sizeof(tmp), "-%s:00", p->hid); in comp_match_tas2781_dev_name()
6882 struct alc_spec *spec = cdc->spec; in cs35l41_generic_fixup()
6892 rec->bus = bus; in cs35l41_generic_fixup()
6893 rec->hid = hid; in cs35l41_generic_fixup()
6894 rec->index = i; in cs35l41_generic_fixup()
6895 spec->comps[i].codec = cdc; in cs35l41_generic_fixup()
6896 component_match_add(dev, &spec->match, in cs35l41_generic_fixup()
6899 ret = component_master_add_with_match(dev, &comp_master_ops, spec->match); in cs35l41_generic_fixup()
6903 spec->gen.pcm_playback_hook = comp_generic_playback_hook; in cs35l41_generic_fixup()
6915 struct alc_spec *spec = cdc->spec; in tas2781_generic_fixup()
6924 rec->bus = bus; in tas2781_generic_fixup()
6925 rec->hid = hid; in tas2781_generic_fixup()
6926 rec->index = 0; in tas2781_generic_fixup()
6927 spec->comps[0].codec = cdc; in tas2781_generic_fixup()
6928 component_match_add(dev, &spec->match, in tas2781_generic_fixup()
6931 spec->match); in tas2781_generic_fixup()
6937 spec->gen.pcm_playback_hook = in tas2781_generic_fixup()
7001 * plugged-in state, while the internal microphone is always in an in alc256_fixup_set_coef_defaults()
7037 if (codec->core.vendor_id == 0x10ec0256) { in alc256_fixup_mic_no_presence_and_resume()
7049 struct alc_spec *spec = codec->spec; in alc_fixup_dell4_mic_no_presence_quiet()
7050 struct hda_input_mux *imux = &spec->gen.input_mux; in alc_fixup_dell4_mic_no_presence_quiet()
7059 * to Hi-Z to avoid pop noises at startup and when plugging and in alc_fixup_dell4_mic_no_presence_quiet()
7070 for (i = 0; i < imux->num_items; i++) { in alc_fixup_dell4_mic_no_presence_quiet()
7071 if (spec->gen.imux_pins[i] == 0x12) { in alc_fixup_dell4_mic_no_presence_quiet()
7072 spec->gen.cur_mux[0] = i; in alc_fixup_dell4_mic_no_presence_quiet()
7106 struct alc_spec *spec = codec->spec; in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7112 spec->gen.preferred_dacs = preferred_pairs; in alc287_fixup_yoga9_14iap7_bass_spk_pin()
7132 struct alc_spec *spec = codec->spec; in alc295_fixup_dell_inspiron_top_speakers()
7140 spec->gen.preferred_dacs = preferred_pairs; in alc295_fixup_dell_inspiron_top_speakers()
7149 struct alc_spec *spec = codec->spec; in alc287_fixup_bind_dacs()
7159 spec->gen.preferred_dacs = preferred_pairs; in alc287_fixup_bind_dacs()
7160 spec->gen.auto_mute_via_amp = 1; in alc287_fixup_bind_dacs()
7161 if (spec->gen.autocfg.speaker_pins[0] != 0x14) { in alc287_fixup_bind_dacs()
7170 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mic()
7180 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mic()
7477 if (codec->core.vendor_id == 0x10ec0298) in alc298_fixup_lenovo_c940_duet7()
7497 if (codec->core.subsystem_id == 0x17aa3802) in alc287_fixup_lenovo_14irp8_duetitl()
7609 { 0x1a, 0x2101103f }, /* dock line-out */
7610 { 0x1b, 0x23a11040 }, /* dock mic-in */
7671 { 0x19, 0x99a3092f }, /* int-mic */
7678 { 0x12, 0x99a3092f }, /* int-mic */
7690 { 0x19, 0x99a3092f }, /* int-mic */
7698 { 0x12, 0x99a3092f }, /* int-mic */
7892 { 0x1b, 0x99a7012f }, /* int-mic */
7912 { 0x12, 0x99a3092f }, /* int-mic */
7937 /* class-D output amp +5dB */
7963 { 0x12, 0x99a3092f }, /* int-mic */
8154 { 0x1b, 0x21011020 }, /* line-out */
8156 { 0x18, 0x2181103f }, /* line-in */
8165 { 0x1b, 0x21011020 }, /* line-out */
8166 { 0x18, 0x2181103f }, /* line-in */
8309 /* Disable pass-through path for FRONT 14h */
8665 /* Disable PCBEEP-IN passthrough */
8878 /* set 0x15 to HP-OUT ctrl */
8905 /* set 0x15 to HP-OUT ctrl */
8909 /* set 0x1b to HP-OUT */
9695 SND_PCI_QUIRK(0x1025, 0x072d, "Acer Aspire V5-571G", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
9698 SND_PCI_QUIRK(0x1025, 0x0762, "Acer Aspire E1-472", ALC271_FIXUP_HP_GATE_MIC_JACK_E1_572),
9699 SND_PCI_QUIRK(0x1025, 0x0775, "Acer Aspire E1-572", ALC271_FIXUP_HP_GATE_MIC_JACK_E1_572),
9700 SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS),
9701 SND_PCI_QUIRK(0x1025, 0x080d, "Acer Aspire V5-122P", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
9703 SND_PCI_QUIRK(0x1025, 0x100c, "Acer Aspire E5-574G", ALC255_FIXUP_ACER_LIMIT_INT_MIC_BOOST),
9705 SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE),
9706 SND_PCI_QUIRK(0x1025, 0x1065, "Acer Aspire C20-820", ALC269VC_FIXUP_ACER_HEADSET_MIC),
9708 SND_PCI_QUIRK(0x1025, 0x1094, "Acer Aspire E5-575T", ALC255_FIXUP_ACER_LIMIT_INT_MIC_BOOST),
9709 SND_PCI_QUIRK(0x1025, 0x1099, "Acer Aspire E5-523G", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
9710 SND_PCI_QUIRK(0x1025, 0x110e, "Acer Aspire ES1-432", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
9713 SND_PCI_QUIRK(0x1025, 0x1177, "Acer Predator G9-593", ALC255_FIXUP_PREDATOR_SUBWOOFER),
9714 SND_PCI_QUIRK(0x1025, 0x1178, "Acer Predator G9-593", ALC255_FIXUP_PREDATOR_SUBWOOFER),
9718 SND_PCI_QUIRK(0x1025, 0x1269, "Acer SWIFT SF314-54", ALC256_FIXUP_ACER_HEADSET_MIC),
9719 SND_PCI_QUIRK(0x1025, 0x126a, "Acer Swift SF114-32", ALC256_FIXUP_ACER_MIC_NO_PRESENCE),
9723 SND_PCI_QUIRK(0x1025, 0x129c, "Acer SWIFT SF314-55", ALC256_FIXUP_ACER_HEADSET_MIC),
9724 SND_PCI_QUIRK(0x1025, 0x129d, "Acer SWIFT SF313-51", ALC256_FIXUP_ACER_MIC_NO_PRESENCE),
9725 SND_PCI_QUIRK(0x1025, 0x1300, "Acer SWIFT SF314-56", ALC256_FIXUP_ACER_MIC_NO_PRESENCE),
9726 SND_PCI_QUIRK(0x1025, 0x1308, "Acer Aspire Z24-890", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
9727 SND_PCI_QUIRK(0x1025, 0x132a, "Acer TravelMate B114-21", ALC233_FIXUP_ACER_HEADSET_MIC),
9728 SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC),
9729 SND_PCI_QUIRK(0x1025, 0x141f, "Acer Spin SP513-54N", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
9730 SND_PCI_QUIRK(0x1025, 0x142b, "Acer Swift SF314-42", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
9731 SND_PCI_QUIRK(0x1025, 0x1430, "Acer TravelMate B311R-31", ALC256_FIXUP_ACER_MIC_NO_PRESENCE),
9732 SND_PCI_QUIRK(0x1025, 0x1466, "Acer Aspire A515-56", ALC255_FIXUP_ACER_HEADPHONE_AND_MIC),
9733 SND_PCI_QUIRK(0x1025, 0x1534, "Acer Predator PH315-54", ALC255_FIXUP_ACER_MIC_NO_PRESENCE),
9793 …SND_PCI_QUIRK(0x1028, 0x0b37, "Dell Inspiron 16 Plus 7620 2-in-1", ALC295_FIXUP_DELL_INSPIRON_TOP_…
9797 SND_PCI_QUIRK(0x1028, 0x0c0b, "Dell Oasis 14 RPL-P", ALC289_FIXUP_RTK_AMP_DUAL_SPK),
9806 SND_PCI_QUIRK(0x1028, 0x0cbd, "Dell Oasis 13 CS MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
9807 SND_PCI_QUIRK(0x1028, 0x0cbe, "Dell Oasis 13 2-IN-1 MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
9808 SND_PCI_QUIRK(0x1028, 0x0cbf, "Dell Oasis 13 Low Weight MTU-L", ALC289_FIXUP_DELL_CS35L41_SPI_2),
9810 SND_PCI_QUIRK(0x1028, 0x0cc1, "Dell Oasis 14 MTL-H/U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
9811 SND_PCI_QUIRK(0x1028, 0x0cc2, "Dell Oasis 14 2-in-1 MTL-H/U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
9812 SND_PCI_QUIRK(0x1028, 0x0cc3, "Dell Oasis 14 Low Weight MTL-U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
9813 SND_PCI_QUIRK(0x1028, 0x0cc4, "Dell Oasis 16 MTL-H/U", ALC289_FIXUP_DELL_CS35L41_SPI_2),
9886 SND_PCI_QUIRK(0x103c, 0x841c, "HP Pavilion 15-CK0xx", ALC269_FIXUP_HP_MUTE_LED_MIC3),
9889 SND_PCI_QUIRK(0x103c, 0x84ae, "HP 15-db0403ng", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9890 SND_PCI_QUIRK(0x103c, 0x84da, "HP OMEN dc0019-ur", ALC295_FIXUP_HP_OMEN),
9892 SND_PCI_QUIRK(0x103c, 0x8519, "HP Spectre x360 15-df0xxx", ALC285_FIXUP_HP_SPECTRE_X360),
9894 SND_PCI_QUIRK(0x103c, 0x85de, "HP Envy x360 13-ar0xxx", ALC285_FIXUP_HP_ENVY_X360),
9898 SND_PCI_QUIRK(0x103c, 0x86c1, "HP Laptop 15-da3001TU", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9900 SND_PCI_QUIRK(0x103c, 0x86e7, "HP Spectre x360 15-eb0xxx", ALC285_FIXUP_HP_SPECTRE_X360_EB1),
9901 SND_PCI_QUIRK(0x103c, 0x86e8, "HP Spectre x360 15-eb0xxx", ALC285_FIXUP_HP_SPECTRE_X360_EB1),
9902 SND_PCI_QUIRK(0x103c, 0x86f9, "HP Spectre x360 13-aw0xxx", ALC285_FIXUP_HP_SPECTRE_X360_MUTE_LED),
9912 …SND_PCI_QUIRK(0x103c, 0x876e, "HP ENVY x360 Convertible 13-ay0xxx", ALC245_FIXUP_HP_X360_MUTE_LEDS…
9922 SND_PCI_QUIRK(0x103c, 0x87b7, "HP Laptop 14-fq0xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9924 SND_PCI_QUIRK(0x103c, 0x87d3, "HP Laptop 15-gw0xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9934 SND_PCI_QUIRK(0x103c, 0x87fd, "HP Laptop 14-dq2xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9935 SND_PCI_QUIRK(0x103c, 0x87fe, "HP Laptop 15s-fq2xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9938 SND_PCI_QUIRK(0x103c, 0x8811, "HP Spectre x360 15-eb1xxx", ALC285_FIXUP_HP_SPECTRE_X360_EB1),
9939 SND_PCI_QUIRK(0x103c, 0x8812, "HP Spectre x360 15-eb1xxx", ALC285_FIXUP_HP_SPECTRE_X360_EB1),
9950 SND_PCI_QUIRK(0x103c, 0x887a, "HP Laptop 15s-eq2xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9951 …SND_PCI_QUIRK(0x103c, 0x888a, "HP ENVY x360 Convertible 15-eu0xxx", ALC245_FIXUP_HP_X360_MUTE_LEDS…
9956 SND_PCI_QUIRK(0x103c, 0x88d0, "HP Pavilion 15-eh1xxx (mainboard 88D0)", ALC287_FIXUP_HP_GPIO_LED),
9957 SND_PCI_QUIRK(0x103c, 0x88dd, "HP Pavilion 15z-ec200", ALC285_FIXUP_HP_MUTE_LED),
9960 SND_PCI_QUIRK(0x103c, 0x8919, "HP Pavilion Aero Laptop 13-be0xxx", ALC287_FIXUP_HP_GPIO_LED),
9986 SND_PCI_QUIRK(0x103c, 0x8a0f, "HP Pavilion 14-ec1xxx", ALC287_FIXUP_HP_GPIO_LED),
9987 SND_PCI_QUIRK(0x103c, 0x8a20, "HP Laptop 15s-fq5xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
9988 SND_PCI_QUIRK(0x103c, 0x8a25, "HP Victus 16-d1xxx (MB 8A25)", ALC245_FIXUP_HP_MUTE_LED_COEFBIT),
10032 …SND_PCI_QUIRK(0x103c, 0x8c49, "HP Elite x360 830 2-in-1 G11", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_L…
10170 SND_PCI_QUIRK(0x10ec, 0x11bc, "VAIO VJFE-IL", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
10176 SND_PCI_QUIRK(0x10f7, 0x8338, "Panasonic CF-SZ6", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
10178 SND_PCI_QUIRK(0x144d, 0xc169, "Samsung Notebook 9 Pen (NP930SBE-K01US)", ALC298_FIXUP_SAMSUNG_AMP),
10179 SND_PCI_QUIRK(0x144d, 0xc176, "Samsung Notebook 9 Pro (NP930MBE-K04US)", ALC298_FIXUP_SAMSUNG_AMP),
10180 …SND_PCI_QUIRK(0x144d, 0xc189, "Samsung Galaxy Flex Book (NT950QCG-X716)", ALC298_FIXUP_SAMSUNG_AMP…
10181 …SND_PCI_QUIRK(0x144d, 0xc18a, "Samsung Galaxy Book Ion (NP930XCJ-K01US)", ALC298_FIXUP_SAMSUNG_AMP…
10182 …SND_PCI_QUIRK(0x144d, 0xc1a3, "Samsung Galaxy Book Pro (NP935XDB-KC1SE)", ALC298_FIXUP_SAMSUNG_AMP…
10186 SND_PCI_QUIRK(0x144d, 0xc812, "Samsung Notebook Pen S (NT950SBE-X58)", ALC298_FIXUP_SAMSUNG_AMP),
10187 …SND_PCI_QUIRK(0x144d, 0xc830, "Samsung Galaxy Book Ion (NT950XCJ-X716A)", ALC298_FIXUP_SAMSUNG_AMP…
10192 SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_HEADSET_MIC),
10193 SND_PCI_QUIRK(0x1462, 0xb120, "MSI Cubi MS-B120", ALC283_FIXUP_HEADSET_MIC),
10194 SND_PCI_QUIRK(0x1462, 0xb171, "Cubi N 8GL (MS-B171)", ALC283_FIXUP_HEADSET_MIC),
10196 SND_PCI_QUIRK(0x152d, 0x1262, "Huawei NBLB-WAX9N", ALC2XX_FIXUP_HEADSET_MIC),
10238 SND_PCI_QUIRK(0x1558, 0x70f6, "Clevo NH77DPQ-Y", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
10248 …SND_PCI_QUIRK(0x1558, 0x8550, "Clevo NH[57][0-9][ER][ACDH]Q", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENC…
10249 …SND_PCI_QUIRK(0x1558, 0x8551, "Clevo NH[57][0-9][ER][ACDH]Q", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENC…
10250 SND_PCI_QUIRK(0x1558, 0x8560, "Clevo NH[57][0-9][ER][ACDH]Q", ALC269_FIXUP_HEADSET_MIC),
10251 SND_PCI_QUIRK(0x1558, 0x8561, "Clevo NH[57][0-9][ER][ACDH]Q", ALC269_FIXUP_HEADSET_MIC),
10252 SND_PCI_QUIRK(0x1558, 0x8562, "Clevo NH[57][0-9]RZ[Q]", ALC269_FIXUP_DMIC),
10259 SND_PCI_QUIRK(0x1558, 0x8a20, "Clevo NH55DCQ-Y", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
10260 SND_PCI_QUIRK(0x1558, 0x8a51, "Clevo NH70RCQ-Y", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
10261 SND_PCI_QUIRK(0x1558, 0x8d50, "Clevo NH55RCQ-M", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
10304 SND_PCI_QUIRK(0x17aa, 0x2234, "Thinkpad ICE-1", ALC287_FIXUP_TAS2781_I2C),
10342 SND_PCI_QUIRK(0x17aa, 0x3820, "IdeaPad 330-17IKB 81DM", ALC269_FIXUP_ASPIRE_HEADSET_MIC),
10356 SND_PCI_QUIRK(0x17aa, 0x387d, "Yoga S780-16 pro Quad AAC", ALC287_FIXUP_TAS2781_I2C),
10357 SND_PCI_QUIRK(0x17aa, 0x387e, "Yoga S780-16 pro Quad YC", ALC287_FIXUP_TAS2781_I2C),
10365 SND_PCI_QUIRK(0x17aa, 0x38ba, "Yoga S780-14.5 Air AMD quad YC", ALC287_FIXUP_TAS2781_I2C),
10366 SND_PCI_QUIRK(0x17aa, 0x38bb, "Yoga S780-14.5 Air AMD quad AAC", ALC287_FIXUP_TAS2781_I2C),
10367 SND_PCI_QUIRK(0x17aa, 0x38be, "Yoga S980-14.5 proX YC Dual", ALC287_FIXUP_TAS2781_I2C),
10368 SND_PCI_QUIRK(0x17aa, 0x38bf, "Yoga S980-14.5 proX LX Dual", ALC287_FIXUP_TAS2781_I2C),
10377 SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
10380 SND_PCI_QUIRK(0x17aa, 0x3978, "Lenovo B50-70", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
10405 SND_PCI_QUIRK(0x19e5, 0x3204, "Huawei MACH-WX9", ALC256_FIXUP_HUAWEI_MACH_WX9_PINS),
10406 SND_PCI_QUIRK(0x19e5, 0x320f, "Huawei WRT-WX9 ", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
10407 SND_PCI_QUIRK(0x19e5, 0x3212, "Huawei KLV-WX9 ", ALC256_FIXUP_ACER_HEADSET_MIC),
10411 …b7d, 0xa831, "Ordissimo EVE2 ", ALC269VB_FIXUP_ORDISSIMO_EVE2), /* Also known as Malata PC-B1303 */
10415 SND_PCI_QUIRK(0x1c6c, 0x1251, "Positivo N14KP6-TG", ALC288_FIXUP_DELL1_MIC_NO_PRESENCE),
10434 SND_PCI_QUIRK(0x2782, 0x0214, "VAIO VJFE-CL", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
10439 SND_PCI_QUIRK(0x2782, 0x1707, "Vaio VJFE-ADL", ALC298_FIXUP_SPK_VOLUME),
10510 {.id = ALC269_FIXUP_AMIC, .name = "laptop-amic"},
10511 {.id = ALC269_FIXUP_DMIC, .name = "laptop-dmic"},
10512 {.id = ALC269_FIXUP_STEREO_DMIC, .name = "alc269-dmic"},
10513 {.id = ALC271_FIXUP_DMIC, .name = "alc271-dmic"},
10514 {.id = ALC269_FIXUP_INV_DMIC, .name = "inv-dmic"},
10515 {.id = ALC269_FIXUP_HEADSET_MIC, .name = "headset-mic"},
10516 {.id = ALC269_FIXUP_HEADSET_MODE, .name = "headset-mode"},
10517 {.id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC, .name = "headset-mode-no-hp-mic"},
10518 {.id = ALC269_FIXUP_LENOVO_DOCK, .name = "lenovo-dock"},
10519 {.id = ALC269_FIXUP_LENOVO_DOCK_LIMIT_BOOST, .name = "lenovo-dock-limit-boost"},
10520 {.id = ALC269_FIXUP_HP_GPIO_LED, .name = "hp-gpio-led"},
10521 {.id = ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED, .name = "hp-dock-gpio-mic1-led"},
10522 {.id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
10523 {.id = ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "dell-headset-dock"},
10524 {.id = ALC269_FIXUP_DELL3_MIC_NO_PRESENCE, .name = "dell-headset3"},
10525 {.id = ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, .name = "dell-headset4"},
10526 {.id = ALC269_FIXUP_DELL4_MIC_NO_PRESENCE_QUIET, .name = "dell-headset4-quiet"},
10527 {.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-dac-wcaps"},
10528 {.id = ALC283_FIXUP_SENSE_COMBO_JACK, .name = "alc283-sense-combo"},
10529 {.id = ALC292_FIXUP_TPT440_DOCK, .name = "tpt440-dock"},
10532 {.id = ALC298_FIXUP_TPT470_DOCK_FIX, .name = "tpt470-dock-fix"},
10533 {.id = ALC298_FIXUP_TPT470_DOCK, .name = "tpt470-dock"},
10534 {.id = ALC233_FIXUP_LENOVO_MULTI_CODECS, .name = "dual-codecs"},
10535 {.id = ALC700_FIXUP_INTEL_REFERENCE, .name = "alc700-ref"},
10537 {.id = ALC269_FIXUP_DELL_M101Z, .name = "dell-m101z"},
10538 {.id = ALC269_FIXUP_ASUS_G73JW, .name = "asus-g73jw"},
10539 {.id = ALC269_FIXUP_LENOVO_EAPD, .name = "lenovo-eapd"},
10540 {.id = ALC275_FIXUP_SONY_HWEQ, .name = "sony-hweq"},
10543 {.id = ALC269_FIXUP_LIFEBOOK_EXTMIC, .name = "lifebook-extmic"},
10544 {.id = ALC269_FIXUP_LIFEBOOK_HP_PIN, .name = "lifebook-hp-pin"},
10545 {.id = ALC255_FIXUP_LIFEBOOK_U7x7_HEADSET_MIC, .name = "lifebook-u7x7"},
10546 {.id = ALC269VB_FIXUP_AMIC, .name = "alc269vb-amic"},
10547 {.id = ALC269VB_FIXUP_DMIC, .name = "alc269vb-dmic"},
10548 {.id = ALC269_FIXUP_HP_MUTE_LED_MIC1, .name = "hp-mute-led-mic1"},
10549 {.id = ALC269_FIXUP_HP_MUTE_LED_MIC2, .name = "hp-mute-led-mic2"},
10550 {.id = ALC269_FIXUP_HP_MUTE_LED_MIC3, .name = "hp-mute-led-mic3"},
10551 {.id = ALC269_FIXUP_HP_GPIO_MIC1_LED, .name = "hp-gpio-mic1"},
10552 {.id = ALC269_FIXUP_HP_LINE1_MIC1_LED, .name = "hp-line1-mic1"},
10554 {.id = ALC286_FIXUP_SONY_MIC_NO_PRESENCE, .name = "sony-nomic"},
10555 {.id = ALC269_FIXUP_ASPIRE_HEADSET_MIC, .name = "aspire-headset-mic"},
10556 {.id = ALC269_FIXUP_ASUS_X101, .name = "asus-x101"},
10557 {.id = ALC271_FIXUP_HP_GATE_MIC_JACK, .name = "acer-ao7xx"},
10558 {.id = ALC271_FIXUP_HP_GATE_MIC_JACK_E1_572, .name = "acer-aspire-e1"},
10559 {.id = ALC269_FIXUP_ACER_AC700, .name = "acer-ac700"},
10560 {.id = ALC269_FIXUP_LIMIT_INT_MIC_BOOST, .name = "limit-mic-boost"},
10561 {.id = ALC269VB_FIXUP_ASUS_ZENBOOK, .name = "asus-zenbook"},
10562 {.id = ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A, .name = "asus-zenbook-ux31a"},
10564 {.id = ALC282_FIXUP_ASUS_TX300, .name = "asus-tx300"},
10565 {.id = ALC283_FIXUP_INT_MIC, .name = "alc283-int-mic"},
10566 {.id = ALC290_FIXUP_MONO_SPEAKERS_HSJACK, .name = "mono-speakers"},
10567 {.id = ALC290_FIXUP_SUBWOOFER_HSJACK, .name = "alc290-subwoofer"},
10569 {.id = ALC269_FIXUP_DMIC_THINKPAD_ACPI, .name = "dmic-thinkpad"},
10570 {.id = ALC255_FIXUP_ACER_MIC_NO_PRESENCE, .name = "alc255-acer"},
10571 {.id = ALC255_FIXUP_ASUS_MIC_NO_PRESENCE, .name = "alc255-asus"},
10572 {.id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc255-dell1"},
10573 {.id = ALC255_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "alc255-dell2"},
10574 {.id = ALC293_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc293-dell1"},
10575 {.id = ALC283_FIXUP_HEADSET_MIC, .name = "alc283-headset"},
10576 {.id = ALC255_FIXUP_MIC_MUTE_LED, .name = "alc255-dell-mute"},
10577 {.id = ALC282_FIXUP_ASPIRE_V5_PINS, .name = "aspire-v5"},
10578 {.id = ALC269VB_FIXUP_ASPIRE_E1_COEF, .name = "aspire-e1-coef"},
10579 {.id = ALC280_FIXUP_HP_GPIO4, .name = "hp-gpio4"},
10580 {.id = ALC286_FIXUP_HP_GPIO_LED, .name = "hp-gpio-led"},
10581 {.id = ALC280_FIXUP_HP_GPIO2_MIC_HOTKEY, .name = "hp-gpio2-hotkey"},
10582 {.id = ALC280_FIXUP_HP_DOCK_PINS, .name = "hp-dock-pins"},
10583 {.id = ALC269_FIXUP_HP_DOCK_GPIO_MIC1_LED, .name = "hp-dock-gpio-mic"},
10584 {.id = ALC280_FIXUP_HP_9480M, .name = "hp-9480m"},
10585 {.id = ALC288_FIXUP_DELL_HEADSET_MODE, .name = "alc288-dell-headset"},
10586 {.id = ALC288_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc288-dell1"},
10587 {.id = ALC288_FIXUP_DELL_XPS_13, .name = "alc288-dell-xps13"},
10588 {.id = ALC292_FIXUP_DELL_E7X, .name = "dell-e7x"},
10589 {.id = ALC293_FIXUP_DISABLE_AAMIX_MULTIJACK, .name = "alc293-dell"},
10590 {.id = ALC298_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc298-dell1"},
10591 {.id = ALC298_FIXUP_DELL_AIO_MIC_NO_PRESENCE, .name = "alc298-dell-aio"},
10592 {.id = ALC275_FIXUP_DELL_XPS, .name = "alc275-dell-xps"},
10593 {.id = ALC293_FIXUP_LENOVO_SPK_NOISE, .name = "lenovo-spk-noise"},
10594 {.id = ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY, .name = "lenovo-hotkey"},
10595 {.id = ALC255_FIXUP_DELL_SPK_NOISE, .name = "dell-spk-noise"},
10596 {.id = ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "alc225-dell1"},
10597 {.id = ALC295_FIXUP_DISABLE_DAC3, .name = "alc295-disable-dac3"},
10598 {.id = ALC285_FIXUP_SPEAKER2_TO_DAC1, .name = "alc285-speaker2-to-dac1"},
10599 {.id = ALC280_FIXUP_HP_HEADSET_MIC, .name = "alc280-hp-headset"},
10600 {.id = ALC221_FIXUP_HP_FRONT_MIC, .name = "alc221-hp-mic"},
10601 {.id = ALC298_FIXUP_SPK_VOLUME, .name = "alc298-spk-volume"},
10602 {.id = ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER, .name = "dell-inspiron-7559"},
10603 {.id = ALC269_FIXUP_ATIV_BOOK_8, .name = "ativ-book"},
10604 {.id = ALC221_FIXUP_HP_MIC_NO_PRESENCE, .name = "alc221-hp-mic"},
10605 {.id = ALC256_FIXUP_ASUS_HEADSET_MODE, .name = "alc256-asus-headset"},
10606 {.id = ALC256_FIXUP_ASUS_MIC, .name = "alc256-asus-mic"},
10607 {.id = ALC256_FIXUP_ASUS_AIO_GPIO2, .name = "alc256-asus-aio"},
10608 {.id = ALC233_FIXUP_ASUS_MIC_NO_PRESENCE, .name = "alc233-asus"},
10609 {.id = ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE, .name = "alc233-eapd"},
10610 {.id = ALC294_FIXUP_LENOVO_MIC_LOCATION, .name = "alc294-lenovo-mic"},
10611 {.id = ALC225_FIXUP_DELL_WYSE_MIC_NO_PRESENCE, .name = "alc225-wyse"},
10612 {.id = ALC274_FIXUP_DELL_AIO_LINEOUT_VERB, .name = "alc274-dell-aio"},
10613 {.id = ALC255_FIXUP_DUMMY_LINEOUT_VERB, .name = "alc255-dummy-lineout"},
10614 {.id = ALC255_FIXUP_DELL_HEADSET_MIC, .name = "alc255-dell-headset"},
10615 {.id = ALC295_FIXUP_HP_X360, .name = "alc295-hp-x360"},
10616 {.id = ALC225_FIXUP_HEADSET_JACK, .name = "alc-headset-jack"},
10617 {.id = ALC295_FIXUP_CHROME_BOOK, .name = "alc-chrome-book"},
10618 {.id = ALC299_FIXUP_PREDATOR_SPK, .name = "predator-spk"},
10619 {.id = ALC298_FIXUP_HUAWEI_MBX_STEREO, .name = "huawei-mbx-stereo"},
10620 {.id = ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE, .name = "alc256-medion-headset"},
10621 {.id = ALC298_FIXUP_SAMSUNG_AMP, .name = "alc298-samsung-amp"},
10622 {.id = ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc256-samsung-headphone"},
10623 {.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"},
10624 {.id = ALC274_FIXUP_HP_MIC, .name = "alc274-hp-mic-detect"},
10625 {.id = ALC245_FIXUP_HP_X360_AMP, .name = "alc245-hp-x360-amp"},
10626 {.id = ALC295_FIXUP_HP_OMEN, .name = "alc295-hp-omen"},
10627 {.id = ALC285_FIXUP_HP_SPECTRE_X360, .name = "alc285-hp-spectre-x360"},
10628 {.id = ALC285_FIXUP_HP_SPECTRE_X360_EB1, .name = "alc285-hp-spectre-x360-eb1"},
10629 {.id = ALC285_FIXUP_HP_ENVY_X360, .name = "alc285-hp-envy-x360"},
10630 {.id = ALC287_FIXUP_IDEAPAD_BASS_SPK_AMP, .name = "alc287-ideapad-bass-spk-amp"},
10631 {.id = ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN, .name = "alc287-yoga9-bass-spk-pin"},
10632 {.id = ALC623_FIXUP_LENOVO_THINKSTATION_P340, .name = "alc623-lenovo-thinkstation-p340"},
10633 {.id = ALC255_FIXUP_ACER_HEADPHONE_AND_MIC, .name = "alc255-acer-headphone-and-mic"},
10634 {.id = ALC285_FIXUP_HP_GPIO_AMP_INIT, .name = "alc285-hp-amp-init"},
10635 {.id = ALC236_FIXUP_LENOVO_INV_DMIC, .name = "alc236-fixup-lenovo-inv-mic"},
10636 {.id = ALC2XX_FIXUP_HEADSET_MIC, .name = "alc2xx-fixup-headset-mic"},
11100 struct alc_spec *spec = codec->spec; in alc269_fill_coef()
11103 if (spec->codec_variant != ALC269_TYPE_ALC269VB) in alc269_fill_coef()
11123 if (val != -1 && (val & 0x0c00) >> 10 != 0x1) { in alc269_fill_coef()
11128 if (val != -1 && (val & 0x01c0) >> 6 != 0x4) { in alc269_fill_coef()
11149 spec = codec->spec; in patch_alc269()
11150 spec->gen.shared_mic_vref_pin = 0x18; in patch_alc269()
11151 codec->power_save_node = 0; in patch_alc269()
11152 spec->en_3kpull_low = true; in patch_alc269()
11155 codec->patch_ops.suspend = alc269_suspend; in patch_alc269()
11156 codec->patch_ops.resume = alc269_resume; in patch_alc269()
11158 spec->shutup = alc_default_shutup; in patch_alc269()
11159 spec->init_hook = alc_default_init; in patch_alc269()
11161 switch (codec->core.vendor_id) { in patch_alc269()
11163 spec->codec_variant = ALC269_TYPE_ALC269VA; in patch_alc269()
11166 if (codec->bus->pci && in patch_alc269()
11167 codec->bus->pci->subsystem_vendor == 0x1025 && in patch_alc269()
11168 spec->cdefine.platform_type == 1) in patch_alc269()
11170 spec->codec_variant = ALC269_TYPE_ALC269VB; in patch_alc269()
11173 if (codec->bus->pci && in patch_alc269()
11174 codec->bus->pci->subsystem_vendor == 0x17aa && in patch_alc269()
11175 codec->bus->pci->subsystem_device == 0x21f3) in patch_alc269()
11177 spec->codec_variant = ALC269_TYPE_ALC269VC; in patch_alc269()
11180 spec->codec_variant = ALC269_TYPE_ALC269VD; in patch_alc269()
11187 spec->shutup = alc269_shutup; in patch_alc269()
11188 spec->init_hook = alc269_fill_coef; in patch_alc269()
11194 spec->codec_variant = ALC269_TYPE_ALC280; in patch_alc269()
11197 spec->codec_variant = ALC269_TYPE_ALC282; in patch_alc269()
11198 spec->shutup = alc282_shutup; in patch_alc269()
11199 spec->init_hook = alc282_init; in patch_alc269()
11203 spec->codec_variant = ALC269_TYPE_ALC283; in patch_alc269()
11204 spec->shutup = alc283_shutup; in patch_alc269()
11205 spec->init_hook = alc283_init; in patch_alc269()
11209 spec->codec_variant = ALC269_TYPE_ALC284; in patch_alc269()
11212 spec->codec_variant = ALC269_TYPE_ALC293; in patch_alc269()
11216 spec->codec_variant = ALC269_TYPE_ALC286; in patch_alc269()
11219 spec->codec_variant = ALC269_TYPE_ALC298; in patch_alc269()
11223 spec->codec_variant = ALC269_TYPE_ALC255; in patch_alc269()
11224 spec->shutup = alc256_shutup; in patch_alc269()
11225 spec->init_hook = alc256_init; in patch_alc269()
11231 spec->codec_variant = ALC269_TYPE_ALC256; in patch_alc269()
11232 spec->shutup = alc256_shutup; in patch_alc269()
11233 spec->init_hook = alc256_init; in patch_alc269()
11234 spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */ in patch_alc269()
11235 if (codec->core.vendor_id == 0x10ec0236 && in patch_alc269()
11236 codec->bus->pci->vendor != PCI_VENDOR_ID_AMD) in patch_alc269()
11237 spec->en_3kpull_low = false; in patch_alc269()
11240 spec->codec_variant = ALC269_TYPE_ALC257; in patch_alc269()
11241 spec->shutup = alc256_shutup; in patch_alc269()
11242 spec->init_hook = alc256_init; in patch_alc269()
11243 spec->gen.mixer_nid = 0; in patch_alc269()
11244 spec->en_3kpull_low = false; in patch_alc269()
11251 spec->codec_variant = ALC269_TYPE_ALC245; in patch_alc269()
11253 spec->codec_variant = ALC269_TYPE_ALC215; in patch_alc269()
11254 spec->shutup = alc225_shutup; in patch_alc269()
11255 spec->init_hook = alc225_init; in patch_alc269()
11256 spec->gen.mixer_nid = 0; in patch_alc269()
11261 spec->codec_variant = ALC269_TYPE_ALC225; in patch_alc269()
11262 spec->shutup = alc225_shutup; in patch_alc269()
11263 spec->init_hook = alc225_init; in patch_alc269()
11264 spec->gen.mixer_nid = 0; /* no loopback on ALC225, ALC295 and ALC299 */ in patch_alc269()
11267 spec->codec_variant = ALC269_TYPE_ALC287; in patch_alc269()
11268 spec->shutup = alc225_shutup; in patch_alc269()
11269 spec->init_hook = alc225_init; in patch_alc269()
11270 spec->gen.mixer_nid = 0; /* no loopback on ALC287 */ in patch_alc269()
11275 spec->codec_variant = ALC269_TYPE_ALC294; in patch_alc269()
11276 spec->gen.mixer_nid = 0; /* ALC2x4 does not have any loopback mixer path */ in patch_alc269()
11278 spec->init_hook = alc294_init; in patch_alc269()
11281 spec->codec_variant = ALC269_TYPE_ALC300; in patch_alc269()
11282 spec->gen.mixer_nid = 0; /* no loopback on ALC300 */ in patch_alc269()
11285 spec->codec_variant = ALC269_TYPE_ALC623; in patch_alc269()
11291 spec->codec_variant = ALC269_TYPE_ALC700; in patch_alc269()
11292 spec->gen.mixer_nid = 0; /* ALC700 does not have any loopback mixer path */ in patch_alc269()
11294 spec->init_hook = alc294_init; in patch_alc269()
11300 spec->has_alc5505_dsp = 1; in patch_alc269()
11301 spec->init_hook = alc5505_dsp_init; in patch_alc269()
11312 if (codec->fixup_id == ALC282_FIXUP_ASUS_TX300 && in patch_alc269()
11313 codec->core.vendor_id == 0x10ec0294) { in patch_alc269()
11315 codec->fixup_id = HDA_FIXUP_ID_NOT_SET; in patch_alc269()
11327 spec->gen.beep_nid = 0x01; in patch_alc269()
11334 if (!spec->gen.no_analog && spec->gen.beep_nid && spec->gen.mixer_nid) { in patch_alc269()
11335 err = set_beep_amp(spec, spec->gen.mixer_nid, 0x04, HDA_INPUT); in patch_alc269()
11373 struct alc_spec *spec = codec->spec; in alc861_fixup_asus_amp_vref_0f()
11383 spec->gen.keep_vref_in_automute = 1; in alc861_fixup_asus_amp_vref_0f()
11386 /* suppress the jack-detection */
11391 codec->no_jack_detect = 1; in alc_fixup_no_jack_detect()
11451 spec = codec->spec; in patch_alc861()
11453 spec->gen.beep_nid = 0x23; in patch_alc861()
11456 spec->power_hook = alc_power_eapd; in patch_alc861()
11469 if (!spec->gen.no_analog) { in patch_alc861()
11485 * ALC861-VD support
11517 struct alc_spec *spec = codec->spec; in alc660vd_fixup_asus_gpio1()
11520 spec->gpio_mask |= 0x02; in alc660vd_fixup_asus_gpio1()
11537 SND_PCI_QUIRK(0x1043, 0x1339, "ASUS A7-K", ALC660VD_FIX_ASUS_GPIO1),
11538 SND_PCI_QUIRK(0x1179, 0xff31, "Toshiba L30-149", ALC861VD_FIX_DALLAS),
11553 spec = codec->spec; in patch_alc861vd()
11555 spec->gen.beep_nid = 0x23; in patch_alc861vd()
11557 spec->shutup = alc_eapd_shutup; in patch_alc861vd()
11569 if (!spec->gen.no_analog) { in patch_alc861vd()
11590 * 6-channel independent captures.
11592 * In addition, an independent DAC for the multi-playback (not used in this
11607 if (codec->core.vendor_id == 0x10ec0272 || codec->core.vendor_id == 0x10ec0663 || in alc662_parse_auto_config()
11608 codec->core.vendor_id == 0x10ec0665 || codec->core.vendor_id == 0x10ec0670 || in alc662_parse_auto_config()
11609 codec->core.vendor_id == 0x10ec0671) in alc662_parse_auto_config()
11643 struct alc_spec *spec = codec->spec; in alc_fixup_bass_chmap()
11644 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; in alc_fixup_bass_chmap()
11653 struct alc_spec *spec = codec->spec; in gpio_led_power_filter()
11654 if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data) in gpio_led_power_filter()
11662 struct alc_spec *spec = codec->spec; in alc662_fixup_led_gpio1()
11666 spec->mute_led_polarity = 1; in alc662_fixup_led_gpio1()
11667 codec->power_filter = gpio_led_power_filter; in alc662_fixup_led_gpio1()
11674 struct alc_spec *spec = codec->spec; in alc662_usi_automute_hook()
11679 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc662_usi_automute_hook()
11688 struct alc_spec *spec = codec->spec; in alc662_fixup_usi_headset_mic()
11690 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc662_fixup_usi_headset_mic()
11691 spec->gen.hp_automute_hook = alc662_usi_automute_hook; in alc662_fixup_usi_headset_mic()
11701 * 0x15 - front left/front right in alc662_aspire_ethos_mute_speakers()
11702 * 0x18 - front center/ LFE in alc662_aspire_ethos_mute_speakers()
11739 struct alc_spec *spec = codec->spec; in alc671_fixup_hp_headset_mic2()
11749 spec->gen.mixer_nid = 0; in alc671_fixup_hp_headset_mic2()
11750 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc671_fixup_hp_headset_mic2()
11762 struct alc_spec *spec = codec->spec; in alc897_hp_automute_hook()
11766 vref = spec->gen.hp_jack_present ? (PIN_HP | AC_PINCTL_VREF_100) : PIN_HP; in alc897_hp_automute_hook()
11773 struct alc_spec *spec = codec->spec; in alc897_fixup_lenovo_headset_mic()
11775 spec->gen.hp_automute_hook = alc897_hp_automute_hook; in alc897_fixup_lenovo_headset_mic()
11776 spec->no_shutup_pins = 1; in alc897_fixup_lenovo_headset_mic()
11786 struct alc_spec *spec = codec->spec; in alc897_fixup_lenovo_headset_mode()
11789 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc897_fixup_lenovo_headset_mode()
11790 spec->gen.hp_automute_hook = alc897_hp_automute_hook; in alc897_fixup_lenovo_headset_mode()
11916 {0x19, 0x90a7013f}, /* int-mic */
11952 { 0x19, 0x99a3092f }, /* int-mic */
11964 { 0x19, 0x99a3092f }, /* int-mic */
11977 { 0x19, 0x99a3094f }, /* int-mic */
11990 { 0x19, 0x99a3094f }, /* int-mic */
12004 { 0x19, 0x99a3094f }, /* int-mic */
12016 { 0x19, 0x99a3094f }, /* int-mic */
12029 { 0x19, 0x99a3094f }, /* int-mic */
12041 { 0x12, 0x99a30970 }, /* int-mic */
12338 SND_PCI_QUIRK(0x1019, 0x9859, "JP-IK LEAP W502", ALC897_FIXUP_HEADSET_MIC_PIN3),
12347 SND_PCI_QUIRK(0x1025, 0x123c, "Acer Nitro N50-600", ALC662_FIXUP_ACER_NITRO_HEADSET_MODE),
12394 SND_PCI_QUIRK(0x17aa, 0x3742, "Lenovo TianYi510Pro-14IOB", ALC897_FIXUP_HEADSET_MIC_PIN2),
12402 SND_PCI_QUIRK(0x1c6c, 0x1239, "Compaq N14JP6-V2", ALC897_FIXUP_HP_HSMIC_VERB),
12468 {.id = ALC662_FIXUP_HP_RP5800, .name = "hp-rp5800"},
12469 {.id = ALC662_FIXUP_ASUS_MODE1, .name = "asus-mode1"},
12470 {.id = ALC662_FIXUP_ASUS_MODE2, .name = "asus-mode2"},
12471 {.id = ALC662_FIXUP_ASUS_MODE3, .name = "asus-mode3"},
12472 {.id = ALC662_FIXUP_ASUS_MODE4, .name = "asus-mode4"},
12473 {.id = ALC662_FIXUP_ASUS_MODE5, .name = "asus-mode5"},
12474 {.id = ALC662_FIXUP_ASUS_MODE6, .name = "asus-mode6"},
12475 {.id = ALC662_FIXUP_ASUS_MODE7, .name = "asus-mode7"},
12476 {.id = ALC662_FIXUP_ASUS_MODE8, .name = "asus-mode8"},
12477 {.id = ALC662_FIXUP_ZOTAC_Z68, .name = "zotac-z68"},
12478 {.id = ALC662_FIXUP_INV_DMIC, .name = "inv-dmic"},
12479 {.id = ALC662_FIXUP_DELL_MIC_NO_PRESENCE, .name = "alc662-headset-multi"},
12480 {.id = ALC668_FIXUP_DELL_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
12481 {.id = ALC662_FIXUP_HEADSET_MODE, .name = "alc662-headset"},
12482 {.id = ALC668_FIXUP_HEADSET_MODE, .name = "alc668-headset"},
12486 {.id = ALC668_FIXUP_DELL_XPS13, .name = "dell-xps13"},
12487 {.id = ALC662_FIXUP_ASUS_Nx50, .name = "asus-nx50"},
12488 {.id = ALC668_FIXUP_ASUS_Nx51, .name = "asus-nx51"},
12489 {.id = ALC668_FIXUP_ASUS_G751, .name = "asus-g751"},
12490 {.id = ALC891_FIXUP_HEADSET_MODE, .name = "alc891-headset"},
12491 {.id = ALC891_FIXUP_DELL_MIC_NO_PRESENCE, .name = "alc891-headset-multi"},
12492 {.id = ALC662_FIXUP_ACER_VERITON, .name = "acer-veriton"},
12493 {.id = ALC892_FIXUP_ASROCK_MOBO, .name = "asrock-mobo"},
12494 {.id = ALC662_FIXUP_USI_HEADSET_MODE, .name = "usi-headset"},
12495 {.id = ALC662_FIXUP_LENOVO_MULTI_CODECS, .name = "dual-codecs"},
12496 {.id = ALC669_FIXUP_ACER_ASPIRE_ETHOS, .name = "aspire-ethos"},
12497 {.id = ALC897_FIXUP_UNIS_H3C_X500S, .name = "unis-h3c-x500s"},
12571 spec = codec->spec; in patch_alc662()
12573 spec->shutup = alc_eapd_shutup; in patch_alc662()
12576 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in patch_alc662()
12580 switch (codec->core.vendor_id) { in patch_alc662()
12582 spec->init_hook = alc668_restore_default_value; in patch_alc662()
12596 spec->gen.beep_nid = 0x01; in patch_alc662()
12599 codec->bus->pci && codec->bus->pci->subsystem_vendor == 0x1025 && in patch_alc662()
12600 spec->cdefine.platform_type == 1) { in patch_alc662()
12611 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc662()
12612 switch (codec->core.vendor_id) { in patch_alc662()
12654 /* ALC680 has no aa-loopback mixer */ in patch_alc680()
12716 HDA_CODEC_ENTRY(0x10ec0660, "ALC660-VD", patch_alc861vd),
12718 HDA_CODEC_ENTRY(0x10ec0862, "ALC861-VD", patch_alc861vd),
12757 MODULE_DESCRIPTION("Realtek HD-audio codec");