Home
last modified time | relevance | path

Searched refs:hda_nid_t (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v6.1/sound/pci/hda/
Dhda_jack.h21 hda_nid_t nid;
31 hda_nid_t nid;
41 hda_nid_t gating_jack; /* valid when gating jack plugged */
42 hda_nid_t gated_jack; /* gated is dependent on this jack */
43 hda_nid_t key_report_jack; /* key reports to this jack */
55 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id);
63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get()
77 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid,
81 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid,
95 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback()
[all …]
Dhda_generic.h15 hda_nid_t pin; /* multi-io widget pin NID */
16 hda_nid_t dac; /* DAC to be connected */
43 hda_nid_t path[MAX_NID_PATH_DEPTH];
58 hda_nid_t pin; /* pin */
109 hda_nid_t alt_dac_nid;
110 hda_nid_t follower_dig_outs[3]; /* optional - for auto-parsing */
115 hda_nid_t adc_nids[AUTO_CFG_MAX_INS];
116 hda_nid_t dig_in_nid; /* digital-in NID; optional */
117 hda_nid_t mixer_nid; /* analog-mixer NID */
118 hda_nid_t mixer_merge_nid; /* aamix merge-point NID (optional) */
[all …]
Dhda_local.h119 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid,
121 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid,
123 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch,
125 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid,
127 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir,
165 hda_nid_t associated_nid,
166 hda_nid_t cvt_nid, int type);
169 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid);
188 struct snd_ctl_elem_value *ucontrol, hda_nid_t nid,
205 const hda_nid_t *dac_nids; /* DAC list */
[all …]
Dhda_auto_parser.h33 hda_nid_t pin;
44 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid,
63 hda_nid_t line_out_pins[AUTO_CFG_MAX_OUTS];
65 hda_nid_t speaker_pins[AUTO_CFG_MAX_OUTS];
68 hda_nid_t hp_pins[AUTO_CFG_MAX_OUTS];
72 hda_nid_t dig_out_pins[2];
73 hda_nid_t dig_in_pin;
74 hda_nid_t mono_out_pin;
87 const hda_nid_t *ignore_nids,
99 static inline const hda_nid_t *auto_cfg_hp_pins(const struct auto_pin_cfg *cfg) in auto_cfg_hp_pins()
[all …]
Dhda_codec.c90 hda_nid_t nid;
91 hda_nid_t conns[];
96 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list()
106 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list()
107 const hda_nid_t *list) in add_conn_list()
116 memcpy(p->conns, list, len * sizeof(hda_nid_t)); in add_conn_list()
132 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns()
134 hda_nid_t list[32]; in read_and_add_raw_conns()
135 hda_nid_t *result = list; in read_and_add_raw_conns()
141 result = kmalloc_array(len, sizeof(hda_nid_t), GFP_KERNEL); in read_and_add_raw_conns()
[all …]
Dhda_generic.c210 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl()
216 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target()
229 hda_nid_t *pins, unsigned int val) in set_pin_targets()
241 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list()
251 static bool is_nid_contained(struct nid_path *path, hda_nid_t nid) in is_nid_contained()
257 hda_nid_t from_nid, hda_nid_t to_nid, in get_nid_path()
319 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
334 hda_nid_t from_nid, hda_nid_t to_nid) in is_reachable_path()
360 static bool is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, in is_ctl_associated()
385 hda_nid_t from_nid, hda_nid_t to_nid, in __parse_nid_path()
[all …]
Dhda_proc.c48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array()
75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms()
94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps()
112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps()
115 hda_nid_t conn; in is_stereo_amps()
134 struct hda_codec *codec, hda_nid_t nid, in print_amp_vals()
200 struct hda_codec *codec, hda_nid_t nid) in print_pcm_caps()
305 struct hda_codec *codec, hda_nid_t nid, in print_pin_caps()
401 struct hda_codec *codec, hda_nid_t nid, in print_pin_ctls()
439 struct hda_codec *codec, hda_nid_t nid) in print_vol_knob()
[all …]
Dhda_jack.c29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable()
46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in read_pin_sense()
71 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_tbl_get_mst()
108 any_jack_tbl_get_from_nid(struct hda_codec *codec, hda_nid_t nid) in any_jack_tbl_get_from_nid()
128 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_tbl_new()
253 u32 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_pin_sense()
275 hda_nid_t nid, int dev_id) in snd_hda_jack_detect_state_mst()
318 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback_mst()
365 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable()
383 int snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid, in snd_hda_jack_set_gating_jack()
[all …]
Dhda_auto_parser.c20 static int is_in_nid_list(hda_nid_t nid, const hda_nid_t *list) in is_in_nid_list()
30 hda_nid_t pin;
45 static void sort_pins_by_sequence(hda_nid_t *pins, struct auto_out_pin *list, in sort_pins_by_sequence()
57 hda_nid_t nid, int type) in add_auto_cfg_input_pin()
93 static void reorder_outputs(unsigned int nums, hda_nid_t *pins) in reorder_outputs()
104 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity()
170 const hda_nid_t *ignore_nids, in snd_hda_parse_pin_defcfg()
173 hda_nid_t nid; in snd_hda_parse_pin_defcfg()
482 hda_nid_t pin, bool check_location) in hda_get_input_pin_label()
589 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list()
[all …]
Dpatch_hdmi.c55 hda_nid_t cvt_nid;
69 hda_nid_t pin_nid;
74 hda_nid_t mux_nids[HDA_MAX_CONNECTIONS];
76 hda_nid_t cvt_nid;
98 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid,
101 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid,
106 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid,
109 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
110 hda_nid_t pin_nid, int dev_id, u32 stream_tag,
115 hda_nid_t cvt_nid);
[all …]
Dpatch_realtek.c95 hda_nid_t mute_led_nid;
96 hda_nid_t cap_mute_led_nid;
104 hda_nid_t headset_mic_pin;
105 hda_nid_t headphone_mic_pin;
127 hda_nid_t pll_nid;
158 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_read_coefex_idx()
168 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx()
182 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_write_coefex_idx()
189 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx()
200 static void __alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_update_coefex_idx()
[all …]
Dpatch_cirrus.c36 hda_nid_t vendor_nid;
178 static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) in is_active_pin()
704 hda_nid_t pin = spec->gen.autocfg.dig_out_pins[0]; in cs4208_spdif_sw_put()
759 static void cs4208_fix_amp_caps(struct hda_codec *codec, hda_nid_t adc) in cs4208_fix_amp_caps()
1028 hda_nid_t spdif_pin = spec->gen.autocfg.dig_out_pins[0]; in cs4210_spdif_automute()
1053 hda_nid_t nid = cfg->dig_out_pins[i]; in parse_cs421x_digital()
1091 static void fix_volume_caps(struct hda_codec *codec, hda_nid_t dac) in fix_volume_caps()
1106 hda_nid_t dac = CS4210_DAC_NID; in cs421x_parse_auto_config()
Dpatch_analog.c28 hda_nid_t eapd_nid;
76 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write()
77 hda_nid_t hp) in ad198x_power_eapd_write()
386 static const hda_nid_t preferred_pairs[] = { in patch_ad1986a()
476 hda_nid_t dig_out = spec->gen.multiout.dig_out_nid; in ad1983_auto_smux_enum_put()
500 hda_nid_t dig_out = spec->gen.multiout.dig_out_nid; in ad1983_add_spdif_mux_ctl()
516 static const hda_nid_t conn_0c[] = { 0x08 }; in patch_ad1983()
517 static const hda_nid_t conn_0d[] = { 0x09 }; in patch_ad1983()
Dpatch_conexant.c29 hda_nid_t eapds[4];
31 hda_nid_t mute_led_eapd;
56 static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp()
77 hda_nid_t nid; in cx_auto_parse_beep()
96 hda_nid_t nid; in cx_auto_parse_eapd()
119 const hda_nid_t *pins, bool on) in cx_auto_turn_eapd()
278 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in cxt_update_headset_mode()
1015 static const hda_nid_t out_nids[] = { in add_cx5051_fake_mutes()
1018 const hda_nid_t *p; in add_cx5051_fake_mutes()
Dpatch_via.c259 static int set_beep_amp(struct via_spec *spec, hda_nid_t nid, in set_beep_amp()
280 hda_nid_t nid; in auto_parse_beep()
406 static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid) in via_check_power_status()
439 static void vt1708_set_pinconfig_connect(struct hda_codec *codec, hda_nid_t nid) in vt1708_set_pinconfig_connect()
703 static void override_mic_boost(struct hda_codec *codec, hda_nid_t pin, in override_mic_boost()
815 hda_nid_t conn[8]; in add_secret_dac_path()
816 hda_nid_t nid; in add_secret_dac_path()
1054 static const hda_nid_t conn_24[] = { 0x14, 0x1c }; in fix_vt1802_connections()
1055 static const hda_nid_t conn_33[] = { 0x1c }; in fix_vt1802_connections()
Dpatch_ca0132.c178 hda_nid_t nid;
309 hda_nid_t parent_nid;
310 hda_nid_t nid;
422 hda_nid_t nid;
518 hda_nid_t nid;
713 hda_nid_t vnid;
1074 hda_nid_t out_pins[AUTO_CFG_MAX_OUTS];
1075 hda_nid_t dacs[AUTO_CFG_MAX_OUTS];
1077 hda_nid_t input_pins[AUTO_PIN_LAST];
1078 hda_nid_t adcs[AUTO_PIN_LAST];
[all …]
Dhda_eld.c122 static unsigned int hdmi_get_eld_data(struct hda_codec *codec, hda_nid_t nid, in hdmi_get_eld_data()
288 int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid) in snd_hdmi_get_eld_size()
294 int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid, in snd_hdmi_get_eld()
444 hda_nid_t pin_nid, int dev_id, hda_nid_t cvt_nid) in snd_hdmi_print_eld_info()
636 int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid, in snd_hdmi_get_eld_ati()
/Linux-v6.1/include/sound/
Dhda_codec.h113 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg,
118 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
120 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on);
144 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */
215 const hda_nid_t *follower_dig_outs; /* optional digital out follower widgets */
269 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid,
274 struct hda_codec *codec, hda_nid_t nid);
326 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read()
334 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write()
344 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
[all …]
Dhda_regmap.h79 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_write()
97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update()
115 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_read()
136 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp()
160 snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp()
181 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp_stereo()
205 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp_stereo()
219 snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) in snd_hdac_regmap_sync_node()
Dhdaudio.h23 typedef u16 hda_nid_t; typedef
58 hda_nid_t afg; /* AFG node id */
59 hda_nid_t mfg; /* MFG node id */
81 hda_nid_t start_nid, end_nid;
130 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid,
132 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm,
134 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid,
136 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid,
138 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid,
139 hda_nid_t *conn_list, int max_conns);
[all …]
Dhda_component.h17 int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid,
19 int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id,
38 hda_nid_t nid, int dev_id, int rate) in snd_hdac_sync_audio_rate()
42 static inline int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_acomp_get_eld()
Dhda_chmap.h50 hda_nid_t pin_nid, int asp_slot);
52 hda_nid_t pin_nid, int asp_slot, int channel);
54 hda_nid_t cvt_nid, int chs);
70 hda_nid_t pin_nid, bool non_pcm, int ca,
/Linux-v6.1/sound/hda/
Dhdac_sysfs.c89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid,
91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid,
161 static ssize_t caps_show(struct hdac_device *codec, hda_nid_t nid, in caps_show()
167 static ssize_t pin_caps_show(struct hdac_device *codec, hda_nid_t nid, in pin_caps_show()
176 static ssize_t pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, in pin_cfg_show()
188 static bool has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) in has_pcm_cap()
201 static ssize_t pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, in pcm_caps_show()
210 static ssize_t pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, in pcm_formats_show()
219 static ssize_t amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, in amp_in_caps_show()
228 static ssize_t amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, in amp_out_caps_show()
[all …]
Dhdac_device.c44 hda_nid_t fg; in snd_hdac_device_init()
224 static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd()
275 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read()
293 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm()
312 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm_uncached()
331 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_override_parm()
356 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_get_sub_nodes()
357 hda_nid_t *start_id) in snd_hdac_get_sub_nodes()
377 hda_nid_t nid; in setup_fg_nodes()
406 hda_nid_t start_nid; in snd_hdac_refresh_widgets()
[all …]
Dhdmi_chmap.c183 hda_nid_t pin_nid, int asp_slot, int channel) in hdmi_pin_set_slot_channel()
191 hda_nid_t pin_nid, int asp_slot) in hdmi_pin_get_slot_channel()
198 static int hdmi_get_channel_count(struct hdac_device *codec, hda_nid_t cvt_nid) in hdmi_get_channel_count()
205 hda_nid_t cvt_nid, int chs) in hdmi_set_channel_count()
324 hda_nid_t pin_nid) in hdmi_debug_channel_mapping()
340 hda_nid_t pin_nid, in hdmi_std_setup_channel_mapping()
506 hda_nid_t pin_nid, in hdmi_manual_setup_channel_mapping()
551 hda_nid_t pin_nid, bool non_pcm, int ca, in snd_hdac_setup_channel_mapping()

12