Searched refs:gen (Results 1 – 12 of 12) sorted by relevance
/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 debugfs.o
|
D | rsnd.h | 637 void *gen; member
|
/sound/pci/hda/ |
D | patch_analog.c | 23 struct hda_gen_spec gen; member 171 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in ad198x_parse_auto_config() 178 spec->gen.indep_hp = indep_hp; in ad198x_parse_auto_config() 179 if (!spec->gen.add_stereo_mix_input) in ad198x_parse_auto_config() 180 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in ad198x_parse_auto_config() 204 snd_hda_gen_spec_init(&spec->gen); in alloc_ad_spec() 221 spec->gen.keep_eapd_on = 1; in ad_fixup_inv_jack_detect() 222 spec->gen.vmaster_mute.hook = ad_vmaster_eapd_hook; in ad_fixup_inv_jack_detect() 235 spec->gen.keep_eapd_on = 1; in ad1986a_fixup_eapd() 248 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_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_conexant.c | 31 struct hda_gen_spec gen; member 70 spec->gen.beep_nid = nid; in set_beep_amp() 72 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp() 357 spec->gen.inv_dmic_split = 1; in cxt_fixup_stereo_dmic() 379 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in cxt_update_headset_mode() 381 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in cxt_update_headset_mode() 391 spec->gen.hp_jack_present = false; in cxt_update_headset_mode() 394 spec->gen.hp_jack_present = snd_hda_jack_detect(codec, spec->gen.autocfg.hp_pins[0]); in cxt_update_headset_mode() 418 WARN_ON(spec->gen.cap_sync_hook); in cxt_fixup_headphone_mic() 419 spec->gen.cap_sync_hook = cxt_update_headset_mode_hook; in cxt_fixup_headphone_mic() [all …]
|
D | patch_cirrus.c | 24 struct hda_gen_spec gen; member 162 spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b); in cs_automute() 167 if (spec->gen.automute_speaker) in cs_automute() 168 spec->gpio_data = spec->gen.hp_jack_present ? in cs_automute() 350 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs_parse_auto_config() 354 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs_parse_auto_config() 359 if (spec->gen.dyn_adc_switch) { in cs_parse_auto_config() 362 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs_parse_auto_config() 363 int idx = spec->gen.dyn_adc_idx[i]; in cs_parse_auto_config() 368 spec->gen.adc_nids[idx]); in cs_parse_auto_config() [all …]
|
D | patch_cs8409.c | 28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config() 32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config() 37 if (spec->gen.dyn_adc_switch) { in cs8409_parse_auto_config() 40 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs8409_parse_auto_config() 41 int idx = spec->gen.dyn_adc_idx[i]; in cs8409_parse_auto_config() 45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config() 67 snd_hda_gen_spec_init(&spec->gen); in cs8409_alloc_spec() 981 spec->gen.suppress_auto_mute = 1; in cs8409_cs42l42_fixups() 982 spec->gen.no_primary_hp = 1; in cs8409_cs42l42_fixups() 983 spec->gen.suppress_vmaster = 1; in cs8409_cs42l42_fixups() [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() 414 spec->gen.master_mute = in stac_update_outputs() 422 if (spec->gen.speaker_muted) in stac_update_outputs() 808 if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) { in has_builtin_speaker() 809 nid_pin = spec->gen.autocfg.line_out_pins; in has_builtin_speaker() 810 nids = spec->gen.autocfg.line_outs; in has_builtin_speaker() 812 nid_pin = spec->gen.autocfg.speaker_pins; in has_builtin_speaker() 813 nids = spec->gen.autocfg.speaker_outs; in has_builtin_speaker() [all …]
|
D | patch_realtek.c | 78 struct hda_gen_spec gen; /* must be at head */ member 635 if (spec->gen.autocfg.hp_pins[0]) in alc_get_hp_pin() 636 return spec->gen.autocfg.hp_pins[0]; in alc_get_hp_pin() 637 if (spec->gen.autocfg.line_out_type == AC_JACK_HP_OUT) in alc_get_hp_pin() 638 return spec->gen.autocfg.line_out_pins[0]; in alc_get_hp_pin() 855 if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins, in alc_subsystem_id() 856 spec->gen.autocfg.line_outs)) in alc_subsystem_id() 858 spec->gen.autocfg.hp_pins[0] = nid; in alc_subsystem_id() 885 spec->gen.inv_dmic_split = 1; in alc_fixup_inv_dmic() 927 spec->gen.skip_verbs = 1; /* applied in below */ in alc_init() [all …]
|
D | patch_cs8409.h | 320 struct hda_gen_spec gen; member
|