Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/include/sound/
Dhda_codec.h30 struct hda_codec;
76 typedef int (*hda_codec_patch_t)(struct hda_codec *);
105 int (*build_controls)(struct hda_codec *codec);
106 int (*build_pcms)(struct hda_codec *codec);
107 int (*init)(struct hda_codec *codec);
108 void (*free)(struct hda_codec *codec);
109 void (*unsol_event)(struct hda_codec *codec, unsigned int res);
110 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg,
113 int (*suspend)(struct hda_codec *codec);
114 int (*resume)(struct hda_codec *codec);
[all …]
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_jack.h18 typedef void (*hda_jack_callback_fn) (struct hda_codec *, struct hda_jack_callback *);
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()
68 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec,
71 void snd_hda_jack_tbl_clear(struct hda_codec *codec);
73 void snd_hda_jack_set_dirty_all(struct hda_codec *codec);
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_nid,
[all …]
Dhda_local.h119 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,
129 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec,
131 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name,
137 int snd_hda_codec_reset(struct hda_codec *codec);
138 void snd_hda_codec_register(struct hda_codec *codec);
139 void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec);
[all …]
Dhda_generic.h91 void (*old_hook)(struct hda_codec *codec,
282 void (*init_hook)(struct hda_codec *codec);
283 void (*automute_hook)(struct hda_codec *codec);
284 void (*cap_sync_hook)(struct hda_codec *codec,
293 struct hda_codec *codec,
297 struct hda_codec *codec,
302 void (*hp_automute_hook)(struct hda_codec *codec,
304 void (*line_automute_hook)(struct hda_codec *codec,
306 void (*mic_autoswitch_hook)(struct hda_codec *codec,
319 int snd_hda_gen_init(struct hda_codec *codec);
[all …]
Dhda_sysfs.c34 struct hda_codec *codec = dev_get_drvdata(dev); in power_on_acct_show()
43 struct hda_codec *codec = dev_get_drvdata(dev); in power_off_acct_show()
57 struct hda_codec *codec = dev_get_drvdata(dev); \
66 struct hda_codec *codec = dev_get_drvdata(dev); \
80 static ssize_t pin_configs_show(struct hda_codec *codec, in pin_configs_show()
99 struct hda_codec *codec = dev_get_drvdata(dev); in init_pin_configs_show()
107 struct hda_codec *codec = dev_get_drvdata(dev); in driver_pin_configs_show()
117 static int clear_codec(struct hda_codec *codec) in clear_codec()
130 static int reconfig_codec(struct hda_codec *codec) in reconfig_codec()
171 struct hda_codec *codec = dev_get_drvdata(dev); \
[all …]
Dpatch_via.c92 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec);
94 struct hda_codec *codec,
100 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec()
125 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) in get_codec_type()
177 static void analog_low_current_mode(struct hda_codec *codec);
178 static bool is_aa_path_mute(struct hda_codec *codec);
184 static void vt1708_stop_hp_work(struct hda_codec *codec) in vt1708_stop_hp_work()
197 static void vt1708_update_hp_work(struct hda_codec *codec) in vt1708_update_hp_work()
222 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_get()
232 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_put()
[all …]
Dhda_codec.c40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb()
79 void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) in snd_hda_sequence_write()
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()
121 static void remove_conn_list(struct hda_codec *codec) in remove_conn_list()
132 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns()
168 int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_conn_list()
207 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_connections()
238 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in snd_hda_override_conn_list()
264 int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, in snd_hda_get_conn_index()
[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);
38 static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
42 static inline void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
Dpatch_hdmi.c73 struct hda_codec *codec;
93 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid,
96 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid,
101 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid,
104 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
108 void (*pin_cvt_fixup)(struct hda_codec *codec,
120 struct hda_codec *codec;
171 int (*port2pin)(struct hda_codec *, int); /* reverse port/pin mapping */
181 static inline bool codec_has_acomp(struct hda_codec *codec) in codec_has_acomp()
235 static int pin_id_to_pin_index(struct hda_codec *codec, in pin_id_to_pin_index()
[all …]
Dpatch_analog.c50 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls()
76 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write()
87 static void ad198x_power_eapd(struct hda_codec *codec) in ad198x_power_eapd()
115 static void ad198x_shutup(struct hda_codec *codec) in ad198x_shutup()
122 static int ad198x_suspend(struct hda_codec *codec) in ad198x_suspend()
132 struct hda_codec *codec = private_data; in ad_vmaster_eapd_hook()
148 static int ad198x_auto_build_controls(struct hda_codec *codec) in ad198x_auto_build_controls()
175 static int ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) in ad198x_parse_auto_config()
203 static int alloc_ad_spec(struct hda_codec *codec) in alloc_ad_spec()
221 static void ad_fixup_inv_jack_detect(struct hda_codec *codec, in ad_fixup_inv_jack_detect()
[all …]
Dpatch_cirrus.c129 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get()
138 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set()
154 static void cs_automute(struct hda_codec *codec) in cs_automute()
175 static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) in is_active_pin()
182 static void init_input_coef(struct hda_codec *codec) in init_input_coef()
281 static void init_digital_coef(struct hda_codec *codec) in init_digital_coef()
295 static int cs_init(struct hda_codec *codec) in cs_init()
326 static int cs_build_controls(struct hda_codec *codec) in cs_build_controls()
347 static int cs_parse_auto_config(struct hda_codec *codec) in cs_parse_auto_config()
494 static void cs420x_fixup_gpio_13(struct hda_codec *codec, in cs420x_fixup_gpio_13()
[all …]
Dhda_generic.c99 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints()
204 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl()
210 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target()
222 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets()
250 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path()
281 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx()
302 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx()
313 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
327 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path()
339 static bool is_ctl_used(struct hda_codec *codec, unsigned int val, int type) in is_ctl_used()
[all …]
Dpatch_conexant.c74 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep()
93 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd()
118 static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, in cx_auto_turn_eapd()
133 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook()
143 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in cx_auto_vmaster_mute_led()
152 static void cxt_init_gpio_led(struct hda_codec *codec) in cxt_init_gpio_led()
167 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init()
180 static void cx_auto_reboot_notify(struct hda_codec *codec) in cx_auto_reboot_notify()
190 static void cx_auto_free(struct hda_codec *codec) in cx_auto_free()
242 static void cxt_fixup_stereo_dmic(struct hda_codec *codec, in cxt_fixup_stereo_dmic()
[all …]
Dhda_bind.c23 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match()
44 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event()
63 int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) in snd_hda_codec_set_name()
88 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_probe()
151 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_remove()
168 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_shutdown()
197 static inline bool codec_probed(struct hda_codec *codec) in codec_probed()
203 static void request_codec_module(struct hda_codec *codec) in request_codec_module()
232 static void codec_bind_module(struct hda_codec *codec) in codec_bind_module()
243 static bool is_likely_hdmi_codec(struct hda_codec *codec) in is_likely_hdmi_codec()
[all …]
Dpatch_ca0132.c1101 struct hda_codec *codec;
1479 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command()
1489 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format()
1496 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel()
1508 static int chipio_send(struct hda_codec *codec, in chipio_send()
1530 static int chipio_write_address(struct hda_codec *codec, in chipio_write_address()
1557 static int chipio_write_data(struct hda_codec *codec, unsigned int data) in chipio_write_data()
1581 static int chipio_write_data_multiple(struct hda_codec *codec, in chipio_write_data_multiple()
1602 static int chipio_read_data(struct hda_codec *codec, unsigned int *data) in chipio_read_data()
1633 static int chipio_write(struct hda_codec *codec, in chipio_write()
[all …]
Dpatch_realtek.c107 void (*init_hook)(struct hda_codec *codec);
109 void (*power_hook)(struct hda_codec *codec);
111 void (*shutup)(struct hda_codec *codec);
112 void (*reboot_notify)(struct hda_codec *codec);
136 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx()
149 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx()
159 static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_update_coefex_idx()
174 static unsigned int alc_get_coef0(struct hda_codec *codec) in alc_get_coef0()
197 static void alc_process_coef_fw(struct hda_codec *codec, in alc_process_coef_fw()
214 static void alc_setup_gpio(struct hda_codec *codec, unsigned int mask) in alc_setup_gpio()
[all …]
Dhda_jack.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()
92 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, in snd_hda_jack_tbl_get_from_tag()
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()
161 void snd_hda_jack_tbl_clear(struct hda_codec *codec) in snd_hda_jack_tbl_clear()
184 static void jack_detect_update(struct hda_codec *codec, in jack_detect_update()
222 void snd_hda_jack_set_dirty_all(struct hda_codec *codec) in snd_hda_jack_set_dirty_all()
242 u32 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_pin_sense()
[all …]
Dpatch_sigmatel.c241 struct hda_codec *codec, in stac_playback_pcm_hook()
251 struct hda_codec *codec, in stac_capture_pcm_hook()
288 static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, in stac_gpio_set()
326 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in stac_capture_led_update()
337 static int stac_vrefout_set(struct hda_codec *codec, in stac_vrefout_set()
362 static unsigned int stac_vref_led_power_filter(struct hda_codec *codec, in stac_vref_led_power_filter()
372 static void stac_update_led_status(struct hda_codec *codec, bool muted) in stac_update_led_status()
401 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in stac_vmaster_hook()
408 static void stac_update_outputs(struct hda_codec *codec) in stac_update_outputs()
433 static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, in stac_toggle_power_map()
[all …]
Dpatch_si3054.c88 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get()
98 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put()
125 static int si3054_build_controls(struct hda_codec *codec) in si3054_build_controls()
136 struct hda_codec *codec, in si3054_pcm_prepare()
155 struct hda_codec *codec, in si3054_pcm_open()
185 static int si3054_build_pcms(struct hda_codec *codec) in si3054_build_pcms()
205 static int si3054_init(struct hda_codec *codec) in si3054_init()
249 static void si3054_free(struct hda_codec *codec) in si3054_free()
265 static int patch_si3054(struct hda_codec *codec) in patch_si3054()
Dthinkpad_helper.c11 static bool is_thinkpad(struct hda_codec *codec) in is_thinkpad()
18 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi()
31 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi()
Dhda_proc.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()
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 nid) in print_vol_knob()
451 struct hda_codec *codec, hda_nid_t nid, in print_audio_io()
[all …]
Dhda_auto_parser.c56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin()
108 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity()
129 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic()
172 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg()
484 static const char *hda_get_input_pin_label(struct hda_codec *codec, in hda_get_input_pin_label()
536 static int check_mic_location_need(struct hda_codec *codec, in check_mic_location_need()
573 const char *hda_get_autocfg_input_label(struct hda_codec *codec, in hda_get_autocfg_input_label()
624 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx()
639 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index()
656 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name()
[all …]
Dhda_beep.c26 struct hda_codec *codec = beep->codec; in generate_tone()
135 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device()
193 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
267 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
276 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute()
291 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep()
314 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep()
Dhda_hwdep.c21 static int verb_write_ioctl(struct hda_codec *codec, in verb_write_ioctl()
35 static int get_wcap_ioctl(struct hda_codec *codec, in get_wcap_ioctl()
63 struct hda_codec *codec = hw->private_data; in hda_hwdep_ioctl()
94 int snd_hda_create_hwdep(struct hda_codec *codec) in snd_hda_create_hwdep()
/kernel/linux/linux-5.10/sound/soc/sof/intel/
Dhda-codec.c27 static int request_codec_module(struct hda_codec *codec) in request_codec_module()
53 static int hda_codec_load_module(struct hda_codec *codec) in hda_codec_load_module()
70 struct hda_codec *codec; in hda_codec_jack_wake_enable()
85 struct hda_codec *codec; in hda_codec_jack_check()
118 struct hda_codec *codec; in hda_codec_probe()

12