Searched refs:gen (Results 1 – 10 of 10) 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
|
D | rsnd.h | 623 void *gen; member
|
/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.pcm_playback_hook = via_playback_pcm_hook; in via_new_spec() 117 spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO; in via_new_spec() 119 spec->gen.power_down_unused = 1; in via_new_spec() 186 if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs) in vt1708_stop_hp_work() 199 if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs) in vt1708_update_hp_work() 224 ucontrol->value.enumerated.item[0] = spec->gen.power_down_unused; in via_pin_power_ctl_get() [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() 227 spec->gen.inv_dmic_split = 1; in cxt_fixup_stereo_dmic() 249 struct auto_pin_cfg *cfg = &spec->gen.autocfg; in cxt_update_headset_mode() 251 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in cxt_update_headset_mode() 261 spec->gen.hp_jack_present = false; in cxt_update_headset_mode() 264 spec->gen.hp_jack_present = snd_hda_jack_detect(codec, spec->gen.autocfg.hp_pins[0]); in cxt_update_headset_mode() 288 WARN_ON(spec->gen.cap_sync_hook); in cxt_fixup_headphone_mic() 289 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 261 for (i = 0; i < spec->gen.num_all_adcs; i++) { in stac_capture_pcm_hook() 262 if (spec->gen.all_adcs[i] == hinfo->nid) { in stac_capture_pcm_hook() 327 if (spec->gen.micmute_led.led_value) in stac_capture_led_update() 407 spec->gen.master_mute = in stac_update_outputs() 415 if (spec->gen.speaker_muted) in stac_update_outputs() 801 if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) { in has_builtin_speaker() 802 nid_pin = spec->gen.autocfg.line_out_pins; in has_builtin_speaker() 803 nids = spec->gen.autocfg.line_outs; in has_builtin_speaker() 805 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 560 if (spec->gen.autocfg.hp_pins[0]) in alc_get_hp_pin() 561 return spec->gen.autocfg.hp_pins[0]; in alc_get_hp_pin() 562 if (spec->gen.autocfg.line_out_type == AC_JACK_HP_OUT) in alc_get_hp_pin() 563 return spec->gen.autocfg.line_out_pins[0]; in alc_get_hp_pin() 780 if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins, in alc_subsystem_id() 781 spec->gen.autocfg.line_outs)) in alc_subsystem_id() 783 spec->gen.autocfg.hp_pins[0] = nid; in alc_subsystem_id() 808 spec->gen.inv_dmic_split = 1; in alc_fixup_inv_dmic() 850 spec->gen.skip_verbs = 1; /* applied in below */ in alc_init() [all …]
|