Home
last modified time | relevance | path

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

123

/linux/sound/hda/common/
H A 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 ni
[all...]
H A Dhda_auto_parser.h35 hda_nid_t pin;
47 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid,
66 hda_nid_t line_out_pins[AUTO_CFG_MAX_OUTS];
68 hda_nid_t speaker_pins[AUTO_CFG_MAX_OUTS];
71 hda_nid_t hp_pins[AUTO_CFG_MAX_OUTS];
75 hda_nid_t dig_out_pins[2];
76 hda_nid_t dig_in_pin;
77 hda_nid_t mono_out_pin;
90 const hda_nid_t *ignore_nids,
102 static inline const hda_nid_t *auto_cfg_hp_pins(const struct auto_pin_cfg *cfg) in auto_cfg_hp_pins()
[all …]
H A Dhda_local.h121 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid,
123 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid,
125 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch,
127 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid,
129 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir,
167 hda_nid_t associated_nid,
168 hda_nid_t cvt_nid, int type);
171 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid);
190 struct snd_ctl_elem_value *ucontrol, hda_nid_t nid,
207 const hda_nid_t *dac_nid
[all...]
H A Dcodec.c99 hda_nid_t nid;
100 hda_nid_t conns[] __counted_by(len);
105 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list()
115 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list()
116 const hda_nid_t *list) in add_conn_list()
125 memcpy(p->conns, list, len * sizeof(hda_nid_t)); in add_conn_list()
141 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns()
143 hda_nid_t list[32]; in read_and_add_raw_conns()
144 hda_nid_t *result = list; in read_and_add_raw_conns()
150 result = kmalloc_objs(hda_nid_t, le in read_and_add_raw_conns()
[all...]
H A Dproc.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 ni in print_vol_knob()
[all...]
H A Djack.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 …]
H A Dauto_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()
97 static void reorder_outputs(unsigned int nums, hda_nid_t *pins) in reorder_outputs()
108 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity()
174 const hda_nid_t *ignore_nids, in snd_hda_parse_pin_defcfg()
177 hda_nid_t nid; in snd_hda_parse_pin_defcfg()
488 hda_nid_t pin, bool check_location) in hda_get_input_pin_label()
595 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 …]
/linux/sound/hda/codecs/
H A Dgeneric.h18 hda_nid_t pin; /* multi-io widget pin NID */
19 hda_nid_t dac; /* DAC to be connected */
46 hda_nid_t path[MAX_NID_PATH_DEPTH];
61 hda_nid_t pin; /* pin */
112 hda_nid_t alt_dac_nid;
113 hda_nid_t follower_dig_outs[3]; /* optional - for auto-parsing */
118 hda_nid_t adc_nids[AUTO_CFG_MAX_INS];
119 hda_nid_t dig_in_nid; /* digital-in NID; optional */
120 hda_nid_t mixer_nid; /* analog-mixer NID */
121 hda_nid_t mixer_merge_nid; /* aamix merge-point NID (optional) */
[all …]
H A Dgeneric.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_ni in is_reachable_path()
[all...]
H A Dsenarytech.c27 hda_nid_t eapds[4];
29 hda_nid_t mute_led_eapd;
72 static int set_beep_amp(struct senary_spec *spec, hda_nid_t nid, in senary_auto_parse_beep()
94 hda_nid_t nid; in senary_auto_parse_eapd()
110 hda_nid_t nid; in senary_auto_vmaster_hook()
137 const hda_nid_t *pins, bool on) in senary_init()
/linux/include/sound/
H A Dhda_codec.h115 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg,
119 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 */
214 const hda_nid_t *follower_dig_outs; /* optional digital out follower widgets */
268 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid,
273 struct hda_codec *codec, hda_nid_t nid);
325 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read()
333 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write()
341 snd_hda_codec_write_sync(struct hda_codec *codec, hda_nid_t ni
[all...]
H A 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()
H A Dhdaudio.h24 typedef u16 hda_nid_t; typedef
59 hda_nid_t afg; /* AFG node id */
60 hda_nid_t mfg; /* MFG node id */
82 hda_nid_t start_nid, end_nid;
131 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid,
133 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm,
135 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid,
137 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid,
139 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid,
140 hda_nid_t *conn_list, int max_conns);
[all …]
H A 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()
H A 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/sound/hda/codecs/hdmi/
H A Dhdmi_local.h18 hda_nid_t cvt_nid;
32 hda_nid_t pin_nid;
37 hda_nid_t mux_nids[HDA_MAX_CONNECTIONS];
39 hda_nid_t cvt_nid;
62 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid,
65 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid,
70 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid,
73 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
74 hda_nid_t pin_nid, int dev_id, u32 stream_tag,
79 hda_nid_t cvt_nid);
[all …]
H A Dintelhdmi.c77 static void haswell_set_power_state(struct hda_codec *codec, hda_nid_t fg, in haswell_set_power_state()
269 hda_nid_t cvt_nid, hda_nid_t nid) in haswell_verify_D0()
294 hda_nid_t pin_nid = per_pin->pin_nid; in intel_verify_pin_cvt_connect()
310 hda_nid_t cvt_nid) in intel_cvt_id_to_mux_idx()
330 hda_nid_t pin_nid, in intel_not_share_assigned_cvt()
334 hda_nid_t nid; in intel_not_share_assigned_cvt()
406 hda_nid_t pin_nid, int dev_id, hda_nid_t cvt_nid) in intel_not_share_assigned_cvt_nid()
422 static int i915_hsw_setup_stream(struct hda_codec *codec, hda_nid_t cvt_ni
[all...]
H A Deld.c33 static unsigned int hdmi_get_eld_data(struct hda_codec *codec, hda_nid_t nid, in hdmi_get_eld_data()
46 int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid) in snd_hdmi_get_eld_size()
52 int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid, in snd_hdmi_get_eld()
110 hda_nid_t pin_nid, int dev_id, hda_nid_t cvt_nid) in snd_hdmi_print_eld_info()
H A Dhdmi.c51 hda_nid_t pin_nid, int dev_id) in snd_hda_hdmi_pin_id_to_pin_index()
123 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index()
228 static void hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_get_dip_index()
241 static void hdmi_set_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_set_dip_index()
251 static void hdmi_write_dip_byte(struct hda_codec *codec, hda_nid_t pin_nid, in hdmi_write_dip_byte()
257 static void hdmi_init_pin(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_init_pin()
350 hda_nid_t pin_nid) in hdmi_start_infoframe_trans()
361 hda_nid_t pin_nid) in hdmi_stop_infoframe_trans()
368 static void hdmi_debug_dip_size(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_debug_dip_size()
385 static void hdmi_clear_dip_buffers(struct hda_codec *codec, hda_nid_t pin_nid) in hdmi_clear_dip_buffers()
[all …]
H A Datihdmi.c93 static int get_eld_ati(struct hda_codec *codec, hda_nid_t nid, in get_eld_ati()
230 static int atihdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, in atihdmi_pin_get_eld()
240 hda_nid_t pin_nid, int dev_id, int ca, in atihdmi_pin_setup_infoframe()
312 hda_nid_t pin_nid, int hdmi_slot, int stream_channel) in atihdmi_pin_set_slot_channel()
349 hda_nid_t pin_nid, int asp_slot) in atihdmi_pin_get_slot_channel()
434 static int atihdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_hbr_setup()
466 static int atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in atihdmi_setup_stream()
467 hda_nid_t pin_nid, int dev_id, in atihdmi_setup_stream()
/linux/sound/hda/codecs/realtek/
H A Drealtek.h93 hda_nid_t mute_led_nid;
94 hda_nid_t cap_mute_led_nid;
102 hda_nid_t headset_mic_pin;
103 hda_nid_t headphone_mic_pin;
125 hda_nid_t pll_nid;
135 int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
137 void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
139 void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
191 void alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid,
201 hda_nid_t alc_get_hp_pi
[all...]
H A Drealtek.c10 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_read_coefex_idx()
20 int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx()
28 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_write_coefex_idx()
35 void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx()
43 static void __alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_update_coefex_idx()
54 void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_update_coefex_idx()
188 void alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid,
343 static void set_eapd(struct hda_codec *codec, hda_nid_t nid, int on) in alc_fill_eapd_coef()
356 static const hda_nid_t pins[] = { in set_eapd()
359 const hda_nid_t * in set_eapd()
[all...]
H A Dalc882.c93 static const hda_nid_t conn1[] = { 0x0c, 0x0d }; in alc889_fixup_dac_route()
94 static const hda_nid_t conn2[] = { 0x0e, 0x0f }; in alc889_fixup_dac_route()
101 static const hda_nid_t conn[] = { 0x0c, 0x0d, 0x0e, 0x0f, 0x26 }; in alc889_fixup_dac_route()
113 static const hda_nid_t nids[] = { 0x14, 0x15, 0x19 }; in alc889_fixup_mbp_vref()
132 const hda_nid_t *nids, int num_nids) in alc889_fixup_mac_pins()
150 static const hda_nid_t nids[] = { 0x18, 0x1a }; in alc889_fixup_imac91_vref()
160 static const hda_nid_t nids[] = { 0x18 }; in alc889_fixup_mba11_vref()
170 static const hda_nid_t nids[] = { 0x18, 0x19 }; in alc889_fixup_mba21_vref()
194 static const hda_nid_t conn1[] = { 0x0c }; in alc1220_fixup_gb_x570()
218 static const hda_nid_t conn1[] = { 0x0c }; in alc1220_fixup_clevo_p950()
[all …]
/linux/sound/hda/core/
H A Dsysfs.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 …]
H A Ddevice.c45 hda_nid_t fg; in snd_hdac_device_init()
225 static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd()
276 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read()
294 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm()
313 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm_uncached()
332 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_override_parm()
357 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_get_sub_nodes()
358 hda_nid_t *start_id) in snd_hdac_get_sub_nodes()
378 hda_nid_t nid; in setup_fg_nodes()
407 hda_nid_t start_nid; in snd_hdac_refresh_widgets()
[all …]

123