/linux/sound/hda/common/ |
H A D | bind.c | 3 * HD-audio codec driver binding 19 * find a matching codec id 23 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() local 28 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match() 29 u32 rev_id = codec->core.revision_id; in hda_codec_match() 34 codec->preset = list; in hda_codec_match() 44 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() local 45 struct hda_codec_driver *driver = hda_codec_to_driver(codec); in hda_codec_unsol_event() 48 if (codec->card->shutdown || codec->bus->shutdown) in hda_codec_unsol_event() 52 if (codec->core.dev.power.power_state.event != PM_EVENT_ON) in hda_codec_unsol_event() [all …]
|
H A D | codec.c | 3 * Universal Interface for Intel High Definition Audio Codec 28 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument 29 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument 30 #define codec_has_epss(codec) \ 31 ((codec)->core.power_caps & AC_PWRST_EPSS) argument 32 #define codec_has_clkstop(codec) \ 33 ((codec)->core.power_caps & AC_PWRST_CLKSTOP) 35 static int call_exec_verb(struct hda_bus *bus, struct hda_codec *codec, 27 codec_in_pm(codec) global() argument 40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); codec_exec_verb() local 79 snd_hda_sequence_write(struct hda_codec * codec,const struct hda_verb * seq) snd_hda_sequence_write() argument 96 lookup_conn_list(struct hda_codec * codec,hda_nid_t nid) lookup_conn_list() argument 106 add_conn_list(struct hda_codec * codec,hda_nid_t nid,int len,const hda_nid_t * list) add_conn_list() argument 121 remove_conn_list(struct hda_codec * codec) remove_conn_list() argument 132 read_and_add_raw_conns(struct hda_codec * codec,hda_nid_t nid) read_and_add_raw_conns() argument 168 snd_hda_get_conn_list(struct hda_codec * codec,hda_nid_t nid,const hda_nid_t ** listp) snd_hda_get_conn_list() argument 207 snd_hda_get_connections(struct hda_codec * codec,hda_nid_t nid,hda_nid_t * conn_list,int max_conns) snd_hda_get_connections() argument 238 snd_hda_override_conn_list(struct hda_codec * codec,hda_nid_t nid,int len,const hda_nid_t * list) snd_hda_override_conn_list() argument 264 snd_hda_get_conn_index(struct hda_codec * codec,hda_nid_t mux,hda_nid_t nid,int recursive) snd_hda_get_conn_index() argument 300 snd_hda_get_num_devices(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_num_devices() argument 326 snd_hda_get_devices(struct hda_codec * codec,hda_nid_t nid,u8 * dev_list,int max_devices) snd_hda_get_devices() argument 365 snd_hda_get_dev_select(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_dev_select() argument 383 snd_hda_set_dev_select(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_set_dev_select() argument 416 read_widget_caps(struct hda_codec * codec,hda_nid_t fg_node) read_widget_caps() argument 432 read_pin_defaults(struct hda_codec * codec) read_pin_defaults() argument 460 look_up_pincfg(struct hda_codec * codec,struct snd_array * array,hda_nid_t nid) look_up_pincfg() argument 477 snd_hda_add_pincfg(struct hda_codec * codec,struct snd_array * list,hda_nid_t nid,unsigned int cfg) snd_hda_add_pincfg() argument 503 snd_hda_codec_set_pincfg(struct hda_codec * codec,hda_nid_t nid,unsigned int cfg) snd_hda_codec_set_pincfg() argument 519 snd_hda_codec_get_pincfg(struct hda_codec * codec,hda_nid_t nid) snd_hda_codec_get_pincfg() argument 555 snd_hda_codec_set_pin_target(struct hda_codec * codec,hda_nid_t nid,unsigned int val) snd_hda_codec_set_pin_target() argument 573 snd_hda_codec_get_pin_target(struct hda_codec * codec,hda_nid_t nid) snd_hda_codec_get_pin_target() argument 591 snd_hda_shutup_pins(struct hda_codec * codec) snd_hda_shutup_pins() argument 611 restore_shutup_pins(struct hda_codec * codec) restore_shutup_pins() argument 630 struct hda_codec *codec = hda_jackpoll_work() local 646 free_init_pincfgs(struct hda_codec * codec) free_init_pincfgs() argument 669 get_hda_cvt_setup(struct hda_codec * codec,hda_nid_t nid) get_hda_cvt_setup() argument 694 snd_hda_codec_pcm_new(struct hda_codec * codec,const char * fmt,...) snd_hda_codec_pcm_new() argument 722 snd_hda_codec_disconnect_pcms(struct hda_codec * codec) snd_hda_codec_disconnect_pcms() argument 736 codec_release_pcms(struct hda_codec * codec) codec_release_pcms() argument 754 snd_hda_codec_cleanup_for_unbind(struct hda_codec * codec) snd_hda_codec_cleanup_for_unbind() argument 793 snd_hda_codec_display_power(struct hda_codec * codec,bool enable) snd_hda_codec_display_power() argument 805 snd_hda_codec_register(struct hda_codec * codec) snd_hda_codec_register() argument 829 snd_hda_codec_unregister(struct hda_codec * codec) snd_hda_codec_unregister() argument 858 struct hda_codec *codec = dev_to_hda_codec(dev); snd_hda_codec_dev_release() local 884 struct hda_codec *codec; snd_hda_codec_device_init() local 944 struct hda_codec *codec; snd_hda_codec_new() local 962 snd_hda_codec_device_new(struct hda_bus * bus,struct snd_card * card,unsigned int codec_addr,struct hda_codec * codec,bool snddev_managed) snd_hda_codec_device_new() argument 1041 snd_hda_codec_update_widgets(struct hda_codec * codec) snd_hda_codec_update_widgets() argument 1067 update_pcm_stream_id(struct hda_codec * codec,struct hda_cvt_setup * p,hda_nid_t nid,u32 stream_tag,int channel_id) update_pcm_stream_id() argument 1086 update_pcm_format(struct hda_codec * codec,struct hda_cvt_setup * p,hda_nid_t nid,int format) update_pcm_format() argument 1112 snd_hda_codec_setup_stream(struct hda_codec * codec,hda_nid_t nid,u32 stream_tag,int channel_id,int format) snd_hda_codec_setup_stream() argument 1164 __snd_hda_codec_cleanup_stream(struct hda_codec * codec,hda_nid_t nid,int do_now) __snd_hda_codec_cleanup_stream() argument 1190 really_cleanup_stream(struct hda_codec * codec,struct hda_cvt_setup * q) really_cleanup_stream() argument 1208 purify_inactive_streams(struct hda_codec * codec) purify_inactive_streams() argument 1223 hda_cleanup_all_streams(struct hda_codec * codec) hda_cleanup_all_streams() argument 1250 query_amp_caps(struct hda_codec * codec,hda_nid_t nid,int direction) query_amp_caps() argument 1269 snd_hda_check_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int bits) snd_hda_check_amp_caps() argument 1294 snd_hda_override_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int caps) snd_hda_override_amp_caps() argument 1306 encode_amp(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx) encode_amp() argument 1330 snd_hda_codec_amp_update(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,int mask,int val) snd_hda_codec_amp_update() argument 1351 snd_hda_codec_amp_stereo(struct hda_codec * codec,hda_nid_t nid,int direction,int idx,int mask,int val) snd_hda_codec_amp_stereo() argument 1379 snd_hda_codec_amp_init(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,int mask,int val) snd_hda_codec_amp_init() argument 1401 snd_hda_codec_amp_init_stereo(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int mask,int val) snd_hda_codec_amp_init_stereo() argument 1415 get_amp_max_value(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int ofs) get_amp_max_value() argument 1437 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_info() local 1459 read_amp_value(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,unsigned int ofs) read_amp_value() argument 1473 update_amp_value(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,unsigned int ofs,unsigned int val) update_amp_value() argument 1500 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_get() local 1527 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_put() local 1557 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); get_ctl_amp_tlv() local 1613 snd_hda_set_vmaster_tlv(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int * tlv) snd_hda_set_vmaster_tlv() argument 1632 find_mixer_ctl(struct hda_codec * codec,const char * name,int dev,int idx) find_mixer_ctl() argument 1652 snd_hda_find_mixer_ctl(struct hda_codec * codec,const char * name) snd_hda_find_mixer_ctl() argument 1659 find_empty_mixer_ctl_idx(struct hda_codec * codec,const char * name,int start_idx) find_empty_mixer_ctl_idx() argument 1690 snd_hda_ctl_add(struct hda_codec * codec,hda_nid_t nid,struct snd_kcontrol * kctl) snd_hda_ctl_add() argument 1723 snd_hda_ctls_clear(struct hda_codec * codec) snd_hda_ctls_clear() argument 1743 struct hda_codec *codec; snd_hda_lock_devices() local 1797 snd_hda_codec_reset(struct hda_codec * codec) snd_hda_codec_reset() argument 1815 map_followers(struct hda_codec * codec,const char * const * followers,const char * suffix,map_follower_func_t func,void * data) map_followers() argument 1846 check_follower_present(struct hda_codec * codec,void * data,struct snd_kcontrol * sctl) check_follower_present() argument 1867 struct hda_codec *codec; global() member 1926 add_follower(struct hda_codec * codec,void * data,struct snd_kcontrol * follower) add_follower() argument 1952 __snd_hda_add_vmaster(struct hda_codec * codec,char * name,unsigned int * tlv,const char * const * followers,const char * suffix,bool init_follower_vol,unsigned int access,struct snd_kcontrol ** ctl_ret) __snd_hda_add_vmaster() argument 2013 snd_hda_add_vmaster_hook(struct hda_codec * codec,struct hda_vmaster_mute_hook * hook) snd_hda_add_vmaster_hook() argument 2077 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_switch_get() local 2105 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_switch_put() local 2169 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_default_get() local 2240 set_dig_out(struct hda_codec * codec,hda_nid_t nid,int mask,int val) set_dig_out() argument 2255 set_dig_out_convert(struct hda_codec * codec,hda_nid_t nid,int dig1,int dig2) set_dig_out_convert() argument 2275 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_default_put() local 2306 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_out_switch_get() local 2319 set_spdif_ctls(struct hda_codec * codec,hda_nid_t nid,int dig1,int dig2) set_spdif_ctls() argument 2333 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_out_switch_put() local 2399 snd_hda_create_dig_out_ctls(struct hda_codec * codec,hda_nid_t associated_nid,hda_nid_t cvt_nid,int type) snd_hda_create_dig_out_ctls() argument 2470 snd_hda_spdif_out_of_nid(struct hda_codec * codec,hda_nid_t nid) snd_hda_spdif_out_of_nid() argument 2491 snd_hda_spdif_ctls_unassign(struct hda_codec * codec,int idx) snd_hda_spdif_ctls_unassign() argument 2512 snd_hda_spdif_ctls_assign(struct hda_codec * codec,int idx,hda_nid_t nid) snd_hda_spdif_ctls_assign() argument 2562 snd_hda_create_spdif_share_sw(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_create_spdif_share_sw() argument 2587 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_switch_get() local 2596 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_switch_put() local 2615 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_status_get() local 2658 snd_hda_create_spdif_in_ctls(struct hda_codec * codec,hda_nid_t nid) snd_hda_create_spdif_in_ctls() argument 2697 snd_hda_codec_set_power_to_all(struct hda_codec * codec,hda_nid_t fg,unsigned int power_state) snd_hda_codec_set_power_to_all() argument 2727 snd_hda_codec_eapd_power_filter(struct hda_codec * codec,hda_nid_t nid,unsigned int power_state) snd_hda_codec_eapd_power_filter() argument 2748 hda_set_power_state(struct hda_codec * codec,unsigned int power_state) hda_set_power_state() argument 2792 sync_power_up_states(struct hda_codec * codec) sync_power_up_states() argument 2816 hda_exec_init_verbs(struct hda_codec * codec) hda_exec_init_verbs() argument 2822 hda_exec_init_verbs(struct hda_codec * codec) hda_exec_init_verbs() argument 2826 update_power_acct(struct hda_codec * codec,bool on) update_power_acct() argument 2837 snd_hda_update_power_acct(struct hda_codec * codec) snd_hda_update_power_acct() argument 2846 hda_call_codec_suspend(struct hda_codec * codec) hda_call_codec_suspend() argument 2865 hda_call_codec_resume(struct hda_codec * codec) hda_call_codec_resume() argument 2896 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_suspend() local 2915 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_resume() local 2930 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_idle() local 2939 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_prepare() local 2948 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_complete() local 2973 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_freeze() local 3007 snd_hda_codec_shutdown(struct hda_codec * codec) snd_hda_codec_shutdown() argument 3027 add_std_chmaps(struct hda_codec * codec) add_std_chmaps() argument 3065 snd_hda_codec_build_controls(struct hda_codec * codec) snd_hda_codec_build_controls() argument 3101 hda_pcm_default_open_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) hda_pcm_default_open_close() argument 3108 hda_pcm_default_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) hda_pcm_default_prepare() argument 3118 hda_pcm_default_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) hda_pcm_default_cleanup() argument 3125 set_pcm_default_values(struct hda_codec * codec,struct hda_pcm_stream * info) set_pcm_default_values() argument 3171 snd_hda_codec_prepare(struct hda_codec * codec,struct hda_pcm_stream * hinfo,unsigned int stream,unsigned int format,struct snd_pcm_substream * substream) snd_hda_codec_prepare() argument 3199 snd_hda_codec_cleanup(struct hda_codec * codec,struct hda_pcm_stream * hinfo,struct snd_pcm_substream * substream) snd_hda_codec_cleanup() argument 3264 snd_hda_codec_parse_pcms(struct hda_codec * codec) snd_hda_codec_parse_pcms() argument 3306 snd_hda_codec_build_pcms(struct hda_codec * codec) snd_hda_codec_build_pcms() argument 3351 snd_hda_add_new_ctls(struct hda_codec * codec,const struct snd_kcontrol_new * knew) snd_hda_add_new_ctls() argument 3403 snd_hda_codec_set_power_save(struct hda_codec * codec,int delay) snd_hda_codec_set_power_save() argument 3452 snd_hda_check_amp_list_power(struct hda_codec * codec,struct hda_loopback_check * check,hda_nid_t nid) snd_hda_check_amp_list_power() argument 3524 snd_hda_input_mux_put(struct hda_codec * codec,const struct hda_input_mux * imux,struct snd_ctl_elem_value * ucontrol,hda_nid_t nid,unsigned int * cur_val) snd_hda_input_mux_put() argument 3579 setup_dig_out_stream(struct hda_codec * codec,hda_nid_t nid,unsigned int stream_tag,unsigned int format) setup_dig_out_stream() argument 3618 cleanup_dig_out_stream(struct hda_codec * codec,hda_nid_t nid) cleanup_dig_out_stream() argument 3633 snd_hda_multi_out_dig_open(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_open() argument 3654 snd_hda_multi_out_dig_prepare(struct hda_codec * codec,struct hda_multi_out * mout,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) snd_hda_multi_out_dig_prepare() argument 3672 snd_hda_multi_out_dig_cleanup(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_cleanup() argument 3687 snd_hda_multi_out_dig_close(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_close() argument 3708 snd_hda_multi_out_analog_open(struct hda_codec * codec,struct hda_multi_out * mout,struct snd_pcm_substream * substream,struct hda_pcm_stream * hinfo) snd_hda_multi_out_analog_open() argument 3763 snd_hda_multi_out_analog_prepare(struct hda_codec * codec,struct hda_multi_out * mout,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) snd_hda_multi_out_analog_prepare() argument 3839 snd_hda_multi_out_analog_cleanup(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_analog_cleanup() argument 3875 snd_hda_get_default_vref(struct hda_codec * codec,hda_nid_t pin) snd_hda_get_default_vref() argument 3902 snd_hda_correct_pin_ctl(struct hda_codec * codec,hda_nid_t pin,unsigned int val) snd_hda_correct_pin_ctl() argument 3965 _snd_hda_set_pin_ctl(struct hda_codec * codec,hda_nid_t pin,unsigned int val,bool cached) _snd_hda_set_pin_ctl() argument 3991 snd_hda_add_imux_item(struct hda_codec * codec,struct hda_input_mux * imux,const char * label,int index,int * type_idx) snd_hda_add_imux_item() argument 4025 struct hda_codec *codec; snd_hda_bus_reset_codecs() local [all...] |
H A D | jack.c | 21 * @codec: the HDA codec 26 * detection is prohibited in the codec level, the pin config has 29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument 31 if (codec->no_jack_detect) in is_jack_detectable() 33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable() 35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable() 38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable() 39 !codec->jackpoll_interval) 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() argument 51 if (!codec->no_trigger_sense) { in read_pin_sense() [all …]
|
H A D | sysfs.c | 3 * sysfs interface for HD-audio codec 33 struct hda_codec *codec = dev_get_drvdata(dev); in power_on_acct_show() local 34 snd_hda_update_power_acct(codec); in power_on_acct_show() 35 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(codec->power_on_acct)); in power_on_acct_show() 42 struct hda_codec *codec = dev_get_drvdata(dev); in power_off_acct_show() local 43 snd_hda_update_power_acct(codec); in power_off_acct_show() 44 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(codec->power_off_acct)); in power_off_acct_show() 55 struct hda_codec *codec = dev_get_drvdata(dev); \ 56 return sysfs_emit(buf, "0x%x\n", codec->field); \ 64 struct hda_codec *codec 78 pin_configs_show(struct hda_codec * codec,struct snd_array * list,char * buf) pin_configs_show() argument 97 struct hda_codec *codec = dev_get_drvdata(dev); init_pin_configs_show() local 105 struct hda_codec *codec = dev_get_drvdata(dev); driver_pin_configs_show() local 115 clear_codec(struct hda_codec * codec) clear_codec() argument 128 reconfig_codec(struct hda_codec * codec) reconfig_codec() argument 218 struct hda_codec *codec = dev_get_drvdata(dev); init_verbs_show() local 230 parse_init_verbs(struct hda_codec * codec,const char * buf) parse_init_verbs() argument 256 struct hda_codec *codec = dev_get_drvdata(dev); init_verbs_store() local 267 struct hda_codec *codec = dev_get_drvdata(dev); hints_show() local 279 get_hint(struct hda_codec * codec,const char * key) get_hint() argument 306 parse_hints(struct hda_codec * codec,const char * buf) parse_hints() argument 361 struct hda_codec *codec = dev_get_drvdata(dev); hints_store() local 372 struct hda_codec *codec = dev_get_drvdata(dev); user_pin_configs_show() local 376 parse_user_pin_configs(struct hda_codec * codec,const char * buf) parse_user_pin_configs() argument 394 struct hda_codec *codec = dev_get_drvdata(dev); user_pin_configs_store() local 416 snd_hda_get_hint(struct hda_codec * codec,const char * key) snd_hda_get_hint() argument 432 snd_hda_get_bool_hint(struct hda_codec * codec,const char * key) snd_hda_get_bool_hint() argument 468 snd_hda_get_int_hint(struct hda_codec * codec,const char * key,int * valp) snd_hda_get_int_hint() argument 539 struct hda_codec *codec; parse_codec_mode() local 713 struct hda_codec *codec; snd_hda_load_patch() local 767 snd_hda_sysfs_init(struct hda_codec * codec) snd_hda_sysfs_init() argument 777 snd_hda_sysfs_clear(struct hda_codec * codec) snd_hda_sysfs_clear() argument [all...] |
H A D | hda_local.h | 3 * Universal Interface for Intel High Definition Audio Codec 119 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument 120 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) 121 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, 123 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, 125 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, 127 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, 129 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, 131 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, 133 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, [all …]
|
H A D | hda_jack.h | 55 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id); 59 * @codec: the HDA codec 63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() argument 65 return snd_hda_jack_tbl_get_mst(codec, nid, 0); 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, [all …]
|
/linux/sound/hda/codecs/realtek/ |
H A D | realtek.c | 3 // Realtek HD-audio codec support code 10 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, 15 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); in coef_mutex_lock() 16 val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0); in coef_mutex_lock() 20 int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in coef_mutex_lock() 23 guard(coef_mutex)(codec); in coef_mutex_unlock() 24 return __alc_read_coefex_idx(codec, nid, coef_idx); in coef_mutex_unlock() 28 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in coef_mutex_unlock() 31 snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); in __alc_read_coefex_idx() 32 snd_hda_codec_write(codec, ni in __alc_read_coefex_idx() 14 coef_mutex_lock(struct hda_codec * codec) coef_mutex_lock() argument 22 coef_mutex_unlock(struct hda_codec * codec) coef_mutex_unlock() argument 30 __alc_read_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx) __alc_read_coefex_idx() argument 40 alc_read_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx) alc_read_coefex_idx() argument 52 __alc_write_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int coef_val) __alc_write_coefex_idx() argument 59 alc_write_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int coef_val) alc_write_coefex_idx() argument 68 __alc_update_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int mask,unsigned int bits_set) __alc_update_coefex_idx() argument 79 alc_update_coefex_idx(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int mask,unsigned int bits_set) alc_update_coefex_idx() argument 90 alc_get_coef0(struct hda_codec * codec) alc_get_coef0() argument 100 alc_process_coef_fw(struct hda_codec * codec,const struct coef_fw * fw) alc_process_coef_fw() argument 119 alc_setup_gpio(struct hda_codec * codec,unsigned int mask) alc_setup_gpio() argument 129 alc_write_gpio_data(struct hda_codec * codec) alc_write_gpio_data() argument 138 alc_update_gpio_data(struct hda_codec * codec,unsigned int mask,bool on) alc_update_gpio_data() argument 153 alc_write_gpio(struct hda_codec * codec) alc_write_gpio() argument 170 alc_fixup_gpio(struct hda_codec * codec,int action,unsigned int mask) alc_fixup_gpio() argument 177 alc_fixup_gpio1(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_gpio1() argument 184 alc_fixup_gpio2(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_gpio2() argument 191 alc_fixup_gpio3(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_gpio3() argument 198 alc_fixup_gpio4(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_gpio4() argument 205 alc_fixup_micmute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_micmute_led() argument 218 alc_fix_pll(struct hda_codec * codec) alc_fix_pll() argument 228 alc_fix_pll_init(struct hda_codec * codec,hda_nid_t nid,unsigned int coef_idx,unsigned int coef_bit) alc_fix_pll_init() argument 240 alc_update_knob_master(struct hda_codec * codec,struct hda_jack_callback * jack) alc_update_knob_master() argument 264 alc_fill_eapd_coef(struct hda_codec * codec) alc_fill_eapd_coef() argument 383 set_eapd(struct hda_codec * codec,hda_nid_t nid,int on) set_eapd() argument 393 alc_auto_setup_eapd(struct hda_codec * codec,bool on) alc_auto_setup_eapd() argument 406 alc_find_ext_mic_pin(struct hda_codec * codec) alc_find_ext_mic_pin() argument 428 alc_headset_mic_no_shutup(struct hda_codec * codec) alc_headset_mic_no_shutup() argument 451 alc_shutup_pins(struct hda_codec * codec) alc_shutup_pins() argument 482 alc_eapd_shutup(struct hda_codec * codec) alc_eapd_shutup() argument 494 alc888_coef_init(struct hda_codec * codec) alc888_coef_init() argument 507 alc_auto_init_amp(struct hda_codec * codec,int type) alc_auto_init_amp() argument 552 alc_fixup_sku_ignore(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_sku_ignore() argument 563 alc_fixup_no_depop_delay(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_no_depop_delay() argument 575 alc_auto_parse_customize_define(struct hda_codec * codec) alc_auto_parse_customize_define() argument 667 alc_subsystem_id(struct hda_codec * codec,const hda_nid_t * ports) alc_subsystem_id() argument 770 alc_ssid_check(struct hda_codec * codec,const hda_nid_t * ports) alc_ssid_check() argument 784 alc_fixup_inv_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_inv_dmic() argument 793 alc_build_controls(struct hda_codec * codec) alc_build_controls() argument 806 alc_init(struct hda_codec * codec) alc_init() argument 829 alc_shutup(struct hda_codec * codec) alc_shutup() argument 843 alc_power_eapd(struct hda_codec * codec) alc_power_eapd() argument 849 alc_suspend(struct hda_codec * codec) alc_suspend() argument 859 alc_resume(struct hda_codec * codec) alc_resume() argument 942 alc_codec_rename_from_preset(struct hda_codec * codec) alc_codec_rename_from_preset() argument 1014 alc_has_cdefine_beep(struct hda_codec * codec) alc_has_cdefine_beep() argument 1031 alc_parse_auto_config(struct hda_codec * codec,const hda_nid_t * ignore_nids,const hda_nid_t * ssid_nids) alc_parse_auto_config() argument 1056 alc_alloc_spec(struct hda_codec * codec,hda_nid_t mixer_nid) alc_alloc_spec() argument 1085 alc_fixup_dual_codecs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_dual_codecs() argument 1114 alc_fixup_bass_chmap(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_bass_chmap() argument 1125 alc1220_fixup_gb_dual_codecs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc1220_fixup_gb_dual_codecs() argument 1150 alc233_alc662_fixup_lenovo_dual_codecs(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc233_alc662_fixup_lenovo_dual_codecs() argument 1175 alc_shutup_dell_xps13(struct hda_codec * codec) alc_shutup_dell_xps13() argument 1186 alc_fixup_dell_xps13(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_dell_xps13() argument 1218 alc_hp_mute_disable(struct hda_codec * codec,unsigned int delay) alc_hp_mute_disable() argument 1230 alc_hp_enable_unmute(struct hda_codec * codec,unsigned int delay) alc_hp_enable_unmute() argument 1253 alc_headset_mode_unplugged(struct hda_codec * codec) alc_headset_mode_unplugged() argument 1390 alc_headset_mode_mic_in(struct hda_codec * codec,hda_nid_t hp_pin,hda_nid_t mic_pin) alc_headset_mode_mic_in() argument 1529 alc_headset_mode_default(struct hda_codec * codec) alc_headset_mode_default() argument 1650 alc_headset_mode_ctia(struct hda_codec * codec) alc_headset_mode_ctia() argument 1774 alc_headset_mode_omtp(struct hda_codec * codec) alc_headset_mode_omtp() argument 1876 alc_determine_headset_type(struct hda_codec * codec) alc_determine_headset_type() argument 2070 alc_update_headset_mode(struct hda_codec * codec) alc_update_headset_mode() argument 2130 alc_update_headset_mode_hook(struct hda_codec * codec,struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) alc_update_headset_mode_hook() argument 2137 alc_update_headset_jack_cb(struct hda_codec * codec,struct hda_jack_callback * jack) alc_update_headset_jack_cb() argument 2145 alc_probe_headset_mode(struct hda_codec * codec) alc_probe_headset_mode() argument 2165 alc_fixup_headset_mode(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode() argument 2188 alc_fixup_headset_mode_no_hp_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mode_no_hp_mic() argument 2200 alc_fixup_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_headset_mic() argument 2211 alc_update_gpio_led(struct hda_codec * codec,unsigned int mask,int polarity,bool enabled) alc_update_gpio_led() argument 2224 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); micmute_led_set() local 2236 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); gpio_mute_led_set() local 2245 alc_fixup_hp_gpio_led(struct hda_codec * codec,int action,unsigned int mute_mask,unsigned int micmute_mask) alc_fixup_hp_gpio_led() argument 2268 alc_fixup_no_jack_detect(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_no_jack_detect() argument 2276 alc_fixup_disable_aamix(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_disable_aamix() argument 2287 alc_fixup_auto_mute_via_amp(struct hda_codec * codec,const struct hda_fixup * fix,int action) alc_fixup_auto_mute_via_amp() argument [all...] |
H A D | realtek.h | 3 // Realtek HD-audio codec support code 80 /* codec parameterization */ 108 void (*init_hook)(struct hda_codec *codec); 109 void (*power_hook)(struct hda_codec *codec); 110 void (*shutup)(struct hda_codec *codec); 135 int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, 137 void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, 139 void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, 142 #define alc_read_coef_idx(codec, coef_idx) \ argument 143 alc_read_coefex_idx(codec, 144 alc_write_coef_idx(codec,coef_idx,coef_val) global() argument 146 alc_update_coef_idx(codec,coef_idx,mask,bits_set) global() argument 211 alc_pre_init(struct hda_codec * codec) alc_pre_init() argument 216 is_s3_resume(codec) global() argument 218 is_s4_resume(codec) global() argument 220 is_s4_suspend(codec) global() argument 234 alc_codec_rename(codec,name) global() argument 243 has_cdefine_beep(codec) global() argument 246 rename_ctl(struct hda_codec * codec,const char * oldname,const char * newname) rename_ctl() argument [all...] |
/linux/sound/pci/ali5451/ |
H A D | ali5451.c | 141 #define ALI_REG(codec, x) ((codec)->port + x) argument 180 struct snd_ali *codec; member 264 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() argument 267 return (unsigned int)inl(ALI_REG(codec, port)); in snd_ali_5451_peek() 270 static inline void snd_ali_5451_poke(struct snd_ali *codec, in snd_ali_5451_poke() argument 274 outl((unsigned int)val, ALI_REG(codec, port)); in snd_ali_5451_poke() 277 static int snd_ali_codec_ready(struct snd_ali *codec, in snd_ali_codec_ready() argument 286 res = snd_ali_5451_peek(codec,port); in snd_ali_codec_ready() 294 snd_ali_5451_poke(codec, por in snd_ali_codec_ready() 299 snd_ali_stimer_ready(struct snd_ali * codec) snd_ali_stimer_ready() argument 320 snd_ali_codec_poke(struct snd_ali * codec,int secondary,unsigned short reg,unsigned short val) snd_ali_codec_poke() argument 352 snd_ali_codec_peek(struct snd_ali * codec,int secondary,unsigned short reg) snd_ali_codec_peek() argument 391 struct snd_ali *codec = ac97->private_data; snd_ali_codec_write() local 407 struct snd_ali *codec = ac97->private_data; snd_ali_codec_read() local 417 snd_ali_reset_5451(struct snd_ali * codec) snd_ali_reset_5451() argument 458 snd_ali_enable_special_channel(struct snd_ali * codec,unsigned int channel) snd_ali_enable_special_channel() argument 468 snd_ali_disable_special_channel(struct snd_ali * codec,unsigned int channel) snd_ali_disable_special_channel() argument 478 snd_ali_enable_address_interrupt(struct snd_ali * codec) snd_ali_enable_address_interrupt() argument 488 snd_ali_disable_address_interrupt(struct snd_ali * codec) snd_ali_disable_address_interrupt() argument 498 snd_ali_disable_voice_irq(struct snd_ali * codec,unsigned int channel) snd_ali_disable_voice_irq() argument 512 snd_ali_alloc_pcm_channel(struct snd_ali * codec,int channel) snd_ali_alloc_pcm_channel() argument 531 snd_ali_find_free_channel(struct snd_ali * codec,int rec) snd_ali_find_free_channel() argument 580 snd_ali_free_channel_pcm(struct snd_ali * codec,int channel) snd_ali_free_channel_pcm() argument 600 snd_ali_stop_voice(struct snd_ali * codec,unsigned int channel) snd_ali_stop_voice() argument 612 snd_ali_delay(struct snd_ali * codec,int interval) snd_ali_delay() argument 627 snd_ali_detect_spdif_rate(struct snd_ali * codec) snd_ali_detect_spdif_rate() argument 683 snd_ali_get_spdif_in_rate(struct snd_ali * codec) snd_ali_get_spdif_in_rate() argument 708 snd_ali_enable_spdif_in(struct snd_ali * codec) snd_ali_enable_spdif_in() argument 723 snd_ali_disable_spdif_in(struct snd_ali * codec) snd_ali_disable_spdif_in() argument 735 snd_ali_set_spdif_out_rate(struct snd_ali * codec,unsigned int rate) snd_ali_set_spdif_out_rate() argument 758 snd_ali_enable_spdif_out(struct snd_ali * codec) snd_ali_enable_spdif_out() argument 791 snd_ali_enable_spdif_chnout(struct snd_ali * codec) snd_ali_enable_spdif_chnout() argument 809 snd_ali_disable_spdif_chnout(struct snd_ali * codec) snd_ali_disable_spdif_chnout() argument 820 snd_ali_disable_spdif_out(struct snd_ali * codec) snd_ali_disable_spdif_out() argument 830 snd_ali_update_ptr(struct snd_ali * codec,int channel) snd_ali_update_ptr() argument 880 struct snd_ali *codec = dev_id; snd_ali_card_interrupt() local 906 snd_ali_alloc_voice(struct snd_ali * codec,int type,int rec,int channel) snd_ali_alloc_voice() argument 936 snd_ali_free_voice(struct snd_ali * codec,struct snd_ali_voice * pvoice) snd_ali_free_voice() argument 961 snd_ali_clear_voices(struct snd_ali * codec,unsigned int v_min,unsigned int v_max) snd_ali_clear_voices() argument 973 snd_ali_write_voice_regs(struct snd_ali * codec,unsigned int Channel,unsigned int LBA,unsigned int CSO,unsigned int ESO,unsigned int DELTA,unsigned int ALPHA_FMS,unsigned int GVSEL,unsigned int PAN,unsigned int VOL,unsigned int CTRL,unsigned int EC) snd_ali_write_voice_regs() argument 1068 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_trigger() local 1132 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_playback_hw_params() local 1162 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_playback_hw_free() local 1176 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_playback_prepare() local 1269 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_prepare() local 1358 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_playback_pointer() local 1380 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_pointer() local 1457 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_open() local 1494 struct snd_ali *codec = snd_pcm_substream_chip(substream); snd_ali_close() local 1615 struct snd_ali *codec = pcm->private_data; snd_ali_pcm_free() local 1620 snd_ali_pcm(struct snd_ali * codec,int device,struct ali_pcm_description * desc) snd_ali_pcm() argument 1669 snd_ali_build_pcms(struct snd_ali * codec) snd_ali_build_pcms() argument 1691 struct snd_ali *codec = snd_kcontrol_chip(kcontrol); snd_ali5451_spdif_get() local 1719 struct snd_ali *codec = snd_kcontrol_chip(kcontrol); snd_ali5451_spdif_put() local 1784 snd_ali_mixer(struct snd_ali * codec) snd_ali_mixer() argument 1904 struct snd_ali *codec = card->private_data; snd_ali_free() local 1912 snd_ali_chip_init(struct snd_ali * codec) snd_ali_chip_init() argument 1976 struct snd_ali *codec = entry->private_data; snd_ali_proc_read() local 1982 snd_ali_proc_init(struct snd_ali * codec) snd_ali_proc_init() argument 1987 snd_ali_resources(struct snd_ali * codec) snd_ali_resources() argument 2014 struct snd_ali *codec = card->private_data; snd_ali_create() local 2109 struct snd_ali *codec; __snd_ali_probe() local [all...] |
/linux/sound/hda/codecs/hdmi/ |
H A D | intelhdmi.c | 3 * Intel HDMI codec support 36 static void intel_haswell_enable_all_pins(struct hda_codec *codec, in intel_haswell_enable_all_pins() argument 40 struct hdmi_spec *spec = codec->spec; in intel_haswell_enable_all_pins() 42 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 48 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 54 snd_hda_codec_update_widgets(codec); in intel_haswell_enable_all_pins() 57 static void intel_haswell_fixup_enable_dp12(struct hda_codec *codec) in intel_haswell_fixup_enable_dp12() argument 60 struct hdmi_spec *spec = codec->spec; in intel_haswell_fixup_enable_dp12() 62 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_fixup_enable_dp12() 69 snd_hdac_regmap_add_vendor_verb(&codec->core, INTEL_SET_VENDOR_VERB); in intel_haswell_fixup_enable_dp12() [all …]
|
H A D | hdmi.c | 50 int snd_hda_hdmi_pin_id_to_pin_index(struct hda_codec *codec, in snd_hda_hdmi_pin_id_to_pin_index() argument 53 struct hdmi_spec *spec = codec->spec; in snd_hda_hdmi_pin_id_to_pin_index() 71 codec_warn(codec, "HDMI: pin NID 0x%x not registered\n", pin_nid); in snd_hda_hdmi_pin_id_to_pin_index() 76 static int hinfo_to_pcm_index(struct hda_codec *codec, in hinfo_to_pcm_index() argument 79 struct hdmi_spec *spec = codec->spec; in hinfo_to_pcm_index() 86 codec_warn(codec, "HDMI: hinfo %p not tied to a PCM\n", hinfo); in hinfo_to_pcm_index() 90 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index() argument 93 struct hdmi_spec *spec = codec->spec; in hinfo_to_pin_index() 104 codec_dbg(codec, "HDMI: hinfo %p (pcm %d) not registered\n", hinfo, in hinfo_to_pin_index() 105 hinfo_to_pcm_index(codec, hinfo)); in hinfo_to_pin_index() [all …]
|
/linux/sound/hda/codecs/ |
H A D | generic.c | 3 * Universal Interface for Intel High Definition Audio Codec 105 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() argument 107 struct hda_gen_spec *spec = codec->spec; in parse_user_hints() 110 val = snd_hda_get_bool_hint(codec, "jack_detect"); in parse_user_hints() 112 codec->no_jack_detect = !val; in parse_user_hints() 113 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); in parse_user_hints() 115 codec->inv_jack_detect = !!val; in parse_user_hints() 116 val = snd_hda_get_bool_hint(codec, "trigger_sense"); in parse_user_hints() 118 codec->no_trigger_sense = !val; in parse_user_hints() 119 val = snd_hda_get_bool_hint(codec, "inv_eap in parse_user_hints() 205 update_pin_ctl(codec,pin,val) global() argument 210 restore_pin_ctl(struct hda_codec * codec,hda_nid_t pin) restore_pin_ctl() argument 216 set_pin_target(struct hda_codec * codec,hda_nid_t pin,unsigned int val,bool do_write) set_pin_target() argument 228 set_pin_targets(struct hda_codec * codec,int num_pins,hda_nid_t * pins,unsigned int val) set_pin_targets() argument 256 get_nid_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid,int anchor_nid) get_nid_path() argument 287 snd_hda_get_path_idx(struct hda_codec * codec,struct nid_path * path) snd_hda_get_path_idx() argument 308 snd_hda_get_path_from_idx(struct hda_codec * codec,int idx) snd_hda_get_path_from_idx() argument 319 is_dac_already_used(struct hda_codec * codec,hda_nid_t nid) is_dac_already_used() argument 333 is_reachable_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid) is_reachable_path() argument 345 is_ctl_used(struct hda_codec * codec,unsigned int val,int type) is_ctl_used() argument 360 is_ctl_associated(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int type) is_ctl_associated() argument 367 print_nid_path(struct hda_codec * codec,const char * pfx,struct nid_path * path) print_nid_path() argument 384 __parse_nid_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid,int anchor_nid,struct nid_path * path,int depth) __parse_nid_path() argument 454 snd_hda_parse_nid_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid,int anchor_nid,struct nid_path * path) snd_hda_parse_nid_path() argument 477 snd_hda_add_new_path(struct hda_codec * codec,hda_nid_t from_nid,hda_nid_t to_nid,int anchor_nid) snd_hda_add_new_path() argument 504 invalidate_nid_path(struct hda_codec * codec,int idx) invalidate_nid_path() argument 513 get_preferred_dac(struct hda_codec * codec,hda_nid_t pin) get_preferred_dac() argument 527 look_for_dac(struct hda_codec * codec,hda_nid_t pin,bool is_digital) look_for_dac() argument 555 same_amp_caps(struct hda_codec * codec,hda_nid_t nid1,hda_nid_t nid2,int dir) same_amp_caps() argument 565 look_for_out_mute_nid(struct hda_codec * codec,struct nid_path * path) look_for_out_mute_nid() argument 581 look_for_out_vol_nid(struct hda_codec * codec,struct nid_path * path) look_for_out_vol_nid() argument 602 has_amp_in(struct hda_codec * codec,struct nid_path * path,int idx) has_amp_in() argument 616 has_amp_out(struct hda_codec * codec,struct nid_path * path,int idx) has_amp_out() argument 630 is_active_nid(struct hda_codec * codec,hda_nid_t nid,unsigned int dir,unsigned int idx) is_active_nid() argument 665 is_active_nid_for_any(codec,nid) global() argument 669 get_amp_val_to_activate(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int caps,bool enable) get_amp_val_to_activate() argument 687 is_stereo_amps(struct hda_codec * codec,hda_nid_t nid,int dir) is_stereo_amps() argument 704 init_amp(struct hda_codec * codec,hda_nid_t nid,int dir,int idx) init_amp() argument 716 update_amp(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,unsigned int mask,unsigned int val) update_amp() argument 730 get_amp_mask_to_modify(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,unsigned int caps) get_amp_mask_to_modify() argument 748 activate_amp(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int idx_to_check,bool enable) activate_amp() argument 764 check_and_activate_amp(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int idx_to_check,bool enable) check_and_activate_amp() argument 774 activate_amp_out(struct hda_codec * codec,struct nid_path * path,int i,bool enable) activate_amp_out() argument 782 activate_amp_in(struct hda_codec * codec,struct nid_path * path,int i,bool enable,bool add_aamix) activate_amp_in() argument 823 path_power_update(struct hda_codec * codec,struct nid_path * path,bool allow_powerdown) path_power_update() argument 862 sync_power_state_change(struct hda_codec * codec,hda_nid_t nid) sync_power_state_change() argument 879 snd_hda_activate_path(struct hda_codec * codec,struct nid_path * path,bool enable,bool add_aamix) snd_hda_activate_path() argument 907 path_power_down_sync(struct hda_codec * codec,struct nid_path * path) path_power_down_sync() argument 917 set_pin_eapd(struct hda_codec * codec,hda_nid_t pin,bool enable) set_pin_eapd() argument 933 resume_path_from_idx(struct hda_codec * codec,int path_idx) resume_path_from_idx() argument 1020 add_vol_ctl(struct hda_codec * codec,const char * pfx,int cidx,unsigned int chs,struct nid_path * path) add_vol_ctl() argument 1034 get_default_ch_nums(struct hda_codec * codec,struct nid_path * path,int type) get_default_ch_nums() argument 1046 add_stereo_vol(struct hda_codec * codec,const char * pfx,int cidx,struct nid_path * path) add_stereo_vol() argument 1056 add_sw_ctl(struct hda_codec * codec,const char * pfx,int cidx,unsigned int chs,struct nid_path * path) add_sw_ctl() argument 1079 add_stereo_sw(struct hda_codec * codec,const char * pfx,int cidx,struct nid_path * path) add_stereo_sw() argument 1090 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); sync_auto_mute_bits() local 1117 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hda_gen_bind_mute_get() local 1133 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hda_gen_bind_mute_put() local 1156 path_has_mixer(struct hda_codec * codec,int path_idx,int ctl_type) path_has_mixer() argument 1167 get_line_out_pfx(struct hda_codec * codec,int ch,int * index,int ctl_type) get_line_out_pfx() argument 1285 assign_out_path_ctls(struct hda_codec * codec,struct nid_path * path) assign_out_path_ctls() argument 1348 get_primary_out(struct hda_codec * codec,int idx) get_primary_out() argument 1362 try_dac(struct hda_codec * codec,hda_nid_t dac,hda_nid_t pin) try_dac() argument 1369 try_assign_dacs(struct hda_codec * codec,int num_outs,const hda_nid_t * pins,hda_nid_t * dacs,int * path_idx,const struct badness_table * bad) try_assign_dacs() argument 1461 get_dac_if_single(struct hda_codec * codec,hda_nid_t pin) get_dac_if_single() argument 1481 can_be_multiio_pin(struct hda_codec * codec,unsigned int location,hda_nid_t nid) can_be_multiio_pin() argument 1498 count_multiio_pins(struct hda_codec * codec,hda_nid_t reference_pin) count_multiio_pins() argument 1527 fill_multi_ios(struct hda_codec * codec,hda_nid_t reference_pin,bool hardwired) fill_multi_ios() argument 1613 map_singles(struct hda_codec * codec,int outs,const hda_nid_t * pins,hda_nid_t * dacs,int * path_idx) map_singles() argument 1649 check_aamix_out_path(struct hda_codec * codec,int path_idx) check_aamix_out_path() argument 1685 indep_hp_possible(struct hda_codec * codec) indep_hp_possible() argument 1724 refill_shared_dacs(struct hda_codec * codec,int num_outs,hda_nid_t * dacs,int * path_idx) refill_shared_dacs() argument 1741 fill_and_eval_dacs(struct hda_codec * codec,bool fill_hardwired,bool fill_mio_first) fill_and_eval_dacs() argument 1904 print_nid_path_idx(struct hda_codec * codec,const char * pfx,int idx) print_nid_path_idx() argument 1914 debug_show_configs(struct hda_codec * codec,struct auto_pin_cfg * cfg) debug_show_configs() argument 1963 debug_show_configs(codec,cfg) global() argument 1967 fill_all_dac_nids(struct hda_codec * codec) fill_all_dac_nids() argument 1985 parse_output_paths(struct hda_codec * codec) parse_output_paths() argument 2106 create_multi_out_ctls(struct hda_codec * codec,const struct auto_pin_cfg * cfg) create_multi_out_ctls() argument 2157 create_extra_out(struct hda_codec * codec,int path_idx,const char * pfx,int cidx) create_extra_out() argument 2176 create_extra_outs(struct hda_codec * codec,int num_pins,const int * paths,const char * pfx) create_extra_outs() argument 2203 create_hp_out_ctls(struct hda_codec * codec) create_hp_out_ctls() argument 2211 create_speaker_out_ctls(struct hda_codec * codec) create_speaker_out_ctls() argument 2234 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); indep_hp_get() local 2247 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); indep_hp_put() local 2302 create_indep_hp_ctls(struct hda_codec * codec) create_indep_hp_ctls() argument 2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_info() local 2349 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_get() local 2357 get_multiio_path(struct hda_codec * codec,int idx) get_multiio_path() argument 2374 set_multi_io(struct hda_codec * codec,int idx,bool output) set_multi_io() argument 2407 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_put() local 2434 create_multi_channel_mode(struct hda_codec * codec) create_multi_channel_mode() argument 2454 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); loopback_mixing_get() local 2460 update_aamix_paths(struct hda_codec * codec,bool do_mix,int nomix_path_idx,int mix_path_idx,int out_type) update_aamix_paths() argument 2491 update_output_paths(struct hda_codec * codec,int num_outs,const int * paths) update_output_paths() argument 2509 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); loopback_mixing_put() local 2546 create_loopback_mixing_ctl(struct hda_codec * codec) create_loopback_mixing_ctl() argument 2565 update_hp_mic(struct hda_codec * codec,int adc_mux,bool force) update_hp_mic() argument 2609 create_hp_mic(struct hda_codec * codec) create_hp_mic() argument 2677 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); out_jack_mode_get() local 2689 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); out_jack_mode_put() local 2707 find_kctl_name(struct hda_codec * codec,const char * name,int idx) find_kctl_name() argument 2720 get_jack_mode_name(struct hda_codec * codec,hda_nid_t pin,char * name,size_t name_len) get_jack_mode_name() argument 2733 get_out_jack_num_items(struct hda_codec * codec,hda_nid_t pin) get_out_jack_num_items() argument 2744 create_out_jack_modes(struct hda_codec * codec,int num_pins,hda_nid_t * pins) create_out_jack_modes() argument 2781 get_vref_caps(struct hda_codec * codec,hda_nid_t pin) get_vref_caps() argument 2824 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_info() local 2839 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_get() local 2852 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_put() local 2875 get_in_jack_num_items(struct hda_codec * codec,hda_nid_t pin) get_in_jack_num_items() argument 2884 create_in_jack_mode(struct hda_codec * codec,hda_nid_t pin) create_in_jack_mode() argument 2917 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_info() local 2948 get_cur_hp_mic_jack_mode(struct hda_codec * codec,hda_nid_t nid) get_cur_hp_mic_jack_mode() argument 2972 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_get() local 2982 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_put() local 3021 create_hp_mic_jack_mode(struct hda_codec * codec,hda_nid_t pin) create_hp_mic_jack_mode() argument 3057 look_for_mix_leaf_ctls(struct hda_codec * codec,hda_nid_t mix_nid,hda_nid_t pin,unsigned int * mix_val,unsigned int * mute_val) look_for_mix_leaf_ctls() argument 3093 new_analog_input(struct hda_codec * codec,int input_idx,hda_nid_t pin,const char * ctlname,int ctlidx,hda_nid_t mix_nid) new_analog_input() argument 3149 is_input_pin(struct hda_codec * codec,hda_nid_t nid) is_input_pin() argument 3156 fill_adc_nids(struct hda_codec * codec) fill_adc_nids() argument 3186 check_dyn_adc_switch(struct hda_codec * codec) check_dyn_adc_switch() argument 3254 parse_capture_source(struct hda_codec * codec,hda_nid_t pin,int cfg_idx,int num_adcs,const char * label,int anchor) parse_capture_source() argument 3296 fill_input_pin_labels(struct hda_codec * codec) fill_input_pin_labels() argument 3329 create_input_ctls(struct hda_codec * codec) create_input_ctls() argument 3402 get_input_path(struct hda_codec * codec,int adc_idx,int imux_idx) get_input_path() argument 3424 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_info() local 3432 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_get() local 3444 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_put() local 3470 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cap_put_caller() local 3544 parse_capvol_in_path(struct hda_codec * codec,struct nid_path * path) parse_capvol_in_path() argument 3583 is_inv_dmic_pin(struct hda_codec * codec,hda_nid_t nid) is_inv_dmic_pin() argument 3607 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cap_single_sw_put() local 3621 add_single_cap_ctl(struct hda_codec * codec,const char * label,int idx,bool is_switch,unsigned int ctl,bool inv_dmic) add_single_cap_ctl() argument 3673 create_single_cap_vol_ctl(struct hda_codec * codec,int idx,unsigned int vol_ctl,unsigned int sw_ctl,bool inv_dmic) create_single_cap_vol_ctl() argument 3688 create_bind_cap_vol_ctl(struct hda_codec * codec,int idx,unsigned int vol_ctl,unsigned int sw_ctl) create_bind_cap_vol_ctl() argument 3716 get_first_cap_ctl(struct hda_codec * codec,int idx,int type) get_first_cap_ctl() argument 3737 create_multi_cap_vol_ctl(struct hda_codec * codec) create_multi_cap_vol_ctl() argument 3766 create_capture_mixers(struct hda_codec * codec) create_capture_mixers() argument 3839 check_boost_vol(struct hda_codec * codec,hda_nid_t nid,int dir,int idx) check_boost_vol() argument 3857 look_for_boost_amp(struct hda_codec * codec,struct nid_path * path) look_for_boost_amp() argument 3882 parse_mic_boost(struct hda_codec * codec) parse_mic_boost() argument 3931 create_mute_led_cdev(struct hda_codec * codec,int (* callback)(struct led_classdev *,enum led_brightness),bool micmute) create_mute_led_cdev() argument 3963 snd_hda_gen_add_mute_led_cdev(struct hda_codec * codec,int (* callback)(struct led_classdev *,enum led_brightness)) snd_hda_gen_add_mute_led_cdev() argument 4000 snd_hda_gen_add_micmute_led_cdev(struct hda_codec * codec,int (* callback)(struct led_classdev *,enum led_brightness)) snd_hda_gen_add_micmute_led_cdev() argument 4024 parse_digital(struct hda_codec * codec) parse_digital() argument 4088 mux_select(struct hda_codec * codec,unsigned int adc_idx,unsigned int idx) mux_select() argument 4135 set_path_power(struct hda_codec * codec,hda_nid_t nid,int pin_state,int stream_state) set_path_power() argument 4167 detect_pin_state(struct hda_codec * codec,hda_nid_t pin) detect_pin_state() argument 4180 set_pin_power_jack(struct hda_codec * codec,hda_nid_t pin,int power) set_pin_power_jack() argument 4195 pin_power_callback(struct hda_codec * codec,struct hda_jack_callback * jack,bool on) pin_power_callback() argument 4205 pin_power_up_callback(struct hda_codec * codec,struct hda_jack_callback * jack) pin_power_up_callback() argument 4212 pin_power_down_callback(struct hda_codec * codec,struct hda_jack_callback * jack) pin_power_down_callback() argument 4219 add_pin_power_ctls(struct hda_codec * codec,int num_pins,const hda_nid_t * pins,bool on) add_pin_power_ctls() argument 4237 add_all_pin_power_ctls(struct hda_codec * codec,bool on) add_all_pin_power_ctls() argument 4255 sync_pin_power_ctls(struct hda_codec * codec,int num_pins,const hda_nid_t * pins) sync_pin_power_ctls() argument 4266 sync_all_pin_power_ctls(struct hda_codec * codec) sync_all_pin_power_ctls() argument 4284 add_fake_paths(struct hda_codec * codec,hda_nid_t nid,int num_pins,const hda_nid_t * pins) add_fake_paths() argument 4309 add_fake_beep_paths(struct hda_codec * codec) add_fake_beep_paths() argument 4346 snd_hda_gen_fix_pin_power(struct hda_codec * codec,hda_nid_t pin) snd_hda_gen_fix_pin_power() argument 4369 detect_jacks(struct hda_codec * codec,int num_pins,const hda_nid_t * pins) detect_jacks() argument 4388 do_automute(struct hda_codec * codec,int num_pins,const hda_nid_t * pins,int * paths,bool mute) do_automute() argument 4453 snd_hda_gen_update_outputs(struct hda_codec * codec) snd_hda_gen_update_outputs() argument 4500 call_update_outputs(struct hda_codec * codec) call_update_outputs() argument 4518 snd_hda_gen_hp_automute(struct hda_codec * codec,struct hda_jack_callback * jack) snd_hda_gen_hp_automute() argument 4543 snd_hda_gen_line_automute(struct hda_codec * codec,struct hda_jack_callback * jack) snd_hda_gen_line_automute() argument 4568 snd_hda_gen_mic_autoswitch(struct hda_codec * codec,struct hda_jack_callback * jack) snd_hda_gen_mic_autoswitch() argument 4592 call_hp_automute(struct hda_codec * codec,struct hda_jack_callback * jack) call_hp_automute() argument 4602 call_line_automute(struct hda_codec * codec,struct hda_jack_callback * jack) call_line_automute() argument 4612 call_mic_autoswitch(struct hda_codec * codec,struct hda_jack_callback * jack) call_mic_autoswitch() argument 4623 update_automute_all(struct hda_codec * codec) update_automute_all() argument 4636 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_info() local 4650 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_get() local 4665 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_put() local 4711 add_automute_mode_enum(struct hda_codec * codec) add_automute_mode_enum() argument 4724 check_auto_mute_availability(struct hda_codec * codec) check_auto_mute_availability() argument 4797 auto_mic_check_imux(struct hda_codec * codec) auto_mic_check_imux() argument 4831 check_auto_mic_availability(struct hda_codec * codec) check_auto_mic_availability() argument 4906 snd_hda_gen_path_power_filter(struct hda_codec * codec,hda_nid_t nid,unsigned int power_state) snd_hda_gen_path_power_filter() argument 4925 mute_all_mixer_nid(struct hda_codec * codec,hda_nid_t mix) mute_all_mixer_nid() argument 4951 snd_hda_gen_stream_pm(struct hda_codec * codec,hda_nid_t nid,bool on) snd_hda_gen_stream_pm() argument 4959 force_mute_output_path(struct hda_codec * codec,hda_nid_t nid) force_mute_output_path() argument 4988 snd_hda_gen_shutup_speakers(struct hda_codec * codec) snd_hda_gen_shutup_speakers() argument 5030 snd_hda_gen_parse_auto_config(struct hda_codec * codec,struct auto_pin_cfg * cfg) snd_hda_gen_parse_auto_config() argument 5233 snd_hda_gen_build_controls(struct hda_codec * codec) snd_hda_gen_build_controls() argument 5306 call_pcm_playback_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) call_pcm_playback_hook() argument 5316 call_pcm_capture_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) call_pcm_capture_hook() argument 5329 playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_open() argument 5349 playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) playback_pcm_prepare() argument 5366 playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_cleanup() argument 5380 playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) playback_pcm_close() argument 5393 capture_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_open() argument 5401 capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) capture_pcm_prepare() argument 5413 capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_cleanup() argument 5423 capture_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) capture_pcm_close() argument 5431 alt_playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_open() argument 5449 alt_playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_close() argument 5462 alt_playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) alt_playback_pcm_prepare() argument 5474 alt_playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_playback_pcm_cleanup() argument 5487 dig_playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_open() argument 5495 dig_playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) dig_playback_pcm_prepare() argument 5506 dig_playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_cleanup() argument 5514 dig_playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dig_playback_pcm_close() argument 5528 alt_capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) alt_capture_pcm_prepare() argument 5543 alt_capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) alt_capture_pcm_cleanup() argument 5639 dyn_adc_pcm_resetup(struct hda_codec * codec,int cur) dyn_adc_pcm_resetup() argument 5658 dyn_adc_capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) dyn_adc_capture_pcm_prepare() argument 5673 dyn_adc_capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) dyn_adc_capture_pcm_cleanup() argument 5746 snd_hda_gen_build_pcms(struct hda_codec * codec) snd_hda_gen_build_pcms() argument 5860 set_output_and_unmute(struct hda_codec * codec,int path_idx) set_output_and_unmute() argument 5876 init_multi_out(struct hda_codec * codec) init_multi_out() argument 5886 __init_extra_out(struct hda_codec * codec,int num_outs,int * paths) __init_extra_out() argument 5895 init_extra_out(struct hda_codec * codec) init_extra_out() argument 5907 init_multi_io(struct hda_codec * codec) init_multi_io() argument 5926 init_aamix_paths(struct hda_codec * codec) init_aamix_paths() argument 5946 init_analog_input(struct hda_codec * codec) init_analog_input() argument 5966 init_input_src(struct hda_codec * codec) init_input_src() argument 5997 init_digital(struct hda_codec * codec) init_digital() argument 6015 clear_unsol_on_unused_pins(struct hda_codec * codec) clear_unsol_on_unused_pins() argument 6035 snd_hda_gen_init(struct hda_codec * codec) snd_hda_gen_init() argument 6076 snd_hda_gen_remove(struct hda_codec * codec) snd_hda_gen_remove() argument 6092 snd_hda_gen_check_power_status(struct hda_codec * codec,hda_nid_t nid) snd_hda_gen_check_power_status() argument 6104 snd_hda_gen_probe(struct hda_codec * codec,const struct hda_device_id * id) snd_hda_gen_probe() argument [all...] |
H A D | ca0132.c | 3 * HD audio codec driver for Creative CA0132 chip 1135 struct hda_codec *codec; member 1181 #define ca0132_quirk(spec) ((spec)->codec->fixup_id) 1525 * CA0132 codec access 1527 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() argument 1531 response = snd_hda_codec_read(codec, nid, 0, verb, parm); in codec_send_command() 1537 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() argument 1540 return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT, in codec_set_converter_format() 1544 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() argument 1551 return codec_send_command(codec, ni in codec_set_converter_stream_channel() 1556 chipio_send(struct hda_codec * codec,unsigned int reg,unsigned int data) chipio_send() argument 1578 chipio_write_address(struct hda_codec * codec,unsigned int chip_addx) chipio_write_address() argument 1605 chipio_write_data(struct hda_codec * codec,unsigned int data) chipio_write_data() argument 1629 chipio_write_data_multiple(struct hda_codec * codec,const u32 * data,unsigned int count) chipio_write_data_multiple() argument 1650 chipio_read_data(struct hda_codec * codec,unsigned int * data) chipio_read_data() argument 1681 chipio_write(struct hda_codec * codec,unsigned int chip_addx,const unsigned int data) chipio_write() argument 1707 chipio_write_no_mutex(struct hda_codec * codec,unsigned int chip_addx,const unsigned int data) chipio_write_no_mutex() argument 1730 chipio_write_multiple(struct hda_codec * codec,u32 chip_addx,const u32 * data,unsigned int count) chipio_write_multiple() argument 1754 chipio_read(struct hda_codec * codec,unsigned int chip_addx,unsigned int * data) chipio_read() argument 1779 chipio_set_control_flag(struct hda_codec * codec,enum control_flag_id flag_id,bool flag_state) chipio_set_control_flag() argument 1795 chipio_set_control_param(struct hda_codec * codec,enum control_param_id param_id,int param_val) chipio_set_control_param() argument 1822 chipio_set_control_param_no_mutex(struct hda_codec * codec,enum control_param_id param_id,int param_val) chipio_set_control_param_no_mutex() argument 1846 chipio_set_stream_source_dest(struct hda_codec * codec,int streamid,int source_point,int dest_point) chipio_set_stream_source_dest() argument 1860 chipio_set_stream_channels(struct hda_codec * codec,int streamid,unsigned int channels) chipio_set_stream_channels() argument 1872 chipio_set_stream_control(struct hda_codec * codec,int streamid,int enable) chipio_set_stream_control() argument 1884 chipio_get_stream_control(struct hda_codec * codec,int streamid,unsigned int * enable) chipio_get_stream_control() argument 1897 chipio_set_conn_rate_no_mutex(struct hda_codec * codec,int connid,enum ca0132_sample_rate rate) chipio_set_conn_rate_no_mutex() argument 1909 chipio_set_conn_rate(struct hda_codec * codec,int connid,enum ca0132_sample_rate rate) chipio_set_conn_rate() argument 1922 chipio_8051_write_direct(struct hda_codec * codec,unsigned int addr,unsigned int data) chipio_8051_write_direct() argument 1939 chipio_8051_set_address(struct hda_codec * codec,unsigned int addr) chipio_8051_set_address() argument 1954 chipio_8051_set_data(struct hda_codec * codec,unsigned int data) chipio_8051_set_data() argument 1961 chipio_8051_get_data(struct hda_codec * codec) chipio_8051_get_data() argument 1968 chipio_8051_set_data_pll(struct hda_codec * codec,unsigned int data) chipio_8051_set_data_pll() argument 1975 chipio_8051_write_exram(struct hda_codec * codec,unsigned int addr,unsigned int data) chipio_8051_write_exram() argument 1988 chipio_8051_write_exram_no_mutex(struct hda_codec * codec,unsigned int addr,unsigned int data) chipio_8051_write_exram_no_mutex() argument 1996 chipio_8051_read_exram(struct hda_codec * codec,unsigned int addr,unsigned int * data) chipio_8051_read_exram() argument 2003 chipio_8051_write_pll_pmu(struct hda_codec * codec,unsigned int addr,unsigned int data) chipio_8051_write_pll_pmu() argument 2016 chipio_8051_write_pll_pmu_no_mutex(struct hda_codec * codec,unsigned int addr,unsigned int data) chipio_8051_write_pll_pmu_no_mutex() argument 2026 chipio_enable_clocks(struct hda_codec * codec) chipio_enable_clocks() argument 2042 dspio_send(struct hda_codec * codec,unsigned int reg,unsigned int data) dspio_send() argument 2062 dspio_write_wait(struct hda_codec * codec) dspio_write_wait() argument 2080 dspio_write(struct hda_codec * codec,unsigned int scp_data) dspio_write() argument 2111 dspio_write_multiple(struct hda_codec * codec,unsigned int * buffer,unsigned int size) dspio_write_multiple() argument 2131 dspio_read(struct hda_codec * codec,unsigned int * data) dspio_read() argument 2150 dspio_read_multiple(struct hda_codec * codec,unsigned int * buffer,unsigned int * buf_size,unsigned int size_count) dspio_read_multiple() argument 2243 dspio_clear_response_queue(struct hda_codec * codec) dspio_clear_response_queue() argument 2255 dspio_get_response_data(struct hda_codec * codec) dspio_get_response_data() argument 2279 dspio_send_scp_message(struct hda_codec * codec,unsigned char * send_buf,unsigned int send_buf_size,unsigned char * return_buf,unsigned int return_buf_size,unsigned int * bytes_returned) dspio_send_scp_message() argument 2369 dspio_scp(struct hda_codec * codec,int mod_id,int src_id,int req,int dir,const void * data,unsigned int len,void * reply,unsigned int * reply_len) dspio_scp() argument 2451 dspio_set_param(struct hda_codec * codec,int mod_id,int src_id,int req,const void * data,unsigned int len) dspio_set_param() argument 2458 dspio_set_uint_param(struct hda_codec * codec,int mod_id,int req,const unsigned int data) dspio_set_uint_param() argument 2468 dspio_alloc_dma_chan(struct hda_codec * codec,unsigned int * dma_chan) dspio_alloc_dma_chan() argument 2497 dspio_free_dma_chan(struct hda_codec * codec,unsigned int dma_chan) dspio_free_dma_chan() argument 2522 dsp_set_run_state(struct hda_codec * codec) dsp_set_run_state() argument 2557 dsp_reset(struct hda_codec * codec) dsp_reset() argument 2600 dsp_is_dma_active(struct hda_codec * codec,unsigned int dma_chan) dsp_is_dma_active() argument 2610 dsp_dma_setup_common(struct hda_codec * codec,unsigned int chip_addx,unsigned int dma_chan,unsigned int port_map_mask,bool ovly) dsp_dma_setup_common() argument 2723 dsp_dma_setup(struct hda_codec * codec,unsigned int chip_addx,unsigned int count,unsigned int dma_chan) dsp_dma_setup() argument 2814 dsp_dma_start(struct hda_codec * codec,unsigned int dma_chan,bool ovly) dsp_dma_start() argument 2850 dsp_dma_stop(struct hda_codec * codec,unsigned int dma_chan,bool ovly) dsp_dma_stop() argument 2893 dsp_allocate_router_ports(struct hda_codec * codec,unsigned int num_chans,unsigned int ports_per_channel,unsigned int start_device,unsigned int * port_map) dsp_allocate_router_ports() argument 2934 dsp_free_router_ports(struct hda_codec * codec) dsp_free_router_ports() argument 2954 dsp_allocate_ports(struct hda_codec * codec,unsigned int num_chans,unsigned int rate_multi,unsigned int * port_map) dsp_allocate_ports() argument 2975 dsp_allocate_ports_format(struct hda_codec * codec,const unsigned short fmt,unsigned int * port_map) dsp_allocate_ports_format() argument 2998 dsp_free_ports(struct hda_codec * codec) dsp_free_ports() argument 3018 struct hda_codec *codec; global() member 3030 dma_convert_to_hda_format(struct hda_codec * codec,unsigned int sample_rate,unsigned short channels,unsigned short * hda_format) dma_convert_to_hda_format() argument 3050 struct hda_codec *codec = dma->codec; dma_reset() local 3165 dspxfr_hci_write(struct hda_codec * codec,const struct dsp_image_seg * fls) dspxfr_hci_write() argument 3205 dspxfr_one_seg(struct hda_codec * codec,const struct dsp_image_seg * fls,unsigned int reloc,struct dma_engine * dma_engine,unsigned int dma_chan,unsigned int port_map_mask,bool ovly) dspxfr_one_seg() argument 3401 dspxfr_image(struct hda_codec * codec,const struct dsp_image_seg * fls_data,unsigned int reloc,unsigned int sample_rate,unsigned short channels,bool ovly) dspxfr_image() argument 3522 dspload_post_setup(struct hda_codec * codec) dspload_post_setup() argument 3554 dspload_image(struct hda_codec * codec,const struct dsp_image_seg * fls,bool ovly,unsigned int reloc,bool autostart,int router_chans) dspload_image() argument 3609 dspload_is_loaded(struct hda_codec * codec) dspload_is_loaded() argument 3621 dspload_is_loaded(codec) global() argument 3624 dspload_wait_loaded(struct hda_codec * codec) dspload_wait_loaded() argument 3655 ca0113_mmio_gpio_set(struct hda_codec * codec,unsigned int gpio_pin,bool enable) ca0113_mmio_gpio_set() argument 3675 ca0113_mmio_command_set(struct hda_codec * codec,unsigned int group,unsigned int target,unsigned int value) ca0113_mmio_command_set() argument 3714 ca0113_mmio_command_set_type2(struct hda_codec * codec,unsigned int group,unsigned int target,unsigned int value) ca0113_mmio_command_set_type2() argument 3754 ca0132_gpio_init(struct hda_codec * codec) ca0132_gpio_init() argument 3777 ca0132_gpio_setup(struct hda_codec * codec) ca0132_gpio_setup() argument 3847 r3di_gpio_mic_set(struct hda_codec * codec,enum r3di_mic_select cur_mic) r3di_gpio_mic_set() argument 3867 r3di_gpio_dsp_status_set(struct hda_codec * codec,enum r3di_dsp_status dsp_status) r3di_gpio_dsp_status_set() argument 3900 ca0132_playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) ca0132_playback_pcm_prepare() argument 3913 ca0132_playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) ca0132_playback_pcm_cleanup() argument 3932 ca0132_playback_pcm_delay(struct hda_pcm_stream * info,struct hda_codec * codec,struct snd_pcm_substream * substream) ca0132_playback_pcm_delay() argument 3960 ca0132_dig_playback_pcm_open(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) ca0132_dig_playback_pcm_open() argument 3968 ca0132_dig_playback_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) ca0132_dig_playback_pcm_prepare() argument 3979 ca0132_dig_playback_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) ca0132_dig_playback_pcm_cleanup() argument 3987 ca0132_dig_playback_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) ca0132_dig_playback_pcm_close() argument 3998 ca0132_capture_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) ca0132_capture_pcm_prepare() argument 4010 ca0132_capture_pcm_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) ca0132_capture_pcm_cleanup() argument 4023 ca0132_capture_pcm_delay(struct hda_pcm_stream * info,struct hda_codec * codec,struct snd_pcm_substream * substream) ca0132_capture_pcm_delay() argument 4236 tuning_ctl_set(struct hda_codec * codec,hda_nid_t nid,const unsigned int * lookup,int idx) tuning_ctl_set() argument 4259 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); tuning_ctl_get() local 4285 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); voice_focus_ctl_put() local 4320 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mic_svm_ctl_put() local 4355 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); equalizer_ctl_put() local 4377 add_tuning_control(struct hda_codec * codec,hda_nid_t pnid,hda_nid_t nid,const char * name,int dir) add_tuning_control() argument 4417 add_tuning_ctls(struct hda_codec * codec) add_tuning_ctls() argument 4435 ca0132_init_tuning_defaults(struct hda_codec * codec) ca0132_init_tuning_defaults() argument 4457 ca0132_select_out(struct hda_codec * codec) ca0132_select_out() argument 4561 ae5_mmio_select_out(struct hda_codec * codec) ae5_mmio_select_out() argument 4578 ca0132_alt_set_full_range_speaker(struct hda_codec * codec) ca0132_alt_set_full_range_speaker() argument 4623 ca0132_alt_surround_set_bass_redirection(struct hda_codec * codec,bool val) ca0132_alt_surround_set_bass_redirection() argument 4656 ca0132_alt_select_out_get_quirk_data(struct hda_codec * codec,const struct ca0132_alt_out_set_quirk_data ** quirk_data) ca0132_alt_select_out_get_quirk_data() argument 4672 ca0132_alt_select_out_quirk_set(struct hda_codec * codec) ca0132_alt_select_out_quirk_set() argument 4745 ca0132_set_out_node_pincfg(struct hda_codec * codec,hda_nid_t nid,bool out_enable,bool hp_enable) ca0132_set_out_node_pincfg() argument 4766 ca0132_alt_select_out(struct hda_codec * codec) ca0132_alt_select_out() argument 4945 ca0132_set_vipsource(struct hda_codec * codec,int val) ca0132_set_vipsource() argument 4983 ca0132_alt_set_vipsource(struct hda_codec * codec,int val) ca0132_alt_set_vipsource() argument 5054 ca0132_select_mic(struct hda_codec * codec) ca0132_select_mic() argument 5106 ca0132_alt_select_in(struct hda_codec * codec) ca0132_alt_select_in() argument 5283 ca0132_is_vnode_effective(struct hda_codec * codec,hda_nid_t vnid,hda_nid_t * shared_nid) ca0132_is_vnode_effective() argument 5311 ca0132_voicefx_set(struct hda_codec * codec,int enable) ca0132_voicefx_set() argument 5333 ca0132_effects_set(struct hda_codec * codec,hda_nid_t nid,long val) ca0132_effects_set() argument 5424 ca0132_pe_switch_set(struct hda_codec * codec) ca0132_pe_switch_set() argument 5446 stop_mic1(struct hda_codec * codec) stop_mic1() argument 5459 resume_mic1(struct hda_codec * codec,unsigned int oldval) resume_mic1() argument 5472 ca0132_cvoice_switch_set(struct hda_codec * codec) ca0132_cvoice_switch_set() argument 5501 ca0132_mic_boost_set(struct hda_codec * codec,long val) ca0132_mic_boost_set() argument 5516 ca0132_alt_mic_boost_set(struct hda_codec * codec,long val) ca0132_alt_mic_boost_set() argument 5526 ae5_headphone_gain_set(struct hda_codec * codec,long val) ae5_headphone_gain_set() argument 5540 zxr_headphone_gain_set(struct hda_codec * codec,long val) zxr_headphone_gain_set() argument 5550 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_vnode_switch_set() local 5611 ca0132_alt_bass_redirection_xover_set(struct hda_codec * codec,long idx) ca0132_alt_bass_redirection_xover_set() argument 5631 ca0132_alt_slider_ctl_set(struct hda_codec * codec,hda_nid_t nid,const unsigned int * lookup,int idx) ca0132_alt_slider_ctl_set() argument 5673 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_xbass_xover_slider_ctl_get() local 5689 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_slider_ctl_get() local 5732 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_xbass_xover_slider_put() local 5762 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_effect_slider_put() local 5809 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_mic_boost_get() local 5819 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_mic_boost_put() local 5863 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ae5_headphone_gain_get() local 5873 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ae5_headphone_gain_put() local 5916 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ae5_sound_filter_get() local 5926 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ae5_sound_filter_put() local 5966 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_input_source_get() local 5976 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_input_source_put() local 6018 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_output_select_get() local 6028 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_output_select_put() local 6069 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_speaker_channel_cfg_get() local 6079 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_speaker_channel_cfg_put() local 6122 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_svm_setting_get() local 6132 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_svm_setting_put() local 6186 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_eq_preset_get() local 6196 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_eq_preset_put() local 6243 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_voicefx_get() local 6253 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_voicefx_put() local 6288 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_switch_get() local 6340 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_switch_put() local 6441 ca0132_alt_dsp_volume_put(struct hda_codec * codec,hda_nid_t nid) ca0132_alt_dsp_volume_put() argument 6474 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_volume_info() local 6512 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_volume_get() local 6533 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_volume_put() local 6580 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_alt_volume_put() local 6620 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ca0132_volume_tlv() local 6656 ca0132_alt_add_effect_slider(struct hda_codec * codec,hda_nid_t nid,const char * pfx,int dir) ca0132_alt_add_effect_slider() argument 6691 add_fx_switch(struct hda_codec * codec,hda_nid_t nid,const char * pfx,int dir) add_fx_switch() argument 6710 add_voicefx(struct hda_codec * codec) add_voicefx() argument 6722 add_ca0132_alt_eq_presets(struct hda_codec * codec) add_ca0132_alt_eq_presets() argument 6739 ca0132_alt_add_svm_enum(struct hda_codec * codec) ca0132_alt_add_svm_enum() argument 6756 ca0132_alt_add_output_enum(struct hda_codec * codec) ca0132_alt_add_output_enum() argument 6773 ca0132_alt_add_speaker_channel_cfg_enum(struct hda_codec * codec) ca0132_alt_add_speaker_channel_cfg_enum() argument 6790 ca0132_alt_add_front_full_range_switch(struct hda_codec * codec) ca0132_alt_add_front_full_range_switch() argument 6800 ca0132_alt_add_rear_full_range_switch(struct hda_codec * codec) ca0132_alt_add_rear_full_range_switch() argument 6816 ca0132_alt_add_bass_redirection_crossover(struct hda_codec * codec) ca0132_alt_add_bass_redirection_crossover() argument 6832 ca0132_alt_add_bass_redirection_switch(struct hda_codec * codec) ca0132_alt_add_bass_redirection_switch() argument 6848 ca0132_alt_add_input_enum(struct hda_codec * codec) ca0132_alt_add_input_enum() argument 6864 ca0132_alt_add_mic_boost_enum(struct hda_codec * codec) ca0132_alt_add_mic_boost_enum() argument 6882 ae5_add_headphone_gain_enum(struct hda_codec * codec) ae5_add_headphone_gain_enum() argument 6899 ae5_add_sound_filter_enum(struct hda_codec * codec) ae5_add_sound_filter_enum() argument 6911 zxr_add_headphone_gain_switch(struct hda_codec * codec) zxr_add_headphone_gain_switch() argument 6948 ca0132_alt_add_chmap_ctls(struct hda_codec * codec) ca0132_alt_add_chmap_ctls() argument 7041 ca0132_build_controls(struct hda_codec * codec) ca0132_build_controls() argument 7228 dbpro_build_controls(struct hda_codec * codec) dbpro_build_controls() argument 7292 ca0132_build_pcms(struct hda_codec * codec) ca0132_build_pcms() argument 7352 dbpro_build_pcms(struct hda_codec * codec) dbpro_build_pcms() argument 7386 init_output(struct hda_codec * codec,hda_nid_t pin,hda_nid_t dac) init_output() argument 7400 init_input(struct hda_codec * codec,hda_nid_t pin,hda_nid_t adc) init_input() argument 7421 refresh_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir) refresh_amp_caps() argument 7433 ca0132_set_dmic(struct hda_codec * codec,int enable) ca0132_set_dmic() argument 7477 ca0132_init_dmic(struct hda_codec * codec) ca0132_init_dmic() argument 7525 ca0132_init_analog_mic2(struct hda_codec * codec) ca0132_init_analog_mic2() argument 7537 ca0132_refresh_widget_caps(struct hda_codec * codec) ca0132_refresh_widget_caps() argument 7559 ca0132_alt_free_active_dma_channels(struct hda_codec * codec) ca0132_alt_free_active_dma_channels() argument 7614 ca0132_alt_start_dsp_audio_streams(struct hda_codec * codec) ca0132_alt_start_dsp_audio_streams() argument 7704 chipio_remap_stream(struct hda_codec * codec,const struct chipio_stream_remap_data * remap_data) chipio_remap_stream() argument 7771 ca0132_alt_init_speaker_tuning(struct hda_codec * codec) ca0132_alt_init_speaker_tuning() argument 7815 ca0132_alt_init_analog_mics(struct hda_codec * codec) ca0132_alt_init_analog_mics() argument 7845 sbz_connect_streams(struct hda_codec * codec) sbz_connect_streams() argument 7874 sbz_chipio_startup_data(struct hda_codec * codec) sbz_chipio_startup_data() argument 7907 ca0132_alt_dsp_initial_mic_setup(struct hda_codec * codec) ca0132_alt_dsp_initial_mic_setup() argument 7938 ae5_post_dsp_register_set(struct hda_codec * codec) ae5_post_dsp_register_set() argument 7963 ae5_post_dsp_param_setup(struct hda_codec * codec) ae5_post_dsp_param_setup() argument 7983 ae5_post_dsp_pll_setup(struct hda_codec * codec) ae5_post_dsp_pll_setup() argument 7992 ae5_post_dsp_stream_setup(struct hda_codec * codec) ae5_post_dsp_stream_setup() argument 8018 ae5_post_dsp_startup_data(struct hda_codec * codec) ae5_post_dsp_startup_data() argument 8050 ae7_post_dsp_setup_ports(struct hda_codec * codec) ae7_post_dsp_setup_ports() argument 8071 ae7_post_dsp_asi_stream_setup(struct hda_codec * codec) ae7_post_dsp_asi_stream_setup() argument 8094 ae7_post_dsp_pll_setup(struct hda_codec * codec) ae7_post_dsp_pll_setup() argument 8108 ae7_post_dsp_asi_setup_ports(struct hda_codec * codec) ae7_post_dsp_asi_setup_ports() argument 8190 ae7_post_dsp_asi_setup(struct hda_codec * codec) ae7_post_dsp_asi_setup() argument 8219 ca0132_setup_defaults(struct hda_codec * codec) ca0132_setup_defaults() argument 8264 r3d_setup_defaults(struct hda_codec * codec) r3d_setup_defaults() argument 8314 sbz_setup_defaults(struct hda_codec * codec) sbz_setup_defaults() argument 8368 ae5_setup_defaults(struct hda_codec * codec) ae5_setup_defaults() argument 8433 ae7_setup_defaults(struct hda_codec * codec) ae7_setup_defaults() argument 8516 ca0132_init_flags(struct hda_codec * codec) ca0132_init_flags() argument 8549 ca0132_init_params(struct hda_codec * codec) ca0132_init_params() argument 8565 ca0132_set_dsp_msr(struct hda_codec * codec,bool is96k) ca0132_set_dsp_msr() argument 8579 ca0132_download_dsp_images(struct hda_codec * codec) ca0132_download_dsp_images() argument 8635 ca0132_download_dsp(struct hda_codec * codec) ca0132_download_dsp() argument 8661 ca0132_process_dsp_response(struct hda_codec * codec,struct hda_jack_callback * callback) ca0132_process_dsp_response() argument 8677 hp_callback(struct hda_codec * codec,struct hda_jack_callback * cb) hp_callback() argument 8691 amic_callback(struct hda_codec * codec,struct hda_jack_callback * cb) amic_callback() argument 8701 ca0132_setup_unsol(struct hda_codec * codec) ca0132_setup_unsol() argument 8790 ca0132_init_chip(struct hda_codec * codec) ca0132_init_chip() argument 8875 r3di_gpio_shutdown(struct hda_codec * codec) r3di_gpio_shutdown() argument 8883 sbz_region2_exit(struct hda_codec * codec) sbz_region2_exit() argument 8900 sbz_set_pin_ctl_default(struct hda_codec * codec) sbz_set_pin_ctl_default() argument 8913 ca0132_clear_unsolicited(struct hda_codec * codec) ca0132_clear_unsolicited() argument 8925 sbz_gpio_shutdown_commands(struct hda_codec * codec,int dir,int mask,int data) sbz_gpio_shutdown_commands() argument 8940 zxr_dbpro_power_state_shutdown(struct hda_codec * codec) zxr_dbpro_power_state_shutdown() argument 8950 sbz_exit_chip(struct hda_codec * codec) sbz_exit_chip() argument 8985 r3d_exit_chip(struct hda_codec * codec) r3d_exit_chip() argument 8992 ae5_exit_chip(struct hda_codec * codec) ae5_exit_chip() argument 9017 ae7_exit_chip(struct hda_codec * codec) ae7_exit_chip() argument 9043 zxr_exit_chip(struct hda_codec * codec) zxr_exit_chip() argument 9073 ca0132_exit_chip(struct hda_codec * codec) ca0132_exit_chip() argument 9089 sbz_dsp_startup_check(struct hda_codec * codec) sbz_dsp_startup_check() argument 9154 ca0132_alt_vol_setup(struct hda_codec * codec) ca0132_alt_vol_setup() argument 9169 sbz_pre_dsp_setup(struct hda_codec * codec) sbz_pre_dsp_setup() argument 9182 r3d_pre_dsp_setup(struct hda_codec * codec) r3d_pre_dsp_setup() argument 9192 r3di_pre_dsp_setup(struct hda_codec * codec) r3di_pre_dsp_setup() argument 9209 zxr_pre_dsp_setup(struct hda_codec * codec) zxr_pre_dsp_setup() argument 9282 ca0132_mmio_init_sbz(struct hda_codec * codec) ca0132_mmio_init_sbz() argument 9332 ca0132_mmio_init_ae5(struct hda_codec * codec) ca0132_mmio_init_ae5() argument 9364 ca0132_mmio_init(struct hda_codec * codec) ca0132_mmio_init() argument 9397 ae5_register_set(struct hda_codec * codec) ae5_register_set() argument 9456 ca0132_alt_init(struct hda_codec * codec) ca0132_alt_init() argument 9513 ca0132_init(struct hda_codec * codec) ca0132_init() argument 9634 dbpro_init(struct hda_codec * codec) dbpro_init() argument 9649 ca0132_free(struct hda_codec * codec) ca0132_free() argument 9690 dbpro_free(struct hda_codec * codec) dbpro_free() argument 9700 ca0132_config(struct hda_codec * codec) ca0132_config() argument 9900 ca0132_prepare_verbs(struct hda_codec * codec) ca0132_prepare_verbs() argument 9949 sbz_detect_quirk(struct hda_codec * codec) sbz_detect_quirk() argument 9964 ca0132_codec_remove(struct hda_codec * codec) ca0132_codec_remove() argument 9974 ca0132_codec_probe(struct hda_codec * codec,const struct hda_device_id * id) ca0132_codec_probe() argument 10092 ca0132_codec_build_controls(struct hda_codec * codec) ca0132_codec_build_controls() argument 10102 ca0132_codec_build_pcms(struct hda_codec * codec) ca0132_codec_build_pcms() argument 10112 ca0132_codec_init(struct hda_codec * codec) ca0132_codec_init() argument 10122 ca0132_codec_suspend(struct hda_codec * codec) ca0132_codec_suspend() argument [all...] |
H A D | via.c | 3 * Universal Interface for Intel High Definition Audio Codec 5 * HD audio codec driver for VIA VT17xx/VT18xx/VT20xx codec 13 /* 2006-03-03 Lydia Wang Create the basic patch to support VT1708 codec */ 15 /* 2006-08-02 Lydia Wang Add support to VT1709 codec */ 18 /* 2007-09-17 Lydia Wang Add VT1708B codec support */ 19 /* 2007-11-14 Lydia Wang Add VT1708A codec HP and CD pin connect config */ 21 /* 2008-03-06 Lydia Wang Add VT1702 codec and VT1708S codec support */ 95 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec); 97 struct hda_codec *codec, 101 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec() argument [all …]
|
H A D | senarytech.c | 3 * HD audio codec driver for Senary HDA audio codec 63 static int senary_auto_parse_beep(struct hda_codec *codec) in senary_auto_parse_beep() argument 65 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep() 68 for_each_hda_codec_node(nid, codec) in senary_auto_parse_beep() 69 if ((get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) && in senary_auto_parse_beep() 70 (get_wcaps(codec, nid) & (AC_WCAP_OUT_AMP | AC_WCAP_AMP_OVRD))) in senary_auto_parse_beep() 75 #define senary_auto_parse_beep(codec) 0 argument 79 static void senary_auto_parse_eapd(struct hda_codec *codec) in senary_auto_parse_eapd() argument 81 struct senary_spec *spec = codec->spec; in senary_auto_parse_eapd() 84 for_each_hda_codec_node(nid, codec) { in senary_auto_parse_eapd() [all …]
|
H A D | conexant.c | 3 * HD audio codec driver for Conexant HDA audio codec 74 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep() argument 76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() 79 for_each_hda_codec_node(nid, codec) in cx_auto_parse_beep() 80 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) in cx_auto_parse_beep() 85 #define cx_auto_parse_beep(codec) 0 argument 93 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd() argument 95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() 98 for_each_hda_codec_node(nid, codec) { in cx_auto_parse_eapd() 118 cx_auto_turn_eapd(struct hda_codec * codec,int num_pins,const hda_nid_t * pins,bool on) cx_auto_turn_eapd() argument 133 struct hda_codec *codec = private_data; cx_auto_vmaster_hook() local 143 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cx_auto_vmaster_mute_led() local 152 cxt_init_gpio_led(struct hda_codec * codec) cxt_init_gpio_led() argument 167 cx_fixup_headset_recog(struct hda_codec * codec) cx_fixup_headset_recog() argument 188 cx_init(struct hda_codec * codec) cx_init() argument 204 cx_auto_shutdown(struct hda_codec * codec) cx_auto_shutdown() argument 213 cx_remove(struct hda_codec * codec) cx_remove() argument 219 cx_process_headset_plugin(struct hda_codec * codec) cx_process_headset_plugin() argument 246 cx_update_headset_mic_vref(struct hda_codec * codec,struct hda_jack_callback * event) cx_update_headset_mic_vref() argument 261 cx_suspend(struct hda_codec * codec) cx_suspend() argument 310 cxt_fixup_stereo_dmic(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_stereo_dmic() argument 318 cxt_fixup_update_pinctl(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_update_pinctl() argument 330 cxt5066_increase_mic_boost(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt5066_increase_mic_boost() argument 343 cxt_update_headset_mode(struct hda_codec * codec) cxt_update_headset_mode() argument 370 cxt_update_headset_mode_hook(struct hda_codec * codec,struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol) cxt_update_headset_mode_hook() argument 377 cxt_fixup_headphone_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_headphone_mic() argument 398 cxt_fixup_headset_mic(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_headset_mic() argument 419 update_mic_pin(codec,nid,val) global() argument 432 olpc_xo_update_mic_boost(struct hda_codec * codec) olpc_xo_update_mic_boost() argument 447 olpc_xo_update_mic_pins(struct hda_codec * codec) olpc_xo_update_mic_pins() argument 502 olpc_xo_automic(struct hda_codec * codec,struct hda_jack_callback * jack) olpc_xo_automic() argument 517 olpc_xo_capture_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) olpc_xo_capture_hook() argument 541 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_mode_get() local 550 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_mode_put() local 566 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_bias_enum_get() local 581 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_bias_enum_put() local 622 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_mic_boost_put() local 630 cxt_fixup_olpc_xo(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_olpc_xo() argument 661 cxt_fixup_mute_led_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_mute_led_eapd() argument 677 cxt_fixup_cap_mix_amp(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_cap_mix_amp() argument 691 cxt_fixup_cap_mix_amp_5047(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_cap_mix_amp_5047() argument 701 cxt_fixup_hp_gate_mic_jack(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_hp_gate_mic_jack() argument 713 cxt_update_gpio_led(struct hda_codec * codec,unsigned int mask,bool led_on) cxt_update_gpio_led() argument 737 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cxt_gpio_mute_update() local 748 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cxt_gpio_micmute_update() local 755 cxt_setup_mute_led(struct hda_codec * codec,unsigned int mute,unsigned int mic_mute) cxt_setup_mute_led() argument 772 cxt_setup_gpio_unmute(struct hda_codec * codec,unsigned int gpio_mute_mask) cxt_setup_gpio_unmute() argument 784 cxt_fixup_mute_led_gpio(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_mute_led_gpio() argument 791 cxt_fixup_hp_zbook_mute_led(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_hp_zbook_mute_led() argument 798 cxt_fixup_hp_a_u(struct hda_codec * codec,const struct hda_fixup * fix,int action) cxt_fixup_hp_a_u() argument 1156 add_cx5051_fake_mutes(struct hda_codec * codec) add_cx5051_fake_mutes() argument 1171 cx_probe(struct hda_codec * codec,const struct hda_device_id * id) cx_probe() argument [all...] |
/linux/sound/hda/core/ |
H A D | device.c | 3 * HD-audio codec core device 19 static void setup_fg_nodes(struct hdac_device *codec); 20 static int get_codec_vendor_name(struct hdac_device *codec); 28 * snd_hdac_device_init - initialize the HD-audio codec base device 29 * @codec: device to initialize 32 * @addr: codec address 41 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() argument 48 dev = &codec->dev; in snd_hdac_device_init() 57 codec->bus = bus; in snd_hdac_device_init() 58 codec in snd_hdac_device_init() 128 snd_hdac_device_exit(struct hdac_device * codec) snd_hdac_device_exit() argument 143 snd_hdac_device_register(struct hdac_device * codec) snd_hdac_device_register() argument 166 snd_hdac_device_unregister(struct hdac_device * codec) snd_hdac_device_unregister() argument 185 snd_hdac_device_set_chip_name(struct hdac_device * codec,const char * name) snd_hdac_device_set_chip_name() argument 208 snd_hdac_codec_modalias(const struct hdac_device * codec,char * buf,size_t size) snd_hdac_codec_modalias() argument 225 snd_hdac_make_cmd(struct hdac_device * codec,hda_nid_t nid,unsigned int verb,unsigned int parm) snd_hdac_make_cmd() argument 257 snd_hdac_exec_verb(struct hdac_device * codec,unsigned int cmd,unsigned int flags,unsigned int * res) snd_hdac_exec_verb() argument 276 snd_hdac_read(struct hdac_device * codec,hda_nid_t nid,unsigned int verb,unsigned int parm,unsigned int * res) snd_hdac_read() argument 294 _snd_hdac_read_parm(struct hdac_device * codec,hda_nid_t nid,int parm,unsigned int * res) _snd_hdac_read_parm() argument 313 snd_hdac_read_parm_uncached(struct hdac_device * codec,hda_nid_t nid,int parm) snd_hdac_read_parm_uncached() argument 332 snd_hdac_override_parm(struct hdac_device * codec,hda_nid_t nid,unsigned int parm,unsigned int val) snd_hdac_override_parm() argument 357 snd_hdac_get_sub_nodes(struct hdac_device * codec,hda_nid_t nid,hda_nid_t * start_id) snd_hdac_get_sub_nodes() argument 375 setup_fg_nodes(struct hdac_device * codec) setup_fg_nodes() argument 405 snd_hdac_refresh_widgets(struct hdac_device * codec) snd_hdac_refresh_widgets() argument 437 get_num_conns(struct hdac_device * codec,hda_nid_t nid) get_num_conns() argument 465 snd_hdac_get_connections(struct hdac_device * codec,hda_nid_t nid,hda_nid_t * conn_list,int max_conns) snd_hdac_get_connections() argument 568 snd_hdac_power_up(struct hdac_device * codec) snd_hdac_power_up() argument 580 snd_hdac_power_down(struct hdac_device * codec) snd_hdac_power_down() argument 599 snd_hdac_power_up_pm(struct hdac_device * codec) snd_hdac_power_up_pm() argument 611 snd_hdac_keep_power_up(struct hdac_device * codec) snd_hdac_keep_power_up() argument 632 snd_hdac_power_down_pm(struct hdac_device * codec) snd_hdac_power_down_pm() argument 675 get_codec_vendor_name(struct hdac_device * codec) get_codec_vendor_name() argument 852 query_pcm_param(struct hdac_device * codec,hda_nid_t nid) query_pcm_param() argument 866 query_stream_param(struct hdac_device * codec,hda_nid_t nid) query_stream_param() argument 891 snd_hdac_query_supported_pcm(struct hdac_device * codec,hda_nid_t nid,u32 * ratesp,u64 * formatsp,u32 * subformatsp,unsigned int * bpsp) snd_hdac_query_supported_pcm() argument 1000 snd_hdac_is_supported_format(struct hdac_device * codec,hda_nid_t nid,unsigned int format) snd_hdac_is_supported_format() argument 1147 snd_hdac_sync_power_state(struct hdac_device * codec,hda_nid_t nid,unsigned int power_state) snd_hdac_sync_power_state() argument [all...] |
H A D | regmap.c | 25 static int codec_pm_lock(struct hdac_device *codec) in codec_pm_lock() argument 27 return snd_hdac_keep_power_up(codec); in codec_pm_lock() 30 static void codec_pm_unlock(struct hdac_device *codec, int lock) in codec_pm_unlock() argument 33 snd_hdac_power_down_pm(codec); in codec_pm_unlock() 40 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_volatile_reg() local 45 return !codec->cache_coef; in hda_volatile_reg() 67 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_writeable_reg() local 72 snd_array_for_each(&codec->vendor_verbs, i, v) { in hda_writeable_reg() 77 if (codec->caps_overwriting) in hda_writeable_reg() 85 return codec in hda_writeable_reg() 116 struct hdac_device *codec = dev_to_hdac_dev(dev); hda_readable_reg() local 156 hda_reg_read_stereo_amp(struct hdac_device * codec,unsigned int reg,unsigned int * val) hda_reg_read_stereo_amp() argument 174 hda_reg_write_stereo_amp(struct hdac_device * codec,unsigned int reg,unsigned int val) hda_reg_write_stereo_amp() argument 204 hda_reg_read_coef(struct hdac_device * codec,unsigned int reg,unsigned int * val) hda_reg_read_coef() argument 222 hda_reg_write_coef(struct hdac_device * codec,unsigned int reg,unsigned int val) hda_reg_write_coef() argument 242 struct hdac_device *codec = context; hda_reg_read() local 281 struct hdac_device *codec = context; hda_reg_write() local 374 snd_hdac_regmap_init(struct hdac_device * codec) snd_hdac_regmap_init() argument 391 snd_hdac_regmap_exit(struct hdac_device * codec) snd_hdac_regmap_exit() argument 408 snd_hdac_regmap_add_vendor_verb(struct hdac_device * codec,unsigned int verb) snd_hdac_regmap_add_vendor_verb() argument 425 reg_raw_write(struct hdac_device * codec,unsigned int reg,unsigned int val) reg_raw_write() argument 440 CALL_RAW_FUNC(codec,func_call) global() argument 459 snd_hdac_regmap_write_raw(struct hdac_device * codec,unsigned int reg,unsigned int val) snd_hdac_regmap_write_raw() argument 466 reg_raw_read(struct hdac_device * codec,unsigned int reg,unsigned int * val,bool uncached) reg_raw_read() argument 480 __snd_hdac_regmap_read_raw(struct hdac_device * codec,unsigned int reg,unsigned int * val,bool uncached) __snd_hdac_regmap_read_raw() argument 495 snd_hdac_regmap_read_raw(struct hdac_device * codec,unsigned int reg,unsigned int * val) snd_hdac_regmap_read_raw() argument 505 snd_hdac_regmap_read_raw_uncached(struct hdac_device * codec,unsigned int reg,unsigned int * val) snd_hdac_regmap_read_raw_uncached() argument 511 reg_raw_update(struct hdac_device * codec,unsigned int reg,unsigned int mask,unsigned int val) reg_raw_update() argument 549 snd_hdac_regmap_update_raw(struct hdac_device * codec,unsigned int reg,unsigned int mask,unsigned int val) snd_hdac_regmap_update_raw() argument 556 reg_raw_update_once(struct hdac_device * codec,unsigned int reg,unsigned int mask,unsigned int val) reg_raw_update_once() argument 583 snd_hdac_regmap_update_raw_once(struct hdac_device * codec,unsigned int reg,unsigned int mask,unsigned int val) snd_hdac_regmap_update_raw_once() argument 594 snd_hdac_regmap_sync(struct hdac_device * codec) snd_hdac_regmap_sync() argument [all...] |
H A D | sysfs.c | 24 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 25 return sysfs_emit(buf, "0x%x\n", codec->type); \ 34 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 36 codec->type ? codec->type : ""); \ 89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid, 91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid, 114 struct hdac_device *codec; in widget_attr_show() local 119 nid = get_codec_nid(kobj, &codec); in widget_attr_show() 122 return wid_attr->show(codec, nid, wid_attr, buf); in widget_attr_show() 130 struct hdac_device *codec; in widget_attr_store() local [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | cirrus,lochnagar.yaml | 14 Smart CODEC and Amp devices. It allows the connection of most Cirrus 72 enum: [ codec-aif1, codec-aif2, codec-aif3, dsp-aif1, 82 fpga-gpio5, fpga-gpio6, codec-gpio1, codec-gpio2, 83 codec-gpio3, codec-gpio4, codec-gpio5, codec-gpio6, 84 codec-gpio7, codec-gpio8, dsp-gpio1, dsp-gpio2, 86 gf-gpio2, gf-gpio3, gf-gpio7, codec-aif1-bclk, 87 codec-aif1-rxdat, codec-aif1-lrclk, codec-aif1-txdat, 88 codec-aif2-bclk, codec-aif2-rxdat, codec-aif2-lrclk, 89 codec-aif2-txdat, codec-aif3-bclk, codec-aif3-rxdat, 90 codec-aif3-lrclk, codec-aif3-txdat, dsp-aif1-bclk, [all …]
|
/linux/include/sound/ |
H A D | hda_codec.h | 3 * Universal Interface for Intel High Definition Audio Codec 33 * codec bus 53 /* status for codec/controller */ 65 unsigned int mixer_assigned; /* codec addr for mixer name */ 72 * codec preset 95 #define hda_codec_to_driver(codec) \ argument 96 container_of((codec)->core.dev.driver, struct hda_codec_driver, core.driver) 107 /* ops for hda codec driver */ 109 int (*probe)(struct hda_codec *codec, const struct hda_device_id *id); 110 void (*remove)(struct hda_codec *codec); 172 struct hda_codec *codec; global() member 325 snd_hda_codec_read(struct hda_codec * codec,hda_nid_t nid,int flags,unsigned int verb,unsigned int parm) snd_hda_codec_read() argument 333 snd_hda_codec_write(struct hda_codec * codec,hda_nid_t nid,int flags,unsigned int verb,unsigned int parm) snd_hda_codec_write() argument 339 snd_hda_param_read(codec,nid,param) global() argument 341 snd_hda_get_sub_nodes(codec,nid,start_nid) global() argument 346 snd_hda_get_num_conns(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_num_conns() argument 351 snd_hda_get_raw_connections(codec,nid,list,max_conns) global() argument 353 snd_hda_get_num_raw_conns(codec,nid) global() argument 379 snd_hda_codec_write_cache(struct hda_codec * codec,hda_nid_t nid,int flags,unsigned int verb,unsigned int parm) snd_hda_codec_write_cache() argument 448 snd_hda_codec_cleanup_stream(codec,nid) global() argument 451 snd_hda_query_supported_pcm(codec,nid,ratesp,fmtsp,subfmtp,bpsp) global() argument 453 snd_hda_is_supported_format(codec,nid,fmt) global() argument 481 hda_call_check_power_status(struct hda_codec * codec,hda_nid_t nid) hda_call_check_power_status() argument 493 snd_hda_power_up(codec) global() argument 494 snd_hda_power_up_pm(codec) global() argument 495 snd_hda_power_down(codec) global() argument 496 snd_hda_power_down_pm(codec) global() argument 501 hda_codec_need_resume(struct hda_codec * codec) hda_codec_need_resume() argument 522 snd_hda_codec_load_dsp_prepare(struct hda_codec * codec,unsigned int format,unsigned int size,struct snd_dma_buffer * bufp) snd_hda_codec_load_dsp_prepare() argument 529 snd_hda_codec_load_dsp_trigger(struct hda_codec * codec,bool start) snd_hda_codec_load_dsp_trigger() argument 531 snd_hda_codec_load_dsp_cleanup(struct hda_codec * codec,struct snd_dma_buffer * dmab) snd_hda_codec_load_dsp_cleanup() argument [all...] |
/linux/drivers/media/pci/zoran/ |
H A D | videocodec.c | 5 * Interface for MJPEG (and maybe later MPEG/WAVELETS) codec's 20 struct videocodec *codec; member 25 const struct videocodec *codec; member 42 struct videocodec *codec; in videocodec_attach() local 63 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach() 64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach() 66 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach() 67 if (!codec) in videocodec_attach() 70 res = strlen(codec->name); in videocodec_attach() 71 snprintf(codec->name + res, sizeof(codec->name) - res, "[%d]", h->attached); in videocodec_attach() [all …]
|
/linux/sound/soc/codecs/ |
H A D | Kconfig | 3 # modular, meaning we can't build the codec driver in with I2C support. 12 menu "CODEC drivers" 15 tristate "Build all ASoC CODEC drivers" 366 Normally ASoC codec drivers are only built if a machine driver which 430 tristate "Build generic ASoC AC97 CODEC driver" 467 tristate "Analog Devices ADAU1372 CODEC (I2C)" 473 tristate "Analog Devices ADAU1372 CODEC (SPI)" 479 tristate "Analog Devices ADAU1373 CODEC" 484 tristate "Analog Devices ADAU1701 CODEC" 498 tristate "Analog Devices AU1761 CODEC [all...] |
H A D | hda.c | 16 static int hda_codec_create_dais(struct hda_codec *codec, int pcm_count, in hda_codec_create_dais() argument 19 struct device *dev = &codec->core.dev; in hda_codec_create_dais() 28 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in hda_codec_create_dais() 83 static int hda_codec_register_dais(struct hda_codec *codec, struct snd_soc_component *component) in hda_codec_register_dais() argument 90 if (list_empty(&codec->pcm_list_head)) in hda_codec_register_dais() 92 list_for_each_entry(pcm, &codec->pcm_list_head, list) in hda_codec_register_dais() 95 ret = hda_codec_create_dais(codec, pcm_count, &drvs); in hda_codec_register_dais() 101 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_register_dais() 124 static void hda_codec_unregister_dais(struct hda_codec *codec, in hda_codec_unregister_dais() argument 133 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_unregister_dais() [all …]
|
/linux/sound/hda/codecs/cirrus/ |
H A D | cs8409.c | 3 * HD audio codec driver for Cirrus Logic CS8409 HDA bridge chip 22 static int cs8409_parse_auto_config(struct hda_codec *codec) in cs8409_parse_auto_config() argument 24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() 28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config() 32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config() 45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config() 55 static struct cs8409_spec *cs8409_alloc_spec(struct hda_codec *codec) in cs8409_alloc_spec() argument 62 codec->spec = spec; in cs8409_alloc_spec() 63 spec->codec = codec; in cs8409_alloc_spec() 72 cs8409_vendor_coef_get(struct hda_codec * codec,unsigned int idx) cs8409_vendor_coef_get() argument 78 cs8409_vendor_coef_set(struct hda_codec * codec,unsigned int idx,unsigned int coef) cs8409_vendor_coef_set() argument 91 cs8409_disable_i2c_clock(struct hda_codec * codec) cs8409_disable_i2c_clock() argument 120 cs8409_enable_i2c_clock(struct hda_codec * codec) cs8409_enable_i2c_clock() argument 146 cs8409_i2c_wait_complete(struct hda_codec * codec) cs8409_i2c_wait_complete() argument 159 cs8409_set_i2c_dev_addr(struct hda_codec * codec,unsigned int addr) cs8409_set_i2c_dev_addr() argument 178 struct hda_codec *codec = scodec->codec; cs8409_i2c_set_page() local 199 struct hda_codec *codec = scodec->codec; cs8409_i2c_read() local 242 struct hda_codec *codec = scodec->codec; cs8409_i2c_bulk_read() local 287 struct hda_codec *codec = scodec->codec; cs8409_i2c_write() local 328 struct hda_codec *codec = scodec->codec; cs8409_i2c_bulk_write() local 366 cs8409_init(struct hda_codec * codec) cs8409_init() argument 376 cs8409_build_controls(struct hda_codec * codec) cs8409_build_controls() argument 389 cs8409_enable_ur(struct hda_codec * codec,int flag) cs8409_enable_ur() argument 405 cs8409_fix_caps(struct hda_codec * codec,unsigned int nid) cs8409_fix_caps() argument 430 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs8409_spk_sw_gpio_get() local 440 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs8409_spk_sw_gpio_put() local 491 struct hda_codec *codec = snd_kcontrol_chip(kctrl); cs42l42_volume_get() local 550 struct hda_codec *codec = snd_kcontrol_chip(kctrl); cs42l42_volume_put() local 582 cs42l42_playback_pcm_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) cs42l42_playback_pcm_hook() argument 611 cs42l42_capture_pcm_hook(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream,int action) cs42l42_capture_pcm_hook() argument 876 struct hda_codec *codec = cs42l42->codec; cs42l42_resume() local 920 struct hda_codec *codec = cs42l42->codec; cs42l42_suspend() local 957 cs8409_remove(struct hda_codec * codec) cs8409_remove() argument 980 cs8409_cs42l42_jack_unsol_event(struct hda_codec * codec,unsigned int res) cs8409_cs42l42_jack_unsol_event() argument 1010 cs8409_unsol_event(struct hda_codec * codec,unsigned int res) cs8409_unsol_event() argument 1021 cs8409_cs42l42_suspend(struct hda_codec * codec) cs8409_cs42l42_suspend() argument 1045 cs8409_cs42l42_hw_init(struct hda_codec * codec) cs8409_cs42l42_hw_init() argument 1092 struct hda_codec *codec = container_of(dev, struct hda_codec, core); cs8409_cs42l42_exec_verb() local 1124 cs8409_cs42l42_fixups(struct hda_codec * codec,const struct hda_fixup * fix,int action) cs8409_cs42l42_fixups() argument 1243 dolphin_jack_unsol_event(struct hda_codec * codec,unsigned int res) dolphin_jack_unsol_event() argument 1279 dolphin_hw_init(struct hda_codec * codec) dolphin_hw_init() argument 1310 struct hda_codec *codec = container_of(dev, struct hda_codec, core); dolphin_exec_verb() local 1345 dolphin_fixups(struct hda_codec * codec,const struct hda_fixup * fix,int action) dolphin_fixups() argument 1438 cs8409_probe(struct hda_codec * codec,const struct hda_device_id * id) cs8409_probe() argument [all...] |