Lines Matching full:spec
176 struct alc_spec *spec = codec->spec; in alc_get_coef0() local
178 if (!spec->coef0) in alc_get_coef0()
179 spec->coef0 = alc_read_coef_idx(codec, 0); in alc_get_coef0()
180 return spec->coef0; in alc_get_coef0()
216 struct alc_spec *spec = codec->spec; in alc_setup_gpio() local
218 spec->gpio_mask |= mask; in alc_setup_gpio()
219 spec->gpio_dir |= mask; in alc_setup_gpio()
220 spec->gpio_data |= mask; in alc_setup_gpio()
225 struct alc_spec *spec = codec->spec; in alc_write_gpio_data() local
228 spec->gpio_data); in alc_write_gpio_data()
234 struct alc_spec *spec = codec->spec; in alc_update_gpio_data() local
235 unsigned int oldval = spec->gpio_data; in alc_update_gpio_data()
238 spec->gpio_data |= mask; in alc_update_gpio_data()
240 spec->gpio_data &= ~mask; in alc_update_gpio_data()
241 if (oldval != spec->gpio_data) in alc_update_gpio_data()
247 struct alc_spec *spec = codec->spec; in alc_write_gpio() local
249 if (!spec->gpio_mask) in alc_write_gpio()
253 AC_VERB_SET_GPIO_MASK, spec->gpio_mask); in alc_write_gpio()
255 AC_VERB_SET_GPIO_DIRECTION, spec->gpio_dir); in alc_write_gpio()
256 if (spec->gpio_write_delay) in alc_write_gpio()
306 struct alc_spec *spec = codec->spec; in alc_fix_pll() local
308 if (spec->pll_nid) in alc_fix_pll()
309 alc_update_coefex_idx(codec, spec->pll_nid, spec->pll_coef_idx, in alc_fix_pll()
310 1 << spec->pll_coef_bit, 0); in alc_fix_pll()
316 struct alc_spec *spec = codec->spec; in alc_fix_pll_init() local
317 spec->pll_nid = nid; in alc_fix_pll_init()
318 spec->pll_coef_idx = coef_idx; in alc_fix_pll_init()
319 spec->pll_coef_bit = coef_bit; in alc_fix_pll_init()
523 struct alc_spec *spec = codec->spec; in alc_shutup_pins() local
533 if (!spec->no_shutup_pins) in alc_shutup_pins()
544 struct alc_spec *spec = codec->spec; in alc_eapd_shutup() local
547 if (!spec->no_depop_delay) in alc_eapd_shutup()
578 static hda_nid_t alc_get_hp_pin(struct alc_spec *spec) in alc_get_hp_pin() argument
580 if (spec->gen.autocfg.hp_pins[0]) in alc_get_hp_pin()
581 return spec->gen.autocfg.hp_pins[0]; in alc_get_hp_pin()
582 if (spec->gen.autocfg.line_out_type == AC_JACK_HP_OUT) in alc_get_hp_pin()
583 return spec->gen.autocfg.line_out_pins[0]; in alc_get_hp_pin()
599 struct alc_spec *spec = codec->spec; in alc_fixup_sku_ignore() local
601 spec->cdefine.fixup = 1; in alc_fixup_sku_ignore()
602 spec->cdefine.sku_cfg = ALC_FIXUP_SKU_IGNORE; in alc_fixup_sku_ignore()
609 struct alc_spec *spec = codec->spec; in alc_fixup_no_depop_delay() local
612 spec->no_depop_delay = 1; in alc_fixup_no_depop_delay()
621 struct alc_spec *spec = codec->spec; in alc_auto_parse_customize_define() local
623 spec->cdefine.enable_pcbeep = 1; /* assume always enabled */ in alc_auto_parse_customize_define()
625 if (spec->cdefine.fixup) { in alc_auto_parse_customize_define()
626 ass = spec->cdefine.sku_cfg; in alc_auto_parse_customize_define()
658 spec->cdefine.port_connectivity = ass >> 30; in alc_auto_parse_customize_define()
659 spec->cdefine.enable_pcbeep = (ass & 0x100000) >> 20; in alc_auto_parse_customize_define()
660 spec->cdefine.check_sum = (ass >> 16) & 0xf; in alc_auto_parse_customize_define()
661 spec->cdefine.customization = ass >> 8; in alc_auto_parse_customize_define()
663 spec->cdefine.sku_cfg = ass; in alc_auto_parse_customize_define()
664 spec->cdefine.external_amp = (ass & 0x38) >> 3; in alc_auto_parse_customize_define()
665 spec->cdefine.platform_type = (ass & 0x4) >> 2; in alc_auto_parse_customize_define()
666 spec->cdefine.swap = (ass & 0x2) >> 1; in alc_auto_parse_customize_define()
667 spec->cdefine.override = ass & 0x1; in alc_auto_parse_customize_define()
670 nid, spec->cdefine.sku_cfg); in alc_auto_parse_customize_define()
672 spec->cdefine.port_connectivity); in alc_auto_parse_customize_define()
673 codec_dbg(codec, "SKU: enable_pcbeep=0x%x\n", spec->cdefine.enable_pcbeep); in alc_auto_parse_customize_define()
674 codec_dbg(codec, "SKU: check_sum=0x%08x\n", spec->cdefine.check_sum); in alc_auto_parse_customize_define()
675 codec_dbg(codec, "SKU: customization=0x%08x\n", spec->cdefine.customization); in alc_auto_parse_customize_define()
676 codec_dbg(codec, "SKU: external_amp=0x%x\n", spec->cdefine.external_amp); in alc_auto_parse_customize_define()
677 codec_dbg(codec, "SKU: platform_type=0x%x\n", spec->cdefine.platform_type); in alc_auto_parse_customize_define()
678 codec_dbg(codec, "SKU: swap=0x%x\n", spec->cdefine.swap); in alc_auto_parse_customize_define()
679 codec_dbg(codec, "SKU: override=0x%x\n", spec->cdefine.override); in alc_auto_parse_customize_define()
712 struct alc_spec *spec = codec->spec; in alc_subsystem_id() local
714 if (spec->cdefine.fixup) { in alc_subsystem_id()
715 ass = spec->cdefine.sku_cfg; in alc_subsystem_id()
766 if (spec->init_amp == ALC_INIT_UNDEFINED) { in alc_subsystem_id()
779 spec->init_amp = ALC_INIT_DEFAULT; in alc_subsystem_id()
796 if (!alc_get_hp_pin(spec)) { in alc_subsystem_id()
800 if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins, in alc_subsystem_id()
801 spec->gen.autocfg.line_outs)) in alc_subsystem_id()
803 spec->gen.autocfg.hp_pins[0] = nid; in alc_subsystem_id()
813 struct alc_spec *spec = codec->spec; in alc_ssid_check() local
814 if (spec->init_amp == ALC_INIT_UNDEFINED) { in alc_ssid_check()
817 spec->init_amp = ALC_INIT_DEFAULT; in alc_ssid_check()
828 struct alc_spec *spec = codec->spec; in alc_fixup_inv_dmic() local
830 spec->gen.inv_dmic_split = 1; in alc_fixup_inv_dmic()
863 struct alc_spec *spec = codec->spec; in alc_init() local
869 if (spec->init_hook) in alc_init()
870 spec->init_hook(codec); in alc_init()
872 spec->gen.skip_verbs = 1; /* applied in below */ in alc_init()
875 alc_auto_init_amp(codec, spec->init_amp); in alc_init()
885 struct alc_spec *spec = codec->spec; in alc_shutup() local
890 if (spec && spec->shutup) in alc_shutup()
891 spec->shutup(codec); in alc_shutup()
898 struct alc_spec *spec = codec->spec; in alc_reboot_notify() local
900 if (spec && spec->reboot_notify) in alc_reboot_notify()
901 spec->reboot_notify(codec); in alc_reboot_notify()
916 struct alc_spec *spec = codec->spec; in alc_suspend() local
918 if (spec && spec->power_hook) in alc_suspend()
919 spec->power_hook(codec); in alc_suspend()
927 struct alc_spec *spec = codec->spec; in alc_resume() local
929 if (!spec->no_depop_delay) in alc_resume()
1066 static int set_beep_amp(struct alc_spec *spec, hda_nid_t nid, in set_beep_amp() argument
1074 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
1101 struct alc_spec *spec = codec->spec; in has_cdefine_beep() local
1106 return spec->cdefine.enable_pcbeep; in has_cdefine_beep()
1109 #define set_beep_amp(spec, nid, idx, dir) 0 argument
1121 struct alc_spec *spec = codec->spec; in alc_parse_auto_config() local
1122 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc_parse_auto_config()
1126 spec->parse_flags); in alc_parse_auto_config()
1143 struct alc_spec *spec = kzalloc(sizeof(*spec), GFP_KERNEL); in alc_alloc_spec() local
1146 if (!spec) in alc_alloc_spec()
1148 codec->spec = spec; in alc_alloc_spec()
1149 snd_hda_gen_spec_init(&spec->gen); in alc_alloc_spec()
1150 spec->gen.mixer_nid = mixer_nid; in alc_alloc_spec()
1151 spec->gen.own_eapd_ctl = 1; in alc_alloc_spec()
1160 kfree(spec); in alc_alloc_spec()
1590 struct alc_spec *spec; in patch_alc880() local
1597 spec = codec->spec; in patch_alc880()
1598 spec->gen.need_dac_fix = 1; in patch_alc880()
1599 spec->gen.beep_nid = 0x01; in patch_alc880()
1614 if (!spec->gen.no_analog) { in patch_alc880()
1615 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc880()
1659 struct alc_spec *spec = codec->spec; in alc260_gpio1_automute() local
1661 alc_update_gpio_data(codec, 0x01, spec->gen.hp_jack_present); in alc260_gpio1_automute()
1667 struct alc_spec *spec = codec->spec; in alc260_fixup_gpio1_toggle() local
1672 spec->gen.automute_hook = alc260_gpio1_automute; in alc260_fixup_gpio1_toggle()
1673 spec->gen.detect_hp = 1; in alc260_fixup_gpio1_toggle()
1674 spec->gen.automute_speaker = 1; in alc260_fixup_gpio1_toggle()
1675 spec->gen.autocfg.hp_pins[0] = 0x0f; /* copy it for automute */ in alc260_fixup_gpio1_toggle()
1685 struct alc_spec *spec = codec->spec; in alc260_fixup_kn1() local
1705 spec->init_amp = ALC_INIT_NONE; in alc260_fixup_kn1()
1713 struct alc_spec *spec = codec->spec; in alc260_fixup_fsc_s7020() local
1715 spec->init_amp = ALC_INIT_NONE; in alc260_fixup_fsc_s7020()
1721 struct alc_spec *spec = codec->spec; in alc260_fixup_fsc_s7020_jwse() local
1723 spec->gen.add_jack_modes = 1; in alc260_fixup_fsc_s7020_jwse()
1724 spec->gen.hp_mic = 1; in alc260_fixup_fsc_s7020_jwse()
1839 struct alc_spec *spec; in patch_alc260() local
1846 spec = codec->spec; in patch_alc260()
1851 spec->gen.prefer_hp_amp = 1; in patch_alc260()
1852 spec->gen.beep_nid = 0x01; in patch_alc260()
1854 spec->shutup = alc_eapd_shutup; in patch_alc260()
1867 if (!spec->gen.no_analog) { in patch_alc260()
1868 err = set_beep_amp(spec, 0x07, 0x05, HDA_INPUT); in patch_alc260()
1951 struct alc_spec *spec = codec->spec; in alc885_fixup_macpro_gpio() local
1953 spec->gpio_write_delay = true; in alc885_fixup_macpro_gpio()
1987 struct alc_spec *spec = codec->spec; in alc889_fixup_mbp_vref() local
1999 spec->gen.keep_vref_in_automute = 1; in alc889_fixup_mbp_vref()
2007 struct alc_spec *spec = codec->spec; in alc889_fixup_mac_pins() local
2016 spec->gen.keep_vref_in_automute = 1; in alc889_fixup_mac_pins()
2056 struct alc_spec *spec = codec->spec; in alc882_fixup_no_primary_hp() local
2058 spec->gen.no_primary_hp = 1; in alc882_fixup_no_primary_hp()
2059 spec->gen.no_multi_io = 1; in alc882_fixup_no_primary_hp()
2072 struct alc_spec *spec = codec->spec; in alc_fixup_dual_codecs() local
2077 spec->gen.suppress_vmaster = 1; in alc_fixup_dual_codecs()
2079 spec->gen.suppress_auto_mute = 1; in alc_fixup_dual_codecs()
2080 spec->gen.suppress_auto_mic = 1; in alc_fixup_dual_codecs()
2082 spec->gen.mixer_nid = 0; in alc_fixup_dual_codecs()
2152 struct alc_spec *spec = codec->spec; in alc887_asus_hp_automute_hook() local
2157 if (spec->gen.hp_jack_present) in alc887_asus_hp_automute_hook()
2167 struct alc_spec *spec = codec->spec; in alc887_fixup_asus_jack() local
2171 spec->gen.hp_automute_hook = alc887_asus_hp_automute_hook; in alc887_fixup_asus_jack()
2603 struct alc_spec *spec; in patch_alc882() local
2610 spec = codec->spec; in patch_alc882()
2634 spec->gen.beep_nid = 0x01; in patch_alc882()
2641 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc882()
2642 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc882()
2781 struct alc_spec *spec; in patch_alc262() local
2788 spec = codec->spec; in patch_alc262()
2789 spec->gen.shared_mic_vref_pin = 0x18; in patch_alc262()
2791 spec->shutup = alc_eapd_shutup; in patch_alc262()
2810 spec->gen.beep_nid = 0x01; in patch_alc262()
2817 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc262()
2818 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc262()
2934 struct alc_spec *spec; in patch_alc268() local
2942 spec = codec->spec; in patch_alc268()
2944 spec->gen.beep_nid = 0x01; in patch_alc268()
2946 spec->shutup = alc_eapd_shutup; in patch_alc268()
2958 if (err > 0 && !spec->gen.no_analog && in patch_alc268()
2959 spec->gen.autocfg.speaker_pins[0] != 0x1d) { in patch_alc268()
2961 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, in patch_alc268()
3030 struct alc_spec *spec = codec->spec; in alc269_parse_auto_config() local
3033 switch (spec->codec_variant) { in alc269_parse_auto_config()
3098 struct alc_spec *spec = codec->spec; in alc_disable_headset_jack_key() local
3100 if (!spec->has_hs_key) in alc_disable_headset_jack_key()
3124 struct alc_spec *spec = codec->spec; in alc_enable_headset_jack_key() local
3126 if (!spec->has_hs_key) in alc_enable_headset_jack_key()
3151 struct alc_spec *spec = codec->spec; in alc_fixup_headset_jack() local
3155 spec->has_hs_key = 1; in alc_fixup_headset_jack()
3174 struct alc_spec *spec = codec->spec; in alc269_shutup() local
3176 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_shutup()
3178 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_shutup()
3225 struct alc_spec *spec = codec->spec; in alc282_init() local
3226 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc282_init()
3262 struct alc_spec *spec = codec->spec; in alc282_shutup() local
3263 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc282_shutup()
3285 if (!spec->no_shutup_pins) in alc282_shutup()
3341 struct alc_spec *spec = codec->spec; in alc283_init() local
3342 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc283_init()
3377 struct alc_spec *spec = codec->spec; in alc283_shutup() local
3378 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc283_shutup()
3399 if (!spec->no_shutup_pins) in alc283_shutup()
3414 struct alc_spec *spec = codec->spec; in alc256_init() local
3415 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc256_init()
3429 if (spec->ultra_low_power) { in alc256_init()
3441 if (hp_pin_sense || spec->ultra_low_power) in alc256_init()
3447 if (hp_pin_sense || spec->ultra_low_power) in alc256_init()
3465 struct alc_spec *spec = codec->spec; in alc256_shutup() local
3466 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc256_shutup()
3480 if (hp_pin_sense || spec->ultra_low_power) in alc256_shutup()
3491 if (!spec->no_shutup_pins) in alc256_shutup()
3495 if (hp_pin_sense || spec->ultra_low_power) in alc256_shutup()
3500 if (spec->ultra_low_power) { in alc256_shutup()
3513 struct alc_spec *spec = codec->spec; in alc225_init() local
3514 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc225_init()
3528 if (spec->ultra_low_power) { in alc225_init()
3535 if (hp1_pin_sense || spec->ultra_low_power) in alc225_init()
3542 if (hp1_pin_sense || hp2_pin_sense || spec->ultra_low_power) in alc225_init()
3545 if (hp1_pin_sense || spec->ultra_low_power) in alc225_init()
3552 if (hp1_pin_sense || hp2_pin_sense || spec->ultra_low_power) in alc225_init()
3561 struct alc_spec *spec = codec->spec; in alc225_shutup() local
3562 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc225_shutup()
3578 if (hp1_pin_sense || spec->ultra_low_power) in alc225_shutup()
3585 if (hp1_pin_sense || hp2_pin_sense || spec->ultra_low_power) in alc225_shutup()
3588 if (hp1_pin_sense || spec->ultra_low_power) in alc225_shutup()
3595 if (hp1_pin_sense || hp2_pin_sense || spec->ultra_low_power) in alc225_shutup()
3600 if (spec->ultra_low_power) { in alc225_shutup()
3615 struct alc_spec *spec = codec->spec; in alc_default_init() local
3616 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc_default_init()
3644 struct alc_spec *spec = codec->spec; in alc_default_shutup() local
3645 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc_default_shutup()
3664 if (!spec->no_shutup_pins) in alc_default_shutup()
3677 struct alc_spec *spec = codec->spec; in alc294_hp_init() local
3678 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc294_hp_init()
3689 if (!spec->no_shutup_pins) in alc294_hp_init()
3709 struct alc_spec *spec = codec->spec; in alc294_init() local
3712 if (!spec->done_hp_init || in alc294_init()
3715 spec->done_hp_init = true; in alc294_init()
3815 struct alc_spec *spec = codec->spec; in alc269_suspend() local
3817 if (spec->has_alc5505_dsp) in alc269_suspend()
3824 struct alc_spec *spec = codec->spec; in alc269_resume() local
3826 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_resume()
3828 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_resume()
3835 if (spec->codec_variant == ALC269_TYPE_ALC269VB) in alc269_resume()
3837 if (spec->codec_variant == ALC269_TYPE_ALC269VB && in alc269_resume()
3849 if (spec->gpio_data) in alc269_resume()
3852 if (spec->has_alc5505_dsp) in alc269_resume()
3862 struct alc_spec *spec = codec->spec; in alc269_fixup_pincfg_no_hp_to_lineout() local
3865 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc269_fixup_pincfg_no_hp_to_lineout()
3891 struct alc_spec *spec = codec->spec; in alc269_fixup_headset_mic() local
3894 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc269_fixup_headset_mic()
3918 struct alc_spec *spec = codec->spec; in alc269_fixup_pcm_44k() local
3926 spec->gen.stream_analog_playback = &alc269_44k_pcm_analog_playback; in alc269_fixup_pcm_44k()
3927 spec->gen.stream_analog_capture = &alc269_44k_pcm_analog_capture; in alc269_fixup_pcm_44k()
3953 struct alc_spec *spec = codec->spec; in alc269_fixup_quanta_mute() local
3956 spec->gen.automute_hook = alc269_quanta_automute; in alc269_fixup_quanta_mute()
3962 struct alc_spec *spec = codec->spec; in alc269_x101_hp_automute_hook() local
3967 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc269_x101_hp_automute_hook()
4045 struct alc_spec *spec = codec->spec; in alc269_fixup_x101_headset_mic() local
4047 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc269_fixup_x101_headset_mic()
4048 spec->gen.hp_automute_hook = alc269_x101_hp_automute_hook; in alc269_fixup_x101_headset_mic()
4075 struct alc_spec *spec = codec->spec; in vref_mute_led_set() local
4077 alc_update_vref_led(codec, spec->mute_led_nid, in vref_mute_led_set()
4078 spec->mute_led_polarity, brightness); in vref_mute_led_set()
4087 struct alc_spec *spec = codec->spec; in led_power_filter() local
4090 (nid != spec->mute_led_nid && nid != spec->cap_mute_led_nid)) in led_power_filter()
4103 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_mute_led() local
4115 spec->mute_led_polarity = pol; in alc269_fixup_hp_mute_led()
4116 spec->mute_led_nid = pin - 0x0a + 0x18; in alc269_fixup_hp_mute_led()
4120 "Detected mute LED for %x:%d\n", spec->mute_led_nid, in alc269_fixup_hp_mute_led()
4121 spec->mute_led_polarity); in alc269_fixup_hp_mute_led()
4130 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_mute_led_micx() local
4133 spec->mute_led_polarity = 0; in alc269_fixup_hp_mute_led_micx()
4134 spec->mute_led_nid = pin; in alc269_fixup_hp_mute_led_micx()
4172 struct alc_spec *spec = codec->spec; in gpio_mute_led_set() local
4174 alc_update_gpio_led(codec, spec->gpio_mute_led_mask, in gpio_mute_led_set()
4175 spec->mute_led_polarity, !brightness); in gpio_mute_led_set()
4184 struct alc_spec *spec = codec->spec; in micmute_led_set() local
4186 alc_update_gpio_led(codec, spec->gpio_mic_led_mask, in micmute_led_set()
4187 spec->micmute_led_polarity, !brightness); in micmute_led_set()
4197 struct alc_spec *spec = codec->spec; in alc_fixup_hp_gpio_led() local
4204 spec->gpio_mute_led_mask = mute_mask; in alc_fixup_hp_gpio_led()
4208 spec->gpio_mic_led_mask = micmute_mask; in alc_fixup_hp_gpio_led()
4242 struct alc_spec *spec = codec->spec; in vref_micmute_led_set() local
4244 alc_update_vref_led(codec, spec->cap_mute_led_nid, in vref_micmute_led_set()
4245 spec->micmute_led_polarity, brightness); in vref_micmute_led_set()
4252 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_gpio_mic1_led() local
4259 spec->gpio_mask |= 0x10; in alc269_fixup_hp_gpio_mic1_led()
4260 spec->gpio_dir |= 0x10; in alc269_fixup_hp_gpio_mic1_led()
4261 spec->cap_mute_led_nid = 0x18; in alc269_fixup_hp_gpio_mic1_led()
4270 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_gpio4() local
4274 spec->cap_mute_led_nid = 0x18; in alc280_fixup_hp_gpio4()
4296 struct alc_spec *spec = codec->spec; in coef_mute_led_set() local
4298 alc_update_coef_led(codec, &spec->mute_led_coef, in coef_mute_led_set()
4299 spec->mute_led_polarity, brightness); in coef_mute_led_set()
4307 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_mute_led_coefbit() local
4310 spec->mute_led_polarity = 0; in alc285_fixup_hp_mute_led_coefbit()
4311 spec->mute_led_coef.idx = 0x0b; in alc285_fixup_hp_mute_led_coefbit()
4312 spec->mute_led_coef.mask = 1 << 3; in alc285_fixup_hp_mute_led_coefbit()
4313 spec->mute_led_coef.on = 1 << 3; in alc285_fixup_hp_mute_led_coefbit()
4314 spec->mute_led_coef.off = 0; in alc285_fixup_hp_mute_led_coefbit()
4323 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_mute_led_coefbit() local
4326 spec->mute_led_polarity = 0; in alc236_fixup_hp_mute_led_coefbit()
4327 spec->mute_led_coef.idx = 0x34; in alc236_fixup_hp_mute_led_coefbit()
4328 spec->mute_led_coef.mask = 1 << 5; in alc236_fixup_hp_mute_led_coefbit()
4329 spec->mute_led_coef.on = 0; in alc236_fixup_hp_mute_led_coefbit()
4330 spec->mute_led_coef.off = 1 << 5; in alc236_fixup_hp_mute_led_coefbit()
4340 struct alc_spec *spec = codec->spec; in coef_micmute_led_set() local
4342 alc_update_coef_led(codec, &spec->mic_led_coef, in coef_micmute_led_set()
4343 spec->micmute_led_polarity, brightness); in coef_micmute_led_set()
4350 struct alc_spec *spec = codec->spec; in alc285_fixup_hp_coef_micmute_led() local
4353 spec->mic_led_coef.idx = 0x19; in alc285_fixup_hp_coef_micmute_led()
4354 spec->mic_led_coef.mask = 1 << 13; in alc285_fixup_hp_coef_micmute_led()
4355 spec->mic_led_coef.on = 1 << 13; in alc285_fixup_hp_coef_micmute_led()
4356 spec->mic_led_coef.off = 0; in alc285_fixup_hp_coef_micmute_led()
4364 struct alc_spec *spec = codec->spec; in alc236_fixup_hp_coef_micmute_led() local
4367 spec->mic_led_coef.idx = 0x35; in alc236_fixup_hp_coef_micmute_led()
4368 spec->mic_led_coef.mask = 3 << 2; in alc236_fixup_hp_coef_micmute_led()
4369 spec->mic_led_coef.on = 2 << 2; in alc236_fixup_hp_coef_micmute_led()
4370 spec->mic_led_coef.off = 1 << 2; in alc236_fixup_hp_coef_micmute_led()
4393 struct alc_spec *spec = codec->spec; in gpio2_mic_hotkey_event() local
4397 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 1); in gpio2_mic_hotkey_event()
4398 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
4399 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 0); in gpio2_mic_hotkey_event()
4400 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
4405 struct alc_spec *spec = codec->spec; in alc_register_micmute_input_device() local
4408 spec->kb_dev = input_allocate_device(); in alc_register_micmute_input_device()
4409 if (!spec->kb_dev) { in alc_register_micmute_input_device()
4414 spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX] = KEY_MICMUTE; in alc_register_micmute_input_device()
4416 spec->kb_dev->name = "Microphone Mute Button"; in alc_register_micmute_input_device()
4417 spec->kb_dev->evbit[0] = BIT_MASK(EV_KEY); in alc_register_micmute_input_device()
4418 spec->kb_dev->keycodesize = sizeof(spec->alc_mute_keycode_map[0]); in alc_register_micmute_input_device()
4419 spec->kb_dev->keycodemax = ARRAY_SIZE(spec->alc_mute_keycode_map); in alc_register_micmute_input_device()
4420 spec->kb_dev->keycode = spec->alc_mute_keycode_map; in alc_register_micmute_input_device()
4421 for (i = 0; i < ARRAY_SIZE(spec->alc_mute_keycode_map); i++) in alc_register_micmute_input_device()
4422 set_bit(spec->alc_mute_keycode_map[i], spec->kb_dev->keybit); in alc_register_micmute_input_device()
4424 if (input_register_device(spec->kb_dev)) { in alc_register_micmute_input_device()
4426 input_free_device(spec->kb_dev); in alc_register_micmute_input_device()
4427 spec->kb_dev = NULL; in alc_register_micmute_input_device()
4442 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_gpio2_mic_hotkey() local
4446 spec->init_amp = ALC_INIT_DEFAULT; in alc280_fixup_hp_gpio2_mic_hotkey()
4450 spec->gpio_mask |= 0x06; in alc280_fixup_hp_gpio2_mic_hotkey()
4451 spec->gpio_dir |= 0x02; in alc280_fixup_hp_gpio2_mic_hotkey()
4452 spec->gpio_data |= 0x02; in alc280_fixup_hp_gpio2_mic_hotkey()
4460 if (!spec->kb_dev) in alc280_fixup_hp_gpio2_mic_hotkey()
4465 input_unregister_device(spec->kb_dev); in alc280_fixup_hp_gpio2_mic_hotkey()
4466 spec->kb_dev = NULL; in alc280_fixup_hp_gpio2_mic_hotkey()
4476 struct alc_spec *spec = codec->spec; in alc233_fixup_lenovo_line2_mic_hotkey() local
4480 spec->init_amp = ALC_INIT_DEFAULT; in alc233_fixup_lenovo_line2_mic_hotkey()
4489 if (!spec->kb_dev) in alc233_fixup_lenovo_line2_mic_hotkey()
4494 input_unregister_device(spec->kb_dev); in alc233_fixup_lenovo_line2_mic_hotkey()
4495 spec->kb_dev = NULL; in alc233_fixup_lenovo_line2_mic_hotkey()
4506 struct alc_spec *spec = codec->spec; in alc269_fixup_hp_line1_mic1_led() local
4510 spec->cap_mute_led_nid = 0x18; in alc269_fixup_hp_line1_mic1_led()
4528 struct alc_spec *spec = codec->spec; in alc_headset_mode_unplugged() local
4603 if (spec->no_internal_mic_pin) { in alc_headset_mode_unplugged()
5135 struct alc_spec *spec = codec->spec; in alc_determine_headset_type() local
5174 if (spec->no_internal_mic_pin) { in alc_determine_headset_type()
5326 spec->current_headset_type = is_ctia ? ALC_HEADSET_TYPE_CTIA : ALC_HEADSET_TYPE_OMTP; in alc_determine_headset_type()
5331 struct alc_spec *spec = codec->spec; in alc_update_headset_mode() local
5333 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in alc_update_headset_mode()
5334 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc_update_headset_mode()
5340 else if (mux_pin == spec->headset_mic_pin) in alc_update_headset_mode()
5342 else if (mux_pin == spec->headphone_mic_pin) in alc_update_headset_mode()
5347 if (new_headset_mode == spec->current_headset_mode) { in alc_update_headset_mode()
5355 spec->current_headset_mode = ALC_HEADSET_MODE_UNKNOWN; in alc_update_headset_mode()
5356 spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN; in alc_update_headset_mode()
5357 spec->gen.hp_jack_present = false; in alc_update_headset_mode()
5360 if (spec->current_headset_type == ALC_HEADSET_TYPE_UNKNOWN) in alc_update_headset_mode()
5362 if (spec->current_headset_type == ALC_HEADSET_TYPE_CTIA) in alc_update_headset_mode()
5364 else if (spec->current_headset_type == ALC_HEADSET_TYPE_OMTP) in alc_update_headset_mode()
5366 spec->gen.hp_jack_present = true; in alc_update_headset_mode()
5369 alc_headset_mode_mic_in(codec, hp_pin, spec->headphone_mic_pin); in alc_update_headset_mode()
5370 spec->gen.hp_jack_present = false; in alc_update_headset_mode()
5374 spec->gen.hp_jack_present = true; in alc_update_headset_mode()
5380 if (spec->headphone_mic_pin && spec->headphone_mic_pin != hp_pin) in alc_update_headset_mode()
5381 snd_hda_set_pin_ctl_cache(codec, spec->headphone_mic_pin, in alc_update_headset_mode()
5384 spec->current_headset_mode = new_headset_mode; in alc_update_headset_mode()
5405 struct alc_spec *spec = codec->spec; in alc_probe_headset_mode() local
5406 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc_probe_headset_mode()
5410 if (cfg->inputs[i].is_headset_mic && !spec->headset_mic_pin) in alc_probe_headset_mode()
5411 spec->headset_mic_pin = cfg->inputs[i].pin; in alc_probe_headset_mode()
5412 if (cfg->inputs[i].is_headphone_mic && !spec->headphone_mic_pin) in alc_probe_headset_mode()
5413 spec->headphone_mic_pin = cfg->inputs[i].pin; in alc_probe_headset_mode()
5416 WARN_ON(spec->gen.cap_sync_hook); in alc_probe_headset_mode()
5417 spec->gen.cap_sync_hook = alc_update_headset_mode_hook; in alc_probe_headset_mode()
5418 spec->gen.automute_hook = alc_update_headset_mode; in alc_probe_headset_mode()
5419 spec->gen.hp_automute_hook = alc_update_headset_jack_cb; in alc_probe_headset_mode()
5425 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode() local
5429 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC | HDA_PINCFG_HEADPHONE_MIC; in alc_fixup_headset_mode()
5436 spec->current_headset_mode = ALC_HEADSET_MODE_UNKNOWN; in alc_fixup_headset_mode()
5437 spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN; in alc_fixup_headset_mode()
5448 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_no_hp_mic() local
5449 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_no_hp_mic()
5499 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_alc255_no_hp_mic() local
5500 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_alc255_no_hp_mic()
5510 struct alc_spec *spec = codec->spec; in alc288_update_headset_jack_cb() local
5514 alc_update_gpio_data(codec, 0x40, spec->gen.hp_jack_present); in alc288_update_headset_jack_cb()
5522 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_dell_alc288() local
5524 spec->gpio_mask |= 0x40; in alc_fixup_headset_mode_dell_alc288()
5525 spec->gpio_dir |= 0x40; in alc_fixup_headset_mode_dell_alc288()
5526 spec->gen.hp_automute_hook = alc288_update_headset_jack_cb; in alc_fixup_headset_mode_dell_alc288()
5534 struct alc_spec *spec = codec->spec; in alc_fixup_auto_mute_via_amp() local
5535 spec->gen.auto_mute_via_amp = 1; in alc_fixup_auto_mute_via_amp()
5543 struct alc_spec *spec = codec->spec; in alc_fixup_no_shutup() local
5544 spec->no_shutup_pins = 1; in alc_fixup_no_shutup()
5552 struct alc_spec *spec = codec->spec; in alc_fixup_disable_aamix() local
5554 spec->gen.mixer_nid = 0; in alc_fixup_disable_aamix()
5567 struct alc_spec *spec = codec->spec; in alc_fixup_tpt440_dock() local
5570 spec->reboot_notify = snd_hda_gen_reboot_notify; /* reduce noise */ in alc_fixup_tpt440_dock()
5571 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc_fixup_tpt440_dock()
5585 struct alc_spec *spec = codec->spec; in alc_fixup_tpt470_dock() local
5588 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in alc_fixup_tpt470_dock()
5611 struct alc_spec *spec = codec->spec; in alc_fixup_tpt470_dacs() local
5614 spec->gen.preferred_dacs = preferred_pairs; in alc_fixup_tpt470_dacs()
5619 struct alc_spec *spec = codec->spec; in alc_shutup_dell_xps13() local
5620 int hp_pin = alc_get_hp_pin(spec); in alc_shutup_dell_xps13()
5631 struct alc_spec *spec = codec->spec; in alc_fixup_dell_xps13() local
5632 struct hda_input_mux *imux = &spec->gen.input_mux; in alc_fixup_dell_xps13()
5641 spec->shutup = alc_shutup_dell_xps13; in alc_fixup_dell_xps13()
5646 if (spec->gen.imux_pins[i] == 0x12) { in alc_fixup_dell_xps13()
5647 spec->gen.cur_mux[0] = i; in alc_fixup_dell_xps13()
5658 struct alc_spec *spec = codec->spec; in alc_fixup_headset_mode_alc662() local
5661 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc_fixup_headset_mode_alc662()
5662 spec->gen.hp_mic = 1; /* Mic-in is same pin as headphone */ in alc_fixup_headset_mode_alc662()
5686 struct alc_spec *spec = codec->spec; in find_ext_mic_pin() local
5687 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in find_ext_mic_pin()
5709 struct alc_spec *spec = codec->spec; in alc271_hp_gate_mic_jack() local
5713 int hp_pin = alc_get_hp_pin(spec); in alc271_hp_gate_mic_jack()
5725 struct alc_spec *spec = codec->spec; in alc269_fixup_limit_int_mic_boost() local
5726 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc269_fixup_limit_int_mic_boost()
5756 struct alc_spec *spec = codec->spec; in alc283_hp_automute_hook() local
5762 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc283_hp_automute_hook()
5772 struct alc_spec *spec = codec->spec; in alc283_fixup_chromebook() local
5778 spec->gen.mixer_nid = 0; in alc283_fixup_chromebook()
5793 struct alc_spec *spec = codec->spec; in alc283_fixup_sense_combo_jack() local
5797 spec->gen.hp_automute_hook = alc283_hp_automute_hook; in alc283_fixup_sense_combo_jack()
5810 struct alc_spec *spec = codec->spec; in asus_tx300_automute() local
5813 spec->gen.mute_bits |= (1ULL << 0x14); in asus_tx300_automute()
5819 struct alc_spec *spec = codec->spec; in alc282_fixup_asus_tx300() local
5827 spec->init_amp = ALC_INIT_DEFAULT; in alc282_fixup_asus_tx300()
5831 spec->gen.auto_mute_via_amp = 1; in alc282_fixup_asus_tx300()
5832 spec->gen.automute_hook = asus_tx300_automute; in alc282_fixup_asus_tx300()
5837 spec->init_amp = ALC_INIT_DEFAULT; in alc282_fixup_asus_tx300()
5904 struct alc_spec *spec = codec->spec; in alc280_hp_gpio4_automute_hook() local
5908 alc_update_gpio_led(codec, 0x10, spec->mute_led_polarity, in alc280_hp_gpio4_automute_hook()
5909 !spec->gen.hp_jack_present); in alc280_hp_gpio4_automute_hook()
5922 struct alc_spec *spec = codec->spec; in alc280_fixup_hp_9480m() local
5927 spec->gpio_mask |= 0x10; in alc280_fixup_hp_9480m()
5928 spec->gpio_dir |= 0x10; in alc280_fixup_hp_9480m()
5929 spec->gen.hp_automute_hook = alc280_hp_gpio4_automute_hook; in alc280_fixup_hp_9480m()
5937 struct alc_spec *spec = codec->spec; in alc275_fixup_gpio4_off() local
5940 spec->gpio_mask |= 0x04; in alc275_fixup_gpio4_off()
5941 spec->gpio_dir |= 0x04; in alc275_fixup_gpio4_off()
5959 struct alc_spec *spec = codec->spec; in alc285_fixup_thinkpad_x1_gen7() local
5964 spec->gen.preferred_dacs = preferred_pairs; in alc285_fixup_thinkpad_x1_gen7()
6016 struct alc_spec *spec = codec->spec; in alc274_fixup_bind_dacs() local
6025 spec->gen.preferred_dacs = preferred_pairs; in alc274_fixup_bind_dacs()
6026 spec->gen.auto_mute_via_amp = 1; in alc274_fixup_bind_dacs()
6037 struct alc_spec *spec = codec->spec; in alc289_fixup_asus_ga401() local
6040 spec->gen.preferred_dacs = preferred_pairs; in alc289_fixup_asus_ga401()
6041 spec->gen.obey_preferred_dacs = 1; in alc289_fixup_asus_ga401()
6079 struct alc_spec *spec = codec->spec; in alc295_fixup_chromebook() local
6083 spec->ultra_low_power = true; in alc295_fixup_chromebook()
6155 struct alc_spec *spec = codec->spec; in alc_fixup_no_int_mic() local
6161 spec->no_internal_mic_pin = true; in alc_fixup_no_int_mic()
8748 struct alc_spec *spec = codec->spec; in alc269_fill_coef() local
8751 if (spec->codec_variant != ALC269_TYPE_ALC269VB) in alc269_fill_coef()
8790 struct alc_spec *spec; in patch_alc269() local
8797 spec = codec->spec; in patch_alc269()
8798 spec->gen.shared_mic_vref_pin = 0x18; in patch_alc269()
8805 spec->shutup = alc_default_shutup; in patch_alc269()
8806 spec->init_hook = alc_default_init; in patch_alc269()
8810 spec->codec_variant = ALC269_TYPE_ALC269VA; in patch_alc269()
8815 spec->cdefine.platform_type == 1) in patch_alc269()
8817 spec->codec_variant = ALC269_TYPE_ALC269VB; in patch_alc269()
8824 spec->codec_variant = ALC269_TYPE_ALC269VC; in patch_alc269()
8827 spec->codec_variant = ALC269_TYPE_ALC269VD; in patch_alc269()
8834 spec->shutup = alc269_shutup; in patch_alc269()
8835 spec->init_hook = alc269_fill_coef; in patch_alc269()
8841 spec->codec_variant = ALC269_TYPE_ALC280; in patch_alc269()
8844 spec->codec_variant = ALC269_TYPE_ALC282; in patch_alc269()
8845 spec->shutup = alc282_shutup; in patch_alc269()
8846 spec->init_hook = alc282_init; in patch_alc269()
8850 spec->codec_variant = ALC269_TYPE_ALC283; in patch_alc269()
8851 spec->shutup = alc283_shutup; in patch_alc269()
8852 spec->init_hook = alc283_init; in patch_alc269()
8856 spec->codec_variant = ALC269_TYPE_ALC284; in patch_alc269()
8859 spec->codec_variant = ALC269_TYPE_ALC293; in patch_alc269()
8863 spec->codec_variant = ALC269_TYPE_ALC286; in patch_alc269()
8866 spec->codec_variant = ALC269_TYPE_ALC298; in patch_alc269()
8870 spec->codec_variant = ALC269_TYPE_ALC255; in patch_alc269()
8871 spec->shutup = alc256_shutup; in patch_alc269()
8872 spec->init_hook = alc256_init; in patch_alc269()
8876 spec->codec_variant = ALC269_TYPE_ALC256; in patch_alc269()
8877 spec->shutup = alc256_shutup; in patch_alc269()
8878 spec->init_hook = alc256_init; in patch_alc269()
8879 spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */ in patch_alc269()
8882 spec->codec_variant = ALC269_TYPE_ALC257; in patch_alc269()
8883 spec->shutup = alc256_shutup; in patch_alc269()
8884 spec->init_hook = alc256_init; in patch_alc269()
8885 spec->gen.mixer_nid = 0; in patch_alc269()
8892 spec->codec_variant = ALC269_TYPE_ALC215; in patch_alc269()
8893 spec->shutup = alc225_shutup; in patch_alc269()
8894 spec->init_hook = alc225_init; in patch_alc269()
8895 spec->gen.mixer_nid = 0; in patch_alc269()
8900 spec->codec_variant = ALC269_TYPE_ALC225; in patch_alc269()
8901 spec->shutup = alc225_shutup; in patch_alc269()
8902 spec->init_hook = alc225_init; in patch_alc269()
8903 spec->gen.mixer_nid = 0; /* no loopback on ALC225, ALC295 and ALC299 */ in patch_alc269()
8908 spec->codec_variant = ALC269_TYPE_ALC294; in patch_alc269()
8909 spec->gen.mixer_nid = 0; /* ALC2x4 does not have any loopback mixer path */ in patch_alc269()
8911 spec->init_hook = alc294_init; in patch_alc269()
8914 spec->codec_variant = ALC269_TYPE_ALC300; in patch_alc269()
8915 spec->gen.mixer_nid = 0; /* no loopback on ALC300 */ in patch_alc269()
8918 spec->codec_variant = ALC269_TYPE_ALC623; in patch_alc269()
8924 spec->codec_variant = ALC269_TYPE_ALC700; in patch_alc269()
8925 spec->gen.mixer_nid = 0; /* ALC700 does not have any loopback mixer path */ in patch_alc269()
8927 spec->init_hook = alc294_init; in patch_alc269()
8933 spec->has_alc5505_dsp = 1; in patch_alc269()
8934 spec->init_hook = alc5505_dsp_init; in patch_alc269()
8950 spec->gen.beep_nid = 0x01; in patch_alc269()
8957 if (!spec->gen.no_analog && spec->gen.beep_nid && spec->gen.mixer_nid) { in patch_alc269()
8958 err = set_beep_amp(spec, spec->gen.mixer_nid, 0x04, HDA_INPUT); in patch_alc269()
8996 struct alc_spec *spec = codec->spec; in alc861_fixup_asus_amp_vref_0f() local
9006 spec->gen.keep_vref_in_automute = 1; in alc861_fixup_asus_amp_vref_0f()
9068 struct alc_spec *spec; in patch_alc861() local
9075 spec = codec->spec; in patch_alc861()
9077 spec->gen.beep_nid = 0x23; in patch_alc861()
9080 spec->power_hook = alc_power_eapd; in patch_alc861()
9093 if (!spec->gen.no_analog) { in patch_alc861()
9094 err = set_beep_amp(spec, 0x23, 0, HDA_OUTPUT); in patch_alc861()
9141 struct alc_spec *spec = codec->spec; in alc660vd_fixup_asus_gpio1() local
9144 spec->gpio_mask |= 0x02; in alc660vd_fixup_asus_gpio1()
9170 struct alc_spec *spec; in patch_alc861vd() local
9177 spec = codec->spec; in patch_alc861vd()
9179 spec->gen.beep_nid = 0x23; in patch_alc861vd()
9181 spec->shutup = alc_eapd_shutup; in patch_alc861vd()
9193 if (!spec->gen.no_analog) { in patch_alc861vd()
9194 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc861vd()
9267 struct alc_spec *spec = codec->spec; in alc_fixup_bass_chmap() local
9268 spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps; in alc_fixup_bass_chmap()
9277 struct alc_spec *spec = codec->spec; in gpio_led_power_filter() local
9278 if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data) in gpio_led_power_filter()
9286 struct alc_spec *spec = codec->spec; in alc662_fixup_led_gpio1() local
9290 spec->mute_led_polarity = 1; in alc662_fixup_led_gpio1()
9298 struct alc_spec *spec = codec->spec; in alc662_usi_automute_hook() local
9303 vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0; in alc662_usi_automute_hook()
9312 struct alc_spec *spec = codec->spec; in alc662_fixup_usi_headset_mic() local
9314 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc662_fixup_usi_headset_mic()
9315 spec->gen.hp_automute_hook = alc662_usi_automute_hook; in alc662_fixup_usi_headset_mic()
9363 struct alc_spec *spec = codec->spec; in alc671_fixup_hp_headset_mic2() local
9373 spec->gen.mixer_nid = 0; in alc671_fixup_hp_headset_mic2()
9374 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; in alc671_fixup_hp_headset_mic2()
10053 struct alc_spec *spec; in patch_alc662() local
10060 spec = codec->spec; in patch_alc662()
10062 spec->shutup = alc_eapd_shutup; in patch_alc662()
10065 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; in patch_alc662()
10071 spec->init_hook = alc668_restore_default_value; in patch_alc662()
10085 spec->gen.beep_nid = 0x01; in patch_alc662()
10089 spec->cdefine.platform_type == 1) { in patch_alc662()
10100 if (!spec->gen.no_analog && spec->gen.beep_nid) { in patch_alc662()
10103 err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); in patch_alc662()
10109 err = set_beep_amp(spec, 0x0b, 0x04, HDA_INPUT); in patch_alc662()
10112 err = set_beep_amp(spec, 0x0b, 0x03, HDA_INPUT); in patch_alc662()