Lines Matching refs:gen
78 struct hda_gen_spec gen; member
109 snd_hda_gen_spec_init(&spec->gen); in via_new_spec()
114 spec->gen.indep_hp = 1; in via_new_spec()
115 spec->gen.keep_eapd_on = 1; in via_new_spec()
116 spec->gen.dac_min_mute = 1; in via_new_spec()
117 spec->gen.pcm_playback_hook = via_playback_pcm_hook; in via_new_spec()
118 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in via_new_spec()
120 spec->gen.power_down_unused = 1; in via_new_spec()
187 if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs) in vt1708_stop_hp_work()
200 if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs) in vt1708_update_hp_work()
225 ucontrol->value.enumerated.item[0] = spec->gen.power_down_unused; in via_pin_power_ctl_get()
236 if (val == spec->gen.power_down_unused) in via_pin_power_ctl_put()
239 spec->gen.power_down_unused = val; in via_pin_power_ctl_put()
266 spec->gen.beep_nid = nid; in set_beep_amp()
268 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp()
298 p = spec->gen.loopback.amplist; in is_aa_path_mute()
322 enable = is_aa_path_mute(codec) && !spec->gen.active_streams; in __analog_low_current_mode()
411 return snd_hda_check_amp_list_power(codec, &spec->gen.loopback, nid); in via_check_power_status()
516 spec->gen.main_out_badness = &via_main_out_badness; in via_parse_auto_config()
517 spec->gen.extra_out_badness = &via_extra_out_badness; in via_parse_auto_config()
519 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in via_parse_auto_config()
523 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in via_parse_auto_config()
531 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &via_pin_power_ctl_enum)) in via_parse_auto_config()
536 spec->gen.power_down_unused = 0; in via_parse_auto_config()
577 for (i = 0; i < ARRAY_SIZE(spec->gen.pcm_rec); i++) { in vt1708_build_pcms()
578 struct hda_pcm *info = spec->gen.pcm_rec[i]; in vt1708_build_pcms()
604 spec->gen.mixer_nid = 0x17; in patch_vt1708()
612 spec->gen.suppress_auto_mic = 1; in patch_vt1708()
614 spec->gen.auto_mute_via_amp = 1; in patch_vt1708()
630 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &vt1708_jack_detect_ctl)) { in patch_vt1708()
655 spec->gen.mixer_nid = 0x18; in patch_vt1709()
682 spec->gen.mixer_nid = 0x16; in patch_vt1708B()
727 spec->gen.mixer_nid = 0x16; in patch_vt1708S()
774 spec->gen.mixer_nid = 0x1a; in patch_vt1702()
820 if (!spec->gen.mixer_nid) in add_secret_dac_path()
822 nums = snd_hda_get_connections(codec, spec->gen.mixer_nid, conn, in add_secret_dac_path()
836 spec->gen.mixer_nid, in add_secret_dac_path()
854 spec->gen.mixer_nid = 0x21; in patch_vt1718S()
951 spec->gen.mixer_nid = 0x16; in patch_vt1716S()
964 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &vt1716s_dmic_mixer_vol) || in patch_vt1716S()
965 !snd_hda_gen_add_kctl(&spec->gen, NULL, &vt1716s_dmic_mixer_sw) || in patch_vt1716S()
966 !snd_hda_gen_add_kctl(&spec->gen, NULL, &vt1716S_mono_out_mixer)) { in patch_vt1716S()
1074 spec->gen.mixer_nid = 0x21; in patch_vt2002P()
1124 spec->gen.mixer_nid = 0x21; in patch_vt1812()
1167 spec->gen.mixer_nid = 0x3f; in patch_vt3476()