Home
last modified time | relevance | path

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

12

/sound/pci/hda/
Dhda_codec.h66 struct hda_codec;
83 int (*attach_pcm)(struct hda_bus *bus, struct hda_codec *codec,
133 struct hda_codec *caddr_tbl[HDA_MAX_CODEC_ADDRESS + 1];
175 int (*patch)(struct hda_codec *codec);
190 int (*build_controls)(struct hda_codec *codec);
191 int (*build_pcms)(struct hda_codec *codec);
192 int (*init)(struct hda_codec *codec);
193 void (*free)(struct hda_codec *codec);
194 void (*unsol_event)(struct hda_codec *codec, unsigned int res);
195 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg,
[all …]
Dhda_local.h130 int snd_hda_codec_amp_read(struct hda_codec *codec, hda_nid_t nid, int ch,
132 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch,
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_codec_resume_amp(struct hda_codec *codec);
142 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir,
144 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec,
146 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name,
152 int snd_hda_codec_reset(struct hda_codec *codec);
[all …]
Dhda_jack.h21 typedef void (*hda_jack_callback_fn) (struct hda_codec *, struct hda_jack_callback *);
50 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid);
52 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag);
54 void snd_hda_jack_tbl_clear(struct hda_codec *codec);
56 void snd_hda_jack_set_dirty_all(struct hda_codec *codec);
58 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid);
60 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid,
63 int snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid,
66 u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid);
73 int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid);
[all …]
Dhda_generic.h269 void (*init_hook)(struct hda_codec *codec);
270 void (*automute_hook)(struct hda_codec *codec);
271 void (*cap_sync_hook)(struct hda_codec *codec,
277 struct hda_codec *codec,
281 struct hda_codec *codec,
286 void (*hp_automute_hook)(struct hda_codec *codec,
288 void (*line_automute_hook)(struct hda_codec *codec,
290 void (*mic_autoswitch_hook)(struct hda_codec *codec,
296 int snd_hda_gen_init(struct hda_codec *codec);
297 void snd_hda_gen_free(struct hda_codec *codec);
[all …]
Dhda_beep.h33 struct hda_codec *codec;
46 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable);
47 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
48 void snd_hda_detach_beep_device(struct hda_codec *codec);
49 int snd_hda_register_beep_device(struct hda_codec *codec);
51 static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
55 static inline void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
58 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()
178 struct hda_codec *codec = dev_get_drvdata(dev); \
[all …]
Dhda_codec.c101 static void hda_keep_power_on(struct hda_codec *codec);
104 static void hda_call_pm_notify(struct hda_codec *codec, bool power_up) in hda_call_pm_notify()
118 static inline void hda_keep_power_on(struct hda_codec *codec) {} in hda_keep_power_on()
197 make_codec_cmd(struct hda_codec *codec, hda_nid_t nid, int flags, in make_codec_cmd()
219 static int codec_exec_verb(struct hda_codec *codec, unsigned int cmd, in codec_exec_verb()
277 unsigned int snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read()
301 int snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write()
319 void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) in snd_hda_sequence_write()
335 int snd_hda_get_sub_nodes(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_sub_nodes()
360 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list()
[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()
493 static void cs420x_fixup_gpio_13(struct hda_codec *codec, in cs420x_fixup_gpio_13()
[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()
216 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_via.c112 void (*set_widgets_power_state)(struct hda_codec *codec);
116 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec);
118 struct hda_codec *codec,
122 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec()
144 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) in get_codec_type()
196 static void analog_low_current_mode(struct hda_codec *codec);
197 static bool is_aa_path_mute(struct hda_codec *codec);
203 static void vt1708_stop_hp_work(struct hda_codec *codec) in vt1708_stop_hp_work()
216 static void vt1708_update_hp_work(struct hda_codec *codec) in vt1708_update_hp_work()
233 static void set_widgets_power_state(struct hda_codec *codec) in set_widgets_power_state()
[all …]
Dhda_generic.c95 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints()
194 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl()
200 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target()
212 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets()
240 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path()
265 struct nid_path *snd_hda_get_nid_path(struct hda_codec *codec, in snd_hda_get_nid_path()
275 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx()
291 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx()
302 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
316 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path()
[all …]
Dhda_jack.c23 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable()
40 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid) in read_pin_sense()
62 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get()
80 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag) in snd_hda_jack_tbl_get_from_tag()
98 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_new()
112 void snd_hda_jack_tbl_clear(struct hda_codec *codec) in snd_hda_jack_tbl_clear()
135 static void jack_detect_update(struct hda_codec *codec, in jack_detect_update()
169 void snd_hda_jack_set_dirty_all(struct hda_codec *codec) in snd_hda_jack_set_dirty_all()
188 u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid) in snd_hda_pin_sense()
207 int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect_state()
[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);
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()
248 static void alc_fix_pll(struct hda_codec *codec) in alc_fix_pll()
257 static void alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid, in alc_fix_pll_init()
[all …]
Dpatch_hdmi.c79 struct hda_codec *codec;
100 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid,
104 int (*pin_get_slot_channel)(struct hda_codec *codec, hda_nid_t pin_nid,
106 int (*pin_set_slot_channel)(struct hda_codec *codec, hda_nid_t pin_nid,
109 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid,
113 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid, bool hbr);
115 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid,
362 static int pin_nid_to_pin_index(struct hda_codec *codec, hda_nid_t pin_nid) in pin_nid_to_pin_index()
375 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index()
389 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index()
[all …]
Dpatch_ca0132.c750 struct hda_codec *codec;
761 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command()
771 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format()
778 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel()
790 static int chipio_send(struct hda_codec *codec, in chipio_send()
812 static int chipio_write_address(struct hda_codec *codec, in chipio_write_address()
839 static int chipio_write_data(struct hda_codec *codec, unsigned int data) in chipio_write_data()
863 static int chipio_write_data_multiple(struct hda_codec *codec, in chipio_write_data_multiple()
884 static int chipio_read_data(struct hda_codec *codec, unsigned int *data) in chipio_read_data()
915 static int chipio_write(struct hda_codec *codec, in chipio_write()
[all …]
Dpatch_conexant.c73 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()
120 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd()
146 static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, in cx_auto_turn_eapd()
161 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook()
170 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook_mute_led()
178 static int cx_auto_build_controls(struct hda_codec *codec) in cx_auto_build_controls()
193 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init()
245 static void cxt_fixup_stereo_dmic(struct hda_codec *codec, in cxt_fixup_stereo_dmic()
252 static void cxt5066_increase_mic_boost(struct hda_codec *codec, in cxt5066_increase_mic_boost()
[all …]
Dhda_trace.h11 struct hda_codec;
15 TP_PROTO(struct hda_codec *codec, unsigned int val),
35 TP_PROTO(struct hda_codec *codec, unsigned int val),
40 TP_PROTO(struct hda_codec *codec, unsigned int val),
64 TP_PROTO(struct hda_codec *codec),
82 TP_PROTO(struct hda_codec *codec),
87 TP_PROTO(struct hda_codec *codec),
92 TP_PROTO(struct hda_codec *codec),
Dpatch_sigmatel.c252 struct hda_codec *codec, in stac_playback_pcm_hook()
262 struct hda_codec *codec, in stac_capture_pcm_hook()
299 static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, in stac_gpio_set()
333 static void stac_capture_led_hook(struct hda_codec *codec, in stac_capture_led_hook()
362 static int stac_vrefout_set(struct hda_codec *codec, in stac_vrefout_set()
387 static unsigned int stac_vref_led_power_filter(struct hda_codec *codec, in stac_vref_led_power_filter()
397 static void stac_update_led_status(struct hda_codec *codec, int enabled) in stac_update_led_status()
430 static void stac_update_outputs(struct hda_codec *codec) in stac_update_outputs()
455 static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, in stac_toggle_power_map()
486 static void jack_update_power(struct hda_codec *codec, in jack_update_power()
[all …]
Dhda_beep.c40 struct hda_codec *codec = beep->codec; in snd_hda_generate_beep()
153 struct hda_codec *codec = beep->codec; in snd_hda_do_attach()
178 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device()
194 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
231 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
243 int snd_hda_register_beep_device(struct hda_codec *codec) in snd_hda_register_beep_device()
266 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute()
275 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep()
289 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep()
Dpatch_si3054.c103 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get()
113 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put()
140 static int si3054_build_controls(struct hda_codec *codec) in si3054_build_controls()
151 struct hda_codec *codec, in si3054_pcm_prepare()
170 struct hda_codec *codec, in si3054_pcm_open()
200 static int si3054_build_pcms(struct hda_codec *codec) in si3054_build_pcms()
220 static int si3054_init(struct hda_codec *codec) in si3054_init()
260 static void si3054_free(struct hda_codec *codec) in si3054_free()
276 static int patch_si3054(struct hda_codec *codec) in patch_si3054()
Dhda_proc.c73 struct hda_codec *codec, hda_nid_t nid, in print_nid_array()
100 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms()
119 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps()
138 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps()
160 struct hda_codec *codec, hda_nid_t nid, in print_amp_vals()
226 struct hda_codec *codec, hda_nid_t nid) in print_pcm_caps()
270 struct hda_codec *codec, hda_nid_t nid, in print_pin_caps()
364 struct hda_codec *codec, hda_nid_t nid, in print_pin_ctls()
402 struct hda_codec *codec, hda_nid_t nid) in print_vol_knob()
415 struct hda_codec *codec, hda_nid_t nid, in print_audio_io()
[all …]
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()
473 static const char *hda_get_input_pin_label(struct hda_codec *codec, in hda_get_input_pin_label()
525 static int check_mic_location_need(struct hda_codec *codec, in check_mic_location_need()
559 const char *hda_get_autocfg_input_label(struct hda_codec *codec, in hda_get_autocfg_input_label()
609 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx()
624 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index()
641 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name()
[all …]
Ddell_wmi_helper.c10 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()
Dthinkpad_helper.c21 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()
Dhda_hwdep.c33 static int verb_write_ioctl(struct hda_codec *codec, in verb_write_ioctl()
47 static int get_wcap_ioctl(struct hda_codec *codec, in get_wcap_ioctl()
66 struct hda_codec *codec = hw->private_data; in hda_hwdep_ioctl()
97 int snd_hda_create_hwdep(struct hda_codec *codec) in snd_hda_create_hwdep()

12