Searched refs:codec (Results 26 - 50 of 321) sorted by relevance

1234567891011>>

/linux-master/sound/pci/hda/
H A Dhda_sysfs.c3 * sysfs interface for HD-audio codec
33 struct hda_codec *codec = dev_get_drvdata(dev); local
34 snd_hda_update_power_acct(codec);
35 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(codec->power_on_acct));
42 struct hda_codec *codec = dev_get_drvdata(dev); local
43 snd_hda_update_power_acct(codec);
44 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(codec->power_off_acct));
55 struct hda_codec *codec = dev_get_drvdata(dev); \
56 return sysfs_emit(buf, "0x%x\n", codec->field); \
64 struct hda_codec *codec
78 pin_configs_show(struct hda_codec *codec, struct snd_array *list, char *buf) argument
97 struct hda_codec *codec = dev_get_drvdata(dev); local
105 struct hda_codec *codec = dev_get_drvdata(dev); local
115 clear_codec(struct hda_codec *codec) argument
128 reconfig_codec(struct hda_codec *codec) argument
218 struct hda_codec *codec = dev_get_drvdata(dev); local
230 parse_init_verbs(struct hda_codec *codec, const char *buf) argument
256 struct hda_codec *codec = dev_get_drvdata(dev); local
267 struct hda_codec *codec = dev_get_drvdata(dev); local
279 get_hint(struct hda_codec *codec, const char *key) argument
306 parse_hints(struct hda_codec *codec, const char *buf) argument
361 struct hda_codec *codec = dev_get_drvdata(dev); local
372 struct hda_codec *codec = dev_get_drvdata(dev); local
376 parse_user_pin_configs(struct hda_codec *codec, const char *buf) argument
394 struct hda_codec *codec = dev_get_drvdata(dev); local
416 snd_hda_get_hint(struct hda_codec *codec, const char *key) argument
432 snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) argument
468 snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) argument
539 struct hda_codec *codec; local
713 struct hda_codec *codec; local
767 snd_hda_sysfs_init(struct hda_codec *codec) argument
777 snd_hda_sysfs_clear(struct hda_codec *codec) argument
[all...]
H A Dpatch_ca0110.c27 static int ca0110_parse_auto_config(struct hda_codec *codec) argument
29 struct hda_gen_spec *spec = codec->spec;
32 err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0);
35 err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg);
43 static int patch_ca0110(struct hda_codec *codec) argument
52 codec->spec = spec;
53 codec->patch_ops = ca0110_patch_ops;
56 codec->bus->core.needs_damn_long_delay = 1;
58 err = ca0110_parse_auto_config(codec);
65 snd_hda_gen_free(codec);
[all...]
H A Dpatch_cmedia.c35 static int patch_cmi9880(struct hda_codec *codec) argument
45 codec->spec = spec;
46 codec->patch_ops = cmi_auto_patch_ops;
50 err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0);
53 err = snd_hda_gen_parse_auto_config(codec, cfg);
60 snd_hda_gen_free(codec);
64 static int patch_cmi8888(struct hda_codec *codec) argument
74 codec->spec = spec;
75 codec->patch_ops = cmi_auto_patch_ops;
84 err = snd_hda_parse_pin_defcfg(codec, cf
[all...]
H A Dpatch_ca0132.c1135 struct hda_codec *codec; member in struct:ca0132_spec
1513 * CA0132 codec access
1515 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, argument
1519 response = snd_hda_codec_read(codec, nid, 0, verb, parm);
1525 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, argument
1528 return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT,
1532 static int codec_set_converter_stream_channel(struct hda_codec *codec, argument
1539 return codec_send_command(codec, nid, AC_VERB_SET_CHANNEL_STREAMID,
1544 static int chipio_send(struct hda_codec *codec, argument
1553 res = snd_hda_codec_read(codec, WIDGET_CHIP_CTR
1566 chipio_write_address(struct hda_codec *codec, unsigned int chip_addx) argument
1593 chipio_write_data(struct hda_codec *codec, unsigned int data) argument
1617 chipio_write_data_multiple(struct hda_codec *codec, const u32 *data, unsigned int count) argument
1638 chipio_read_data(struct hda_codec *codec, unsigned int *data) argument
1669 chipio_write(struct hda_codec *codec, unsigned int chip_addx, const unsigned int data) argument
1695 chipio_write_no_mutex(struct hda_codec *codec, unsigned int chip_addx, const unsigned int data) argument
1718 chipio_write_multiple(struct hda_codec *codec, u32 chip_addx, const u32 *data, unsigned int count) argument
1742 chipio_read(struct hda_codec *codec, unsigned int chip_addx, unsigned int *data) argument
1767 chipio_set_control_flag(struct hda_codec *codec, enum control_flag_id flag_id, bool flag_state) argument
1783 chipio_set_control_param(struct hda_codec *codec, enum control_param_id param_id, int param_val) argument
1810 chipio_set_control_param_no_mutex(struct hda_codec *codec, enum control_param_id param_id, int param_val) argument
1834 chipio_set_stream_source_dest(struct hda_codec *codec, int streamid, int source_point, int dest_point) argument
1848 chipio_set_stream_channels(struct hda_codec *codec, int streamid, unsigned int channels) argument
1860 chipio_set_stream_control(struct hda_codec *codec, int streamid, int enable) argument
1872 chipio_get_stream_control(struct hda_codec *codec, int streamid, unsigned int *enable) argument
1885 chipio_set_conn_rate_no_mutex(struct hda_codec *codec, int connid, enum ca0132_sample_rate rate) argument
1897 chipio_set_conn_rate(struct hda_codec *codec, int connid, enum ca0132_sample_rate rate) argument
1910 chipio_8051_write_direct(struct hda_codec *codec, unsigned int addr, unsigned int data) argument
1927 chipio_8051_set_address(struct hda_codec *codec, unsigned int addr) argument
1942 chipio_8051_set_data(struct hda_codec *codec, unsigned int data) argument
1949 chipio_8051_get_data(struct hda_codec *codec) argument
1956 chipio_8051_set_data_pll(struct hda_codec *codec, unsigned int data) argument
1963 chipio_8051_write_exram(struct hda_codec *codec, unsigned int addr, unsigned int data) argument
1976 chipio_8051_write_exram_no_mutex(struct hda_codec *codec, unsigned int addr, unsigned int data) argument
1984 chipio_8051_read_exram(struct hda_codec *codec, unsigned int addr, unsigned int *data) argument
1991 chipio_8051_write_pll_pmu(struct hda_codec *codec, unsigned int addr, unsigned int data) argument
2004 chipio_8051_write_pll_pmu_no_mutex(struct hda_codec *codec, unsigned int addr, unsigned int data) argument
2014 chipio_enable_clocks(struct hda_codec *codec) argument
2030 dspio_send(struct hda_codec *codec, unsigned int reg, unsigned int data) argument
2050 dspio_write_wait(struct hda_codec *codec) argument
2068 dspio_write(struct hda_codec *codec, unsigned int scp_data) argument
2099 dspio_write_multiple(struct hda_codec *codec, unsigned int *buffer, unsigned int size) argument
2119 dspio_read(struct hda_codec *codec, unsigned int *data) argument
2138 dspio_read_multiple(struct hda_codec *codec, unsigned int *buffer, unsigned int *buf_size, unsigned int size_count) argument
2231 dspio_clear_response_queue(struct hda_codec *codec) argument
2243 dspio_get_response_data(struct hda_codec *codec) argument
2267 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) argument
2357 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) argument
2439 dspio_set_param(struct hda_codec *codec, int mod_id, int src_id, int req, const void *data, unsigned int len) argument
2446 dspio_set_uint_param(struct hda_codec *codec, int mod_id, int req, const unsigned int data) argument
2456 dspio_alloc_dma_chan(struct hda_codec *codec, unsigned int *dma_chan) argument
2485 dspio_free_dma_chan(struct hda_codec *codec, unsigned int dma_chan) argument
2510 dsp_set_run_state(struct hda_codec *codec) argument
2545 dsp_reset(struct hda_codec *codec) argument
2588 dsp_is_dma_active(struct hda_codec *codec, unsigned int dma_chan) argument
2598 dsp_dma_setup_common(struct hda_codec *codec, unsigned int chip_addx, unsigned int dma_chan, unsigned int port_map_mask, bool ovly) argument
2711 dsp_dma_setup(struct hda_codec *codec, unsigned int chip_addx, unsigned int count, unsigned int dma_chan) argument
2802 dsp_dma_start(struct hda_codec *codec, unsigned int dma_chan, bool ovly) argument
2838 dsp_dma_stop(struct hda_codec *codec, unsigned int dma_chan, bool ovly) argument
2881 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) argument
2922 dsp_free_router_ports(struct hda_codec *codec) argument
2942 dsp_allocate_ports(struct hda_codec *codec, unsigned int num_chans, unsigned int rate_multi, unsigned int *port_map) argument
2963 dsp_allocate_ports_format(struct hda_codec *codec, const unsigned short fmt, unsigned int *port_map) argument
2986 dsp_free_ports(struct hda_codec *codec) argument
3006 struct hda_codec *codec; member in struct:dma_engine
3018 dma_convert_to_hda_format(struct hda_codec *codec, unsigned int sample_rate, unsigned short channels, unsigned short *hda_format) argument
3038 struct hda_codec *codec = dma->codec; local
3153 dspxfr_hci_write(struct hda_codec *codec, const struct dsp_image_seg *fls) argument
3193 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) argument
3389 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) argument
3510 dspload_post_setup(struct hda_codec *codec) argument
3542 dspload_image(struct hda_codec *codec, const struct dsp_image_seg *fls, bool ovly, unsigned int reloc, bool autostart, int router_chans) argument
3597 dspload_is_loaded(struct hda_codec *codec) argument
3612 dspload_wait_loaded(struct hda_codec *codec) argument
3643 ca0113_mmio_gpio_set(struct hda_codec *codec, unsigned int gpio_pin, bool enable) argument
3663 ca0113_mmio_command_set(struct hda_codec *codec, unsigned int group, unsigned int target, unsigned int value) argument
3702 ca0113_mmio_command_set_type2(struct hda_codec *codec, unsigned int group, unsigned int target, unsigned int value) argument
3742 ca0132_gpio_init(struct hda_codec *codec) argument
3765 ca0132_gpio_setup(struct hda_codec *codec) argument
3835 r3di_gpio_mic_set(struct hda_codec *codec, enum r3di_mic_select cur_mic) argument
3855 r3di_gpio_dsp_status_set(struct hda_codec *codec, enum r3di_dsp_status dsp_status) argument
3887 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) argument
3900 ca0132_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument
3919 ca0132_playback_pcm_delay(struct hda_pcm_stream *info, struct hda_codec *codec, struct snd_pcm_substream *substream) argument
3947 ca0132_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument
3955 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) argument
3966 ca0132_dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument
3974 ca0132_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument
3985 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) argument
3997 ca0132_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument
4010 ca0132_capture_pcm_delay(struct hda_pcm_stream *info, struct hda_codec *codec, struct snd_pcm_substream *substream) argument
4224 tuning_ctl_set(struct hda_codec *codec, hda_nid_t nid, const unsigned int *lookup, int idx) argument
4247 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
4273 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
4308 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
4343 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
4365 add_tuning_control(struct hda_codec *codec, hda_nid_t pnid, hda_nid_t nid, const char *name, int dir) argument
4405 add_tuning_ctls(struct hda_codec *codec) argument
4423 ca0132_init_tuning_defaults(struct hda_codec *codec) argument
4445 ca0132_select_out(struct hda_codec *codec) argument
4549 ae5_mmio_select_out(struct hda_codec *codec) argument
4566 ca0132_alt_set_full_range_speaker(struct hda_codec *codec) argument
4611 ca0132_alt_surround_set_bass_redirection(struct hda_codec *codec, bool val) argument
4644 ca0132_alt_select_out_get_quirk_data(struct hda_codec *codec, const struct ca0132_alt_out_set_quirk_data **quirk_data) argument
4660 ca0132_alt_select_out_quirk_set(struct hda_codec *codec) argument
4733 ca0132_set_out_node_pincfg(struct hda_codec *codec, hda_nid_t nid, bool out_enable, bool hp_enable) argument
4754 ca0132_alt_select_out(struct hda_codec *codec) argument
4930 ca0132_set_vipsource(struct hda_codec *codec, int val) argument
4968 ca0132_alt_set_vipsource(struct hda_codec *codec, int val) argument
5039 ca0132_select_mic(struct hda_codec *codec) argument
5091 ca0132_alt_select_in(struct hda_codec *codec) argument
5268 ca0132_is_vnode_effective(struct hda_codec *codec, hda_nid_t vnid, hda_nid_t *shared_nid) argument
5296 ca0132_voicefx_set(struct hda_codec *codec, int enable) argument
5318 ca0132_effects_set(struct hda_codec *codec, hda_nid_t nid, long val) argument
5409 ca0132_pe_switch_set(struct hda_codec *codec) argument
5431 stop_mic1(struct hda_codec *codec) argument
5444 resume_mic1(struct hda_codec *codec, unsigned int oldval) argument
5457 ca0132_cvoice_switch_set(struct hda_codec *codec) argument
5486 ca0132_mic_boost_set(struct hda_codec *codec, long val) argument
5501 ca0132_alt_mic_boost_set(struct hda_codec *codec, long val) argument
5511 ae5_headphone_gain_set(struct hda_codec *codec, long val) argument
5525 zxr_headphone_gain_set(struct hda_codec *codec, long val) argument
5535 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5596 ca0132_alt_bass_redirection_xover_set(struct hda_codec *codec, long idx) argument
5616 ca0132_alt_slider_ctl_set(struct hda_codec *codec, hda_nid_t nid, const unsigned int *lookup, int idx) argument
5658 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5674 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5717 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5747 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5794 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5804 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5848 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5858 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5901 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5911 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5951 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
5961 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6003 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6013 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6054 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6064 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6107 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6117 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6171 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6181 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6228 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6238 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6273 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6325 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6426 ca0132_alt_dsp_volume_put(struct hda_codec *codec, hda_nid_t nid) argument
6459 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6497 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6518 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6565 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6605 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
6641 ca0132_alt_add_effect_slider(struct hda_codec *codec, hda_nid_t nid, const char *pfx, int dir) argument
6676 add_fx_switch(struct hda_codec *codec, hda_nid_t nid, const char *pfx, int dir) argument
6695 add_voicefx(struct hda_codec *codec) argument
6707 add_ca0132_alt_eq_presets(struct hda_codec *codec) argument
6724 ca0132_alt_add_svm_enum(struct hda_codec *codec) argument
6741 ca0132_alt_add_output_enum(struct hda_codec *codec) argument
6758 ca0132_alt_add_speaker_channel_cfg_enum(struct hda_codec *codec) argument
6775 ca0132_alt_add_front_full_range_switch(struct hda_codec *codec) argument
6785 ca0132_alt_add_rear_full_range_switch(struct hda_codec *codec) argument
6801 ca0132_alt_add_bass_redirection_crossover(struct hda_codec *codec) argument
6817 ca0132_alt_add_bass_redirection_switch(struct hda_codec *codec) argument
6833 ca0132_alt_add_input_enum(struct hda_codec *codec) argument
6849 ca0132_alt_add_mic_boost_enum(struct hda_codec *codec) argument
6867 ae5_add_headphone_gain_enum(struct hda_codec *codec) argument
6884 ae5_add_sound_filter_enum(struct hda_codec *codec) argument
6896 zxr_add_headphone_gain_switch(struct hda_codec *codec) argument
6933 ca0132_alt_add_chmap_ctls(struct hda_codec *codec) argument
7026 ca0132_build_controls(struct hda_codec *codec) argument
7213 dbpro_build_controls(struct hda_codec *codec) argument
7277 ca0132_build_pcms(struct hda_codec *codec) argument
7337 dbpro_build_pcms(struct hda_codec *codec) argument
7371 init_output(struct hda_codec *codec, hda_nid_t pin, hda_nid_t dac) argument
7385 init_input(struct hda_codec *codec, hda_nid_t pin, hda_nid_t adc) argument
7406 refresh_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir) argument
7418 ca0132_set_dmic(struct hda_codec *codec, int enable) argument
7462 ca0132_init_dmic(struct hda_codec *codec) argument
7510 ca0132_init_analog_mic2(struct hda_codec *codec) argument
7522 ca0132_refresh_widget_caps(struct hda_codec *codec) argument
7544 ca0132_alt_free_active_dma_channels(struct hda_codec *codec) argument
7599 ca0132_alt_start_dsp_audio_streams(struct hda_codec *codec) argument
7689 chipio_remap_stream(struct hda_codec *codec, const struct chipio_stream_remap_data *remap_data) argument
7756 ca0132_alt_init_speaker_tuning(struct hda_codec *codec) argument
7800 ca0132_alt_init_analog_mics(struct hda_codec *codec) argument
7830 sbz_connect_streams(struct hda_codec *codec) argument
7859 sbz_chipio_startup_data(struct hda_codec *codec) argument
7892 ca0132_alt_dsp_initial_mic_setup(struct hda_codec *codec) argument
7923 ae5_post_dsp_register_set(struct hda_codec *codec) argument
7948 ae5_post_dsp_param_setup(struct hda_codec *codec) argument
7968 ae5_post_dsp_pll_setup(struct hda_codec *codec) argument
7977 ae5_post_dsp_stream_setup(struct hda_codec *codec) argument
8003 ae5_post_dsp_startup_data(struct hda_codec *codec) argument
8035 ae7_post_dsp_setup_ports(struct hda_codec *codec) argument
8056 ae7_post_dsp_asi_stream_setup(struct hda_codec *codec) argument
8079 ae7_post_dsp_pll_setup(struct hda_codec *codec) argument
8093 ae7_post_dsp_asi_setup_ports(struct hda_codec *codec) argument
8175 ae7_post_dsp_asi_setup(struct hda_codec *codec) argument
8204 ca0132_setup_defaults(struct hda_codec *codec) argument
8249 r3d_setup_defaults(struct hda_codec *codec) argument
8299 sbz_setup_defaults(struct hda_codec *codec) argument
8353 ae5_setup_defaults(struct hda_codec *codec) argument
8418 ae7_setup_defaults(struct hda_codec *codec) argument
8501 ca0132_init_flags(struct hda_codec *codec) argument
8534 ca0132_init_params(struct hda_codec *codec) argument
8550 ca0132_set_dsp_msr(struct hda_codec *codec, bool is96k) argument
8564 ca0132_download_dsp_images(struct hda_codec *codec) argument
8620 ca0132_download_dsp(struct hda_codec *codec) argument
8646 ca0132_process_dsp_response(struct hda_codec *codec, struct hda_jack_callback *callback) argument
8662 hp_callback(struct hda_codec *codec, struct hda_jack_callback *cb) argument
8676 amic_callback(struct hda_codec *codec, struct hda_jack_callback *cb) argument
8686 ca0132_setup_unsol(struct hda_codec *codec) argument
8775 ca0132_init_chip(struct hda_codec *codec) argument
8860 r3di_gpio_shutdown(struct hda_codec *codec) argument
8868 sbz_region2_exit(struct hda_codec *codec) argument
8885 sbz_set_pin_ctl_default(struct hda_codec *codec) argument
8898 ca0132_clear_unsolicited(struct hda_codec *codec) argument
8910 sbz_gpio_shutdown_commands(struct hda_codec *codec, int dir, int mask, int data) argument
8925 zxr_dbpro_power_state_shutdown(struct hda_codec *codec) argument
8935 sbz_exit_chip(struct hda_codec *codec) argument
8970 r3d_exit_chip(struct hda_codec *codec) argument
8977 ae5_exit_chip(struct hda_codec *codec) argument
9002 ae7_exit_chip(struct hda_codec *codec) argument
9028 zxr_exit_chip(struct hda_codec *codec) argument
9058 ca0132_exit_chip(struct hda_codec *codec) argument
9074 sbz_dsp_startup_check(struct hda_codec *codec) argument
9139 ca0132_alt_vol_setup(struct hda_codec *codec) argument
9154 sbz_pre_dsp_setup(struct hda_codec *codec) argument
9167 r3d_pre_dsp_setup(struct hda_codec *codec) argument
9177 r3di_pre_dsp_setup(struct hda_codec *codec) argument
9194 zxr_pre_dsp_setup(struct hda_codec *codec) argument
9267 ca0132_mmio_init_sbz(struct hda_codec *codec) argument
9317 ca0132_mmio_init_ae5(struct hda_codec *codec) argument
9349 ca0132_mmio_init(struct hda_codec *codec) argument
9382 ae5_register_set(struct hda_codec *codec) argument
9441 ca0132_alt_init(struct hda_codec *codec) argument
9498 ca0132_init(struct hda_codec *codec) argument
9619 dbpro_init(struct hda_codec *codec) argument
9634 ca0132_free(struct hda_codec *codec) argument
9675 dbpro_free(struct hda_codec *codec) argument
9685 ca0132_suspend(struct hda_codec *codec) argument
9709 ca0132_config(struct hda_codec *codec) argument
9909 ca0132_prepare_verbs(struct hda_codec *codec) argument
9958 sbz_detect_quirk(struct hda_codec *codec) argument
9975 patch_ca0132(struct hda_codec *codec) argument
[all...]
H A Dpatch_cs8409.c22 static int cs8409_parse_auto_config(struct hda_codec *codec) argument
24 struct cs8409_spec *spec = codec->spec;
28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0);
32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]);
55 static struct cs8409_spec *cs8409_alloc_spec(struct hda_codec *codec) argument
62 codec->spec = spec;
63 spec->codec = codec;
64 codec
72 cs8409_vendor_coef_get(struct hda_codec *codec, unsigned int idx) argument
78 cs8409_vendor_coef_set(struct hda_codec *codec, unsigned int idx, unsigned int coef) argument
91 cs8409_disable_i2c_clock(struct hda_codec *codec) argument
120 cs8409_enable_i2c_clock(struct hda_codec *codec) argument
146 cs8409_i2c_wait_complete(struct hda_codec *codec) argument
159 cs8409_set_i2c_dev_addr(struct hda_codec *codec, unsigned int addr) argument
178 struct hda_codec *codec = scodec->codec; local
199 struct hda_codec *codec = scodec->codec; local
242 struct hda_codec *codec = scodec->codec; local
287 struct hda_codec *codec = scodec->codec; local
328 struct hda_codec *codec = scodec->codec; local
361 cs8409_init(struct hda_codec *codec) argument
371 cs8409_build_controls(struct hda_codec *codec) argument
384 cs8409_enable_ur(struct hda_codec *codec, int flag) argument
400 cs8409_fix_caps(struct hda_codec *codec, unsigned int nid) argument
425 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
435 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
486 struct hda_codec *codec = snd_kcontrol_chip(kctrl); local
545 struct hda_codec *codec = snd_kcontrol_chip(kctrl); local
576 cs42l42_playback_pcm_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) argument
605 cs42l42_capture_pcm_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) argument
871 struct hda_codec *codec = cs42l42->codec; local
914 struct hda_codec *codec = cs42l42->codec; local
951 cs8409_free(struct hda_codec *codec) argument
974 cs8409_cs42l42_jack_unsol_event(struct hda_codec *codec, unsigned int res) argument
1005 cs8409_cs42l42_suspend(struct hda_codec *codec) argument
1029 cs8409_cs42l42_hw_init(struct hda_codec *codec) argument
1085 struct hda_codec *codec = container_of(dev, struct hda_codec, core); local
1117 cs8409_cs42l42_fixups(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
1237 dolphin_jack_unsol_event(struct hda_codec *codec, unsigned int res) argument
1273 dolphin_hw_init(struct hda_codec *codec) argument
1313 struct hda_codec *codec = container_of(dev, struct hda_codec, core); local
1348 dolphin_fixups(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
1440 patch_cs8409(struct hda_codec *codec) argument
[all...]
H A Dpatch_cirrus.c130 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) argument
132 struct cs_spec *spec = codec->spec;
134 snd_hda_codec_write(codec, spec->vendor_nid, 0,
136 return snd_hda_codec_read(codec, spec->vendor_nid, 0,
140 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, argument
143 struct cs_spec *spec = codec->spec;
145 snd_hda_codec_write(codec, spec->vendor_nid, 0,
147 snd_hda_codec_write(codec, spec->vendor_nid, 0,
157 static void cs_automute(struct hda_codec *codec) argument
159 struct cs_spec *spec = codec
178 is_active_pin(struct hda_codec *codec, hda_nid_t nid) argument
186 init_input_coef(struct hda_codec *codec) argument
278 init_digital_coef(struct hda_codec *codec) argument
292 cs_init(struct hda_codec *codec) argument
323 cs_build_controls(struct hda_codec *codec) argument
344 cs_parse_auto_config(struct hda_codec *codec) argument
494 cs420x_fixup_gpio_13(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
507 cs420x_fixup_gpio_23(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
572 cs_alloc_spec(struct hda_codec *codec, int vendor_nid) argument
587 patch_cs420x(struct hda_codec *codec) argument
652 cs4208_fixup_gpio0(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
668 cs4208_fixup_mac(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
682 cs4208_fixup_macmini(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
702 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
712 cs4208_fixup_spdif_switch(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
759 cs4208_fix_amp_caps(struct hda_codec *codec, hda_nid_t adc) argument
769 patch_cs4208(struct hda_codec *codec) argument
851 cs421x_fixup_sense_b(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
951 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
961 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
990 cs4210_pinmux_init(struct hda_codec *codec) argument
1023 cs4210_spdif_automute(struct hda_codec *codec, struct hda_jack_callback *tbl) argument
1046 parse_cs421x_digital(struct hda_codec *codec) argument
1063 cs421x_init(struct hda_codec *codec) argument
1091 fix_volume_caps(struct hda_codec *codec, hda_nid_t dac) argument
1103 cs421x_parse_auto_config(struct hda_codec *codec) argument
1135 cs421x_suspend(struct hda_codec *codec) argument
1165 patch_cs4210(struct hda_codec *codec) argument
1201 patch_cs4213(struct hda_codec *codec) argument
[all...]
H A Dpatch_conexant.c3 * HD audio interface patch for Conexant HDA audio codec
81 static int cx_auto_parse_beep(struct hda_codec *codec) argument
83 struct conexant_spec *spec = codec->spec;
86 for_each_hda_codec_node(nid, codec)
87 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP)
92 #define cx_auto_parse_beep(codec) 0
100 static void cx_auto_parse_eapd(struct hda_codec *codec) argument
102 struct conexant_spec *spec = codec->spec;
105 for_each_hda_codec_node(nid, codec) {
106 if (get_wcaps_type(get_wcaps(codec, ni
125 cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, bool on) argument
140 struct hda_codec *codec = private_data; local
150 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); local
159 cxt_init_gpio_led(struct hda_codec *codec) argument
174 cx_fixup_headset_recog(struct hda_codec *codec) argument
195 cx_auto_init(struct hda_codec *codec) argument
211 cx_auto_shutdown(struct hda_codec *codec) argument
220 cx_auto_free(struct hda_codec *codec) argument
226 cx_process_headset_plugin(struct hda_codec *codec) argument
253 cx_update_headset_mic_vref(struct hda_codec *codec, unsigned int res) argument
287 cx_jack_unsol_event(struct hda_codec *codec, unsigned int res) argument
297 cx_auto_suspend(struct hda_codec *codec) argument
349 cxt_fixup_stereo_dmic(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
356 cxt5066_increase_mic_boost(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
369 cxt_update_headset_mode(struct hda_codec *codec) argument
396 cxt_update_headset_mode_hook(struct hda_codec *codec, struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) argument
403 cxt_fixup_headphone_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
424 cxt_fixup_headset_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
458 olpc_xo_update_mic_boost(struct hda_codec *codec) argument
473 olpc_xo_update_mic_pins(struct hda_codec *codec) argument
528 olpc_xo_automic(struct hda_codec *codec, struct hda_jack_callback *jack) argument
542 olpc_xo_capture_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) argument
567 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
576 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
592 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
607 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
648 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
656 cxt_fixup_olpc_xo(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
687 cxt_fixup_mute_led_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
703 cxt_fixup_cap_mix_amp(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
717 cxt_fixup_cap_mix_amp_5047(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
727 cxt_fixup_hp_gate_mic_jack(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
739 cxt_update_gpio_led(struct hda_codec *codec, unsigned int mask, bool led_on) argument
763 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); local
774 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); local
781 cxt_setup_mute_led(struct hda_codec *codec, unsigned int mute, unsigned int mic_mute) argument
798 cxt_fixup_mute_led_gpio(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
805 cxt_fixup_hp_zbook_mute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
1132 add_cx5051_fake_mutes(struct hda_codec *codec) argument
1147 patch_conexant_auto(struct hda_codec *codec) argument
[all...]
H A Dpatch_analog.c50 static int create_beep_ctls(struct hda_codec *codec) argument
52 struct ad198x_spec *spec = codec->spec;
61 kctl = snd_ctl_new1(knew, codec);
65 err = snd_hda_ctl_add(codec, 0, kctl);
72 #define create_beep_ctls(codec) 0
75 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, argument
78 if (snd_hda_query_pin_caps(codec, front) & AC_PINCAP_EAPD)
79 snd_hda_codec_write(codec, front, 0, AC_VERB_SET_EAPD_BTLENABLE,
80 !codec->inv_eapd ? 0x00 : 0x02);
81 if (snd_hda_query_pin_caps(codec, h
86 ad198x_power_eapd(struct hda_codec *codec) argument
114 ad198x_suspend(struct hda_codec *codec) argument
124 struct hda_codec *codec = private_data; local
140 ad198x_auto_build_controls(struct hda_codec *codec) argument
164 ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) argument
192 alloc_ad_spec(struct hda_codec *codec) argument
210 ad_fixup_inv_jack_detect(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
224 ad1986a_fixup_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
237 ad1986a_fixup_eapd_mix_in(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
378 patch_ad1986a(struct hda_codec *codec) argument
442 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
459 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
469 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
493 ad1983_add_spdif_mux_ctl(struct hda_codec *codec) argument
510 patch_ad1983(struct hda_codec *codec) argument
548 ad1981_fixup_hp_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
562 ad1981_fixup_amp_override(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
600 patch_ad1981(struct hda_codec *codec) argument
722 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
737 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
747 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
779 ad1988_auto_init(struct hda_codec *codec) argument
800 ad1988_add_spdif_mux_ctl(struct hda_codec *codec) argument
892 patch_ad1988(struct hda_codec *codec) argument
956 ad1884_fixup_amp_override(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
970 struct hda_codec *codec = private_data; local
980 ad1884_fixup_hp_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
1005 ad1884_fixup_thinkpad(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument
1072 patch_ad1884(struct hda_codec *codec) argument
1118 patch_ad1882(struct hda_codec *codec) argument
[all...]
H A Dhda_beep.c3 * Digital Beep Input Interface for HD-audio codec
26 struct hda_codec *codec = beep->codec; local
29 snd_hda_power_up(codec);
34 snd_hda_codec_write(codec, beep->nid, 0,
40 snd_hda_power_down(codec);
124 snd_hda_power_up_pm(beep->codec);
135 snd_hda_power_down_pm(beep->codec);
140 * @codec: the HDA codec
143 snd_hda_enable_beep_device(struct hda_codec *codec, int enable) argument
204 snd_hda_attach_beep_device(struct hda_codec *codec, int nid) argument
277 snd_hda_detach_beep_device(struct hda_codec *codec) argument
286 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
301 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
324 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local
[all...]
H A Dhda_proc.c19 MODULE_PARM_DESC(dump_coef, "Dump processing coefficients in codec proc file (-1=auto, 0=disable, 1=enable)");
22 #define param_read(codec, nid, parm) \
23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm)
48 struct hda_codec *codec, hda_nid_t nid,
75 struct hda_codec *codec, hda_nid_t nid)
80 list_for_each_entry(cpcm, &codec->pcm_list_head, list) {
94 struct hda_codec *codec, hda_nid_t nid, int dir)
97 caps = param_read(codec, nid, dir == HDA_OUTPUT ?
112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, argument
126 if (snd_hda_get_raw_connections(codec, ni
47 print_nid_array(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, struct snd_array *array) argument
74 print_nid_pcms(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
93 print_amp_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir) argument
133 print_amp_vals(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int wcaps, int indices) argument
199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) argument
400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) argument
438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) argument
468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
564 can_dump_coef(struct hda_codec *codec) argument
573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
598 print_conn_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type, hda_nid_t *conn, int conn_len) argument
638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
682 print_dpmst_connections(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dev_num) argument
714 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument
748 print_codec_core_info(struct hdac_device *codec, struct snd_info_buffer *buffer) argument
777 struct hda_codec *codec = entry->private_data; local
941 snd_hda_codec_proc_new(struct hda_codec *codec) argument
[all...]
H A Dhda_auto_parser.c56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, argument
63 nid_has_volume(codec, nid, HDA_INPUT);
104 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, argument
107 unsigned int pincap = snd_hda_query_pin_caps(codec, pin);
125 static bool can_be_headset_mic(struct hda_codec *codec, argument
137 def_conf = snd_hda_codec_get_pincfg(codec, item->pin);
168 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, argument
180 if (!snd_hda_get_int_hint(codec, "parser_flags", &i))
190 for_each_hda_codec_node(nid, codec) {
191 unsigned int wid_caps = get_wcaps(codec, ni
480 hda_get_input_pin_label(struct hda_codec *codec, const struct auto_pin_cfg_item *item, hda_nid_t pin, bool check_location) argument
532 check_mic_location_need(struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input) argument
569 hda_get_autocfg_input_label(struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input) argument
620 check_output_pfx(struct hda_codec *codec, hda_nid_t nid) argument
635 get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, const hda_nid_t *pins, int num_pins) argument
652 fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, const struct auto_pin_cfg *cfg, const char *name, char *label, int maxlen, int *indexp) argument
708 snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, const struct auto_pin_cfg *cfg, char *label, int maxlen, int *indexp) argument
776 snd_hda_add_verbs(struct hda_codec *codec, const struct hda_verb *list) argument
792 snd_hda_apply_verbs(struct hda_codec *codec) argument
807 snd_hda_apply_pincfgs(struct hda_codec *codec, const struct hda_pintbl *cfg) argument
815 set_pin_targets(struct hda_codec *codec, const struct hda_pintbl *cfg) argument
822 __snd_hda_apply_fixup(struct hda_codec *codec, int id, int action, int depth) argument
880 snd_hda_apply_fixup(struct hda_codec *codec, int action) argument
889 pin_config_match(struct hda_codec *codec, const struct hda_pintbl *pins, bool match_all_pins) argument
930 snd_hda_pick_pin_fixup(struct hda_codec *codec, const struct snd_hda_pin_quirk *pin_quirk, const struct hda_fixup *fixlist, bool match_all_pins) argument
976 snd_hda_pick_fixup(struct hda_codec *codec, const struct hda_model_fixup *models, const struct snd_pci_quirk *quirk, const struct hda_fixup *fixlist) argument
[all...]
H A DMakefile5 snd-hda-codec-y := hda_bind.o hda_codec.o hda_jack.o hda_auto_parser.o hda_sysfs.o
6 snd-hda-codec-y += hda_controller.o
7 snd-hda-codec-$(CONFIG_SND_PROC_FS) += hda_proc.o
9 snd-hda-codec-$(CONFIG_SND_HDA_HWDEP) += hda_hwdep.o
10 snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o
16 snd-hda-codec-generic-y := hda_generic.o
17 snd-hda-codec-realtek-y := patch_realtek.o
18 snd-hda-codec-cmedia-y := patch_cmedia.o
19 snd-hda-codec-analog-y := patch_analog.o
20 snd-hda-codec
[all...]
H A Dhda_generic.h206 /* additional parameters set by codec drivers */
277 void (*init_hook)(struct hda_codec *codec);
278 void (*automute_hook)(struct hda_codec *codec);
279 void (*cap_sync_hook)(struct hda_codec *codec,
285 struct hda_codec *codec,
289 struct hda_codec *codec,
294 void (*hp_automute_hook)(struct hda_codec *codec,
296 void (*line_automute_hook)(struct hda_codec *codec,
298 void (*mic_autoswitch_hook)(struct hda_codec *codec,
314 int snd_hda_gen_init(struct hda_codec *codec);
[all...]
/linux-master/sound/hda/
H A Dhdac_device.c3 * HD-audio codec core device
19 static void setup_fg_nodes(struct hdac_device *codec);
20 static int get_codec_vendor_name(struct hdac_device *codec);
28 * snd_hdac_device_init - initialize the HD-audio codec base device
29 * @codec: device to initialize
32 * @addr: codec address
41 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, argument
48 dev = &codec->dev;
57 codec->bus = bus;
58 codec
128 snd_hdac_device_exit(struct hdac_device *codec) argument
143 snd_hdac_device_register(struct hdac_device *codec) argument
166 snd_hdac_device_unregister(struct hdac_device *codec) argument
185 snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name) argument
208 snd_hdac_codec_modalias(const struct hdac_device *codec, char *buf, size_t size) argument
225 snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int parm) argument
257 snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd, unsigned int flags, unsigned int *res) argument
276 snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int parm, unsigned int *res) argument
294 _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, unsigned int *res) argument
313 snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, int parm) argument
332 snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, unsigned int parm, unsigned int val) argument
357 snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, hda_nid_t *start_id) argument
375 setup_fg_nodes(struct hdac_device *codec) argument
405 snd_hdac_refresh_widgets(struct hdac_device *codec) argument
437 get_num_conns(struct hdac_device *codec, hda_nid_t nid) argument
465 snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, hda_nid_t *conn_list, int max_conns) argument
568 snd_hdac_power_up(struct hdac_device *codec) argument
580 snd_hdac_power_down(struct hdac_device *codec) argument
600 snd_hdac_power_up_pm(struct hdac_device *codec) argument
612 snd_hdac_keep_power_up(struct hdac_device *codec) argument
633 snd_hdac_power_down_pm(struct hdac_device *codec) argument
675 get_codec_vendor_name(struct hdac_device *codec) argument
852 query_pcm_param(struct hdac_device *codec, hda_nid_t nid) argument
866 query_stream_param(struct hdac_device *codec, hda_nid_t nid) argument
891 snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid, u32 *ratesp, u64 *formatsp, u32 *subformatsp, unsigned int *bpsp) argument
1000 snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid, unsigned int format) argument
1147 snd_hdac_sync_power_state(struct hdac_device *codec, hda_nid_t nid, unsigned int power_state) argument
[all...]
H A Dhdac_bus.c142 * @res_ex: codec addr and flags (upper 32bit or RIRB entry)
172 struct hdac_device *codec; local
185 codec = bus->caddr_tbl[caddr & 0x0f];
186 if (!codec || !codec->registered)
189 drv = drv_to_hdac_driver(codec->dev.driver);
191 drv->unsol_event(codec, res);
198 * snd_hdac_bus_add_device - Add a codec to bus
200 * @codec: HDA core device to add
202 * Adds the given codec t
206 snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec) argument
226 snd_hdac_bus_remove_device(struct hdac_bus *bus, struct hdac_device *codec) argument
269 snd_hdac_codec_link_up(struct hdac_device *codec) argument
280 snd_hdac_codec_link_down(struct hdac_device *codec) argument
[all...]
/linux-master/sound/ac97/
H A DMakefile8 ac97-y += bus.o codec.o
/linux-master/sound/soc/sunxi/
H A DMakefile2 obj-$(CONFIG_SND_SUN4I_CODEC) += sun4i-codec.o
5 obj-$(CONFIG_SND_SUN8I_CODEC_ANALOG) += sun8i-codec-analog.o
6 obj-$(CONFIG_SND_SUN50I_CODEC_ANALOG) += sun50i-codec-analog.o
7 obj-$(CONFIG_SND_SUN8I_CODEC) += sun8i-codec.o
/linux-master/sound/aoa/
H A Daoa.h24 /* called when the fabric wants to init this codec.
26 int (*init)(struct aoa_codec *codec);
28 /* called when the fabric is done with the codec.
30 void (*exit)(struct aoa_codec *codec);
33 * Refcounting is the codec driver's responsibility */
46 * a codec specific bitmask of what outputs and inputs are
60 aoa_codec_register(struct aoa_codec *codec);
62 aoa_codec_unregister(struct aoa_codec *codec);
74 * in the codec structure! */
75 int (*found_codec)(struct aoa_codec *codec);
[all...]
/linux-master/sound/soc/codecs/
H A Dhda-dai.c15 struct hda_codec *codec; local
19 codec = dev_to_hda_codec(dai->dev);
23 dev_dbg(dai->dev, "open stream codec: %08x, info: %p, pcm: %p %s substream: %p\n",
24 codec->core.vendor_id, stream_info, pcm, pcm->name, substream);
28 ret = stream_info->ops.open(stream_info, codec, substream);
30 dev_err(dai->dev, "codec open failed: %d\n", ret);
41 struct hda_codec *codec; local
45 codec = dev_to_hda_codec(dai->dev);
49 dev_dbg(dai->dev, "close stream codec: %08x, info: %p, pcm: %p %s substream: %p\n",
50 codec
62 struct hda_codec *codec; local
77 struct hda_codec *codec; local
[all...]
H A Dhda.c16 static int hda_codec_create_dais(struct hda_codec *codec, int pcm_count, argument
19 struct device *dev = &codec->core.dev;
28 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list);
83 static int hda_codec_register_dais(struct hda_codec *codec, struct snd_soc_component *component) argument
90 if (list_empty(&codec->pcm_list_head))
92 list_for_each_entry(pcm, &codec->pcm_list_head, list)
95 ret = hda_codec_create_dais(codec, pcm_count, &drvs);
101 list_for_each_entry(pcm, &codec->pcm_list_head, list) {
124 static void hda_codec_unregister_dais(struct hda_codec *codec, argument
133 list_for_each_entry(pcm, &codec
146 hda_codec_probe_complete(struct hda_codec *codec) argument
175 struct hda_codec *codec = dev_to_hda_codec(component->dev); local
273 struct hda_codec *codec = dev_to_hda_codec(component->dev); local
350 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); local
382 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); local
[all...]
/linux-master/drivers/media/pci/zoran/
H A Dzr36016.c15 /* codec io API */
28 * Local hardware I/O functions: read/write via codec layer
36 struct zoran *zr = videocodec_to_zoran(ptr->codec);
39 if (ptr->codec->master_data->readreg)
40 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF;
51 struct zoran *zr = videocodec_to_zoran(ptr->codec);
56 if (ptr->codec->master_data->writereg)
57 ptr->codec->master_data->writereg(ptr->codec, re
196 zr36016_set_mode(struct videocodec *codec, int mode) argument
213 zr36016_set_video(struct videocodec *codec, const struct tvnorm *norm, struct vfe_settings *cap, struct vfe_polarity *pol) argument
255 zr36016_control(struct videocodec *codec, int type, int size, void *data) argument
306 zr36016_unset(struct videocodec *codec) argument
334 zr36016_setup(struct videocodec *codec) argument
[all...]
H A Dvideocodec.h5 * Interface for MJPEG (and maybe later MPEG/WAVELETS) codec's
71 * one codec which may be quite similar to access, nevertheless it
76 * set_mode -> this fn-ref. resets the entire codec, and sets up the mode
83 * additional setup may be available, too - but the codec should work with
90 * setup_interrupt -> codec irq setup (not needed for 36050/60)
91 * handle_interrupt -> codec irq handling (not needed for 36050/60)
94 * put_image -> puts image data to the codec (not needed for 36050/60)
95 * get_image -> gets image data from the codec (not needed for 36050/60)
132 /* this are the current codec flags I think they are needed */
134 #define CODEC_FLAG_JPEG 0x00000001L // JPEG codec
318 videocodec_to_zoran(struct videocodec *codec) argument
[all...]
/linux-master/sound/soc/sof/intel/
H A Dhda-codec.c26 MODULE_PARM_DESC(codec_mask, "SOF HDA codec mask for probing");
28 /* load the legacy HDA codec driver */
29 static int request_codec_module(struct hda_codec *codec) argument
35 switch (codec->probe_id) {
38 mod = "snd-hda-codec-generic";
42 snd_hdac_codec_modalias(&codec->core, alias, sizeof(alias));
48 dev_dbg(&codec->core.dev, "loading codec module: %s\n", mod);
52 return device_attach(hda_codec_dev(codec));
55 static int hda_codec_load_module(struct hda_codec *codec) argument
80 struct hda_codec *codec; local
110 struct hda_codec *codec; local
135 struct hda_codec *codec; local
153 struct hda_codec *codec; local
[all...]
/linux-master/drivers/media/platform/qcom/venus/
H A Dhfi_platform.h29 u32 codec; member in struct:hfi_plat_caps
50 unsigned long (*codec_vpp_freq)(u32 session_type, u32 codec);
51 unsigned long (*codec_vsp_freq)(u32 session_type, u32 codec);
52 unsigned long (*codec_lp_freq)(u32 session_type, u32 codec);
63 unsigned long hfi_platform_get_codec_vpp_freq(enum hfi_version version, u32 codec,
65 unsigned long hfi_platform_get_codec_vsp_freq(enum hfi_version version, u32 codec,
67 unsigned long hfi_platform_get_codec_lp_freq(enum hfi_version version, u32 codec,
/linux-master/include/sound/
H A Dsimple_card.h18 const char *codec; member in struct:simple_util_info

Completed in 266 milliseconds

1234567891011>>