/sound/pci/hda/ |
D | hda_codec.h | 40 struct hda_codec; 86 typedef int (*hda_codec_patch_t)(struct hda_codec *); 114 int (*build_controls)(struct hda_codec *codec); 115 int (*build_pcms)(struct hda_codec *codec); 116 int (*init)(struct hda_codec *codec); 117 void (*free)(struct hda_codec *codec); 118 void (*unsol_event)(struct hda_codec *codec, unsigned int res); 119 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg, 122 int (*suspend)(struct hda_codec *codec); 123 int (*resume)(struct hda_codec *codec); [all …]
|
D | hda_jack.h | 21 typedef void (*hda_jack_callback_fn) (struct hda_codec *, struct hda_jack_callback *); 47 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid); 49 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag); 51 void snd_hda_jack_tbl_clear(struct hda_codec *codec); 53 void snd_hda_jack_set_dirty_all(struct hda_codec *codec); 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, 63 u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid); 70 int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid); [all …]
|
D | hda_generic.h | 274 void (*init_hook)(struct hda_codec *codec); 275 void (*automute_hook)(struct hda_codec *codec); 276 void (*cap_sync_hook)(struct hda_codec *codec, 282 struct hda_codec *codec, 286 struct hda_codec *codec, 291 void (*hp_automute_hook)(struct hda_codec *codec, 293 void (*line_automute_hook)(struct hda_codec *codec, 295 void (*mic_autoswitch_hook)(struct hda_codec *codec, 308 int snd_hda_gen_init(struct hda_codec *codec); 309 void snd_hda_gen_free(struct hda_codec *codec); [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, 142 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, 144 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, 150 int snd_hda_codec_reset(struct hda_codec *codec); 151 void snd_hda_codec_register(struct hda_codec *codec); 152 void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec); [all …]
|
D | hda_beep.h | 33 struct hda_codec *codec; 47 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable); 48 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); 49 void snd_hda_detach_beep_device(struct hda_codec *codec); 50 int snd_hda_register_beep_device(struct hda_codec *codec); 52 static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device() 56 static inline void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device() 59 static inline int snd_hda_register_beep_device(struct hda_codec *codec) in snd_hda_register_beep_device()
|
D | hda_sysfs.c | 33 struct hda_codec *codec = dev_get_drvdata(dev); in power_on_acct_show() 42 struct hda_codec *codec = dev_get_drvdata(dev); in power_off_acct_show() 56 struct hda_codec *codec = dev_get_drvdata(dev); \ 65 struct hda_codec *codec = dev_get_drvdata(dev); \ 79 static ssize_t pin_configs_show(struct hda_codec *codec, in pin_configs_show() 98 struct hda_codec *codec = dev_get_drvdata(dev); in init_pin_configs_show() 106 struct hda_codec *codec = dev_get_drvdata(dev); in driver_pin_configs_show() 116 static int clear_codec(struct hda_codec *codec) in clear_codec() 129 static int reconfig_codec(struct hda_codec *codec) in reconfig_codec() 170 struct hda_codec *codec = dev_get_drvdata(dev); \ [all …]
|
D | patch_via.c | 114 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec); 116 struct hda_codec *codec, 122 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec() 147 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) in get_codec_type() 199 static void analog_low_current_mode(struct hda_codec *codec); 200 static bool is_aa_path_mute(struct hda_codec *codec); 206 static void vt1708_stop_hp_work(struct hda_codec *codec) in vt1708_stop_hp_work() 219 static void vt1708_update_hp_work(struct hda_codec *codec) in vt1708_update_hp_work() 244 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_get() 254 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_put() [all …]
|
D | hda_codec.c | 62 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() 101 void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) in snd_hda_sequence_write() 118 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list() 128 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list() 143 static void remove_conn_list(struct hda_codec *codec) in remove_conn_list() 154 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns() 190 int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_conn_list() 229 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_connections() 260 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in snd_hda_override_conn_list() 286 int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, in snd_hda_get_conn_index() [all …]
|
D | patch_analog.c | 62 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() 88 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write() 99 static void ad198x_power_eapd(struct hda_codec *codec) in ad198x_power_eapd() 127 static void ad198x_shutup(struct hda_codec *codec) in ad198x_shutup() 134 static int ad198x_suspend(struct hda_codec *codec) in ad198x_suspend() 144 struct hda_codec *codec = private_data; in ad_vmaster_eapd_hook() 160 static int ad198x_auto_build_controls(struct hda_codec *codec) in ad198x_auto_build_controls() 187 static int ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) in ad198x_parse_auto_config() 215 static int alloc_ad_spec(struct hda_codec *codec) in alloc_ad_spec() 233 static void ad_fixup_inv_jack_detect(struct hda_codec *codec, in ad_fixup_inv_jack_detect() [all …]
|
D | patch_cirrus.c | 142 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get() 151 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set() 167 static void cs_automute(struct hda_codec *codec) in cs_automute() 188 static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) in is_active_pin() 195 static void init_input_coef(struct hda_codec *codec) in init_input_coef() 294 static void init_digital_coef(struct hda_codec *codec) in init_digital_coef() 308 static int cs_init(struct hda_codec *codec) in cs_init() 339 static int cs_build_controls(struct hda_codec *codec) in cs_build_controls() 360 static int cs_parse_auto_config(struct hda_codec *codec) in cs_parse_auto_config() 507 static void cs420x_fixup_gpio_13(struct hda_codec *codec, in cs420x_fixup_gpio_13() [all …]
|
D | hda_bind.c | 22 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() 43 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() 62 int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) in snd_hda_codec_set_name() 87 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_probe() 141 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_remove() 152 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_shutdown() 181 static inline bool codec_probed(struct hda_codec *codec) in codec_probed() 187 static void request_codec_module(struct hda_codec *codec) in request_codec_module() 216 static void codec_bind_module(struct hda_codec *codec) in codec_bind_module() 227 static bool is_likely_hdmi_codec(struct hda_codec *codec) in is_likely_hdmi_codec() [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() 94 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag) in snd_hda_jack_tbl_get_from_tag() 114 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_new() 128 void snd_hda_jack_tbl_clear(struct hda_codec *codec) in snd_hda_jack_tbl_clear() 151 static void jack_detect_update(struct hda_codec *codec, in jack_detect_update() 186 void snd_hda_jack_set_dirty_all(struct hda_codec *codec) in snd_hda_jack_set_dirty_all() 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() [all …]
|
D | patch_hdmi.c | 83 struct hda_codec *codec; 103 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid, 107 int (*pin_get_slot_channel)(struct hda_codec *codec, hda_nid_t pin_nid, 109 int (*pin_set_slot_channel)(struct hda_codec *codec, hda_nid_t pin_nid, 112 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid, 116 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid, bool hbr); 118 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid, 367 static int pin_nid_to_pin_index(struct hda_codec *codec, hda_nid_t pin_nid) in pin_nid_to_pin_index() 380 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index() 394 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index() [all …]
|
D | patch_conexant.c | 73 static int add_beep_ctls(struct hda_codec *codec) in add_beep_ctls() 103 static void cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep() 119 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd() 144 static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, in cx_auto_turn_eapd() 159 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook() 168 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook_mute_led() 176 static int cx_auto_build_controls(struct hda_codec *codec) in cx_auto_build_controls() 191 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init() 203 static void cx_auto_reboot_notify(struct hda_codec *codec) in cx_auto_reboot_notify() 226 static void cx_auto_free(struct hda_codec *codec) in cx_auto_free() [all …]
|
D | hda_generic.c | 111 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() 213 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl() 219 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target() 231 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets() 259 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path() 290 struct nid_path *snd_hda_get_nid_path(struct hda_codec *codec, in snd_hda_get_nid_path() 306 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx() 327 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx() 338 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used() 352 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path() [all …]
|
D | patch_realtek.c | 113 void (*init_hook)(struct hda_codec *codec); 115 void (*power_hook)(struct hda_codec *codec); 117 void (*shutup)(struct hda_codec *codec); 118 void (*reboot_notify)(struct hda_codec *codec); 137 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx() 150 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx() 160 static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_update_coefex_idx() 175 static unsigned int alc_get_coef0(struct hda_codec *codec) in alc_get_coef0() 198 static void alc_process_coef_fw(struct hda_codec *codec, in alc_process_coef_fw() 252 static void alc_fix_pll(struct hda_codec *codec) in alc_fix_pll() [all …]
|
D | patch_ca0132.c | 753 struct hda_codec *codec; 794 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() 804 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() 811 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() 823 static int chipio_send(struct hda_codec *codec, in chipio_send() 845 static int chipio_write_address(struct hda_codec *codec, in chipio_write_address() 872 static int chipio_write_data(struct hda_codec *codec, unsigned int data) in chipio_write_data() 896 static int chipio_write_data_multiple(struct hda_codec *codec, in chipio_write_data_multiple() 917 static int chipio_read_data(struct hda_codec *codec, unsigned int *data) in chipio_read_data() 948 static int chipio_write(struct hda_codec *codec, in chipio_write() [all …]
|
D | patch_sigmatel.c | 253 struct hda_codec *codec, in stac_playback_pcm_hook() 263 struct hda_codec *codec, in stac_capture_pcm_hook() 300 static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, in stac_gpio_set() 335 static void stac_capture_led_hook(struct hda_codec *codec, in stac_capture_led_hook() 364 static int stac_vrefout_set(struct hda_codec *codec, in stac_vrefout_set() 389 static unsigned int stac_vref_led_power_filter(struct hda_codec *codec, in stac_vref_led_power_filter() 399 static void stac_update_led_status(struct hda_codec *codec, int enabled) in stac_update_led_status() 432 static void stac_update_outputs(struct hda_codec *codec) in stac_update_outputs() 457 static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, in stac_toggle_power_map() 488 static void jack_update_power(struct hda_codec *codec, in jack_update_power() [all …]
|
D | hda_beep.c | 39 struct hda_codec *codec = beep->codec; in generate_tone() 156 struct hda_codec *codec = beep->codec; in snd_hda_do_attach() 186 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device() 216 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device() 257 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device() 273 int snd_hda_register_beep_device(struct hda_codec *codec) in snd_hda_register_beep_device() 296 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute() 311 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep() 334 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep()
|
D | patch_si3054.c | 102 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get() 112 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put() 139 static int si3054_build_controls(struct hda_codec *codec) in si3054_build_controls() 150 struct hda_codec *codec, in si3054_pcm_prepare() 169 struct hda_codec *codec, in si3054_pcm_open() 199 static int si3054_build_pcms(struct hda_codec *codec) in si3054_build_pcms() 219 static int si3054_init(struct hda_codec *codec) in si3054_init() 263 static void si3054_free(struct hda_codec *codec) in si3054_free() 279 static int patch_si3054(struct hda_codec *codec) in patch_si3054()
|
D | dell_wmi_helper.c | 10 static void (*dell_old_cap_hook)(struct hda_codec *, 14 static void update_dell_wmi_micmute_led(struct hda_codec *codec, in update_dell_wmi_micmute_led() 35 static void alc_fixup_dell_wmi(struct hda_codec *codec, in alc_fixup_dell_wmi() 71 static void alc_fixup_dell_wmi(struct hda_codec *codec, in alc_fixup_dell_wmi()
|
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() 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() 465 struct hda_codec *codec, hda_nid_t nid, in print_audio_io() [all …]
|
D | hda_auto_parser.c | 60 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() 112 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity() 133 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic() 176 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg() 488 static const char *hda_get_input_pin_label(struct hda_codec *codec, in hda_get_input_pin_label() 540 static int check_mic_location_need(struct hda_codec *codec, in check_mic_location_need() 577 const char *hda_get_autocfg_input_label(struct hda_codec *codec, in hda_get_autocfg_input_label() 627 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx() 642 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index() 659 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name() [all …]
|
D | thinkpad_helper.c | 21 static bool is_thinkpad(struct hda_codec *codec) in is_thinkpad() 41 static void update_tpacpi_micmute_led(struct hda_codec *codec, in update_tpacpi_micmute_led() 54 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi() 97 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi()
|
D | hda_hwdep.c | 34 static int verb_write_ioctl(struct hda_codec *codec, in verb_write_ioctl() 48 static int get_wcap_ioctl(struct hda_codec *codec, in get_wcap_ioctl() 76 struct hda_codec *codec = hw->private_data; in hda_hwdep_ioctl() 107 int snd_hda_create_hwdep(struct hda_codec *codec) in snd_hda_create_hwdep()
|