/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | hda_jack.h | 21 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 D | hda_generic.h | 18 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_ni [all...] |
H A D | hda_local.h | 119 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_nid [all...] |
H A D | hda_auto_parser.h | 35 hda_nid_t pin; 46 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, 65 hda_nid_t line_out_pins[AUTO_CFG_MAX_OUTS]; 67 hda_nid_t speaker_pins[AUTO_CFG_MAX_OUTS]; 70 hda_nid_t hp_pins[AUTO_CFG_MAX_OUTS]; 74 hda_nid_t dig_out_pins[2]; 75 hda_nid_t dig_in_pin; 76 hda_nid_t mono_out_pin; 89 const hda_nid_t *ignore_nids, 101 static inline const hda_nid_t *auto_cfg_hp_pin in auto_cfg_hp_outs() [all...] |
H A D | hda_proc.c | 48 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 D | hda_codec.c | 90 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_KERNE in read_and_add_raw_conns() [all...] |
H A D | hda_jack.c | 29 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_ni [all...] |
/kernel/linux/linux-5.10/sound/pci/hda/ |
H A D | hda_jack.h | 21 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 */ 54 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id); 62 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() 75 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, 79 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid, 93 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() 99 int snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_ni [all...] |
H A D | hda_generic.h | 15 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 */ 118 hda_nid_t alt_dac_nid; 119 hda_nid_t follower_dig_outs[3]; /* optional - for auto-parsing */ 124 hda_nid_t adc_nids[AUTO_CFG_MAX_INS]; 125 hda_nid_t dig_in_nid; /* digital-in NID; optional */ 126 hda_nid_t mixer_nid; /* analog-mixer NID */ 127 hda_nid_t mixer_merge_ni [all...] |
H A D | hda_auto_parser.h | 33 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_pin in auto_cfg_hp_outs() [all...] |
H A D | hda_local.h | 119 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, 174 hda_nid_t associated_nid, 175 hda_nid_t cvt_nid, int type); 178 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid); 197 struct snd_ctl_elem_value *ucontrol, hda_nid_t nid, 214 const hda_nid_t *dac_nid [all...] |
H A D | hda_codec.c | 90 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_KERNE in read_and_add_raw_conns() [all...] |
H A D | hda_proc.c | 48 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...] |
/kernel/linux/linux-5.10/include/sound/ |
H A D | hda_codec.h | 110 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg, 115 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 118 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); 142 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ 211 const hda_nid_t *follower_dig_outs; /* optional digital out follower widgets */ 267 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, 272 struct hda_codec *codec, hda_nid_t nid); 319 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() 327 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() 337 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t ni [all...] |
H A D | hda_regmap.h | 79 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 D | hdaudio.h | 21 typedef u16 hda_nid_t; typedef 56 hda_nid_t afg; /* AFG node id */ 57 hda_nid_t mfg; /* MFG node id */ 79 hda_nid_t start_nid, end_nid; 127 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, 129 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, 131 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, 133 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, 135 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, 136 hda_nid_t *conn_lis [all...] |
H A D | hda_component.h | 17 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()
|
/kernel/linux/linux-6.6/include/sound/ |
H A D | hda_codec.h | 110 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg, 115 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 117 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); 141 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ 212 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() 343 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t ni [all...] |
H A D | hda_regmap.h | 79 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 D | hdaudio.h | 24 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_lis [all...] |
H A D | hda_component.h | 17 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()
|
/kernel/linux/linux-5.10/sound/hda/ |
H A D | hdac_device.c | 44 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_ni in snd_hdac_refresh_widgets() [all...] |
H A D | hdac_sysfs.c | 89 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 ni [all...] |
/kernel/linux/linux-6.6/sound/hda/ |
H A D | hdac_device.c | 44 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_ni in snd_hdac_refresh_widgets() [all...] |
H A D | hdac_sysfs.c | 89 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 ni [all...] |