• Home
  • Raw
  • Download

Lines Matching defs:codec

99 #define codec_in_pm(codec)	((codec)->in_pm)  argument
102 #define hda_codec_is_power_on(codec) ((codec)->power_on) argument
104 static void hda_call_pm_notify(struct hda_codec *codec, bool power_up) in hda_call_pm_notify()
117 #define codec_in_pm(codec) 0 argument
118 static inline void hda_keep_power_on(struct hda_codec *codec) {} in hda_keep_power_on()
119 #define hda_codec_is_power_on(codec) 1 argument
120 #define hda_call_pm_notify(codec, state) {} argument
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()
370 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list()
385 static void remove_conn_list(struct hda_codec *codec) in remove_conn_list()
396 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns()
433 int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_conn_list()
472 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_connections()
492 static unsigned int get_num_conns(struct hda_codec *codec, hda_nid_t nid) in get_num_conns()
507 int snd_hda_get_num_raw_conns(struct hda_codec *codec, hda_nid_t nid) in snd_hda_get_num_raw_conns()
523 int snd_hda_get_raw_connections(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_raw_connections()
625 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in snd_hda_override_conn_list()
651 int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, in snd_hda_get_conn_index()
681 static unsigned int get_num_devices(struct hda_codec *codec, hda_nid_t nid) in get_num_devices()
706 int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_devices()
783 struct hda_codec *codec; in process_unsol_events() local
921 #define is_generic_config(codec) \ argument
924 #define is_generic_config(codec) 0 argument
937 find_codec_preset(struct hda_codec *codec) in find_codec_preset()
988 static int get_codec_name(struct hda_codec *codec) in get_codec_name()
1030 static void setup_fg_nodes(struct hda_codec *codec) in setup_fg_nodes()
1059 static int read_widget_caps(struct hda_codec *codec, hda_nid_t fg_node) in read_widget_caps()
1077 static int read_pin_defaults(struct hda_codec *codec) in read_pin_defaults()
1102 static struct hda_pincfg *look_up_pincfg(struct hda_codec *codec, in look_up_pincfg()
1118 int snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list, in snd_hda_add_pincfg()
1153 int snd_hda_codec_set_pincfg(struct hda_codec *codec, in snd_hda_codec_set_pincfg()
1169 unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid) in snd_hda_codec_get_pincfg()
1196 int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_set_pin_target()
1210 int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid) in snd_hda_codec_get_pin_target()
1228 void snd_hda_shutup_pins(struct hda_codec *codec) in snd_hda_shutup_pins()
1248 static void restore_shutup_pins(struct hda_codec *codec) in restore_shutup_pins()
1267 struct hda_codec *codec = in hda_jackpoll_work() local
1285 static void free_init_pincfgs(struct hda_codec *codec) in free_init_pincfgs()
1308 get_hda_cvt_setup(struct hda_codec *codec, hda_nid_t nid) in get_hda_cvt_setup()
1328 #define load_parser(codec, sym) \ argument
1331 static void unload_parser(struct hda_codec *codec) in unload_parser()
1341 static void snd_hda_codec_free(struct hda_codec *codec) in snd_hda_codec_free()
1383 struct hda_codec *codec = device->device_data; in snd_hda_codec_dev_register() local
1394 struct hda_codec *codec = device->device_data; in snd_hda_codec_dev_disconnect() local
1425 struct hda_codec *codec; in snd_hda_codec_new() local
1581 int snd_hda_codec_update_widgets(struct hda_codec *codec) in snd_hda_codec_update_widgets()
1607 static bool is_likely_hdmi_codec(struct hda_codec *codec) in is_likely_hdmi_codec()
1627 #define is_likely_hdmi_codec(codec) false argument
1639 int snd_hda_codec_configure(struct hda_codec *codec) in snd_hda_codec_configure()
1697 static void update_pcm_stream_id(struct hda_codec *codec, in update_pcm_stream_id()
1716 static void update_pcm_format(struct hda_codec *codec, struct hda_cvt_setup *p, in update_pcm_format()
1742 void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_setup_stream()
1792 void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, in __snd_hda_codec_cleanup_stream()
1818 static void really_cleanup_stream(struct hda_codec *codec, in really_cleanup_stream()
1832 static void purify_inactive_streams(struct hda_codec *codec) in purify_inactive_streams()
1849 static void hda_cleanup_all_streams(struct hda_codec *codec) in hda_cleanup_all_streams()
1927 get_alloc_amp_hash(struct hda_codec *codec, u32 key) in get_alloc_amp_hash()
1933 static int write_caps_hash(struct hda_codec *codec, u32 key, unsigned int val) in write_caps_hash()
1953 query_caps_hash(struct hda_codec *codec, hda_nid_t nid, int dir, u32 key, in query_caps_hash()
1976 static unsigned int read_amp_cap(struct hda_codec *codec, hda_nid_t nid, in read_amp_cap()
1998 u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction) in query_amp_caps()
2014 bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid, in snd_hda_check_amp_caps()
2039 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_override_amp_caps()
2046 static unsigned int read_pin_cap(struct hda_codec *codec, hda_nid_t nid, in read_pin_cap()
2063 u32 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) in snd_hda_query_pin_caps()
2080 int snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, in snd_hda_override_pin_caps()
2091 update_amp_hash(struct hda_codec *codec, hda_nid_t nid, int ch, in update_amp_hash()
2126 static void put_vol_mute(struct hda_codec *codec, unsigned int amp_caps, in put_vol_mute()
2163 int snd_hda_codec_amp_read(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_read()
2178 static int codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch, in codec_amp_update()
2223 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_update()
2242 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_amp_stereo()
2260 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, in snd_hda_codec_amp_init()
2267 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_amp_init_stereo()
2287 void snd_hda_codec_resume_amp(struct hda_codec *codec) in snd_hda_codec_resume_amp()
2324 static u32 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, in get_amp_max_value()
2344 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_info() local
2366 read_amp_value(struct hda_codec *codec, hda_nid_t nid, in read_amp_value()
2380 update_amp_value(struct hda_codec *codec, hda_nid_t nid, in update_amp_value()
2405 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_get() local
2430 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_put() local
2460 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_tlv() local
2500 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_set_vmaster_tlv()
2519 find_mixer_ctl(struct hda_codec *codec, const char *name, int dev, int idx) in find_mixer_ctl()
2539 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, in snd_hda_find_mixer_ctl()
2546 static int find_empty_mixer_ctl_idx(struct hda_codec *codec, const char *name, in find_empty_mixer_ctl_idx()
2577 int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, in snd_hda_ctl_add()
2617 int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, in snd_hda_add_nid()
2641 void snd_hda_ctls_clear(struct hda_codec *codec) in snd_hda_ctls_clear()
2657 struct hda_codec *codec; in snd_hda_lock_devices() local
2709 int snd_hda_codec_reset(struct hda_codec *codec) in snd_hda_codec_reset()
2766 static int map_slaves(struct hda_codec *codec, const char * const *slaves, in map_slaves()
2797 static int check_slave_present(struct hda_codec *codec, in check_slave_present()
2804 static int get_kctl_0dB_offset(struct hda_codec *codec, in get_kctl_0dB_offset()
2851 static int init_slave_0dB(struct hda_codec *codec, in init_slave_0dB()
2861 static int init_slave_unmute(struct hda_codec *codec, in init_slave_unmute()
2867 static int add_slave(struct hda_codec *codec, in add_slave()
2892 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, in __snd_hda_add_vmaster()
2990 int snd_hda_add_vmaster_hook(struct hda_codec *codec, in snd_hda_add_vmaster_hook()
3056 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get() local
3082 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put() local
3125 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_switch_get() local
3148 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_switch_put() local
3178 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_info() local
3201 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_get() local
3224 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_ctls_put() local
3253 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_bind_tlv() local
3319 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_get() local
3388 static void set_dig_out(struct hda_codec *codec, hda_nid_t nid, in set_dig_out()
3401 static inline void set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid, in set_dig_out_convert()
3413 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_default_put() local
3442 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_get() local
3453 static inline void set_spdif_ctls(struct hda_codec *codec, hda_nid_t nid, in set_spdif_ctls()
3467 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_out_switch_put() local
3531 int snd_hda_create_dig_out_ctls(struct hda_codec *codec, in snd_hda_create_dig_out_ctls()
3590 struct hda_spdif_out *snd_hda_spdif_out_of_nid(struct hda_codec *codec, in snd_hda_spdif_out_of_nid()
3604 void snd_hda_spdif_ctls_unassign(struct hda_codec *codec, int idx) in snd_hda_spdif_ctls_unassign()
3615 void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid) in snd_hda_spdif_ctls_assign()
3663 int snd_hda_create_spdif_share_sw(struct hda_codec *codec, in snd_hda_create_spdif_share_sw()
3688 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_get() local
3697 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_switch_put() local
3716 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_spdif_in_status_get() local
3758 int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid) in snd_hda_create_spdif_in_ctls()
3808 int snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_write_cache()
3852 int snd_hda_codec_update_cache(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_update_cache()
3879 void snd_hda_codec_resume_cache(struct hda_codec *codec) in snd_hda_codec_resume_cache()
3914 void snd_hda_sequence_write_cache(struct hda_codec *codec, in snd_hda_sequence_write_cache()
3927 void snd_hda_codec_flush_cache(struct hda_codec *codec) in snd_hda_codec_flush_cache()
3934 void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg, in snd_hda_codec_set_power_to_all()
3959 static bool snd_hda_codec_get_supported_ps(struct hda_codec *codec, hda_nid_t fg, in snd_hda_codec_get_supported_ps()
3975 static unsigned int hda_sync_power_state(struct hda_codec *codec, in hda_sync_power_state()
3999 unsigned int snd_hda_codec_eapd_power_filter(struct hda_codec *codec, in snd_hda_codec_eapd_power_filter()
4020 static unsigned int hda_set_power_state(struct hda_codec *codec, in hda_set_power_state()
4063 static void sync_power_up_states(struct hda_codec *codec) in sync_power_up_states()
4088 static void hda_exec_init_verbs(struct hda_codec *codec) in hda_exec_init_verbs()
4094 static inline void hda_exec_init_verbs(struct hda_codec *codec) {} in hda_exec_init_verbs()
4102 static unsigned int hda_call_codec_suspend(struct hda_codec *codec, bool in_wq) in hda_call_codec_suspend()
4127 static void hda_mark_cmd_cache_dirty(struct hda_codec *codec) in hda_mark_cmd_cache_dirty()
4145 static void hda_call_codec_resume(struct hda_codec *codec) in hda_call_codec_resume()
4189 struct hda_codec *codec; in snd_hda_build_controls() local
4212 static int add_std_chmaps(struct hda_codec *codec) in add_std_chmaps()
4253 int snd_hda_codec_build_controls(struct hda_codec *codec) in snd_hda_codec_build_controls()
4328 unsigned int snd_hda_calc_stream_format(struct hda_codec *codec, in snd_hda_calc_stream_format()
4384 static unsigned int get_pcm_param(struct hda_codec *codec, hda_nid_t nid, in get_pcm_param()
4398 static unsigned int query_pcm_param(struct hda_codec *codec, hda_nid_t nid) in query_pcm_param()
4404 static unsigned int get_stream_param(struct hda_codec *codec, hda_nid_t nid, in get_stream_param()
4415 static unsigned int query_stream_param(struct hda_codec *codec, hda_nid_t nid) in query_stream_param()
4434 int snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid, in snd_hda_query_supported_pcm()
4539 int snd_hda_is_supported_format(struct hda_codec *codec, hda_nid_t nid, in snd_hda_is_supported_format()
4600 struct hda_codec *codec, in hda_pcm_default_open_close()
4607 struct hda_codec *codec, in hda_pcm_default_prepare()
4617 struct hda_codec *codec, in hda_pcm_default_cleanup()
4624 static int set_pcm_default_values(struct hda_codec *codec, in set_pcm_default_values()
4658 int snd_hda_codec_prepare(struct hda_codec *codec, in snd_hda_codec_prepare()
4674 void snd_hda_codec_cleanup(struct hda_codec *codec, in snd_hda_codec_cleanup()
4740 static int snd_hda_attach_pcm(struct hda_codec *codec, struct hda_pcm *pcm) in snd_hda_attach_pcm()
4760 int snd_hda_codec_build_pcms(struct hda_codec *codec) in snd_hda_codec_build_pcms()
4833 struct hda_codec *codec; in snd_hda_build_pcms() local
4854 int snd_hda_add_new_ctls(struct hda_codec *codec, in snd_hda_add_new_ctls()
4897 struct hda_codec *codec = in hda_power_work() local
4919 static void hda_keep_power_on(struct hda_codec *codec) in hda_keep_power_on()
4930 void snd_hda_update_power_acct(struct hda_codec *codec) in snd_hda_update_power_acct()
4944 static void __snd_hda_power_up(struct hda_codec *codec, bool wait_power_down) in __snd_hda_power_up()
4978 #define power_save(codec) \ argument
4982 static void __snd_hda_power_down(struct hda_codec *codec) in __snd_hda_power_down()
5003 void snd_hda_power_save(struct hda_codec *codec, int delta, bool d3wait) in snd_hda_power_save()
5029 int snd_hda_check_amp_list_power(struct hda_codec *codec, in snd_hda_check_amp_list_power()
5074 int snd_hda_ch_mode_info(struct hda_codec *codec, in snd_hda_ch_mode_info()
5093 int snd_hda_ch_mode_get(struct hda_codec *codec, in snd_hda_ch_mode_get()
5114 int snd_hda_ch_mode_put(struct hda_codec *codec, in snd_hda_ch_mode_put()
5163 int snd_hda_input_mux_put(struct hda_codec *codec, in snd_hda_input_mux_put()
5219 static void setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid, in setup_dig_out_stream()
5252 static void cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid) in cleanup_dig_out_stream()
5268 struct hda_codec *codec; in snd_hda_bus_reboot_notify() local
5283 int snd_hda_multi_out_dig_open(struct hda_codec *codec, in snd_hda_multi_out_dig_open()
5299 int snd_hda_multi_out_dig_prepare(struct hda_codec *codec, in snd_hda_multi_out_dig_prepare()
5315 int snd_hda_multi_out_dig_cleanup(struct hda_codec *codec, in snd_hda_multi_out_dig_cleanup()
5328 int snd_hda_multi_out_dig_close(struct hda_codec *codec, in snd_hda_multi_out_dig_close()
5345 int snd_hda_multi_out_analog_open(struct hda_codec *codec, in snd_hda_multi_out_analog_open()
5394 int snd_hda_multi_out_analog_prepare(struct hda_codec *codec, in snd_hda_multi_out_analog_prepare()
5468 int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, in snd_hda_multi_out_analog_cleanup()
5502 unsigned int snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin) in snd_hda_get_default_vref()
5524 unsigned int snd_hda_correct_pin_ctl(struct hda_codec *codec, in snd_hda_correct_pin_ctl()
5574 int _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, in _snd_hda_set_pin_ctl()
5595 int snd_hda_add_imux_item(struct hda_codec *codec, in snd_hda_add_imux_item()
5648 struct hda_codec *codec; in snd_hda_suspend() local
5677 struct hda_codec *codec; in snd_hda_resume() local