Lines Matching refs:hp_pin
3372 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc282_init() local
3378 if (!hp_pin) in alc282_init()
3380 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc282_init()
3390 snd_hda_codec_write(codec, hp_pin, 0, in alc282_init()
3396 snd_hda_codec_write(codec, hp_pin, 0, in alc282_init()
3409 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc282_shutup() local
3413 if (!hp_pin) { in alc282_shutup()
3418 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc282_shutup()
3425 snd_hda_codec_write(codec, hp_pin, 0, in alc282_shutup()
3432 snd_hda_codec_write(codec, hp_pin, 0, in alc282_shutup()
3488 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc283_init() local
3493 if (!hp_pin) in alc283_init()
3497 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc283_init()
3503 snd_hda_codec_write(codec, hp_pin, 0, in alc283_init()
3509 snd_hda_codec_write(codec, hp_pin, 0, in alc283_init()
3524 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc283_shutup() local
3527 if (!hp_pin) { in alc283_shutup()
3532 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc283_shutup()
3539 snd_hda_codec_write(codec, hp_pin, 0, in alc283_shutup()
3546 snd_hda_codec_write(codec, hp_pin, 0, in alc283_shutup()
3561 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc256_init() local
3564 if (!hp_pin) in alc256_init()
3565 hp_pin = 0x21; in alc256_init()
3569 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc256_init()
3584 snd_hda_codec_write(codec, hp_pin, 0, in alc256_init()
3590 snd_hda_codec_write(codec, hp_pin, 0, in alc256_init()
3612 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc256_shutup() local
3615 if (!hp_pin) in alc256_shutup()
3616 hp_pin = 0x21; in alc256_shutup()
3618 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc256_shutup()
3623 snd_hda_codec_write(codec, hp_pin, 0, in alc256_shutup()
3639 snd_hda_codec_write(codec, hp_pin, 0, in alc256_shutup()
3661 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc225_init() local
3664 if (!hp_pin) in alc225_init()
3665 hp_pin = 0x21; in alc225_init()
3668 hp1_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc225_init()
3683 snd_hda_codec_write(codec, hp_pin, 0, in alc225_init()
3693 snd_hda_codec_write(codec, hp_pin, 0, in alc225_init()
3709 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc225_shutup() local
3712 if (!hp_pin) in alc225_shutup()
3713 hp_pin = 0x21; in alc225_shutup()
3719 hp1_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc225_shutup()
3726 snd_hda_codec_write(codec, hp_pin, 0, in alc225_shutup()
3736 snd_hda_codec_write(codec, hp_pin, 0, in alc225_shutup()
3763 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc_default_init() local
3766 if (!hp_pin) in alc_default_init()
3771 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc_default_init()
3776 snd_hda_codec_write(codec, hp_pin, 0, in alc_default_init()
3782 snd_hda_codec_write(codec, hp_pin, 0, in alc_default_init()
3792 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc_default_shutup() local
3795 if (!hp_pin) { in alc_default_shutup()
3800 hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); in alc_default_shutup()
3805 snd_hda_codec_write(codec, hp_pin, 0, in alc_default_shutup()
3812 snd_hda_codec_write(codec, hp_pin, 0, in alc_default_shutup()
3825 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc294_hp_init() local
3828 if (!hp_pin) in alc294_hp_init()
3831 snd_hda_codec_write(codec, hp_pin, 0, in alc294_hp_init()
3837 snd_hda_codec_write(codec, hp_pin, 0, in alc294_hp_init()
4945 static void alc_headset_mode_mic_in(struct hda_codec *codec, hda_nid_t hp_pin, in alc_headset_mode_mic_in() argument
5008 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5017 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5025 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5032 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5039 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5044 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5050 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5059 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5064 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5076 snd_hda_set_pin_ctl_cache(codec, hp_pin, 0); in alc_headset_mode_mic_in()
5630 hda_nid_t hp_pin = alc_get_hp_pin(spec); in alc_update_headset_mode() local
5634 if (!snd_hda_jack_detect(codec, hp_pin)) in alc_update_headset_mode()
5665 alc_headset_mode_mic_in(codec, hp_pin, spec->headphone_mic_pin); in alc_update_headset_mode()
5674 snd_hda_set_pin_ctl_cache(codec, hp_pin, in alc_update_headset_mode()
5676 if (spec->headphone_mic_pin && spec->headphone_mic_pin != hp_pin) in alc_update_headset_mode()
5931 int hp_pin = alc_get_hp_pin(spec); in alc_shutup_dell_xps13() local
5934 snd_hda_codec_write(codec, hp_pin, 0, in alc_shutup_dell_xps13()
6024 int hp_pin = alc_get_hp_pin(spec); in alc271_hp_gate_mic_jack() local
6026 if (snd_BUG_ON(!mic_pin || !hp_pin)) in alc271_hp_gate_mic_jack()
6028 snd_hda_jack_set_gating_jack(codec, mic_pin, hp_pin); in alc271_hp_gate_mic_jack()