Searched refs:gen (Results 1 – 10 of 10) sorted by relevance
/sound/pci/hda/ |
D | patch_analog.c | 23 struct hda_gen_spec gen; member 177 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in ad198x_parse_auto_config() 184 spec->gen.indep_hp = indep_hp; in ad198x_parse_auto_config() 185 if (!spec->gen.add_stereo_mix_input) in ad198x_parse_auto_config() 186 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in ad198x_parse_auto_config() 210 snd_hda_gen_spec_init(&spec->gen); in alloc_ad_spec() 227 spec->gen.keep_eapd_on = 1; in ad_fixup_inv_jack_detect() 228 spec->gen.vmaster_mute.hook = ad_vmaster_eapd_hook; in ad_fixup_inv_jack_detect() 241 spec->gen.keep_eapd_on = 1; in ad1986a_fixup_eapd() 254 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_ENABLE; in ad1986a_fixup_eapd_mix_in() [all …]
|
D | patch_via.c | 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() [all …]
|
D | patch_conexant.c | 25 struct hda_gen_spec gen; member 63 spec->gen.beep_nid = nid; in set_beep_amp() 65 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp() 229 spec->gen.inv_dmic_split = 1; in cxt_fixup_stereo_dmic() 251 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in cxt_update_headset_mode() 253 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in cxt_update_headset_mode() 263 spec->gen.hp_jack_present = false; in cxt_update_headset_mode() 266 spec->gen.hp_jack_present = snd_hda_jack_detect(codec, spec->gen.autocfg.hp_pins[0]); in cxt_update_headset_mode() 290 WARN_ON(spec->gen.cap_sync_hook); in cxt_fixup_headphone_mic() 291 spec->gen.cap_sync_hook = cxt_update_headset_mode_hook; in cxt_fixup_headphone_mic() [all …]
|
D | patch_cmedia.c | 21 struct hda_gen_spec gen; member 47 cfg = &spec->gen.autocfg; in patch_cmi9880() 48 snd_hda_gen_spec_init(&spec->gen); in patch_cmi9880() 76 cfg = &spec->gen.autocfg; in patch_cmi8888() 77 snd_hda_gen_spec_init(&spec->gen); in patch_cmi8888() 82 spec->gen.out_vol_mask = (1ULL << 0x10); in patch_cmi8888() 96 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &_kctl)) { in patch_cmi8888()
|
D | patch_cirrus.c | 23 struct hda_gen_spec gen; member 159 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute() 164 if (spec->gen.automute_speaker) in cs_automute() 165 spec->gpio_data = spec->gen.hp_jack_present ? in cs_automute() 353 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs_parse_auto_config() 357 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs_parse_auto_config() 362 if (spec->gen.dyn_adc_switch) { in cs_parse_auto_config() 364 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs_parse_auto_config() 365 int idx = spec->gen.dyn_adc_idx[i]; in cs_parse_auto_config() 369 spec->gen.adc_nids[idx]); in cs_parse_auto_config() [all …]
|
D | patch_sigmatel.c | 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() [all …]
|
D | patch_realtek.c | 70 struct hda_gen_spec gen; /* must be at head */ member 578 if (spec->gen.autocfg.hp_pins[0]) in alc_get_hp_pin() 579 return spec->gen.autocfg.hp_pins[0]; in alc_get_hp_pin() 580 if (spec->gen.autocfg.line_out_type == AC_JACK_HP_OUT) in alc_get_hp_pin() 581 return spec->gen.autocfg.line_out_pins[0]; in alc_get_hp_pin() 798 if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins, in alc_subsystem_id() 799 spec->gen.autocfg.line_outs)) in alc_subsystem_id() 801 spec->gen.autocfg.hp_pins[0] = nid; in alc_subsystem_id() 828 spec->gen.inv_dmic_split = 1; in alc_fixup_inv_dmic() 870 spec->gen.skip_verbs = 1; /* applied in below */ in alc_init() [all …]
|
/sound/soc/sh/rcar/ |
D | gen.c | 33 #define rsnd_priv_to_gen(p) ((struct rsnd_gen *)(p)->gen) 34 #define rsnd_reg_name(gen, id) ((gen)->reg_name[id]) argument 62 struct rsnd_gen *gen, enum rsnd_reg reg) in rsnd_is_accessible_reg() argument 64 if (!gen->regs[reg]) { in rsnd_is_accessible_reg() 86 struct rsnd_gen *gen = rsnd_priv_to_gen(priv); in rsnd_mod_read() local 89 if (!rsnd_is_accessible_reg(priv, gen, reg)) in rsnd_mod_read() 92 regmap_fields_read(gen->regs[reg], rsnd_mod_id_cmd(mod), &val); in rsnd_mod_read() 96 rsnd_reg_name(gen, reg), reg, val); in rsnd_mod_read() 106 struct rsnd_gen *gen = rsnd_priv_to_gen(priv); in rsnd_mod_write() local 108 if (!rsnd_is_accessible_reg(priv, gen, reg)) in rsnd_mod_write() [all …]
|
D | Makefile | 2 snd-soc-rcar-objs := core.o gen.o dma.o adg.o ssi.o ssiu.o src.o ctu.o mix.o dvc.o cmd.o
|
D | rsnd.h | 632 void *gen; member
|