| /linux/sound/hda/codecs/hdmi/ |
| H A D | atihdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ATI/AMD codec support 17 #define is_amdhdmi_rev3_or_later(codec) \ argument 18 ((codec)->core.vendor_id == 0x1002aa01 && \ 19 ((codec)->core.revision_id & 0xff00) >= 0x0300) 20 #define has_amd_full_remap_support(codec) is_amdhdmi_rev3_or_later(codec) argument 86 ATI_INFO_IDX_SINK_DESC_LEN = 2, 93 static int get_eld_ati(struct hda_codec *codec, hda_nid_t nid, in get_eld_ati() argument 102 spkalloc = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SPEAKER_ALLOCATION, 0); in get_eld_ati() 105 codec_info(codec, "HDMI ATI/AMD: no speaker allocation for ELD\n"); in get_eld_ati() [all …]
|
| H A D | nvhdmi-mcp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Legacy Nvidia HDMI codec support 50 static int nvhdmi_mcp_init(struct hda_codec *codec) in nvhdmi_mcp_init() argument 52 struct hdmi_spec *spec = codec->spec; in nvhdmi_mcp_init() 54 if (spec->multiou in nvhdmi_mcp_init() 61 nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec * codec,int channels) nvhdmi_8ch_7x_set_info_frame_parameters() argument 96 nvhdmi_8ch_7x_pcm_close(struct hda_pcm_stream * hinfo,struct hda_codec * codec,struct snd_pcm_substream * substream) nvhdmi_8ch_7x_pcm_close() argument 122 nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream * hinfo,struct hda_codec * codec,unsigned int stream_tag,unsigned int format,struct snd_pcm_substream * substream) nvhdmi_8ch_7x_pcm_prepare() argument 237 nvhdmi_mcp_build_pcms(struct hda_codec * codec) nvhdmi_mcp_build_pcms() argument 251 nvhdmi_mcp_build_controls(struct hda_codec * codec) nvhdmi_mcp_build_controls() argument 305 nvhdmi_mcp_probe(struct hda_codec * codec,const struct hda_device_id * id) nvhdmi_mcp_probe() argument [all...] |
| H A D | simplehdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Non-generic simple HDMI codec support 11 int snd_hda_hdmi_simple_build_pcms(struct hda_codec *codec) in snd_hda_hdmi_simple_build_pcms() argument 13 struct hdmi_spec *spec = codec->spec; in snd_hda_hdmi_simple_build_pcms() 20 chans = get_wcaps(codec, per_cvt->cvt_nid); in snd_hda_hdmi_simple_build_pcms() 23 info = snd_hda_codec_pcm_new(codec, "HDMI 0"); in snd_hda_hdmi_simple_build_pcms() 25 return -ENOMEM; in snd_hda_hdmi_simple_build_pcms() 26 spec->pcm_rec[0].pcm = info; in snd_hda_hdmi_simple_build_pcms() 27 info->pcm_type = HDA_PCM_TYPE_HDMI; in snd_hda_hdmi_simple_build_pcms() 28 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; in snd_hda_hdmi_simple_build_pcms() [all …]
|
| H A D | intelhdmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Intel HDMI codec support 34 #define INTEL_EN_ALL_PIN_CVTS 0x01 /* enable 2nd & 3rd pins and convertors */ 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() 44 if (vendor_param == -1 || vendor_param & INTEL_EN_ALL_PIN_CVTS) in intel_haswell_enable_all_pins() 48 vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0, in intel_haswell_enable_all_pins() 50 if (vendor_param == -1) in intel_haswell_enable_all_pins() 54 snd_hda_codec_update_widgets(codec); in intel_haswell_enable_all_pins() [all …]
|
| /linux/sound/hda/codecs/ |
| H A D | ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HD audio codec driver for Creative CA0132 chip 53 #define DMA_OVERLAY_FRAME_SIZE_NWORDS 2 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 83 static const char *const dirstr[2] 1135 struct hda_codec *codec; global() member 1527 codec_send_command(struct hda_codec * codec,hda_nid_t nid,unsigned int verb,unsigned int parm,unsigned int * res) codec_send_command() argument 1537 codec_set_converter_format(struct hda_codec * codec,hda_nid_t nid,unsigned short converter_format,unsigned int * res) codec_set_converter_format() argument 1544 codec_set_converter_stream_channel(struct hda_codec * codec,hda_nid_t nid,unsigned char stream,unsigned char channel,unsigned int * res) codec_set_converter_stream_channel() argument 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 | generic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Universal Interface for Intel High Definition Audio Codec 32 * snd_hda_gen_spec_init - initialize hda_gen_spec struct 39 snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32); in snd_hda_gen_spec_init() 40 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init() 41 snd_array_init(&spec->loopback_lis in snd_hda_gen_spec_init() 105 parse_user_hints(struct hda_codec * codec) parse_user_hints() argument 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 | analog.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HD audio codec driver for AD1882, AD1884, AD1981HD, AD1983, AD1984, 6 * Copyright (c) 2005-2007 Takashi Iwai <tiwai@suse.de> 53 ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ 59 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() argument 61 struct ad198x_spec *spec = codec in create_beep_ctls() 81 create_beep_ctls(codec) global() argument 84 ad198x_power_eapd_write(struct hda_codec * codec,hda_nid_t front,hda_nid_t hp) ad198x_power_eapd_write() argument 95 ad198x_power_eapd(struct hda_codec * codec) ad198x_power_eapd() argument 123 ad_codec_suspend(struct hda_codec * codec) ad_codec_suspend() argument 133 struct hda_codec *codec = private_data; ad_vmaster_eapd_hook() local 149 ad_codec_build_controls(struct hda_codec * codec) ad_codec_build_controls() argument 162 ad198x_parse_auto_config(struct hda_codec * codec,bool indep_hp) ad198x_parse_auto_config() argument 190 alloc_ad_spec(struct hda_codec * codec) alloc_ad_spec() argument 207 ad_fixup_inv_jack_detect(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad_fixup_inv_jack_detect() argument 221 ad1986a_fixup_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1986a_fixup_eapd() argument 234 ad1986a_fixup_eapd_mix_in(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1986a_fixup_eapd_mix_in() argument 375 ad1986a_probe(struct hda_codec * codec) ad1986a_probe() argument 432 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_info() local 449 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_get() local 459 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_put() local 483 ad1983_add_spdif_mux_ctl(struct hda_codec * codec) ad1983_add_spdif_mux_ctl() argument 500 ad1983_probe(struct hda_codec * codec) ad1983_probe() argument 529 ad1981_fixup_hp_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1981_fixup_hp_eapd() argument 543 ad1981_fixup_amp_override(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1981_fixup_amp_override() argument 581 ad1981_probe(struct hda_codec * codec) ad1981_probe() argument 694 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_info() local 709 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_get() local 719 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_put() local 751 ad_codec_init(struct hda_codec * codec) ad_codec_init() argument 774 ad1988_add_spdif_mux_ctl(struct hda_codec * codec) ad1988_add_spdif_mux_ctl() argument 864 ad1988_probe(struct hda_codec * codec) ad1988_probe() argument 919 ad1884_fixup_amp_override(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1884_fixup_amp_override() argument 933 struct hda_codec *codec = private_data; ad1884_vmaster_hp_gpio_hook() local 943 ad1884_fixup_hp_eapd(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1884_fixup_hp_eapd() argument 968 ad1884_fixup_thinkpad(struct hda_codec * codec,const struct hda_fixup * fix,int action) ad1884_fixup_thinkpad() argument 1035 ad1884_probe(struct hda_codec * codec) ad1884_probe() argument 1072 ad1882_probe(struct hda_codec * codec) ad1882_probe() argument 1093 ad_codec_probe(struct hda_codec * codec,const struct hda_device_id * id) ad_codec_probe() argument [all...] |
| /linux/sound/pci/ali5451/ |
| H A D | ali5451.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * -- 11 * -- 21 #include <linux/dma-mappin 141 ALI_REG(codec,x) global() argument 180 struct snd_ali *codec; global() member 264 snd_ali_5451_peek(struct snd_ali * codec,unsigned int port) snd_ali_5451_peek() argument 270 snd_ali_5451_poke(struct snd_ali * codec,unsigned int port,unsigned int val) snd_ali_5451_poke() argument 277 snd_ali_codec_ready(struct snd_ali * codec,unsigned int port) snd_ali_codec_ready() argument 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/cirrus/ |
| H A D | cs420x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Cirrus Logic CS420x HD-audio codec 52 /* Vendor-specific processing widget */ 65 * 1 = digital immediate, analog zero-cross 66 * 2 = digtail & analog soft-ramp 67 * 3 = digital soft-ramp, analog zero-cross 71 #define CS_COEF_ADC_LI_SZC_MODE (3 << 0) /* SZC setup for line-in */ 72 /* PGA mode: 0 = differential, 1 = signle-ended */ 74 #define CS_COEF_ADC_LI_PGA_MODE (1 << 6) /* PGA setup for line-in */ 78 * 1 = zero-cross [all …]
|
| H A D | cs8409.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 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, in cs8409_parse_auto_config() 55 cs8409_alloc_spec(struct hda_codec * codec) cs8409_alloc_spec() argument 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...] |
| H A D | cs421x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Cirrus Logic CS421x HD-audio codec 45 /* Vendor-specific processing widget */ 57 * 1 = digital immediate, analog zero-cross 58 * 2 = digtail & analog soft-ramp 59 * 3 = digital soft-ramp, analog zero-cross 63 #define CS_COEF_ADC_LI_SZC_MODE (3 << 0) /* SZC setup for line-in */ 64 /* PGA mode: 0 = differential, 1 = signle-ended */ 66 #define CS_COEF_ADC_LI_PGA_MODE (1 << 6) /* PGA setup for line-in */ 70 * 1 = zero-cross [all …]
|
| /linux/Documentation/devicetree/bindings/pinctrl/ |
| H A D | cirrus,lochnagar.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 14 Smart CODEC and Amp devices. It allows the connection of most Cirrus 15 Logic devices on mini-cards, as well as allowing connection of various 26 [2] Pinctrl: ../pinctrl/pinctrl-bindings.txt 29 [3] include/dt-bindings/pinctrl/lochnagar.h 37 - cirrus,lochnagar-pinctrl 39 gpio-controller: true [all …]
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| H A D | cedrus_h264.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <media/videobuf2-dma-contig.h> 51 cedrus_write(dev, VE_AVC_SRAM_PORT_OFFSET, off << 2); in cedrus_h264_write_sram() 53 while (count--) in cedrus_h264_write_sram() 60 dma_addr_t addr = buf->codec.h264.mv_col_buf_dma; in cedrus_h264_mv_col_buf_addr() 63 addr += field * buf->codec.h264.mv_col_buf_size / 2; in cedrus_h264_mv_col_buf_addr() 74 struct vb2_buffer *vbuf = &buf->m2m_buf.vb.vb2_buf; in cedrus_fill_ref_pic() 76 pic->top_field_order_cnt = cpu_to_le32(top_field_order_cnt); in cedrus_fill_ref_pic() 77 pic->bottom_field_order_cnt = cpu_to_le32(bottom_field_order_cnt); in cedrus_fill_ref_pic() 78 pic->frame_info = cpu_to_le32(buf->codec.h264.pic_type << 8); in cedrus_fill_ref_pic() [all …]
|
| /linux/sound/hda/common/ |
| H A D | codec.c | 1 // 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 27 codec_in_pm(codec) global() argument 31 codec_has_clkstop(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 | beep.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Digital Beep Input Interface for HD-audio codec 26 struct hda_codec *codec = beep->codec; in generate_tone() local 28 if (tone && !beep->playing) { in generate_tone() 29 snd_hda_power_up(codec); in generate_tone() 30 if (beep->power_hook) in generate_tone() 31 beep->power_hook(beep, true); in generate_tone() 32 beep->playing = 1; in generate_tone() 34 if (!codec->beep_just_power_on) in generate_tone() 35 snd_hda_codec_write(codec, beep->nid, 0, in generate_tone() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | cs40l50-codec.c | 1 // SPDX-License-Identifier: GPL-2.0 4 // integrated DSP, and closed-loop algorithms 29 #define CS40L50_PLL_REFCLK_SEL_MASK GENMASK(2, 0) 36 #define CS40L50_ASP_FSYNC_INV_MASK BIT(2) 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() [all …]
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | ti,j721e-cpb-ivi-audio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 5 --- 6 $id: http://devicetree.org/schemas/sound/ti,j721e-cpb-ivi-audio.yaml# 7 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - Peter Ujfalusi <peter.ujfalusi@gmail.com> 17 sound/ti,j721e-cpb-audio.txt 31 PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk 32 | |-> MCASP0_AUXCLK ---> McASP0.auxclk 34 |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI 35 |-> AUDIO_REFCLK0 ---> pcm3168a_a/b.SCKI [all …]
|
| H A D | qcom,wcd939x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm WCD9380/WCD9385 Audio Codec 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 13 Qualcomm WCD9390/WCD9395 Codec is a standalone Hi-Fi audio codec IC. 15 The WCD9390/WCD9395 IC has a functionally separate USB-C Mux subsystem 17 The Audio Headphone and Microphone data path between the Codec and the USB-C Mux 18 subsystems are external to the IC, thus requiring DT port-endpoint graph description 19 to handle USB-C altmode & orientation switching for Audio Accessory Mode. [all …]
|
| H A D | davinci-evm-audio.txt | 1 * Texas Instruments SoC audio setups with TLV320AIC3X Codec 4 - compatible : "ti,da830-evm-audio" : forDM365/DA8xx/OMAPL1x/AM33xx 5 - ti,model : The user-visible name of this sound complex. 6 - ti,audio-codec : The phandle of the TLV320AIC3x audio codec 7 - ti,mcasp-controller : The phandle of the McASP controller 8 - ti,audio-routing : A list of the connections between audio components. 11 sinks are the codec's pins, and the jacks on the board: 14 - ti,codec-clock-rate : The Codec Clock rate (in Hz) applied to the Codec. 15 - clocks : Reference to the master clock 16 - clock-names : The clock should be named "mclk" [all …]
|
| H A D | mt8192-mt6359-rt1015-rt5682.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8192-mt6359-rt1015-rt5682.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxin Yu <jiaxin.yu@mediatek.com> 11 - Shane Chien <shane.chien@mediatek.com> 17 - $ref: sound-card-common.yaml# 22 - mediatek,mt8192_mt6359_rt1015_rt5682 23 - mediatek,mt8192_mt6359_rt1015p_rt5682 24 - mediatek,mt8192_mt6359_rt1015p_rt5682s [all …]
|
| H A D | qcom,wcd937x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm WCD9370/WCD9375 Audio Codec 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 13 Qualcomm WCD9370/WCD9375 Codec is a standalone Hi-Fi audio codec IC. 17 - $ref: dai-common.yaml# 18 - $ref: qcom,wcd93xx-common.yaml# 23 - const: qcom,wcd9370-codec 24 - items: [all …]
|
| H A D | mt8186-mt6366-rt1019-rt5682s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxin Yu <jiaxin.yu@mediatek.com> 16 - $ref: sound-card-common.yaml# 21 - mediatek,mt8186-mt6366-rt1019-rt5682s-sound 22 - mediatek,mt8186-mt6366-rt5682s-max98360-sound 23 - mediatek,mt8186-mt6366-rt5650-sound 25 audio-routing: [all …]
|
| H A D | mt8186-mt6366-da7219-max98357.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-da7219-max98357.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxin Yu <jiaxin.yu@mediatek.com> 16 - $ref: sound-card-common.yaml# 21 - mediatek,mt8186-mt6366-da7219-max98357-sound 23 audio-routing: 24 $ref: /schemas/types.yaml#/definitions/non-unique-string-array 30 power supplies, MicBias of codec and the software switch. [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | lantiq,pef2256.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 20 - const: lantiq,pef2256 27 - description: Master Clock 28 - description: System Clock Receive 29 - description: System Clock Transmit 31 clock-names: 33 - const: mclk [all …]
|
| /linux/sound/hda/codecs/realtek/ |
| H A D | alc269.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 /* different alc269-variants */ 50 static int alc269_parse_auto_config(struct hda_codec *codec) in alc269_parse_auto_config() argument 55 struct alc_spec *spec = codec->spec; in alc269_parse_auto_config() 58 switch (spec->codec_variant) { in alc269_parse_auto_config() 90 return alc_parse_auto_config(codec, alc269_ignore, ssids); in alc269_parse_auto_config() 101 static void alc_headset_btn_callback(struct hda_codec *codec, in alc_headset_btn_callback() argument 106 if (jack->unsol_res & (7 << 13)) in alc_headset_btn_callback() 109 if (jack->unsol_res & (1 << 16 | 3 << 8)) in alc_headset_btn_callback() 113 if (jack->unsol_res & (7 << 23)) in alc_headset_btn_callback() [all …]
|