Lines Matching refs:hda_codec
35 static int call_exec_verb(struct hda_bus *bus, struct hda_codec *codec, in call_exec_verb()
57 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb()
88 void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) in snd_hda_sequence_write()
105 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list()
115 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list()
130 static void remove_conn_list(struct hda_codec *codec) in remove_conn_list()
141 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns()
177 int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_conn_list()
216 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_connections()
247 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in snd_hda_override_conn_list()
273 int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, in snd_hda_get_conn_index()
309 unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid) in snd_hda_get_num_devices()
335 unsigned int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_devices()
372 int snd_hda_get_dev_select(struct hda_codec *codec, hda_nid_t nid) in snd_hda_get_dev_select()
390 int snd_hda_set_dev_select(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_set_dev_select()
423 static int read_widget_caps(struct hda_codec *codec, hda_nid_t fg_node) in read_widget_caps()
439 static int read_pin_defaults(struct hda_codec *codec) in read_pin_defaults()
467 static struct hda_pincfg *look_up_pincfg(struct hda_codec *codec, in look_up_pincfg()
484 int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list, in snd_hda_add_pincfg()
510 int snd_hda_codec_set_pincfg(struct hda_codec *codec, in snd_hda_codec_set_pincfg()
526 unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid) in snd_hda_codec_get_pincfg()
562 int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_set_pin_target()
580 int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid) in snd_hda_codec_get_pin_target()
598 void snd_hda_shutup_pins(struct hda_codec *codec) in snd_hda_shutup_pins()
618 static void restore_shutup_pins(struct hda_codec *codec) in restore_shutup_pins()
637 struct hda_codec *codec = in hda_jackpoll_work()
638 container_of(work, struct hda_codec, jackpoll_work.work); in hda_jackpoll_work()
652 static void free_init_pincfgs(struct hda_codec *codec) in free_init_pincfgs()
675 get_hda_cvt_setup(struct hda_codec *codec, hda_nid_t nid) in get_hda_cvt_setup()
700 struct hda_pcm *snd_hda_codec_pcm_new(struct hda_codec *codec, in snd_hda_codec_pcm_new()
728 void snd_hda_codec_disconnect_pcms(struct hda_codec *codec) in snd_hda_codec_disconnect_pcms()
742 static void codec_release_pcms(struct hda_codec *codec) in codec_release_pcms()
760 void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec) in snd_hda_codec_cleanup_for_unbind()
795 static unsigned int hda_set_power_state(struct hda_codec *codec,
799 void snd_hda_codec_display_power(struct hda_codec *codec, bool enable) in snd_hda_codec_display_power()
811 void snd_hda_codec_register(struct hda_codec *codec) in snd_hda_codec_register()
835 void snd_hda_codec_unregister(struct hda_codec *codec) in snd_hda_codec_unregister()
864 struct hda_codec *codec = dev_to_hda_codec(dev); in snd_hda_codec_dev_release()
884 struct hda_codec *
890 struct hda_codec *codec; in snd_hda_codec_device_init()
948 unsigned int codec_addr, struct hda_codec **codecp) in snd_hda_codec_new()
950 struct hda_codec *codec; in snd_hda_codec_new()
968 unsigned int codec_addr, struct hda_codec *codec, in snd_hda_codec_device_new()
1047 int snd_hda_codec_update_widgets(struct hda_codec *codec) in snd_hda_codec_update_widgets()
1073 static void update_pcm_stream_id(struct hda_codec *codec, in update_pcm_stream_id()
1092 static void update_pcm_format(struct hda_codec *codec, struct hda_cvt_setup *p, in update_pcm_format()
1118 void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_setup_stream()
1123 struct hda_codec *c; in snd_hda_codec_setup_stream()
1161 static void really_cleanup_stream(struct hda_codec *codec,
1170 void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, in __snd_hda_codec_cleanup_stream()
1196 static void really_cleanup_stream(struct hda_codec *codec, in really_cleanup_stream()
1214 static void purify_inactive_streams(struct hda_codec *codec) in purify_inactive_streams()
1216 struct hda_codec *c; in purify_inactive_streams()
1229 static void hda_cleanup_all_streams(struct hda_codec *codec) in hda_cleanup_all_streams()
1256 u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction) in query_amp_caps()
1275 bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid, in snd_hda_check_amp_caps()
1300 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_override_amp_caps()
1312 static unsigned int encode_amp(struct hda_codec *codec, hda_nid_t nid, in encode_amp()
1336 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_amp_update()
1357 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_amp_stereo()
1385 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_init()
1407 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_amp_init_stereo()
1421 static u32 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, in get_amp_max_value()
1443 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_info()
1465 read_amp_value(struct hda_codec *codec, hda_nid_t nid, in read_amp_value()
1479 update_amp_value(struct hda_codec *codec, hda_nid_t nid, in update_amp_value()
1506 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_get()
1533 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_put()
1563 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in get_ctl_amp_tlv()
1619 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_set_vmaster_tlv()
1638 find_mixer_ctl(struct hda_codec *codec, const char *name, int dev, int idx) in find_mixer_ctl()
1658 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, in snd_hda_find_mixer_ctl()
1665 static int find_empty_mixer_ctl_idx(struct hda_codec *codec, const char *name, in find_empty_mixer_ctl_idx()
1696 int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, in snd_hda_ctl_add()
1729 void snd_hda_ctls_clear(struct hda_codec *codec) in snd_hda_ctls_clear()
1749 struct hda_codec *codec; in snd_hda_lock_devices()
1799 int snd_hda_codec_reset(struct hda_codec *codec) in snd_hda_codec_reset()
1814 typedef int (*map_follower_func_t)(struct hda_codec *, void *, struct snd_kcontrol *);
1817 static int map_followers(struct hda_codec *codec, const char * const *followers, in map_followers()
1848 static int check_follower_present(struct hda_codec *codec, in check_follower_present()
1869 struct hda_codec *codec;
1928 static int add_follower(struct hda_codec *codec, in add_follower()
1954 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, in __snd_hda_add_vmaster()
2015 int snd_hda_add_vmaster_hook(struct hda_codec *codec, in snd_hda_add_vmaster_hook()
2079 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get()
2107 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put()
2171 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_get()
2241 static void set_dig_out(struct hda_codec *codec, hda_nid_t nid, in set_dig_out()
2256 static inline void set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid, in set_dig_out_convert()
2276 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_put()
2306 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_get()
2318 static inline void set_spdif_ctls(struct hda_codec *codec, hda_nid_t nid, in set_spdif_ctls()
2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_put()
2397 int snd_hda_create_dig_out_ctls(struct hda_codec *codec, in snd_hda_create_dig_out_ctls()
2468 struct hda_spdif_out *snd_hda_spdif_out_of_nid(struct hda_codec *codec, in snd_hda_spdif_out_of_nid()
2489 void snd_hda_spdif_ctls_unassign(struct hda_codec *codec, int idx) in snd_hda_spdif_ctls_unassign()
2509 void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid) in snd_hda_spdif_ctls_assign()
2558 int snd_hda_create_spdif_share_sw(struct hda_codec *codec, in snd_hda_create_spdif_share_sw()
2583 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_get()
2592 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_put()
2610 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_status_get()
2653 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid) in snd_hda_create_spdif_in_ctls()
2692 void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg, in snd_hda_codec_set_power_to_all()
2722 unsigned int snd_hda_codec_eapd_power_filter(struct hda_codec *codec, in snd_hda_codec_eapd_power_filter()
2743 static unsigned int hda_set_power_state(struct hda_codec *codec, in hda_set_power_state()
2787 static void sync_power_up_states(struct hda_codec *codec) in sync_power_up_states()
2811 static void hda_exec_init_verbs(struct hda_codec *codec) in hda_exec_init_verbs()
2817 static inline void hda_exec_init_verbs(struct hda_codec *codec) {} in hda_exec_init_verbs()
2821 static void update_power_acct(struct hda_codec *codec, bool on) in update_power_acct()
2832 void snd_hda_update_power_acct(struct hda_codec *codec) in snd_hda_update_power_acct()
2841 static unsigned int hda_call_codec_suspend(struct hda_codec *codec) in hda_call_codec_suspend()
2860 static void hda_call_codec_resume(struct hda_codec *codec) in hda_call_codec_resume()
2891 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_runtime_suspend()
2910 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_runtime_resume()
2925 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_runtime_idle()
2934 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_pm_prepare()
2943 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_pm_complete()
2968 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_pm_freeze()
3002 void snd_hda_codec_shutdown(struct hda_codec *codec) in snd_hda_codec_shutdown()
3022 static int add_std_chmaps(struct hda_codec *codec) in add_std_chmaps()
3060 int snd_hda_codec_build_controls(struct hda_codec *codec) in snd_hda_codec_build_controls()
3096 struct hda_codec *codec, in hda_pcm_default_open_close()
3103 struct hda_codec *codec, in hda_pcm_default_prepare()
3113 struct hda_codec *codec, in hda_pcm_default_cleanup()
3120 static int set_pcm_default_values(struct hda_codec *codec, in set_pcm_default_values()
3166 int snd_hda_codec_prepare(struct hda_codec *codec, in snd_hda_codec_prepare()
3194 void snd_hda_codec_cleanup(struct hda_codec *codec, in snd_hda_codec_cleanup()
3258 int snd_hda_codec_parse_pcms(struct hda_codec *codec) in snd_hda_codec_parse_pcms()
3300 int snd_hda_codec_build_pcms(struct hda_codec *codec) in snd_hda_codec_build_pcms()
3345 int snd_hda_add_new_ctls(struct hda_codec *codec, in snd_hda_add_new_ctls()
3397 void snd_hda_codec_set_power_save(struct hda_codec *codec, int delay) in snd_hda_codec_set_power_save()
3426 struct hda_codec *c; in snd_hda_set_power_save()
3446 int snd_hda_check_amp_list_power(struct hda_codec *codec, in snd_hda_check_amp_list_power()
3518 int snd_hda_input_mux_put(struct hda_codec *codec, in snd_hda_input_mux_put()
3573 static void setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid, in setup_dig_out_stream()
3612 static void cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid) in cleanup_dig_out_stream()
3627 int snd_hda_multi_out_dig_open(struct hda_codec *codec, in snd_hda_multi_out_dig_open()
3647 int snd_hda_multi_out_dig_prepare(struct hda_codec *codec, in snd_hda_multi_out_dig_prepare()
3664 int snd_hda_multi_out_dig_cleanup(struct hda_codec *codec, in snd_hda_multi_out_dig_cleanup()
3678 int snd_hda_multi_out_dig_close(struct hda_codec *codec, in snd_hda_multi_out_dig_close()
3698 int snd_hda_multi_out_analog_open(struct hda_codec *codec, in snd_hda_multi_out_analog_open()
3752 int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, in snd_hda_multi_out_analog_prepare()
3828 int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, in snd_hda_multi_out_analog_cleanup()
3863 unsigned int snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin) in snd_hda_get_default_vref()
3890 unsigned int snd_hda_correct_pin_ctl(struct hda_codec *codec, in snd_hda_correct_pin_ctl()
3953 int _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, in _snd_hda_set_pin_ctl()
3979 int snd_hda_add_imux_item(struct hda_codec *codec, in snd_hda_add_imux_item()
4013 struct hda_codec *codec; in snd_hda_bus_reset_codecs()