Home
last modified time | relevance | path

Searched refs:gen (Results 1 – 11 of 11) sorted by relevance

/sound/soc/sh/rcar/
Dgen.c36 #define rsnd_priv_to_gen(p) ((struct rsnd_gen *)(p)->gen)
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()
78 struct rsnd_gen *gen = rsnd_priv_to_gen(priv); in rsnd_read() local
81 if (!rsnd_is_accessible_reg(priv, gen, reg)) in rsnd_read()
84 regmap_fields_read(gen->regs[reg], rsnd_mod_id(mod), &val); in rsnd_read()
97 struct rsnd_gen *gen = rsnd_priv_to_gen(priv); in rsnd_write() local
99 if (!rsnd_is_accessible_reg(priv, gen, reg)) in rsnd_write()
105 regmap_fields_write(gen->regs[reg], rsnd_mod_id(mod), data); in rsnd_write()
113 struct rsnd_gen *gen = rsnd_priv_to_gen(priv); in rsnd_force_write() local
[all …]
DMakefile1 snd-soc-rcar-objs := core.o gen.o dma.o adg.o ssi.o src.o ctu.o mix.o dvc.o
Drsnd.h460 void *gen; member
/sound/pci/hda/
Dpatch_analog.c36 struct hda_gen_spec gen; member
190 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in ad198x_parse_auto_config()
197 spec->gen.indep_hp = indep_hp; in ad198x_parse_auto_config()
198 if (!spec->gen.add_stereo_mix_input) in ad198x_parse_auto_config()
199 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in ad198x_parse_auto_config()
223 snd_hda_gen_spec_init(&spec->gen); in alloc_ad_spec()
240 spec->gen.keep_eapd_on = 1; in ad_fixup_inv_jack_detect()
241 spec->gen.vmaster_mute.hook = ad_vmaster_eapd_hook; in ad_fixup_inv_jack_detect()
254 spec->gen.keep_eapd_on = 1; in ad1986a_fixup_eapd()
267 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_ENABLE; in ad1986a_fixup_eapd_mix_in()
[all …]
Dpatch_via.c91 struct hda_gen_spec gen; member
131 snd_hda_gen_spec_init(&spec->gen); in via_new_spec()
136 spec->gen.indep_hp = 1; in via_new_spec()
137 spec->gen.keep_eapd_on = 1; in via_new_spec()
138 spec->gen.dac_min_mute = 1; in via_new_spec()
139 spec->gen.pcm_playback_hook = via_playback_pcm_hook; in via_new_spec()
140 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in via_new_spec()
142 spec->gen.power_down_unused = 1; in via_new_spec()
209 if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs) in vt1708_stop_hp_work()
222 if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs) in vt1708_update_hp_work()
[all …]
Dpatch_cmedia.c35 struct hda_gen_spec gen; member
61 cfg = &spec->gen.autocfg; in patch_cmi9880()
62 snd_hda_gen_spec_init(&spec->gen); in patch_cmi9880()
90 cfg = &spec->gen.autocfg; in patch_cmi8888()
91 snd_hda_gen_spec_init(&spec->gen); in patch_cmi8888()
96 spec->gen.out_vol_mask = (1ULL << 0x10); in patch_cmi8888()
110 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &amp_kctl)) { in patch_cmi8888()
Dpatch_conexant.c38 struct hda_gen_spec gen; member
62 spec->gen.beep_nid = nid; in set_beep_amp()
278 spec->gen.inv_dmic_split = 1; in cxt_fixup_stereo_dmic()
300 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in cxt_update_headset_mode()
302 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in cxt_update_headset_mode()
312 spec->gen.hp_jack_present = false; in cxt_update_headset_mode()
315 spec->gen.hp_jack_present = snd_hda_jack_detect(codec, spec->gen.autocfg.hp_pins[0]); in cxt_update_headset_mode()
339 spec->gen.cap_sync_hook = cxt_update_headset_mode_hook; in cxt_fixup_headphone_mic()
340 spec->gen.automute_hook = cxt_update_headset_mode; in cxt_fixup_headphone_mic()
391 cur_input = spec->gen.input_paths[0][spec->gen.cur_mux[0]]; in olpc_xo_update_mic_pins()
[all …]
Dpatch_realtek.c88 struct hda_gen_spec gen; /* must be at head */ member
684 if (!spec->gen.autocfg.hp_pins[0] && in alc_subsystem_id()
685 !(spec->gen.autocfg.line_out_pins[0] && in alc_subsystem_id()
686 spec->gen.autocfg.line_out_type == AUTO_PIN_HP_OUT)) { in alc_subsystem_id()
690 if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins, in alc_subsystem_id()
691 spec->gen.autocfg.line_outs)) in alc_subsystem_id()
693 spec->gen.autocfg.hp_pins[0] = nid; in alc_subsystem_id()
718 spec->gen.inv_dmic_split = 1; in alc_fixup_inv_dmic()
779 spec->gen.skip_verbs = 1; /* applied in below */ in alc_init()
1013 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in alc_parse_auto_config()
[all …]
Dpatch_cirrus.c36 struct hda_gen_spec gen; member
172 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute()
177 if (spec->gen.automute_speaker) in cs_automute()
178 spec->gpio_data = spec->gen.hp_jack_present ? in cs_automute()
366 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs_parse_auto_config()
370 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs_parse_auto_config()
375 if (spec->gen.dyn_adc_switch) { in cs_parse_auto_config()
377 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs_parse_auto_config()
378 int idx = spec->gen.dyn_adc_idx[i]; in cs_parse_auto_config()
382 spec->gen.adc_nids[idx]); in cs_parse_auto_config()
[all …]
Ddell_wmi_helper.c52 if (spec->gen.num_adc_nids > 1 && !spec->gen.dyn_adc_switch) in alc_fixup_dell_wmi()
55 dell_old_cap_hook = spec->gen.cap_sync_hook; in alc_fixup_dell_wmi()
56 spec->gen.cap_sync_hook = update_dell_wmi_micmute_led; in alc_fixup_dell_wmi()
Dpatch_sigmatel.c183 struct hda_gen_spec gen; member
273 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook()
274 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook()
437 spec->gen.master_mute = in stac_update_outputs()
445 if (spec->gen.speaker_muted) in stac_update_outputs()
831 if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) { in has_builtin_speaker()
832 nid_pin = spec->gen.autocfg.line_out_pins; in has_builtin_speaker()
833 nids = spec->gen.autocfg.line_outs; in has_builtin_speaker()
835 nid_pin = spec->gen.autocfg.speaker_pins; in has_builtin_speaker()
836 nids = spec->gen.autocfg.speaker_outs; in has_builtin_speaker()
[all …]