/Linux-v4.19/sound/pci/hda/ |
D | hda_generic.h | 17 hda_nid_t pin; /* multi-io widget pin NID */ 18 hda_nid_t dac; /* DAC to be connected */ 45 hda_nid_t path[MAX_NID_PATH_DEPTH]; 60 hda_nid_t pin; /* pin */ 121 hda_nid_t alt_dac_nid; 122 hda_nid_t slave_dig_outs[3]; /* optional - for auto-parsing */ 127 hda_nid_t adc_nids[AUTO_CFG_MAX_INS]; 128 hda_nid_t dig_in_nid; /* digital-in NID; optional */ 129 hda_nid_t mixer_nid; /* analog-mixer NID */ 130 hda_nid_t mixer_merge_nid; /* aamix merge-point NID (optional) */ [all …]
|
D | hda_jack.h | 24 hda_nid_t nid; 31 hda_nid_t nid; 40 hda_nid_t gating_jack; /* valid when gating jack plugged */ 41 hda_nid_t gated_jack; /* gated is dependent on this jack */ 47 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid); 55 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid); 57 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, 60 int snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid, 61 hda_nid_t gating_nid); 63 u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid); [all …]
|
D | hda_codec.h | 119 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg, 124 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 127 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); 151 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ 220 const hda_nid_t *slave_dig_outs; /* optional digital out slave widgets */ 270 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, 275 struct hda_codec *codec, hda_nid_t nid); 321 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() 329 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() 339 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, [all …]
|
D | hda_auto_parser.h | 37 hda_nid_t pin; 48 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, 67 hda_nid_t line_out_pins[AUTO_CFG_MAX_OUTS]; 69 hda_nid_t speaker_pins[AUTO_CFG_MAX_OUTS]; 72 hda_nid_t hp_pins[AUTO_CFG_MAX_OUTS]; 76 hda_nid_t dig_out_pins[2]; 77 hda_nid_t dig_in_pin; 78 hda_nid_t mono_out_pin; 91 const hda_nid_t *ignore_nids, 103 static inline const hda_nid_t *auto_cfg_hp_pins(const struct auto_pin_cfg *cfg) in auto_cfg_hp_pins() [all …]
|
D | hda_local.h | 132 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, 134 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, 136 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, 138 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, 140 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, 185 hda_nid_t associated_nid, 186 hda_nid_t cvt_nid, int type); 189 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid); 208 struct snd_ctl_elem_value *ucontrol, hda_nid_t nid, 225 const hda_nid_t *dac_nids; /* DAC list */ [all …]
|
D | hda_codec.c | 103 hda_nid_t nid; 104 hda_nid_t conns[0]; 109 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list() 119 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list() 120 const hda_nid_t *list) in add_conn_list() 124 p = kmalloc(sizeof(*p) + len * sizeof(hda_nid_t), GFP_KERNEL); in add_conn_list() 129 memcpy(p->conns, list, len * sizeof(hda_nid_t)); in add_conn_list() 145 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns() 147 hda_nid_t list[32]; in read_and_add_raw_conns() 148 hda_nid_t *result = list; in read_and_add_raw_conns() [all …]
|
D | hda_generic.c | 216 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl() 222 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target() 235 hda_nid_t *pins, unsigned int val) in set_pin_targets() 247 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list() 257 static bool is_nid_contained(struct nid_path *path, hda_nid_t nid) in is_nid_contained() 263 hda_nid_t from_nid, hda_nid_t to_nid, in get_nid_path() 325 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used() 340 hda_nid_t from_nid, hda_nid_t to_nid) in is_reachable_path() 366 static bool is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, in is_ctl_associated() 391 hda_nid_t from_nid, hda_nid_t to_nid, in __parse_nid_path() [all …]
|
D | hda_proc.c | 62 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() 89 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() 108 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() 126 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() 129 hda_nid_t conn; in is_stereo_amps() 148 struct hda_codec *codec, hda_nid_t nid, in print_amp_vals() 214 struct hda_codec *codec, hda_nid_t nid) in print_pcm_caps() 319 struct hda_codec *codec, hda_nid_t nid, in print_pin_caps() 415 struct hda_codec *codec, hda_nid_t nid, in print_pin_ctls() 453 struct hda_codec *codec, hda_nid_t nid) in print_vol_knob() [all …]
|
D | hda_jack.c | 33 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() 50 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid) in read_pin_sense() 74 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() 114 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_new() 205 u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid) in snd_hda_pin_sense() 224 int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect_state() 247 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() 289 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect_enable() 303 int snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid, in snd_hda_jack_set_gating_jack() 304 hda_nid_t gating_nid) in snd_hda_jack_set_gating_jack() [all …]
|
D | hda_auto_parser.c | 24 static int is_in_nid_list(hda_nid_t nid, const hda_nid_t *list) in is_in_nid_list() 34 hda_nid_t pin; 49 static void sort_pins_by_sequence(hda_nid_t *pins, struct auto_out_pin *list, in sort_pins_by_sequence() 61 hda_nid_t nid, int type) in add_auto_cfg_input_pin() 91 static void reorder_outputs(unsigned int nums, hda_nid_t *pins) in reorder_outputs() 93 hda_nid_t nid; in reorder_outputs() 106 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity() 172 const hda_nid_t *ignore_nids, in snd_hda_parse_pin_defcfg() 175 hda_nid_t nid; in snd_hda_parse_pin_defcfg() 484 hda_nid_t pin, bool check_location) in hda_get_input_pin_label() [all …]
|
D | patch_hdmi.c | 69 hda_nid_t cvt_nid; 82 hda_nid_t pin_nid; 87 hda_nid_t mux_nids[HDA_MAX_CONNECTIONS]; 89 hda_nid_t cvt_nid; 110 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid, 113 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid, 117 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid, bool hbr); 119 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid, 120 hda_nid_t pin_nid, u32 stream_tag, int format); 124 hda_nid_t cvt_nid); [all …]
|
D | patch_realtek.c | 97 hda_nid_t mute_led_nid; 98 hda_nid_t cap_mute_led_nid; 103 hda_nid_t headset_mic_pin; 104 hda_nid_t headphone_mic_pin; 122 hda_nid_t pll_nid; 133 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx() 146 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx() 156 static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_update_coefex_idx() 303 static void alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid, in alc_fix_pll_init() 456 static void set_eapd(struct hda_codec *codec, hda_nid_t nid, int on) in set_eapd() [all …]
|
D | patch_ca0132.c | 180 hda_nid_t nid; 311 hda_nid_t parent_nid; 312 hda_nid_t nid; 424 hda_nid_t nid; 520 hda_nid_t nid; 653 hda_nid_t vnid; 906 hda_nid_t out_pins[AUTO_CFG_MAX_OUTS]; 907 hda_nid_t dacs[AUTO_CFG_MAX_OUTS]; 909 hda_nid_t input_pins[AUTO_PIN_LAST]; 910 hda_nid_t adcs[AUTO_PIN_LAST]; [all …]
|
D | patch_analog.c | 41 hda_nid_t eapd_nid; 88 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write() 89 hda_nid_t hp) in ad198x_power_eapd_write() 404 static hda_nid_t preferred_pairs[] = { in patch_ad1986a() 468 hda_nid_t dig_out = spec->gen.multiout.dig_out_nid; in ad1983_auto_smux_enum_info() 495 hda_nid_t dig_out = spec->gen.multiout.dig_out_nid; in ad1983_auto_smux_enum_put() 519 hda_nid_t dig_out = spec->gen.multiout.dig_out_nid; in ad1983_add_spdif_mux_ctl() 535 static hda_nid_t conn_0c[] = { 0x08 }; in patch_ad1983() 536 static hda_nid_t conn_0d[] = { 0x09 }; in patch_ad1983()
|
D | patch_conexant.c | 42 hda_nid_t eapds[4]; 44 hda_nid_t mute_led_eapd; 69 static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, in set_beep_amp() 90 hda_nid_t nid; in cx_auto_parse_beep() 109 hda_nid_t nid; in cx_auto_parse_eapd() 132 hda_nid_t *pins, bool on) in cx_auto_turn_eapd() 277 hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]]; in cxt_update_headset_mode() 979 static hda_nid_t out_nids[] = { in add_cx5051_fake_mutes() 982 hda_nid_t *p; in add_cx5051_fake_mutes()
|
D | patch_cirrus.c | 48 hda_nid_t vendor_nid; 188 static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) in is_active_pin() 714 hda_nid_t pin = spec->gen.autocfg.dig_out_pins[0]; in cs4208_spdif_sw_put() 769 static void cs4208_fix_amp_caps(struct hda_codec *codec, hda_nid_t adc) in cs4208_fix_amp_caps() 1037 hda_nid_t spdif_pin = spec->gen.autocfg.dig_out_pins[0]; in cs4210_spdif_automute() 1062 hda_nid_t nid = cfg->dig_out_pins[i]; in parse_cs421x_digital() 1099 static void fix_volume_caps(struct hda_codec *codec, hda_nid_t dac) in fix_volume_caps() 1114 hda_nid_t dac = CS4210_DAC_NID; in cs421x_parse_auto_config()
|
D | patch_via.c | 271 static int set_beep_amp(struct via_spec *spec, hda_nid_t nid, in set_beep_amp() 292 hda_nid_t nid; in auto_parse_beep() 418 static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid) in via_check_power_status() 451 static void vt1708_set_pinconfig_connect(struct hda_codec *codec, hda_nid_t nid) in vt1708_set_pinconfig_connect() 717 static void override_mic_boost(struct hda_codec *codec, hda_nid_t pin, in override_mic_boost() 829 hda_nid_t conn[8]; in add_secret_dac_path() 830 hda_nid_t nid; in add_secret_dac_path() 1054 static hda_nid_t conn_24[] = { 0x14, 0x1c }; in fix_vt1802_connections() 1055 static hda_nid_t conn_33[] = { 0x1c }; in fix_vt1802_connections()
|
D | patch_sigmatel.c | 219 const hda_nid_t *pwr_nids; 223 hda_nid_t anabeep_nid; 234 static const hda_nid_t stac92hd73xx_pwr_nids[8] = { 239 static const hda_nid_t stac92hd83xxx_pwr_nids[7] = { 244 static const hda_nid_t stac92hd71bxx_pwr_nids[3] = { 304 hda_nid_t fg = codec->core.afg; in stac_gpio_set() 347 hda_nid_t nid, unsigned int new_vref) in stac_vrefout_set() 372 hda_nid_t nid, in stac_vref_led_power_filter() 439 static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, in stac_toggle_power_map() 488 hda_nid_t nid = spec->pwr_nids[i]; in jack_update_power() [all …]
|
/Linux-v4.19/include/sound/ |
D | hda_regmap.h | 76 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_write() 94 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update() 112 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_read() 133 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp() 157 snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp() 178 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp_stereo() 202 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp_stereo() 216 snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) in snd_hdac_regmap_sync_node()
|
D | hdaudio.h | 20 typedef u16 hda_nid_t; typedef 55 hda_nid_t afg; /* AFG node id */ 56 hda_nid_t mfg; /* MFG node id */ 78 hda_nid_t start_nid, end_nid; 119 unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, 123 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, 125 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, 127 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, 129 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, 131 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, [all …]
|
D | hda_component.h | 12 int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid, 14 int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id, 33 hda_nid_t nid, int dev_id, int rate) in snd_hdac_sync_audio_rate() 37 static inline int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_acomp_get_eld()
|
D | hda_chmap.h | 50 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-v4.19/sound/hda/ |
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 nid, in amp_out_caps_show() [all …]
|
D | hdac_device.c | 43 hda_nid_t fg; in snd_hdac_device_init() 215 unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd() 268 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read() 282 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm() 301 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm_uncached() 320 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_override_parm() 345 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_get_sub_nodes() 346 hda_nid_t *start_id) in snd_hdac_get_sub_nodes() 366 hda_nid_t nid; in setup_fg_nodes() 396 hda_nid_t start_nid; in snd_hdac_refresh_widgets() [all …]
|
D | hdmi_chmap.c | 182 hda_nid_t pin_nid, int asp_slot, int channel) in hdmi_pin_set_slot_channel() 190 hda_nid_t pin_nid, int asp_slot) in hdmi_pin_get_slot_channel() 197 static int hdmi_get_channel_count(struct hdac_device *codec, hda_nid_t cvt_nid) in hdmi_get_channel_count() 204 hda_nid_t cvt_nid, int chs) in hdmi_set_channel_count() 323 hda_nid_t pin_nid) in hdmi_debug_channel_mapping() 339 hda_nid_t pin_nid, in hdmi_std_setup_channel_mapping() 505 hda_nid_t pin_nid, in hdmi_manual_setup_channel_mapping() 550 hda_nid_t pin_nid, bool non_pcm, int ca, in snd_hdac_setup_channel_mapping()
|