Home
last modified time | relevance | path

Searched refs:hda_codec (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v4.19/sound/pci/hda/
Dhda_codec.h40 struct hda_codec;
85 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 …]
Dhda_generic.h93 void (*update)(struct hda_codec *codec);
94 void (*old_hook)(struct hda_codec *codec,
283 void (*init_hook)(struct hda_codec *codec);
284 void (*automute_hook)(struct hda_codec *codec);
285 void (*cap_sync_hook)(struct hda_codec *codec,
294 struct hda_codec *codec,
298 struct hda_codec *codec,
303 void (*hp_automute_hook)(struct hda_codec *codec,
305 void (*line_automute_hook)(struct hda_codec *codec,
307 void (*mic_autoswitch_hook)(struct hda_codec *codec,
[all …]
Dhda_jack.h21 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 …]
Dhda_local.h132 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 …]
Dhda_beep.h20 struct hda_codec *codec;
34 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable);
35 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
36 void snd_hda_detach_beep_device(struct hda_codec *codec);
37 int snd_hda_register_beep_device(struct hda_codec *codec);
39 static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
43 static inline void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
46 static inline int snd_hda_register_beep_device(struct hda_codec *codec) in snd_hda_register_beep_device()
Dhda_sysfs.c33 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 …]
Dpatch_via.c105 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec);
107 struct hda_codec *codec,
113 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec()
137 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) in get_codec_type()
189 static void analog_low_current_mode(struct hda_codec *codec);
190 static bool is_aa_path_mute(struct hda_codec *codec);
196 static void vt1708_stop_hp_work(struct hda_codec *codec) in vt1708_stop_hp_work()
209 static void vt1708_update_hp_work(struct hda_codec *codec) in vt1708_update_hp_work()
234 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_get()
244 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_put()
[all …]
Dhda_codec.c53 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb()
92 void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) in snd_hda_sequence_write()
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()
134 static void remove_conn_list(struct hda_codec *codec) in remove_conn_list()
145 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns()
181 int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_conn_list()
220 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_connections()
251 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in snd_hda_override_conn_list()
277 int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, in snd_hda_get_conn_index()
[all …]
Dhda_bind.c22 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()
54 int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) in snd_hda_codec_set_name()
79 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_probe()
135 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_remove()
146 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_shutdown()
175 static inline bool codec_probed(struct hda_codec *codec) in codec_probed()
181 static void request_codec_module(struct hda_codec *codec) in request_codec_module()
210 static void codec_bind_module(struct hda_codec *codec) in codec_bind_module()
221 static bool is_likely_hdmi_codec(struct hda_codec *codec) in is_likely_hdmi_codec()
[all …]
Dpatch_hdmi.c91 struct hda_codec *codec;
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,
122 void (*pin_cvt_fixup)(struct hda_codec *codec,
187 static inline bool codec_has_acomp(struct hda_codec *codec) in codec_has_acomp()
241 static int pin_id_to_pin_index(struct hda_codec *codec, in pin_id_to_pin_index()
266 static int hinfo_to_pcm_index(struct hda_codec *codec, in hinfo_to_pcm_index()
280 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index()
[all …]
Dpatch_analog.c62 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 …]
Dpatch_cirrus.c142 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 …]
Dhda_jack.c33 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 …]
Dhda_generic.c111 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints()
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()
234 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets()
262 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path()
293 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx()
314 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx()
325 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
339 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path()
351 static bool is_ctl_used(struct hda_codec *codec, unsigned int val, int type) in is_ctl_used()
[all …]
Dpatch_conexant.c87 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep()
106 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd()
131 static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, in cx_auto_turn_eapd()
146 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook()
155 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook_mute_led()
163 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init()
175 static void cx_auto_reboot_notify(struct hda_codec *codec) in cx_auto_reboot_notify()
198 static void cx_auto_free(struct hda_codec *codec) in cx_auto_free()
249 static void cxt_fixup_stereo_dmic(struct hda_codec *codec, in cxt_fixup_stereo_dmic()
256 static void cxt5066_increase_mic_boost(struct hda_codec *codec, in cxt5066_increase_mic_boost()
[all …]
Dpatch_ca0132.c960 struct hda_codec *codec;
1078 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command()
1088 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format()
1095 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel()
1107 static int chipio_send(struct hda_codec *codec, in chipio_send()
1129 static int chipio_write_address(struct hda_codec *codec, in chipio_write_address()
1156 static int chipio_write_data(struct hda_codec *codec, unsigned int data) in chipio_write_data()
1180 static int chipio_write_data_multiple(struct hda_codec *codec, in chipio_write_data_multiple()
1201 static int chipio_read_data(struct hda_codec *codec, unsigned int *data) in chipio_read_data()
1232 static int chipio_write(struct hda_codec *codec, in chipio_write()
[all …]
Dpatch_realtek.c109 void (*init_hook)(struct hda_codec *codec);
111 void (*power_hook)(struct hda_codec *codec);
113 void (*shutup)(struct hda_codec *codec);
114 void (*reboot_notify)(struct hda_codec *codec);
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()
171 static unsigned int alc_get_coef0(struct hda_codec *codec) in alc_get_coef0()
194 static void alc_process_coef_fw(struct hda_codec *codec, in alc_process_coef_fw()
211 static void alc_setup_gpio(struct hda_codec *codec, unsigned int mask) in alc_setup_gpio()
[all …]
Dpatch_sigmatel.c253 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_update(struct hda_codec *codec) in stac_capture_led_update()
346 static int stac_vrefout_set(struct hda_codec *codec, in stac_vrefout_set()
371 static unsigned int stac_vref_led_power_filter(struct hda_codec *codec, in stac_vref_led_power_filter()
381 static void stac_update_led_status(struct hda_codec *codec, int enabled) in stac_update_led_status()
414 static void stac_update_outputs(struct hda_codec *codec) in stac_update_outputs()
439 static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, in stac_toggle_power_map()
470 static void jack_update_power(struct hda_codec *codec, in jack_update_power()
[all …]
Dpatch_si3054.c102 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()
Dhda_beep.c26 struct hda_codec *codec = beep->codec; in generate_tone()
143 struct hda_codec *codec = beep->codec; in snd_hda_do_attach()
173 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device()
203 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
244 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
260 int snd_hda_register_beep_device(struct hda_codec *codec) in snd_hda_register_beep_device()
283 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute()
298 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep()
317 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep()
Dthinkpad_helper.c14 static bool is_thinkpad(struct hda_codec *codec) in is_thinkpad()
30 static void update_tpacpi_micmute(struct hda_codec *codec) in update_tpacpi_micmute()
37 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi()
75 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi()
Dhda_proc.c62 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 …]
Ddell_wmi_helper.c11 static void dell_micmute_update(struct hda_codec *codec) in dell_micmute_update()
18 static void alc_fixup_dell_wmi(struct hda_codec *codec, in alc_fixup_dell_wmi()
43 static void alc_fixup_dell_wmi(struct hda_codec *codec, in alc_fixup_dell_wmi()
Dhda_auto_parser.c60 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin()
106 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity()
127 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic()
170 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg()
482 static const char *hda_get_input_pin_label(struct hda_codec *codec, in hda_get_input_pin_label()
534 static int check_mic_location_need(struct hda_codec *codec, in check_mic_location_need()
571 const char *hda_get_autocfg_input_label(struct hda_codec *codec, in hda_get_autocfg_input_label()
622 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx()
637 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index()
654 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name()
[all …]
Dhda_hwdep.c34 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()

12