Lines Matching defs:codec

43 #define codec_in_pm(codec)	atomic_read(&(codec)->core.in_pm)  argument
44 #define hda_codec_is_power_on(codec) \ argument
47 #define codec_in_pm(codec) 0 argument
48 #define hda_codec_is_power_on(codec) 1 argument
51 #define codec_has_epss(codec) \ argument
53 #define codec_has_clkstop(codec) \ argument
132 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local
175 unsigned int snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read()
199 int snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write()
215 void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) in snd_hda_sequence_write()
232 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list()
242 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list()
257 static void remove_conn_list(struct hda_codec *codec) in remove_conn_list()
268 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns()
304 int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_conn_list()
343 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_connections()
374 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in snd_hda_override_conn_list()
400 int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, in snd_hda_get_conn_index()
430 static unsigned int get_num_devices(struct hda_codec *codec, hda_nid_t nid) in get_num_devices()
455 int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_devices()
579 static int read_widget_caps(struct hda_codec *codec, hda_nid_t fg_node) in read_widget_caps()
595 static int read_pin_defaults(struct hda_codec *codec) in read_pin_defaults()
619 static struct hda_pincfg *look_up_pincfg(struct hda_codec *codec, in look_up_pincfg()
635 int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list, in snd_hda_add_pincfg()
670 int snd_hda_codec_set_pincfg(struct hda_codec *codec, in snd_hda_codec_set_pincfg()
686 unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid) in snd_hda_codec_get_pincfg()
722 int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_set_pin_target()
740 int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid) in snd_hda_codec_get_pin_target()
758 void snd_hda_shutup_pins(struct hda_codec *codec) in snd_hda_shutup_pins()
778 static void restore_shutup_pins(struct hda_codec *codec) in restore_shutup_pins()
797 struct hda_codec *codec = in hda_jackpoll_work() local
811 static void free_init_pincfgs(struct hda_codec *codec) in free_init_pincfgs()
834 get_hda_cvt_setup(struct hda_codec *codec, hda_nid_t nid) in get_hda_cvt_setup()
870 struct hda_pcm *snd_hda_codec_pcm_new(struct hda_codec *codec, in snd_hda_codec_pcm_new()
898 static void codec_release_pcms(struct hda_codec *codec) in codec_release_pcms()
910 void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec) in snd_hda_codec_cleanup_for_unbind()
947 void snd_hda_codec_register(struct hda_codec *codec) in snd_hda_codec_register()
968 struct hda_codec *codec = device->device_data; in snd_hda_codec_dev_disconnect() local
976 struct hda_codec *codec = device->device_data; in snd_hda_codec_dev_free() local
986 struct hda_codec *codec = dev_to_hda_codec(dev); in snd_hda_codec_dev_release() local
1007 struct hda_codec *codec; in snd_hda_codec_new() local
1112 int snd_hda_codec_update_widgets(struct hda_codec *codec) in snd_hda_codec_update_widgets()
1138 static void update_pcm_stream_id(struct hda_codec *codec, in update_pcm_stream_id()
1157 static void update_pcm_format(struct hda_codec *codec, struct hda_cvt_setup *p, in update_pcm_format()
1183 void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_setup_stream()
1235 void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, in __snd_hda_codec_cleanup_stream()
1261 static void really_cleanup_stream(struct hda_codec *codec, in really_cleanup_stream()
1277 static void purify_inactive_streams(struct hda_codec *codec) in purify_inactive_streams()
1294 static void hda_cleanup_all_streams(struct hda_codec *codec) in hda_cleanup_all_streams()
1322 u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction) in query_amp_caps()
1341 bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid, in snd_hda_check_amp_caps()
1366 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_override_amp_caps()
1390 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_amp_update()
1415 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_amp_stereo()
1443 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_init()
1470 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_amp_init_stereo()
1484 static u32 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, in get_amp_max_value()
1506 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_info() local
1528 read_amp_value(struct hda_codec *codec, hda_nid_t nid, in read_amp_value()
1542 update_amp_value(struct hda_codec *codec, hda_nid_t nid, in update_amp_value()
1569 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_get() local
1596 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_put() local
1628 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_tlv() local
1668 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_set_vmaster_tlv()
1687 find_mixer_ctl(struct hda_codec *codec, const char *name, int dev, int idx) in find_mixer_ctl()
1707 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, in snd_hda_find_mixer_ctl()
1714 static int find_empty_mixer_ctl_idx(struct hda_codec *codec, const char *name, in find_empty_mixer_ctl_idx()
1745 int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, in snd_hda_ctl_add()
1785 int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, in snd_hda_add_nid()
1809 void snd_hda_ctls_clear(struct hda_codec *codec) in snd_hda_ctls_clear()
1828 struct hda_codec *codec; in snd_hda_lock_devices() local
1882 int snd_hda_codec_reset(struct hda_codec *codec) in snd_hda_codec_reset()
1900 static int map_slaves(struct hda_codec *codec, const char * const *slaves, in map_slaves()
1931 static int check_slave_present(struct hda_codec *codec, in check_slave_present()
1938 static int get_kctl_0dB_offset(struct hda_codec *codec, in get_kctl_0dB_offset()
1985 static int init_slave_0dB(struct hda_codec *codec, in init_slave_0dB()
1995 static int init_slave_unmute(struct hda_codec *codec, in init_slave_unmute()
2001 static int add_slave(struct hda_codec *codec, in add_slave()
2026 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, in __snd_hda_add_vmaster()
2131 int snd_hda_add_vmaster_hook(struct hda_codec *codec, in snd_hda_add_vmaster_hook()
2204 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get() local
2232 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put() local
2275 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_switch_get() local
2300 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_switch_put() local
2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_info() local
2357 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_get() local
2382 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_put() local
2415 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_tlv() local
2481 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_get() local
2550 static void set_dig_out(struct hda_codec *codec, hda_nid_t nid, in set_dig_out()
2565 static inline void set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid, in set_dig_out_convert()
2585 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_put() local
2614 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_get() local
2625 static inline void set_spdif_ctls(struct hda_codec *codec, hda_nid_t nid, in set_spdif_ctls()
2639 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_put() local
2703 int snd_hda_create_dig_out_ctls(struct hda_codec *codec, in snd_hda_create_dig_out_ctls()
2768 struct hda_spdif_out *snd_hda_spdif_out_of_nid(struct hda_codec *codec, in snd_hda_spdif_out_of_nid()
2789 void snd_hda_spdif_ctls_unassign(struct hda_codec *codec, int idx) in snd_hda_spdif_ctls_unassign()
2808 void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid) in snd_hda_spdif_ctls_assign()
2856 int snd_hda_create_spdif_share_sw(struct hda_codec *codec, in snd_hda_create_spdif_share_sw()
2881 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_get() local
2890 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_put() local
2909 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_status_get() local
2952 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid) in snd_hda_create_spdif_in_ctls()
2991 void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg, in snd_hda_codec_set_power_to_all()
3015 static unsigned int hda_sync_power_state(struct hda_codec *codec, in hda_sync_power_state()
3047 unsigned int snd_hda_codec_eapd_power_filter(struct hda_codec *codec, in snd_hda_codec_eapd_power_filter()
3068 static unsigned int hda_set_power_state(struct hda_codec *codec, in hda_set_power_state()
3111 static void sync_power_up_states(struct hda_codec *codec) in sync_power_up_states()
3135 static void hda_exec_init_verbs(struct hda_codec *codec) in hda_exec_init_verbs()
3141 static inline void hda_exec_init_verbs(struct hda_codec *codec) {} in hda_exec_init_verbs()
3146 static void update_power_acct(struct hda_codec *codec, bool on) in update_power_acct()
3157 void snd_hda_update_power_acct(struct hda_codec *codec) in snd_hda_update_power_acct()
3166 static unsigned int hda_call_codec_suspend(struct hda_codec *codec) in hda_call_codec_suspend()
3184 static void hda_call_codec_resume(struct hda_codec *codec) in hda_call_codec_resume()
3215 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_runtime_suspend() local
3231 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_runtime_resume() local
3251 static int add_std_chmaps(struct hda_codec *codec) in add_std_chmaps()
3290 int snd_hda_codec_build_controls(struct hda_codec *codec) in snd_hda_codec_build_controls()
3366 unsigned int snd_hda_calc_stream_format(struct hda_codec *codec, in snd_hda_calc_stream_format()
3422 static unsigned int query_pcm_param(struct hda_codec *codec, hda_nid_t nid) in query_pcm_param()
3435 static unsigned int query_stream_param(struct hda_codec *codec, hda_nid_t nid) in query_stream_param()
3458 int snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid, in snd_hda_query_supported_pcm()
3563 int snd_hda_is_supported_format(struct hda_codec *codec, hda_nid_t nid, in snd_hda_is_supported_format()
3624 struct hda_codec *codec, in hda_pcm_default_open_close()
3631 struct hda_codec *codec, in hda_pcm_default_prepare()
3641 struct hda_codec *codec, in hda_pcm_default_cleanup()
3648 static int set_pcm_default_values(struct hda_codec *codec, in set_pcm_default_values()
3693 int snd_hda_codec_prepare(struct hda_codec *codec, in snd_hda_codec_prepare()
3721 void snd_hda_codec_cleanup(struct hda_codec *codec, in snd_hda_codec_cleanup()
3786 int snd_hda_codec_parse_pcms(struct hda_codec *codec) in snd_hda_codec_parse_pcms()
3826 int snd_hda_codec_build_pcms(struct hda_codec *codec) in snd_hda_codec_build_pcms()
3872 int snd_hda_add_new_ctls(struct hda_codec *codec, in snd_hda_add_new_ctls()
3913 static void codec_set_power_save(struct hda_codec *codec, int delay) in codec_set_power_save()
3958 int snd_hda_check_amp_list_power(struct hda_codec *codec, in snd_hda_check_amp_list_power()
4031 int snd_hda_input_mux_put(struct hda_codec *codec, in snd_hda_input_mux_put()
4086 static void setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid, in setup_dig_out_stream()
4119 static void cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid) in cleanup_dig_out_stream()
4134 int snd_hda_multi_out_dig_open(struct hda_codec *codec, in snd_hda_multi_out_dig_open()
4155 int snd_hda_multi_out_dig_prepare(struct hda_codec *codec, in snd_hda_multi_out_dig_prepare()
4173 int snd_hda_multi_out_dig_cleanup(struct hda_codec *codec, in snd_hda_multi_out_dig_cleanup()
4188 int snd_hda_multi_out_dig_close(struct hda_codec *codec, in snd_hda_multi_out_dig_close()
4209 int snd_hda_multi_out_analog_open(struct hda_codec *codec, in snd_hda_multi_out_analog_open()
4263 int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, in snd_hda_multi_out_analog_prepare()
4339 int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, in snd_hda_multi_out_analog_cleanup()
4375 unsigned int snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin) in snd_hda_get_default_vref()
4402 unsigned int snd_hda_correct_pin_ctl(struct hda_codec *codec, in snd_hda_correct_pin_ctl()
4465 int _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, in _snd_hda_set_pin_ctl()
4491 int snd_hda_add_imux_item(struct hda_codec *codec, in snd_hda_add_imux_item()
4525 struct hda_codec *codec; in snd_hda_bus_reset() local