Home
last modified time | relevance | path

Searched +full:codec +full:- +full:driver (Results 1 – 25 of 841) sorted by relevance

12345678910>>...34

/linux/sound/hda/common/
H A Dbind.c1 // SPDX-License-Identifier: GPL-2.0-only
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
24 const struct hda_codec_driver *driver = 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()
31 for (list = driver->id; list->vendor_id; list++) { in hda_codec_match()
32 if (list->vendor_id == id && in hda_codec_match()
33 (!list->rev_id || list->rev_id == rev_id)) { in hda_codec_match()
[all …]
H A Dcodec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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_o argument
30 codec_has_epss(codec) global() argument
32 codec_has_clkstop(codec) global() argument
35 call_exec_verb(struct hda_bus * bus,struct hda_codec * codec,unsigned int cmd,unsigned int flags,unsigned int * res) call_exec_verb() argument
57 struct hda_codec *codec = container_of(dev, struct hda_codec, core); codec_exec_verb() local
88 snd_hda_sequence_write(struct hda_codec * codec,const struct hda_verb * seq) snd_hda_sequence_write() argument
105 lookup_conn_list(struct hda_codec * codec,hda_nid_t nid) lookup_conn_list() argument
115 add_conn_list(struct hda_codec * codec,hda_nid_t nid,int len,const hda_nid_t * list) add_conn_list() argument
130 remove_conn_list(struct hda_codec * codec) remove_conn_list() argument
141 read_and_add_raw_conns(struct hda_codec * codec,hda_nid_t nid) read_and_add_raw_conns() argument
177 snd_hda_get_conn_list(struct hda_codec * codec,hda_nid_t nid,const hda_nid_t ** listp) snd_hda_get_conn_list() argument
216 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
247 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
273 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
309 snd_hda_get_num_devices(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_num_devices() argument
335 snd_hda_get_devices(struct hda_codec * codec,hda_nid_t nid,u8 * dev_list,unsigned int max_devices) snd_hda_get_devices() argument
372 snd_hda_get_dev_select(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_dev_select() argument
390 snd_hda_set_dev_select(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_set_dev_select() argument
423 read_widget_caps(struct hda_codec * codec,hda_nid_t fg_node) read_widget_caps() argument
439 read_pin_defaults(struct hda_codec * codec) read_pin_defaults() argument
467 look_up_pincfg(struct hda_codec * codec,struct snd_array * array,hda_nid_t nid) look_up_pincfg() argument
484 snd_hda_add_pincfg(struct hda_codec * codec,struct snd_array * list,hda_nid_t nid,unsigned int cfg) snd_hda_add_pincfg() argument
510 snd_hda_codec_set_pincfg(struct hda_codec * codec,hda_nid_t nid,unsigned int cfg) snd_hda_codec_set_pincfg() argument
526 snd_hda_codec_get_pincfg(struct hda_codec * codec,hda_nid_t nid) snd_hda_codec_get_pincfg() argument
562 snd_hda_codec_set_pin_target(struct hda_codec * codec,hda_nid_t nid,unsigned int val) snd_hda_codec_set_pin_target() argument
580 snd_hda_codec_get_pin_target(struct hda_codec * codec,hda_nid_t nid) snd_hda_codec_get_pin_target() argument
598 snd_hda_shutup_pins(struct hda_codec * codec) snd_hda_shutup_pins() argument
618 restore_shutup_pins(struct hda_codec * codec) restore_shutup_pins() argument
637 struct hda_codec *codec = hda_jackpoll_work() local
652 free_init_pincfgs(struct hda_codec * codec) free_init_pincfgs() argument
675 get_hda_cvt_setup(struct hda_codec * codec,hda_nid_t nid) get_hda_cvt_setup() argument
700 snd_hda_codec_pcm_new(struct hda_codec * codec,const char * fmt,...) snd_hda_codec_pcm_new() argument
728 snd_hda_codec_disconnect_pcms(struct hda_codec * codec) snd_hda_codec_disconnect_pcms() argument
742 codec_release_pcms(struct hda_codec * codec) codec_release_pcms() argument
760 snd_hda_codec_cleanup_for_unbind(struct hda_codec * codec) snd_hda_codec_cleanup_for_unbind() argument
799 snd_hda_codec_display_power(struct hda_codec * codec,bool enable) snd_hda_codec_display_power() argument
811 snd_hda_codec_register(struct hda_codec * codec) snd_hda_codec_register() argument
835 snd_hda_codec_unregister(struct hda_codec * codec) snd_hda_codec_unregister() argument
864 struct hda_codec *codec = dev_to_hda_codec(dev); snd_hda_codec_dev_release() local
890 struct hda_codec *codec; snd_hda_codec_device_init() local
950 struct hda_codec *codec; snd_hda_codec_new() local
968 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
1047 snd_hda_codec_update_widgets(struct hda_codec * codec) snd_hda_codec_update_widgets() argument
1073 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
1092 update_pcm_format(struct hda_codec * codec,struct hda_cvt_setup * p,hda_nid_t nid,int format) update_pcm_format() argument
1118 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
1122 struct hda_codec_driver *driver = hda_codec_to_driver(codec); snd_hda_codec_setup_stream() local
1170 __snd_hda_codec_cleanup_stream(struct hda_codec * codec,hda_nid_t nid,int do_now) __snd_hda_codec_cleanup_stream() argument
1196 really_cleanup_stream(struct hda_codec * codec,struct hda_cvt_setup * q) really_cleanup_stream() argument
1199 struct hda_codec_driver *driver = hda_codec_to_driver(codec); really_cleanup_stream() local
1214 purify_inactive_streams(struct hda_codec * codec) purify_inactive_streams() argument
1229 hda_cleanup_all_streams(struct hda_codec * codec) hda_cleanup_all_streams() argument
1256 query_amp_caps(struct hda_codec * codec,hda_nid_t nid,int direction) query_amp_caps() argument
1275 snd_hda_check_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int bits) snd_hda_check_amp_caps() argument
1300 snd_hda_override_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int caps) snd_hda_override_amp_caps() argument
1312 encode_amp(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx) encode_amp() argument
1336 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
1357 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
1385 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
1407 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
1421 get_amp_max_value(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int ofs) get_amp_max_value() argument
1443 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_info() local
1465 read_amp_value(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,unsigned int ofs) read_amp_value() argument
1479 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
1506 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_get() local
1533 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_volume_put() local
1563 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); get_ctl_amp_tlv() local
1619 snd_hda_set_vmaster_tlv(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int * tlv) snd_hda_set_vmaster_tlv() argument
1638 find_mixer_ctl(struct hda_codec * codec,const char * name,int dev,int idx) find_mixer_ctl() argument
1658 snd_hda_find_mixer_ctl(struct hda_codec * codec,const char * name) snd_hda_find_mixer_ctl() argument
1665 find_empty_mixer_ctl_idx(struct hda_codec * codec,const char * name,int start_idx) find_empty_mixer_ctl_idx() argument
1696 snd_hda_ctl_add(struct hda_codec * codec,hda_nid_t nid,struct snd_kcontrol * kctl) snd_hda_ctl_add() argument
1729 snd_hda_ctls_clear(struct hda_codec * codec) snd_hda_ctls_clear() argument
1749 struct hda_codec *codec; snd_hda_lock_devices() local
1799 snd_hda_codec_reset(struct hda_codec * codec) snd_hda_codec_reset() argument
1817 map_followers(struct hda_codec * codec,const char * const * followers,const char * suffix,map_follower_func_t func,void * data) map_followers() argument
1848 check_follower_present(struct hda_codec * codec,void * data,struct snd_kcontrol * sctl) check_follower_present() argument
1869 struct hda_codec *codec; global() member
1928 add_follower(struct hda_codec * codec,void * data,struct snd_kcontrol * follower) add_follower() argument
1954 __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
2015 snd_hda_add_vmaster_hook(struct hda_codec * codec,struct hda_vmaster_mute_hook * hook) snd_hda_add_vmaster_hook() argument
2079 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_switch_get() local
2107 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_mixer_amp_switch_put() local
2171 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_default_get() local
2241 set_dig_out(struct hda_codec * codec,hda_nid_t nid,int mask,int val) set_dig_out() argument
2256 set_dig_out_convert(struct hda_codec * codec,hda_nid_t nid,int dig1,int dig2) set_dig_out_convert() argument
2276 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
2318 set_spdif_ctls(struct hda_codec * codec,hda_nid_t nid,int dig1,int dig2) set_spdif_ctls() argument
2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_out_switch_put() local
2397 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
2468 snd_hda_spdif_out_of_nid(struct hda_codec * codec,hda_nid_t nid) snd_hda_spdif_out_of_nid() argument
2489 snd_hda_spdif_ctls_unassign(struct hda_codec * codec,int idx) snd_hda_spdif_ctls_unassign() argument
2509 snd_hda_spdif_ctls_assign(struct hda_codec * codec,int idx,hda_nid_t nid) snd_hda_spdif_ctls_assign() argument
2558 snd_hda_create_spdif_share_sw(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_create_spdif_share_sw() argument
2583 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_switch_get() local
2592 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_switch_put() local
2610 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); snd_hda_spdif_in_status_get() local
2653 snd_hda_create_spdif_in_ctls(struct hda_codec * codec,hda_nid_t nid) snd_hda_create_spdif_in_ctls() argument
2692 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
2722 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
2743 hda_set_power_state(struct hda_codec * codec,unsigned int power_state) hda_set_power_state() argument
2746 struct hda_codec_driver *driver = hda_codec_to_driver(codec); hda_set_power_state() local
2787 sync_power_up_states(struct hda_codec * codec) sync_power_up_states() argument
2811 hda_exec_init_verbs(struct hda_codec * codec) hda_exec_init_verbs() argument
2817 hda_exec_init_verbs(struct hda_codec * codec) hda_exec_init_verbs() argument
2821 update_power_acct(struct hda_codec * codec,bool on) update_power_acct() argument
2832 snd_hda_update_power_acct(struct hda_codec * codec) snd_hda_update_power_acct() argument
2841 hda_call_codec_suspend(struct hda_codec * codec) hda_call_codec_suspend() argument
2843 struct hda_codec_driver *driver = hda_codec_to_driver(codec); hda_call_codec_suspend() local
2860 hda_call_codec_resume(struct hda_codec * codec) hda_call_codec_resume() argument
2862 struct hda_codec_driver *driver = hda_codec_to_driver(codec); hda_call_codec_resume() local
2891 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_suspend() local
2910 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_resume() local
2925 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_runtime_idle() local
2934 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_prepare() local
2943 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_complete() local
2968 struct hda_codec *codec = dev_to_hda_codec(dev); hda_codec_pm_freeze() local
3002 snd_hda_codec_shutdown(struct hda_codec * codec) snd_hda_codec_shutdown() argument
3022 add_std_chmaps(struct hda_codec * codec) add_std_chmaps() argument
3060 snd_hda_codec_build_controls(struct hda_codec * codec) snd_hda_codec_build_controls() argument
3062 struct hda_codec_driver *driver = hda_codec_to_driver(codec); snd_hda_codec_build_controls() local
3096 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
3103 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
3113 hda_pcm_default_cleanup(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) hda_pcm_default_cleanup() argument
3120 set_pcm_default_values(struct hda_codec * codec,struct hda_pcm_stream * info) set_pcm_default_values() argument
3166 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
3194 snd_hda_codec_cleanup(struct hda_codec * codec,struct hda_pcm_stream * hinfo,struct snd_pcm_substream * substream) snd_hda_codec_cleanup() argument
3258 snd_hda_codec_parse_pcms(struct hda_codec * codec) snd_hda_codec_parse_pcms() argument
3260 struct hda_codec_driver *driver = hda_codec_to_driver(codec); snd_hda_codec_parse_pcms() local
3300 snd_hda_codec_build_pcms(struct hda_codec * codec) snd_hda_codec_build_pcms() argument
3345 snd_hda_add_new_ctls(struct hda_codec * codec,const struct snd_kcontrol_new * knew) snd_hda_add_new_ctls() argument
3397 snd_hda_codec_set_power_save(struct hda_codec * codec,int delay) snd_hda_codec_set_power_save() argument
3446 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
3518 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
3573 setup_dig_out_stream(struct hda_codec * codec,hda_nid_t nid,unsigned int stream_tag,unsigned int format) setup_dig_out_stream() argument
3612 cleanup_dig_out_stream(struct hda_codec * codec,hda_nid_t nid) cleanup_dig_out_stream() argument
3627 snd_hda_multi_out_dig_open(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_open() argument
3647 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
3664 snd_hda_multi_out_dig_cleanup(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_cleanup() argument
3678 snd_hda_multi_out_dig_close(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_dig_close() argument
3698 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
3752 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
3828 snd_hda_multi_out_analog_cleanup(struct hda_codec * codec,struct hda_multi_out * mout) snd_hda_multi_out_analog_cleanup() argument
3863 snd_hda_get_default_vref(struct hda_codec * codec,hda_nid_t pin) snd_hda_get_default_vref() argument
3890 snd_hda_correct_pin_ctl(struct hda_codec * codec,hda_nid_t pin,unsigned int val) snd_hda_correct_pin_ctl() argument
3953 _snd_hda_set_pin_ctl(struct hda_codec * codec,hda_nid_t pin,unsigned int val,bool cached) _snd_hda_set_pin_ctl() argument
3979 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
4013 struct hda_codec *codec; snd_hda_bus_reset_codecs() local
[all...]
/linux/sound/hda/codecs/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
8 tristate "Build Analog Devices HD-audio codec support"
11 Say Y or M here to include Analog Devices HD-audio codec support in
12 snd-hda-intel driver, such as AD1986A.
14 comment "Set to Y if you want auto-loading the codec driver"
18 tristate "Build IDT/Sigmatel HD-audio codec support"
22 Say Y or M here to include IDT (Sigmatel) HD-audio codec support in
23 snd-hda-intel driver, such as STAC9200.
25 comment "Set to Y if you want auto-loading the codec driver"
29 tristate "Build VIA HD-audio codec support"
[all …]
H A Dcmedia.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Universal codec driver for Intel High Definition Audio Codec
5 * HD audio codec driver fo
20 cmedia_probe(struct hda_codec * codec,const struct hda_device_id * id) cmedia_probe() argument
[all...]
H A Dca0110.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * HD audio codec driver for Creative X-Fi CA0110-IBG chip
18 static int ca0110_parse_auto_config(struct hda_codec *codec) in ca0110_parse_auto_config() argument
20 struct hda_gen_spec *spec = codec->spec; in ca0110_parse_auto_config()
23 err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0); in ca0110_parse_auto_config()
26 err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg); in ca0110_parse_auto_config()
33 static int ca0110_probe(struct hda_codec *codec, const struct hda_device_id *id) in ca0110_probe() argument
40 return -ENOMEM; in ca0110_probe()
42 codec->spec = spec; in ca0110_probe()
44 spec->multi_cap_vol = 1; in ca0110_probe()
[all …]
/linux/sound/soc/codecs/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # modular, meaning we can't build the codec driver in with I2C support.
5 # setting - SPI can't be modular so that case doesn't need to be covered.
12 menu "CODEC drivers"
15 tristate "Build all ASoC CODEC drivers"
368 Normally ASoC codec driver
[all...]
H A Dhda.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright(c) 2021-2022 Intel Corporation
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()
26 return -ENOMEM; in hda_codec_create_dais()
28 pcm = list_first_entry(&codec->pcm_list_hea in hda_codec_create_dais()
83 hda_codec_register_dais(struct hda_codec * codec,struct snd_soc_component * component) hda_codec_register_dais() argument
124 hda_codec_unregister_dais(struct hda_codec * codec,struct snd_soc_component * component) hda_codec_unregister_dais() argument
146 hda_codec_probe_complete(struct hda_codec * codec) hda_codec_probe_complete() argument
174 struct hda_codec *codec = dev_to_hda_codec(component->dev); hda_codec_probe() local
175 struct hda_codec_driver *driver = hda_codec_to_driver(codec); hda_codec_probe() local
269 struct hda_codec *codec = dev_to_hda_codec(component->dev); hda_codec_remove() local
270 struct hda_codec_driver *driver = hda_codec_to_driver(codec); hda_codec_remove() local
346 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); hda_hdev_attach() local
378 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); hda_hdev_detach() local
[all...]
H A Dhdac_hda.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2015-18 Intel Corporation.
5 * hdac_hda.c - ASoC extensions to reuse the legacy HDA codec drivers
7 * codec drivers using hdac_ext_bus_ops ops.
43 MODULE_PARM_DESC(patch, "Patch file array for Intel HD audio interface. The array index is the codec address.");
74 .name = "Analog Codec DAI",
77 .stream_name = "Analog Codec Playbac
412 struct hda_codec_driver *driver = hda_codec_to_driver(hcodec); hdac_hda_codec_probe() local
550 struct hda_codec *codec = hda_pvt->codec; hdac_hda_codec_remove() local
551 struct hda_codec_driver *driver = hda_codec_to_driver(codec); hdac_hda_codec_remove() local
[all...]
H A Dcs40l50-codec.c1 // SPDX-License-Identifier: GPL-2.0
3 // CS40L50 Advanced Haptic Driver with waveform memory,
4 // integrated DSP, and closed-loop algorithms
74 return -EINVAL; in cs40l50_get_clk_config()
77 static int cs40l50_swap_ext_clk(struct cs40l50_codec *codec, const unsigned int clk_src) in cs40l50_swap_ext_clk() argument
84 ret = cs40l50_get_clk_config(codec->bclk_ratio * codec->rate, &cfg); in cs40l50_swap_ext_clk()
92 return -EINVAL; in cs40l50_swap_ext_clk()
95 ret = regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk()
102 ret = regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk()
109 return regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk()
[all …]
/linux/sound/soc/intel/boards/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
54 tristate "Haswell with RT5640 I2S codec"
70 tristate "Broadwell with RT5650 codec"
76 This adds the ASoC machine driver for Intel Broadwell platforms with
77 the RT5650 codec.
82 tristate "Broadwell with RT5677 codec"
93 the RT5677 audio codec. This is a recommended option.
98 tristate "Broadwell with RT286 I2S codec"
113 tristate "Baytrail and Baytrail-CR with RT5640 codec"
120 This adds support for ASoC machine driver for Intel(R) Baytrail and Baytrail-CR
[all …]
H A Dcht_bsw_rt5672.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cht_bsw_rt5672.c - ASoc Machine driver for Intel Cherryview-based platforms
4 * Cherrytrail and Braswell, with RT5672 codec.
22 #include <sound/soc-acpi.h>
24 #include "../atom/sst-ato
[all...]
/linux/sound/hda/codecs/side-codecs/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
6 tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS
10 This builds KUnit tests for the cirrus side-codec library.
13 Documentation/dev-tools/kunit/.
26 tristate "Build CS35L41 HD-audi
[all...]
/linux/sound/soc/mediatek/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 This adds ASoC driver for Mediatek MT2701 boards
19 tristate "ASoc Audio driver for MT2701 with CS42448 codec"
24 This adds ASoC driver for Mediatek MT2701 boards
30 tristate "ASoc Audio driver for MT2701 with WM8960 codec"
[all...]
/linux/sound/soc/intel/avs/boards/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
21 This adds support for AVS with DA7219 I2S codec configuration.
39 This adds support for AVS with ES8336 I2S codec configuration.
44 tristate "HD-Audio generic board"
47 This adds support for AVS with HDAudio codec configuration.
54 This adds support for I2S test-board which can be used to verify
63 This adds support for AVS with MAX98927 I2S codec configuration.
73 This adds support for AVS with MAX98357A I2S codec configuration.
83 This adds support for AVS with MAX98373 I2S codec configuration.
93 This adds support for ASoC machine driver with NAU8825 I2S audio codec.
[all …]
/linux/sound/ac97/
H A Dbus.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <sound/ac97/codec.h>
41 return -ENODEV; in ac97_unbound_ctrl_write()
47 return -ENODEV; in ac97_unbound_ctrl_read()
63 return ERR_PTR(-EINVAL); in ac97_codec_find()
65 return ac97_ctrl->codecs[codec_num]; in ac97_codec_find()
79 for_each_child_of_node(ac97_ctrl->parent->of_node, node) { in ac97_of_get_child_device()
95 ac97_ctrl = adev->ac97_ctrl; in ac97_codec_release()
96 ac97_ctrl->codecs[adev->num] = NULL; in ac97_codec_release()
97 of_node_put(dev->of_node); in ac97_codec_release()
[all …]
/linux/Documentation/sound/soc/
H A Doverview.rst6 provide better ALSA support for embedded system-on-chip processors (e.g.
9 had some limitations:-
11 * Codec drivers were often tightly coupled to the underlying SoC
12 CPU. This is not ideal and leads to code duplication - for example,
18 machine specific code to re-route audio, enable amps, etc., after such an
21 * Drivers tended to power up the entire codec when playing (or
24 power via changing codec oversampling rates, bias currents, etc.
31 features :-
33 * Codec independence. Allows reuse of codec drivers on other platforms
36 * Easy I2S/PCM audio interface setup between codec and SoC. Each SoC
[all …]
/linux/sound/hda/codecs/cirrus/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
4 tristate "Cirrus Logic HD-audio codec support"
6 Say Y or M here to include Cirrus Logic HD-audio codec support.
8 This will enable both CS420x and CS421x HD-audio codec driver
[all...]
/linux/sound/hda/codecs/hdmi/
H A Dintelhdmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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, spe in intel_haswell_enable_all_pins()
57 intel_haswell_fixup_enable_dp12(struct hda_codec * codec) intel_haswell_fixup_enable_dp12() argument
77 haswell_set_power_state(struct hda_codec * codec,hda_nid_t fg,unsigned int power_state) haswell_set_power_state() argument
103 intel_base_nid(struct hda_codec * codec) intel_base_nid() argument
117 struct hda_codec *codec = audio_ptr; intel_pin2port() local
141 intel_port2pin(struct hda_codec * codec,int port) intel_port2pin() argument
159 struct hda_codec *codec = audio_ptr; intel_pin_eld_notify() local
182 register_i915_notifier(struct hda_codec * codec) register_i915_notifier() argument
200 silent_stream_enable_i915(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin) silent_stream_enable_i915() argument
220 silent_stream_set_kae(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,bool enable) silent_stream_set_kae() argument
239 i915_set_silent_stream(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,bool enable) i915_set_silent_stream() argument
268 haswell_verify_D0(struct hda_codec * codec,hda_nid_t cvt_nid,hda_nid_t nid) haswell_verify_D0() argument
291 intel_verify_pin_cvt_connect(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin) intel_verify_pin_cvt_connect() argument
329 intel_not_share_assigned_cvt(struct hda_codec * codec,hda_nid_t pin_nid,int dev_id,int mux_idx) intel_not_share_assigned_cvt() argument
405 intel_not_share_assigned_cvt_nid(struct hda_codec * codec,hda_nid_t pin_nid,int dev_id,hda_nid_t cvt_nid) intel_not_share_assigned_cvt_nid() argument
422 i915_hsw_setup_stream(struct hda_codec * codec,hda_nid_t cvt_nid,hda_nid_t pin_nid,int dev_id,u32 stream_tag,int format) i915_hsw_setup_stream() argument
456 i915_pin_cvt_fixup(struct hda_codec * codec,struct hdmi_spec_per_pin * per_pin,hda_nid_t cvt_nid) i915_pin_cvt_fixup() argument
472 i915_hdmi_suspend(struct hda_codec * codec) i915_hdmi_suspend() argument
513 i915_hdmi_resume(struct hda_codec * codec) i915_hdmi_resume() argument
557 alloc_intel_hdmi(struct hda_codec * codec) alloc_intel_hdmi() argument
571 parse_intel_hdmi(struct hda_codec * codec) parse_intel_hdmi() argument
588 intel_hsw_common_init(struct hda_codec * codec,hda_nid_t vendor_nid,const int * port_map,int port_num,int dev_num,bool send_silent_stream) intel_hsw_common_init() argument
624 probe_i915_hsw_hdmi(struct hda_codec * codec) probe_i915_hsw_hdmi() argument
630 probe_i915_glk_hdmi(struct hda_codec * codec) probe_i915_glk_hdmi() argument
640 probe_i915_icl_hdmi(struct hda_codec * codec) probe_i915_icl_hdmi() argument
652 probe_i915_tgl_hdmi(struct hda_codec * codec) probe_i915_tgl_hdmi() argument
664 probe_i915_adlp_hdmi(struct hda_codec * codec) probe_i915_adlp_hdmi() argument
681 probe_i915_byt_hdmi(struct hda_codec * codec) probe_i915_byt_hdmi() argument
701 probe_i915_cpt_hdmi(struct hda_codec * codec) probe_i915_cpt_hdmi() argument
709 intelhdmi_probe(struct hda_codec * codec,const struct hda_device_id * id) intelhdmi_probe() argument
[all...]
/linux/sound/aoa/codecs/
H A Dtoonie.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Apple Onboard Audio driver for Toonie codec
7 * This is a driver for the toonie codec chip. This chip is present
15 MODULE_DESCRIPTION("toonie codec driver for snd-aoa");
21 #define PFX "snd-aoa-codec-toonie: "
24 struct aoa_codec codec; member
26 #define codec_to_toonie(c) container_of(c, struct toonie, codec)
85 static int toonie_init_codec(struct aoa_codec *codec) in toonie_init_codec() argument
87 struct toonie *toonie = codec_to_toonie(codec); in toonie_init_codec()
90 if (toonie->codec.connected != 1) in toonie_init_codec()
[all …]
/linux/include/sound/ac97/
H A Dcodec.h1 /* SPDX-License-Identifier: GPL-2.0
22 * struct ac97_id - matches a codec device and driver on an ac97 bus
23 * @id: The significant bits if the codec vendor ID1 and ID2
25 * matching. A driver binds to a device when :
27 * @data: Private data used by the driver.
36 * ac97_codec_device - a ac97 codec
38 * @vendor_id: the vendor_id of the codec, as sensed on the AC-link
39 * @num: the codec number, 0 is primary, 1 is first slave, etc ...
40 * @clk: the clock BIT_CLK provided by the codec
41 * @ac97_ctrl: ac97 digital controller on the same AC-link
[all …]
/linux/include/sound/
H A Dhdaudio.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * HD-audio core stuff
12 #include <linux/io-64-nonatomic-lo-hi.h>
23 /* codec node id */
50 * HD-audio codec base device
56 unsigned int addr; /* codec address */
73 const char *vendor_name; /* codec vendor name */
74 const char *chip_name; /* codec chip name */
98 unsigned int registered:1; /* codec was registered */
101 /* device/driver type used for matching */
[all …]
/linux/sound/soc/tegra/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
5 tristate "SoC Audio for the Tegra System-on-Chip"
85 Config to enable the Inter-IC Sound (I2S) Controller which
86 implements full-duplex and bidirectional and single direction
87 point-to-poin
[all...]
/linux/sound/hda/core/ext/
H A Dbus.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * hdac-ext-bus.c - HD-audio extended core bus functions.
5 * Copyright (C) 2014-2015 Intel Corp
21 * snd_hdac_ext_bus_init - initialize a HD-audio extended bus
25 * @ext_ops: operators used for ASoC HDA codec drivers
39 bus->ext_ops = ext_ops; in snd_hdac_ext_bus_init()
42 * buses, bus->idx should be greater than 0, but there needs to be a in snd_hdac_ext_bus_init()
45 bus->idx = 0; in snd_hdac_ext_bus_init()
46 bus->cmd_dma_state = true; in snd_hdac_ext_bus_init()
53 * snd_hdac_ext_bus_exit - clean up a HD-audio extended bus
[all …]
/linux/sound/aoa/core/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Apple Onboard Audio driver core
14 MODULE_DESCRIPTION("Apple Onboard Audio Sound Driver");
27 if (!try_module_get(c->owner)) in attach_codec_to_fabric()
28 return -EBUSY; in attach_codec_to_fabric()
30 err = -ENOENT; in attach_codec_to_fabric()
31 if (fabric->found_codec) in attach_codec_to_fabric()
32 err = fabric->found_codec(c); in attach_codec_to_fabric()
34 module_put(c->owner); in attach_codec_to_fabric()
35 printk(KERN_ERR "snd-aoa: fabric didn't like codec %s\n", in attach_codec_to_fabric()
[all …]
/linux/sound/soc/rockchip/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
7 tristate "Rockchip I2S Device Driver"
10 Say Y or M if you want to add support for I2S driver for
15 tristate "Rockchip I2S/TDM Device Driver"
18 Say Y or M if you want to add support for the I2S/TDM driver for
25 tristate "Rockchip PDM Controller Driver"
29 Say Y or M if you want to add support for PDM driver fo
[all...]

12345678910>>...34