Home
last modified time | relevance | path

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

123

/openbmc/linux/include/sound/
H A Dhda_codec.h27 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 …]
/openbmc/linux/sound/pci/hda/
H A Dhda_jack.h18 typedef void (*hda_jack_callback_fn) (struct hda_codec *, struct hda_jack_callback *);
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()
69 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec,
72 void snd_hda_jack_tbl_disconnect(struct hda_codec *codec);
73 void snd_hda_jack_tbl_clear(struct hda_codec *codec);
75 void snd_hda_jack_set_dirty_all(struct hda_codec *codec);
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 nid, in snd_hda_jack_detect_enable_callback()
[all …]
H A 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_disconnect_pcms(struct hda_codec *codec);
149 struct hda_codec *codec;
[all …]
H A Dhda_generic.h277 void (*init_hook)(struct hda_codec *codec);
278 void (*automute_hook)(struct hda_codec *codec);
279 void (*cap_sync_hook)(struct hda_codec *codec,
285 struct hda_codec *codec,
289 struct hda_codec *codec,
294 void (*hp_automute_hook)(struct hda_codec *codec,
296 void (*line_automute_hook)(struct hda_codec *codec,
298 void (*mic_autoswitch_hook)(struct hda_codec *codec,
314 int snd_hda_gen_init(struct hda_codec *codec);
315 void snd_hda_gen_free(struct hda_codec *codec);
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 void cx_fixup_headset_recog(struct hda_codec *codec) in cx_fixup_headset_recog()
188 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init()
204 static void cx_auto_shutdown(struct hda_codec *codec) in cx_auto_shutdown()
213 static void cx_auto_free(struct hda_codec *codec) in cx_auto_free()
[all …]
H A Dpatch_hdmi.c78 struct hda_codec *codec;
99 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid,
102 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid,
107 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid,
110 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
114 void (*pin_cvt_fixup)(struct hda_codec *codec,
132 struct hda_codec *codec;
187 int (*port2pin)(struct hda_codec *, int); /* reverse port/pin mapping */
197 static inline bool codec_has_acomp(struct hda_codec *codec) in codec_has_acomp()
251 static int pin_id_to_pin_index(struct hda_codec *codec, in pin_id_to_pin_index()
[all …]
H A Dhda_beep.h20 struct hda_codec *codec;
35 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable);
36 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
37 void snd_hda_detach_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()
H A Dpatch_cirrus.c130 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get()
140 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set()
157 static void cs_automute(struct hda_codec *codec) in cs_automute()
178 static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) in is_active_pin()
186 static void init_input_coef(struct hda_codec *codec) in init_input_coef()
278 static void init_digital_coef(struct hda_codec *codec) in init_digital_coef()
292 static int cs_init(struct hda_codec *codec) in cs_init()
323 static int cs_build_controls(struct hda_codec *codec) in cs_build_controls()
344 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 …]
H A 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 int ad198x_suspend(struct hda_codec *codec) in ad198x_suspend()
126 struct hda_codec *codec = private_data; in ad_vmaster_eapd_hook()
142 static int ad198x_auto_build_controls(struct hda_codec *codec) in ad198x_auto_build_controls()
168 static int ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) in ad198x_parse_auto_config()
196 static int alloc_ad_spec(struct hda_codec *codec) in alloc_ad_spec()
214 static void ad_fixup_inv_jack_detect(struct hda_codec *codec, in ad_fixup_inv_jack_detect()
228 static void ad1986a_fixup_eapd(struct hda_codec *codec, in ad1986a_fixup_eapd()
[all …]
H A Dhda_generic.c105 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints()
210 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl()
216 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target()
228 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets()
256 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path()
287 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx()
308 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx()
319 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
333 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path()
345 static bool is_ctl_used(struct hda_codec *codec, unsigned int val, int type) in is_ctl_used()
[all …]
H A Dpatch_ca0132.c1135 struct hda_codec *codec;
1527 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command()
1537 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format()
1544 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel()
1556 static int chipio_send(struct hda_codec *codec, in chipio_send()
1578 static int chipio_write_address(struct hda_codec *codec, in chipio_write_address()
1605 static int chipio_write_data(struct hda_codec *codec, unsigned int data) in chipio_write_data()
1629 static int chipio_write_data_multiple(struct hda_codec *codec, in chipio_write_data_multiple()
1650 static int chipio_read_data(struct hda_codec *codec, unsigned int *data) in chipio_read_data()
1681 static int chipio_write(struct hda_codec *codec, in chipio_write()
[all …]
H A 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_disconnect(struct hda_codec *codec) in snd_hda_jack_tbl_disconnect()
172 void snd_hda_jack_tbl_clear(struct hda_codec *codec) in snd_hda_jack_tbl_clear()
195 static void jack_detect_update(struct hda_codec *codec, in jack_detect_update()
233 void snd_hda_jack_set_dirty_all(struct hda_codec *codec) in snd_hda_jack_set_dirty_all()
[all …]
H A Dpatch_realtek.c24 #include <sound/hda_codec.h>
110 void (*init_hook)(struct hda_codec *codec);
112 void (*power_hook)(struct hda_codec *codec);
114 void (*shutup)(struct hda_codec *codec);
143 static void coef_mutex_lock(struct hda_codec *codec) in coef_mutex_lock()
151 static void coef_mutex_unlock(struct hda_codec *codec) in coef_mutex_unlock()
159 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_read_coefex_idx()
169 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx()
183 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_write_coefex_idx()
190 static void alc_write_coefex_idx(struct hda_codec *code
[all...]
H A 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()
152 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_remove()
202 static inline bool codec_probed(struct hda_codec *codec) in codec_probed()
208 static void request_codec_module(struct hda_codec *codec) in request_codec_module()
237 static void codec_bind_module(struct hda_codec *codec) in codec_bind_module()
248 static bool is_likely_hdmi_codec(struct hda_codec *codec) in is_likely_hdmi_codec()
277 static int codec_bind_generic(struct hda_codec *codec) in codec_bind_generic()
[all …]
H A Dpatch_sigmatel.c242 struct hda_codec *codec, in stac_playback_pcm_hook()
252 struct hda_codec *codec, in stac_capture_pcm_hook()
289 static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, in stac_gpio_set()
327 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in stac_capture_led_update()
338 static int stac_vrefout_set(struct hda_codec *codec, in stac_vrefout_set()
363 static unsigned int stac_vref_led_power_filter(struct hda_codec *codec, in stac_vref_led_power_filter()
373 static void stac_update_led_status(struct hda_codec *codec, bool muted) in stac_update_led_status()
402 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in stac_vmaster_hook()
409 static void stac_update_outputs(struct hda_codec *codec) in stac_update_outputs()
434 static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, in stac_toggle_power_map()
[all …]
H A Dpatch_cs8409.c22 static int cs8409_parse_auto_config(struct hda_codec *codec) in cs8409_parse_auto_config()
55 static struct cs8409_spec *cs8409_alloc_spec(struct hda_codec *codec) in cs8409_alloc_spec()
72 static inline int cs8409_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs8409_vendor_coef_get()
78 static inline void cs8409_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs8409_vendor_coef_set()
91 static void cs8409_disable_i2c_clock(struct hda_codec *codec) in cs8409_disable_i2c_clock()
120 static void cs8409_enable_i2c_clock(struct hda_codec *codec) in cs8409_enable_i2c_clock()
146 static int cs8409_i2c_wait_complete(struct hda_codec *codec) in cs8409_i2c_wait_complete()
159 static void cs8409_set_i2c_dev_addr(struct hda_codec *codec, unsigned int addr) in cs8409_set_i2c_dev_addr()
178 struct hda_codec *codec = scodec->codec; in cs8409_i2c_set_page()
199 struct hda_codec *codec = scodec->codec; in cs8409_i2c_read()
[all …]
H A 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()
H A 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 …]
H A 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()
486 static const char *hda_get_input_pin_label(struct hda_codec *codec, in hda_get_input_pin_label()
538 static int check_mic_location_need(struct hda_codec *codec, in check_mic_location_need()
575 const char *hda_get_autocfg_input_label(struct hda_codec *codec, in hda_get_autocfg_input_label()
626 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx()
641 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index()
658 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name()
[all …]
H A 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()
H A Dhda_beep.c26 struct hda_codec *codec = beep->codec; in generate_tone()
143 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device()
204 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
278 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
287 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute()
302 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep()
325 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep()
H A 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()

123