Lines Matching refs:gen
171 struct hda_gen_spec gen; member
262 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
263 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
328 if (spec->gen.micmute_led.led_value) in stac_capture_led_update()
408 spec->gen.master_mute = in stac_update_outputs()
416 if (spec->gen.speaker_muted) in stac_update_outputs()
802 if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) { in has_builtin_speaker()
803 nid_pin = spec->gen.autocfg.line_out_pins; in has_builtin_speaker()
804 nids = spec->gen.autocfg.line_outs; in has_builtin_speaker()
806 nid_pin = spec->gen.autocfg.speaker_pins; in has_builtin_speaker()
807 nids = spec->gen.autocfg.speaker_outs; in has_builtin_speaker()
843 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
853 knew = snd_hda_gen_add_kctl(&spec->gen, in stac_auto_create_beep_ctls()
894 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_dig_beep_ctrl)) in stac_beep_switch_ctl()
931 spec->gen.autocfg.dig_out_pins[smux_idx], in stac_smux_enum_put()
951 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in stac_create_spdif_mux_ctls()
971 kctl = snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_smux_mixer); in stac_create_spdif_mux_ctls()
1359 spec->gen.suppress_auto_mute = 1; in stac9200_fixup_panasonic()
1879 spec->gen.suppress_auto_mute = 1; in stac92hd73xx_disable_automute()
2113 spec->gen.line_in_auto_switch = true; in stac92hd83xxx_fixup_hp()
2204 spec->gen.preferred_dacs = preferred_pairs; in hp_envy_ts_fixup_dac_bind()
2983 if (!snd_hda_gen_add_kctl(&spec->gen, "Bass Speaker Playback Switch", in stac_add_hp_bass_switch()
4275 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags); in stac_parse_auto_config()
4280 spec->gen.pcm_playback_hook = stac_playback_pcm_hook; in stac_parse_auto_config()
4281 spec->gen.pcm_capture_hook = stac_capture_pcm_hook; in stac_parse_auto_config()
4283 spec->gen.automute_hook = stac_update_outputs; in stac_parse_auto_config()
4285 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in stac_parse_auto_config()
4305 if (spec->gen.beep_nid) { in stac_parse_auto_config()
4306 hda_nid_t nid = spec->gen.beep_nid; in stac_parse_auto_config()
4329 spec->gen.vmaster_mute.hook = stac_vmaster_hook; in stac_parse_auto_config()
4337 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, spec->aloopback_ctl)) in stac_parse_auto_config()
4378 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_init()
4381 snd_hda_codec_write(codec, spec->gen.all_adcs[i], 0, in stac_init()
4480 snd_hda_gen_spec_init(&spec->gen); in alloc_stac_spec()
4483 spec->gen.dac_min_mute = true; in alloc_stac_spec()
4499 spec->gen.own_eapd_ctl = 1; in patch_stac9200()
4531 spec->gen.own_eapd_ctl = 1; in patch_stac925x()
4567 spec->gen.mixer_nid = 0x1d; in patch_stac92hd73xx()
4592 spec->gen.beep_nid = 0x1c; /* digital beep */ in patch_stac92hd73xx()
4603 spec->gen.own_eapd_ctl = 1; in patch_stac92hd73xx()
4604 spec->gen.power_down_unused = 1; in patch_stac92hd73xx()
4671 spec->gen.own_eapd_ctl = 1; in patch_stac92hd83xxx()
4672 spec->gen.power_down_unused = 1; in patch_stac92hd83xxx()
4673 spec->gen.mixer_nid = 0x1b; in patch_stac92hd83xxx()
4675 spec->gen.beep_nid = 0x21; /* digital beep */ in patch_stac92hd83xxx()
4720 spec->gen.own_eapd_ctl = 1; in patch_stac92hd95()
4721 spec->gen.power_down_unused = 1; in patch_stac92hd95()
4723 spec->gen.beep_nid = 0x19; /* digital beep */ in patch_stac92hd95()
4761 spec->gen.own_eapd_ctl = 1; in patch_stac92hd71bxx()
4762 spec->gen.power_down_unused = 1; in patch_stac92hd71bxx()
4763 spec->gen.mixer_nid = 0x17; in patch_stac92hd71bxx()
4808 spec->gen.beep_nid = 0x26; /* digital beep */ in patch_stac92hd71bxx()
4842 spec->gen.own_eapd_ctl = 1; in patch_stac922x()
4884 spec->gen.own_eapd_ctl = 1; in patch_stac927x()
4888 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac927x()
4942 spec->gen.own_eapd_ctl = 1; in patch_stac9205()
4945 spec->gen.beep_nid = 0x23; /* digital beep */ in patch_stac9205()
5029 spec->gen.own_eapd_ctl = 1; in patch_stac9872()