/linux-master/sound/pci/hda/ |
H A D | thinkpad_helper.c | 3 * to be included from codec driver 11 static bool is_thinkpad(struct hda_codec *codec) argument 13 return (codec->core.subsystem_id >> 16 == 0x17aa) && 18 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, argument 22 if (!is_thinkpad(codec)) 24 snd_hda_gen_add_mute_led_cdev(codec, NULL); 25 snd_hda_gen_add_micmute_led_cdev(codec, NULL); 31 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, argument
|
H A D | hda_bind.c | 3 * HD-audio codec driver binding 19 * find a matching codec id 23 struct hda_codec *codec = container_of(dev, struct hda_codec, core); local 28 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; 29 u32 rev_id = codec->core.revision_id; 34 codec->preset = list; 44 struct hda_codec *codec = container_of(dev, struct hda_codec, core); local 47 if (codec 63 snd_hda_codec_set_name(struct hda_codec *codec, const char *name) argument 88 struct hda_codec *codec = dev_to_hda_codec(dev); local 152 struct hda_codec *codec = dev_to_hda_codec(dev); local 202 codec_probed(struct hda_codec *codec) argument 208 request_codec_module(struct hda_codec *codec) argument 237 codec_bind_module(struct hda_codec *codec) argument 248 is_likely_hdmi_codec(struct hda_codec *codec) argument 277 codec_bind_generic(struct hda_codec *codec) argument 312 snd_hda_codec_configure(struct hda_codec *codec) argument [all...] |
H A D | hda_jack.h | 55 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id); 59 * @codec: the HDA codec 63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) argument 65 return snd_hda_jack_tbl_get_mst(codec, nid, 0); 69 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, 72 void snd_hda_jack_tbl_disconnect(struct hda_codec *codec); 73 void snd_hda_jack_tbl_clear(struct hda_codec *codec); 75 void snd_hda_jack_set_dirty_all(struct hda_codec *codec); 77 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_ 95 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, hda_jack_callback_fn cb) argument 130 snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) argument 142 snd_hda_jack_detect_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 154 snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) argument 178 snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, const char *name, bool phantom_jack, int type, const struct hda_jack_keymap *keymap) argument [all...] |
H A D | hda_beep.h | 3 * Digital Beep Input Interface for HD-audio codec 20 struct hda_codec *codec; member in struct:hda_beep 26 unsigned int linear_tone:1; /* linear tone for IDT/STAC codec */ 34 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable); 35 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); 36 void snd_hda_detach_beep_device(struct hda_codec *codec); 38 static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) argument 42 static inline void snd_hda_detach_beep_device(struct hda_codec *codec) argument
|
H A D | patch_via.c | 5 * HD audio interface patch for VIA VT17xx/VT18xx/VT20xx codec 13 /* 2006-03-03 Lydia Wang Create the basic patch to support VT1708 codec */ 15 /* 2006-08-02 Lydia Wang Add support to VT1709 codec */ 18 /* 2007-09-17 Lydia Wang Add VT1708B codec support */ 19 /* 2007-11-14 Lydia Wang Add VT1708A codec HP and CD pin connect config */ 21 /* 2008-03-06 Lydia Wang Add VT1702 codec and VT1708S codec support */ 92 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec); 94 struct hda_codec *codec, 100 static struct via_spec *via_new_spec(struct hda_codec *codec) argument 125 get_codec_type(struct hda_codec *codec) argument 184 vt1708_stop_hp_work(struct hda_codec *codec) argument 197 vt1708_update_hp_work(struct hda_codec *codec) argument 222 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 232 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 277 auto_parse_beep(struct hda_codec *codec) argument 292 is_aa_path_mute(struct hda_codec *codec) argument 313 __analog_low_current_mode(struct hda_codec *codec, bool force) argument 362 analog_low_current_mode(struct hda_codec *codec) argument 367 via_playback_pcm_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) argument 376 via_free(struct hda_codec *codec) argument 383 via_suspend(struct hda_codec *codec) argument 395 via_resume(struct hda_codec *codec) argument 406 via_check_power_status(struct hda_codec *codec, hda_nid_t nid) argument 439 vt1708_set_pinconfig_connect(struct hda_codec *codec, hda_nid_t nid) argument 457 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 469 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 509 via_parse_auto_config(struct hda_codec *codec) argument 538 via_init(struct hda_codec *codec) argument 550 vt1708_build_controls(struct hda_codec *codec) argument 562 vt1708_build_pcms(struct hda_codec *codec) argument 589 patch_vt1708(struct hda_codec *codec) argument 643 patch_vt1709(struct hda_codec *codec) argument 667 patch_vt1708B(struct hda_codec *codec) argument 703 override_mic_boost(struct hda_codec *codec, hda_nid_t pin, int offset, int num_steps, int step_size) argument 715 patch_vt1708S(struct hda_codec *codec) argument 762 patch_vt1702(struct hda_codec *codec) argument 811 add_secret_dac_path(struct hda_codec *codec) argument 845 patch_vt1718S(struct hda_codec *codec) argument 891 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 905 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 942 patch_vt1716S(struct hda_codec *codec) argument 1010 via_fixup_intmic_boost(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument 1017 via_fixup_power_save(struct hda_codec *codec, const struct hda_fixup *fix, int action) argument 1055 fix_vt1802_connections(struct hda_codec *codec) argument 1065 patch_vt2002P(struct hda_codec *codec) argument 1115 patch_vt1812(struct hda_codec *codec) argument 1158 patch_vt3476(struct hda_codec *codec) argument [all...] |
H A D | patch_si3054.c | 5 * HD audio interface patch for Silicon Labs 3054/5 modem codec 63 /* si3054 codec registers (nodes) access macros */ 64 #define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) 65 #define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) 66 #define SET_REG_CACHE(codec,reg,val) \ 67 snd_hda_codec_write_cache(codec,reg,0,SI3054_VERB_WRITE_NODE,val) 88 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 91 uvalue->value.integer.value[0] = (GET_REG(codec, re 98 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 125 si3054_build_controls(struct hda_codec *codec) argument 135 si3054_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 154 si3054_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 185 si3054_build_pcms(struct hda_codec *codec) argument 205 si3054_init(struct hda_codec *codec) argument 249 si3054_free(struct hda_codec *codec) argument 265 patch_si3054(struct hda_codec *codec) argument [all...] |
H A D | hda_generic.c | 105 static void parse_user_hints(struct hda_codec *codec) argument 107 struct hda_gen_spec *spec = codec->spec; 110 val = snd_hda_get_bool_hint(codec, "jack_detect"); 112 codec->no_jack_detect = !val; 113 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); 115 codec->inv_jack_detect = !!val; 116 val = snd_hda_get_bool_hint(codec, "trigger_sense"); 118 codec->no_trigger_sense = !val; 119 val = snd_hda_get_bool_hint(codec, "inv_eapd"); 121 codec 210 restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) argument 216 set_pin_target(struct hda_codec *codec, hda_nid_t pin, unsigned int val, bool do_write) argument 228 set_pin_targets(struct hda_codec *codec, int num_pins, hda_nid_t *pins, unsigned int val) argument 256 get_nid_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid) argument 287 snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) argument 308 snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) argument 319 is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) argument 333 is_reachable_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid) argument 345 is_ctl_used(struct hda_codec *codec, unsigned int val, int type) argument 360 is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int type) argument 367 print_nid_path(struct hda_codec *codec, const char *pfx, struct nid_path *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) 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) argument 477 snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid) argument 504 invalidate_nid_path(struct hda_codec *codec, int idx) argument 513 get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) argument 527 look_for_dac(struct hda_codec *codec, hda_nid_t pin, bool is_digital) argument 555 same_amp_caps(struct hda_codec *codec, hda_nid_t nid1, hda_nid_t nid2, int dir) argument 565 look_for_out_mute_nid(struct hda_codec *codec, struct nid_path *path) argument 581 look_for_out_vol_nid(struct hda_codec *codec, struct nid_path *path) argument 602 has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) argument 616 has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) argument 630 is_active_nid(struct hda_codec *codec, hda_nid_t nid, unsigned int dir, unsigned int idx) argument 669 get_amp_val_to_activate(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int caps, bool enable) argument 687 is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) argument 704 init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) argument 716 update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, unsigned int mask, unsigned int val) argument 730 get_amp_mask_to_modify(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, unsigned int caps) argument 748 activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int idx_to_check, bool enable) argument 764 check_and_activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int idx_to_check, bool enable) argument 774 activate_amp_out(struct hda_codec *codec, struct nid_path *path, int i, bool enable) argument 782 activate_amp_in(struct hda_codec *codec, struct nid_path *path, int i, bool enable, bool add_aamix) argument 823 path_power_update(struct hda_codec *codec, struct nid_path *path, bool allow_powerdown) argument 862 sync_power_state_change(struct hda_codec *codec, hda_nid_t nid) argument 879 snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, bool enable, bool add_aamix) argument 907 path_power_down_sync(struct hda_codec *codec, struct nid_path *path) argument 917 set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable) argument 933 resume_path_from_idx(struct hda_codec *codec, int path_idx) argument 1020 add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, unsigned int chs, struct nid_path *path) argument 1034 get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, int type) argument 1046 add_stereo_vol(struct hda_codec *codec, const char *pfx, int cidx, struct nid_path *path) argument 1056 add_sw_ctl(struct hda_codec *codec, const char *pfx, int cidx, unsigned int chs, struct nid_path *path) argument 1079 add_stereo_sw(struct hda_codec *codec, const char *pfx, int cidx, struct nid_path *path) argument 1090 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1117 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1133 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1156 path_has_mixer(struct hda_codec *codec, int path_idx, int ctl_type) argument 1167 get_line_out_pfx(struct hda_codec *codec, int ch, int *index, int ctl_type) argument 1285 assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) argument 1348 get_primary_out(struct hda_codec *codec, int idx) argument 1362 try_dac(struct hda_codec *codec, hda_nid_t dac, hda_nid_t pin) 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) argument 1461 get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) argument 1481 can_be_multiio_pin(struct hda_codec *codec, unsigned int location, hda_nid_t nid) argument 1498 count_multiio_pins(struct hda_codec *codec, hda_nid_t reference_pin) argument 1527 fill_multi_ios(struct hda_codec *codec, hda_nid_t reference_pin, bool hardwired) argument 1613 map_singles(struct hda_codec *codec, int outs, const hda_nid_t *pins, hda_nid_t *dacs, int *path_idx) argument 1649 check_aamix_out_path(struct hda_codec *codec, int path_idx) argument 1685 indep_hp_possible(struct hda_codec *codec) argument 1724 refill_shared_dacs(struct hda_codec *codec, int num_outs, hda_nid_t *dacs, int *path_idx) argument 1741 fill_and_eval_dacs(struct hda_codec *codec, bool fill_hardwired, bool fill_mio_first) argument 1904 print_nid_path_idx(struct hda_codec *codec, const char *pfx, int idx) argument 1914 debug_show_configs(struct hda_codec *codec, struct auto_pin_cfg *cfg) argument 1967 fill_all_dac_nids(struct hda_codec *codec) argument 1985 parse_output_paths(struct hda_codec *codec) argument 2106 create_multi_out_ctls(struct hda_codec *codec, const struct auto_pin_cfg *cfg) argument 2157 create_extra_out(struct hda_codec *codec, int path_idx, const char *pfx, int cidx) argument 2176 create_extra_outs(struct hda_codec *codec, int num_pins, const int *paths, const char *pfx) argument 2203 create_hp_out_ctls(struct hda_codec *codec) argument 2211 create_speaker_out_ctls(struct hda_codec *codec) argument 2234 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2247 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2302 create_indep_hp_ctls(struct hda_codec *codec) argument 2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2349 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2357 get_multiio_path(struct hda_codec *codec, int idx) argument 2374 set_multi_io(struct hda_codec *codec, int idx, bool output) argument 2407 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2434 create_multi_channel_mode(struct hda_codec *codec) argument 2454 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2460 update_aamix_paths(struct hda_codec *codec, bool do_mix, int nomix_path_idx, int mix_path_idx, int out_type) argument 2491 update_output_paths(struct hda_codec *codec, int num_outs, const int *paths) argument 2509 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2546 create_loopback_mixing_ctl(struct hda_codec *codec) argument 2565 update_hp_mic(struct hda_codec *codec, int adc_mux, bool force) argument 2609 create_hp_mic(struct hda_codec *codec) argument 2677 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2689 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2707 find_kctl_name(struct hda_codec *codec, const char *name, int idx) argument 2720 get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, char *name, size_t name_len) argument 2733 get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin) argument 2744 create_out_jack_modes(struct hda_codec *codec, int num_pins, hda_nid_t *pins) argument 2781 get_vref_caps(struct hda_codec *codec, hda_nid_t pin) argument 2824 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2839 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2852 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2875 get_in_jack_num_items(struct hda_codec *codec, hda_nid_t pin) argument 2884 create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) argument 2917 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2948 get_cur_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t nid) argument 2972 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2982 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 3021 create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin) 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) 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) argument 3149 is_input_pin(struct hda_codec *codec, hda_nid_t nid) argument 3156 fill_adc_nids(struct hda_codec *codec) argument 3186 check_dyn_adc_switch(struct hda_codec *codec) argument 3254 parse_capture_source(struct hda_codec *codec, hda_nid_t pin, int cfg_idx, int num_adcs, const char *label, int anchor) argument 3296 fill_input_pin_labels(struct hda_codec *codec) argument 3329 create_input_ctls(struct hda_codec *codec) argument 3402 get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx) argument 3424 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 3432 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 3444 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 3470 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 3544 parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) argument 3583 is_inv_dmic_pin(struct hda_codec *codec, hda_nid_t nid) argument 3607 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 3621 add_single_cap_ctl(struct hda_codec *codec, const char *label, int idx, bool is_switch, unsigned int ctl, bool inv_dmic) argument 3673 create_single_cap_vol_ctl(struct hda_codec *codec, int idx, unsigned int vol_ctl, unsigned int sw_ctl, bool inv_dmic) argument 3688 create_bind_cap_vol_ctl(struct hda_codec *codec, int idx, unsigned int vol_ctl, unsigned int sw_ctl) argument 3716 get_first_cap_ctl(struct hda_codec *codec, int idx, int type) argument 3737 create_multi_cap_vol_ctl(struct hda_codec *codec) argument 3766 create_capture_mixers(struct hda_codec *codec) argument 3839 check_boost_vol(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) argument 3857 look_for_boost_amp(struct hda_codec *codec, struct nid_path *path) argument 3882 parse_mic_boost(struct hda_codec *codec) argument 3931 create_mute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness), bool micmute) argument 3963 snd_hda_gen_add_mute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness)) argument 4000 snd_hda_gen_add_micmute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness)) argument 4024 parse_digital(struct hda_codec *codec) argument 4088 mux_select(struct hda_codec *codec, unsigned int adc_idx, unsigned int idx) argument 4135 set_path_power(struct hda_codec *codec, hda_nid_t nid, int pin_state, int stream_state) argument 4167 detect_pin_state(struct hda_codec *codec, hda_nid_t pin) argument 4180 set_pin_power_jack(struct hda_codec *codec, hda_nid_t pin, int power) argument 4195 pin_power_callback(struct hda_codec *codec, struct hda_jack_callback *jack, bool on) argument 4205 pin_power_up_callback(struct hda_codec *codec, struct hda_jack_callback *jack) argument 4212 pin_power_down_callback(struct hda_codec *codec, struct hda_jack_callback *jack) argument 4219 add_pin_power_ctls(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, bool on) argument 4237 add_all_pin_power_ctls(struct hda_codec *codec, bool on) argument 4255 sync_pin_power_ctls(struct hda_codec *codec, int num_pins, const hda_nid_t *pins) argument 4266 sync_all_pin_power_ctls(struct hda_codec *codec) argument 4284 add_fake_paths(struct hda_codec *codec, hda_nid_t nid, int num_pins, const hda_nid_t *pins) argument 4309 add_fake_beep_paths(struct hda_codec *codec) argument 4346 snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin) argument 4369 detect_jacks(struct hda_codec *codec, int num_pins, const hda_nid_t *pins) argument 4388 do_automute(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, int *paths, bool mute) argument 4453 snd_hda_gen_update_outputs(struct hda_codec *codec) argument 4500 call_update_outputs(struct hda_codec *codec) argument 4518 snd_hda_gen_hp_automute(struct hda_codec *codec, struct hda_jack_callback *jack) argument 4543 snd_hda_gen_line_automute(struct hda_codec *codec, struct hda_jack_callback *jack) argument 4568 snd_hda_gen_mic_autoswitch(struct hda_codec *codec, struct hda_jack_callback *jack) argument 4592 call_hp_automute(struct hda_codec *codec, struct hda_jack_callback *jack) argument 4602 call_line_automute(struct hda_codec *codec, struct hda_jack_callback *jack) argument 4612 call_mic_autoswitch(struct hda_codec *codec, struct hda_jack_callback *jack) argument 4623 update_automute_all(struct hda_codec *codec) argument 4636 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 4650 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 4665 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 4711 add_automute_mode_enum(struct hda_codec *codec) argument 4724 check_auto_mute_availability(struct hda_codec *codec) argument 4797 auto_mic_check_imux(struct hda_codec *codec) argument 4831 check_auto_mic_availability(struct hda_codec *codec) argument 4906 snd_hda_gen_path_power_filter(struct hda_codec *codec, hda_nid_t nid, unsigned int power_state) argument 4925 mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix) argument 4951 snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on) argument 4967 snd_hda_gen_parse_auto_config(struct hda_codec *codec, struct auto_pin_cfg *cfg) argument 5172 snd_hda_gen_build_controls(struct hda_codec *codec) argument 5244 call_pcm_playback_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) argument 5254 call_pcm_capture_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) argument 5267 playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5287 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 5304 playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5318 playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5331 capture_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5339 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 5351 capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5361 capture_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5369 alt_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5387 alt_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5400 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) argument 5412 alt_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5425 dig_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5433 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 5444 dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5452 dig_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5466 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) argument 5481 alt_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5578 dyn_adc_pcm_resetup(struct hda_codec *codec, int cur) argument 5596 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) argument 5611 dyn_adc_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 5685 snd_hda_gen_build_pcms(struct hda_codec *codec) argument 5799 set_output_and_unmute(struct hda_codec *codec, int path_idx) argument 5815 init_multi_out(struct hda_codec *codec) argument 5825 __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) argument 5834 init_extra_out(struct hda_codec *codec) argument 5846 init_multi_io(struct hda_codec *codec) argument 5865 init_aamix_paths(struct hda_codec *codec) argument 5885 init_analog_input(struct hda_codec *codec) argument 5905 init_input_src(struct hda_codec *codec) argument 5936 init_digital(struct hda_codec *codec) argument 5954 clear_unsol_on_unused_pins(struct hda_codec *codec) argument 5974 snd_hda_gen_init(struct hda_codec *codec) argument 6015 snd_hda_gen_free(struct hda_codec *codec) argument 6032 snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) argument 6060 snd_hda_parse_generic_codec(struct hda_codec *codec) argument [all...] |
H A D | hda_jack.c | 21 * @codec: the HDA codec 26 * detection is prohibited in the codec level, the pin config has 29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) argument 31 if (codec->no_jack_detect) 33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) 35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & 38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && 39 !codec->jackpoll_interval) 46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_ argument 71 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 92 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag, int dev_id) argument 108 any_jack_tbl_get_from_nid(struct hda_codec *codec, hda_nid_t nid) argument 128 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 161 snd_hda_jack_tbl_disconnect(struct hda_codec *codec) argument 172 snd_hda_jack_tbl_clear(struct hda_codec *codec) argument 195 jack_detect_update(struct hda_codec *codec, struct hda_jack_tbl *jack) argument 233 snd_hda_jack_set_dirty_all(struct hda_codec *codec) argument 253 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 274 snd_hda_jack_detect_state_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 318 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id, hda_jack_callback_fn func) argument 365 snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 383 snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid, hda_nid_t gating_nid) argument 412 snd_hda_jack_bind_keymap(struct hda_codec *codec, hda_nid_t key_nid, const struct hda_jack_keymap *keymap, hda_nid_t jack_nid) argument 443 snd_hda_jack_set_button_state(struct hda_codec *codec, hda_nid_t jack_nid, int button_state) argument 469 snd_hda_jack_report_sync(struct hda_codec *codec) argument 502 get_input_jack_type(struct hda_codec *codec, hda_nid_t nid) argument 541 snd_hda_jack_add_kctl_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id, const char *name, bool phantom_jack, int type, const struct hda_jack_keymap *keymap) argument 586 add_jack_kctl(struct hda_codec *codec, hda_nid_t nid, const struct auto_pin_cfg *cfg, const char *base_name) argument 627 snd_hda_jack_add_kctls(struct hda_codec *codec, const struct auto_pin_cfg *cfg) argument 684 call_jack_callback(struct hda_codec *codec, unsigned int res, struct hda_jack_tbl *jack) argument 713 snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res) argument 750 snd_hda_jack_poll_all(struct hda_codec *codec) argument [all...] |
H A D | hda_local.h | 117 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ 118 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) 119 int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, 121 int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, 123 int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, 125 int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, 127 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, 129 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, 131 int __snd_hda_add_vmaster(struct hda_codec *codec, char *name, 135 #define snd_hda_add_vmaster(codec, nam 149 struct hda_codec *codec; member in struct:hda_vmaster_mute_hook 255 snd_hda_codec_proc_new(struct hda_codec *codec) argument 296 unsigned int codec; /* Codec vendor/device ID */ member in struct:snd_hda_pin_quirk 414 snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val) argument 428 snd_hda_set_pin_ctl_cache(struct hda_codec *codec, hda_nid_t pin, unsigned int val) argument 445 snd_hda_codec_allow_unsol_events(struct hda_codec *codec) argument 453 get_wcaps(struct hda_codec *codec, hda_nid_t nid) argument 479 snd_hda_override_wcaps(struct hda_codec *codec, hda_nid_t nid, u32 val) argument 502 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) argument 519 snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, unsigned int caps) argument 556 snd_hda_create_hwdep(struct hda_codec *codec) argument 570 snd_hda_get_hint(struct hda_codec *codec, const char *key) argument 576 snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) argument 582 snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) argument 611 snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) argument 617 snd_hda_sync_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) argument [all...] |
H A D | hda_hwdep.c | 3 * HWDEP Interface for HD-audio codec 21 static int verb_write_ioctl(struct hda_codec *codec, argument 28 res = snd_hda_codec_read(codec, verb >> 24, 0, 35 static int get_wcap_ioctl(struct hda_codec *codec, argument 44 if (verb < codec->core.start_nid || 45 verb >= codec->core.start_nid + codec->core.num_nodes) { 48 verb -= codec->core.start_nid; 49 verb = array_index_nospec(verb, codec->core.num_nodes); 50 res = codec 63 struct hda_codec *codec = hw->private_data; local 94 snd_hda_create_hwdep(struct hda_codec *codec) argument [all...] |
H A D | hda_codec.c | 27 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) 28 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) 29 #define codec_has_epss(codec) \ 30 ((codec)->core.power_caps & AC_PWRST_EPSS) 31 #define codec_has_clkstop(codec) \ 32 ((codec)->core.power_caps & AC_PWRST_CLKSTOP) 40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); local 41 struct hda_bus *bus = codec 79 snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) argument 96 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) argument 106 add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, const hda_nid_t *list) argument 121 remove_conn_list(struct hda_codec *codec) argument 132 read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) argument 168 snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, const hda_nid_t **listp) argument 207 snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, hda_nid_t *conn_list, int max_conns) argument 238 snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, const hda_nid_t *list) argument 264 snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux, hda_nid_t nid, int recursive) argument 300 snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid) argument 326 snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, u8 *dev_list, int max_devices) argument 365 snd_hda_get_dev_select(struct hda_codec *codec, hda_nid_t nid) argument 383 snd_hda_set_dev_select(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 416 read_widget_caps(struct hda_codec *codec, hda_nid_t fg_node) argument 432 read_pin_defaults(struct hda_codec *codec) argument 460 look_up_pincfg(struct hda_codec *codec, struct snd_array *array, hda_nid_t nid) argument 477 snd_hda_add_pincfg(struct hda_codec *codec, struct snd_array *list, hda_nid_t nid, unsigned int cfg) argument 512 snd_hda_codec_set_pincfg(struct hda_codec *codec, hda_nid_t nid, unsigned int cfg) argument 528 snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid) argument 564 snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid, unsigned int val) argument 582 snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid) argument 600 snd_hda_shutup_pins(struct hda_codec *codec) argument 621 restore_shutup_pins(struct hda_codec *codec) argument 641 struct hda_codec *codec = local 665 free_init_pincfgs(struct hda_codec *codec) argument 688 get_hda_cvt_setup(struct hda_codec *codec, hda_nid_t nid) argument 713 snd_hda_codec_pcm_new(struct hda_codec *codec, const char *fmt, ...) argument 741 snd_hda_codec_disconnect_pcms(struct hda_codec *codec) argument 755 codec_release_pcms(struct hda_codec *codec) argument 773 snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec) argument 813 snd_hda_codec_display_power(struct hda_codec *codec, bool enable) argument 825 snd_hda_codec_register(struct hda_codec *codec) argument 849 snd_hda_codec_unregister(struct hda_codec *codec) argument 878 struct hda_codec *codec = dev_to_hda_codec(dev); local 904 struct hda_codec *codec; local 964 struct hda_codec *codec; local 981 snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card, unsigned int codec_addr, struct hda_codec *codec, bool snddev_managed) argument 1063 snd_hda_codec_update_widgets(struct hda_codec *codec) argument 1089 update_pcm_stream_id(struct hda_codec *codec, struct hda_cvt_setup *p, hda_nid_t nid, u32 stream_tag, int channel_id) argument 1108 update_pcm_format(struct hda_codec *codec, struct hda_cvt_setup *p, hda_nid_t nid, int format) argument 1134 snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, u32 stream_tag, int channel_id, int format) argument 1185 __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, int do_now) argument 1211 really_cleanup_stream(struct hda_codec *codec, struct hda_cvt_setup *q) argument 1227 purify_inactive_streams(struct hda_codec *codec) argument 1243 hda_cleanup_all_streams(struct hda_codec *codec) argument 1271 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction) argument 1290 snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int bits) argument 1315 snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int caps) argument 1327 encode_amp(struct hda_codec *codec, hda_nid_t nid, int ch, int dir, int idx) argument 1351 snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, int ch, int dir, int idx, int mask, int val) argument 1372 snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, int direction, int idx, int mask, int val) argument 1400 snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, int dir, int idx, int mask, int val) argument 1422 snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int mask, int val) argument 1436 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int ofs) argument 1458 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1480 read_amp_value(struct hda_codec *codec, hda_nid_t nid, int ch, int dir, int idx, unsigned int ofs) argument 1494 update_amp_value(struct hda_codec *codec, hda_nid_t nid, int ch, int dir, int idx, unsigned int ofs, unsigned int val) argument 1521 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1548 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1570 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 1626 snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int *tlv) argument 1645 find_mixer_ctl(struct hda_codec *codec, const char *name, int dev, int idx) argument 1665 snd_hda_find_mixer_ctl(struct hda_codec *codec, const char *name) argument 1672 find_empty_mixer_ctl_idx(struct hda_codec *codec, const char *name, int start_idx) argument 1703 snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, struct snd_kcontrol *kctl) argument 1743 snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, unsigned int index, hda_nid_t nid) argument 1767 snd_hda_ctls_clear(struct hda_codec *codec) argument 1787 struct hda_codec *codec; local 1841 snd_hda_codec_reset(struct hda_codec *codec) argument 1859 map_followers(struct hda_codec *codec, const char * const *followers, const char *suffix, map_follower_func_t func, void *data) argument 1890 check_follower_present(struct hda_codec *codec, void *data, struct snd_kcontrol *sctl) argument 1911 struct hda_codec *codec; member in struct:follower_init_arg 1970 add_follower(struct hda_codec *codec, void *data, struct snd_kcontrol *follower) argument 1996 __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) argument 2057 snd_hda_add_vmaster_hook(struct hda_codec *codec, struct hda_vmaster_mute_hook *hook) argument 2121 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2149 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2208 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2279 set_dig_out(struct hda_codec *codec, hda_nid_t nid, int mask, int val) argument 2294 set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid, int dig1, int dig2) argument 2314 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2345 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2358 set_spdif_ctls(struct hda_codec *codec, hda_nid_t nid, int dig1, int dig2) argument 2372 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2438 snd_hda_create_dig_out_ctls(struct hda_codec *codec, hda_nid_t associated_nid, hda_nid_t cvt_nid, int type) argument 2507 snd_hda_spdif_out_of_nid(struct hda_codec *codec, hda_nid_t nid) argument 2528 snd_hda_spdif_ctls_unassign(struct hda_codec *codec, int idx) argument 2549 snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid) argument 2599 snd_hda_create_spdif_share_sw(struct hda_codec *codec, struct hda_multi_out *mout) argument 2624 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2633 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2652 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 2695 snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid) argument 2734 snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg, unsigned int power_state) argument 2764 snd_hda_codec_eapd_power_filter(struct hda_codec *codec, hda_nid_t nid, unsigned int power_state) argument 2785 hda_set_power_state(struct hda_codec *codec, unsigned int power_state) argument 2828 sync_power_up_states(struct hda_codec *codec) argument 2852 hda_exec_init_verbs(struct hda_codec *codec) argument 2858 hda_exec_init_verbs(struct hda_codec *codec) argument 2863 update_power_acct(struct hda_codec *codec, bool on) argument 2874 snd_hda_update_power_acct(struct hda_codec *codec) argument 2883 hda_call_codec_suspend(struct hda_codec *codec) argument 2901 hda_call_codec_resume(struct hda_codec *codec) argument 2931 struct hda_codec *codec = dev_to_hda_codec(dev); local 2956 struct hda_codec *codec = dev_to_hda_codec(dev); local 2974 struct hda_codec *codec = dev_to_hda_codec(dev); local 2983 struct hda_codec *codec = dev_to_hda_codec(dev); local 3008 struct hda_codec *codec = dev_to_hda_codec(dev); local 3045 snd_hda_codec_shutdown(struct hda_codec *codec) argument 3064 add_std_chmaps(struct hda_codec *codec) argument 3102 snd_hda_codec_build_controls(struct hda_codec *codec) argument 3131 hda_pcm_default_open_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 3138 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) argument 3148 hda_pcm_default_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 3156 set_pcm_default_values(struct hda_codec *codec, struct hda_pcm_stream *info) argument 3202 snd_hda_codec_prepare(struct hda_codec *codec, struct hda_pcm_stream *hinfo, unsigned int stream, unsigned int format, struct snd_pcm_substream *substream) argument 3230 snd_hda_codec_cleanup(struct hda_codec *codec, struct hda_pcm_stream *hinfo, struct snd_pcm_substream *substream) argument 3295 snd_hda_codec_parse_pcms(struct hda_codec *codec) argument 3336 snd_hda_codec_build_pcms(struct hda_codec *codec) argument 3381 snd_hda_add_new_ctls(struct hda_codec *codec, const struct snd_kcontrol_new *knew) argument 3434 snd_hda_codec_set_power_save(struct hda_codec *codec, int delay) argument 3483 snd_hda_check_amp_list_power(struct hda_codec *codec, struct hda_loopback_check *check, hda_nid_t nid) argument 3556 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) argument 3611 setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid, unsigned int stream_tag, unsigned int format) argument 3650 cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid) argument 3665 snd_hda_multi_out_dig_open(struct hda_codec *codec, struct hda_multi_out *mout) argument 3686 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) argument 3704 snd_hda_multi_out_dig_cleanup(struct hda_codec *codec, struct hda_multi_out *mout) argument 3719 snd_hda_multi_out_dig_close(struct hda_codec *codec, struct hda_multi_out *mout) argument 3740 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) argument 3795 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) argument 3871 snd_hda_multi_out_analog_cleanup(struct hda_codec *codec, struct hda_multi_out *mout) argument 3907 snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin) argument 3934 snd_hda_correct_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val) argument 3997 _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val, bool cached) argument 4023 snd_hda_add_imux_item(struct hda_codec *codec, struct hda_input_mux *imux, const char *label, int index, int *type_idx) argument 4057 struct hda_codec *codec; local [all...] |
H A D | patch_hdmi.c | 78 struct hda_codec *codec; member in struct:hdmi_spec_per_pin 99 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid, 102 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid, 107 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid, 110 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid, 114 void (*pin_cvt_fixup)(struct hda_codec *codec, 132 struct hda_codec *codec; member in struct:hdmi_spec 172 /* hdmi interrupt trigger control flag for Nvidia codec */ 197 static inline bool codec_has_acomp(struct hda_codec *codec) argument 199 struct hdmi_spec *spec = codec 251 pin_id_to_pin_index(struct hda_codec *codec, hda_nid_t pin_nid, int dev_id) argument 276 hinfo_to_pcm_index(struct hda_codec *codec, struct hda_pcm_stream *hinfo) argument 290 hinfo_to_pin_index(struct hda_codec *codec, struct hda_pcm_stream *hinfo) argument 323 cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) argument 339 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 366 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); local 411 hdmi_create_eld_ctl(struct hda_codec *codec, int pcm_idx, int device) argument 436 hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, int *packet_index, int *byte_index) argument 449 hdmi_set_dip_index(struct hda_codec *codec, hda_nid_t pin_nid, int packet_index, int byte_index) argument 459 hdmi_write_dip_byte(struct hda_codec *codec, hda_nid_t pin_nid, unsigned char val) argument 465 hdmi_init_pin(struct hda_codec *codec, hda_nid_t pin_nid) argument 517 struct hda_codec *codec = per_pin->codec; local 559 hdmi_start_infoframe_trans(struct hda_codec *codec, hda_nid_t pin_nid) argument 570 hdmi_stop_infoframe_trans(struct hda_codec *codec, hda_nid_t pin_nid) argument 578 hdmi_debug_dip_size(struct hda_codec *codec, hda_nid_t pin_nid) argument 595 hdmi_clear_dip_buffers(struct hda_codec *codec, hda_nid_t pin_nid) argument 638 hdmi_fill_audio_infoframe(struct hda_codec *codec, hda_nid_t pin_nid, u8 *dip, int size) argument 652 hdmi_infoframe_uptodate(struct hda_codec *codec, hda_nid_t pin_nid, u8 *dip, int size) argument 673 hdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, int dev_id, unsigned char *buf, int *eld_size) argument 681 hdmi_pin_setup_infoframe(struct hda_codec *codec, hda_nid_t pin_nid, int dev_id, int ca, int active_channels, int conn_type) argument 738 hdmi_setup_audio_infoframe(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin, bool non_pcm) argument 793 check_presence_and_report(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 806 jack_callback(struct hda_codec *codec, struct hda_jack_callback *jack) argument 816 hdmi_intrinsic_event(struct hda_codec *codec, unsigned int res, struct hda_jack_tbl *jack) argument 829 hdmi_non_intrinsic_event(struct hda_codec *codec, unsigned int res) argument 854 hdmi_unsol_event(struct hda_codec *codec, unsigned int res) argument 883 haswell_verify_D0(struct hda_codec *codec, hda_nid_t cvt_nid, hda_nid_t nid) argument 912 hdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, int dev_id, bool hbr) argument 947 hdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, hda_nid_t pin_nid, int dev_id, u32 stream_tag, int format) argument 992 hdmi_choose_cvt(struct hda_codec *codec, int pin_idx, int *cvt_id, bool silent) argument 1050 intel_verify_pin_cvt_connect(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin) argument 1088 intel_not_share_assigned_cvt(struct hda_codec *codec, hda_nid_t pin_nid, int dev_id, int mux_idx) argument 1164 intel_not_share_assigned_cvt_nid(struct hda_codec *codec, hda_nid_t pin_nid, int dev_id, hda_nid_t cvt_nid) argument 1181 pin_cvt_fixup(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin, hda_nid_t cvt_nid) argument 1192 hdmi_pcm_open_no_pin(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 1240 hdmi_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 1331 hdmi_read_pin_conn(struct hda_codec *codec, int pin_idx) argument 1432 struct hda_codec *codec = per_pin->codec; local 1485 pin_idx_to_pcm_jack(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin) argument 1500 update_eld(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin, struct hdmi_eld *eld, int repoll) argument 1605 struct hda_codec *codec = per_pin->codec; local 1661 silent_stream_enable_i915(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin) argument 1681 silent_stream_set_kae(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin, bool enable) argument 1700 silent_stream_enable(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin) argument 1772 silent_stream_disable(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin) argument 1818 sync_eld_via_acomp(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin) argument 1846 struct hda_codec *codec = per_pin->codec; local 1858 struct hda_codec *codec = per_pin->codec; local 1875 hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid) argument 1954 hdmi_add_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) argument 2004 hdmi_parse_codec(struct hda_codec *codec) argument 2060 check_non_pcm_per_cvt(struct hda_codec *codec, hda_nid_t cvt_nid) argument 2083 generic_hdmi_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 2161 generic_hdmi_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 2169 hdmi_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 2244 struct hda_codec *codec = hdac_to_hda_codec(hdac); local 2257 struct hda_codec *codec = hdac_to_hda_codec(hdac); local 2271 struct hda_codec *codec = hdac_to_hda_codec(hdac); local 2287 struct hda_codec *codec = hdac_to_hda_codec(hdac); local 2294 generic_hdmi_build_pcms(struct hda_codec *codec) argument 2341 generic_hdmi_build_jack(struct hda_codec *codec, int pcm_idx) argument 2363 generic_hdmi_build_controls(struct hda_codec *codec) argument 2427 generic_hdmi_init_per_pins(struct hda_codec *codec) argument 2443 generic_hdmi_init(struct hda_codec *codec) argument 2477 generic_spec_free(struct hda_codec *codec) argument 2489 generic_hdmi_free(struct hda_codec *codec) argument 2517 generic_hdmi_suspend(struct hda_codec *codec) argument 2529 generic_hdmi_resume(struct hda_codec *codec) argument 2565 alloc_generic_hdmi(struct hda_codec *codec) argument 2594 patch_generic_hdmi(struct hda_codec *codec) argument 2617 reprogram_jack_detect(struct hda_codec *codec, hda_nid_t nid, int dev_id, bool use_acomp) argument 2684 struct hda_codec *codec = audio_ptr; local 2702 setup_drm_audio_ops(struct hda_codec *codec, const struct drm_audio_component_audio_ops *ops) argument 2720 generic_acomp_init(struct hda_codec *codec, const struct drm_audio_component_audio_ops *ops, int (*port2pin)(struct hda_codec *, int)) argument 2748 intel_haswell_enable_all_pins(struct hda_codec *codec, bool update_tree) argument 2769 intel_haswell_fixup_enable_dp12(struct hda_codec *codec) argument 2789 haswell_set_power_state(struct hda_codec *codec, hda_nid_t fg, unsigned int power_state) argument 2812 intel_base_nid(struct hda_codec *codec) argument 2826 struct hda_codec *codec = audio_ptr; local 2850 intel_port2pin(struct hda_codec *codec, int port) argument 2868 struct hda_codec *codec = audio_ptr; local 2891 register_i915_notifier(struct hda_codec *codec) argument 2905 i915_hsw_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, hda_nid_t pin_nid, int dev_id, u32 stream_tag, int format) argument 2939 i915_pin_cvt_fixup(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin, hda_nid_t cvt_nid) argument 2956 i915_adlp_hdmi_suspend(struct hda_codec *codec) argument 2995 i915_adlp_hdmi_resume(struct hda_codec *codec) argument 3038 alloc_intel_hdmi(struct hda_codec *codec) argument 3059 parse_intel_hdmi(struct hda_codec *codec) argument 3078 intel_hsw_common_init(struct hda_codec *codec, hda_nid_t vendor_nid, const int *port_map, int port_num, int dev_num, bool send_silent_stream) argument 3118 patch_i915_hsw_hdmi(struct hda_codec *codec) argument 3124 patch_i915_glk_hdmi(struct hda_codec *codec) argument 3134 patch_i915_icl_hdmi(struct hda_codec *codec) argument 3146 patch_i915_tgl_hdmi(struct hda_codec *codec) argument 3158 patch_i915_adlp_hdmi(struct hda_codec *codec) argument 3181 patch_i915_byt_hdmi(struct hda_codec *codec) argument 3205 patch_i915_cpt_hdmi(struct hda_codec *codec) argument 3219 simple_playback_build_pcms(struct hda_codec *codec) argument 3246 simple_hdmi_unsol_event(struct hda_codec *codec, unsigned int res) argument 3258 simple_playback_build_controls(struct hda_codec *codec) argument 3273 simple_playback_init(struct hda_codec *codec) argument 3289 simple_playback_free(struct hda_codec *codec) argument 3350 nvhdmi_7x_init_2ch(struct hda_codec *codec) argument 3356 nvhdmi_7x_init_8ch(struct hda_codec *codec) argument 3382 simple_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 3415 simple_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 3423 simple_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 3453 patch_simple_hdmi(struct hda_codec *codec, hda_nid_t cvt_nid, hda_nid_t pin_nid) argument 3488 nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec *codec, int channels) argument 3521 nvhdmi_8ch_7x_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 3546 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) argument 3662 patch_nvhdmi_2ch(struct hda_codec *codec) argument 3680 nvhdmi_7x_8ch_build_pcms(struct hda_codec *codec) argument 3691 nvhdmi_7x_8ch_build_controls(struct hda_codec *codec) argument 3722 patch_nvhdmi_8ch_7x(struct hda_codec *codec) argument 3778 nvhdmi_port2pin(struct hda_codec *codec, int port) argument 3790 patch_nvhdmi(struct hda_codec *codec) argument 3824 patch_nvhdmi_legacy(struct hda_codec *codec) argument 3891 tegra_hdmi_set_format(struct hda_codec *codec, hda_nid_t cvt_nid, unsigned int format) argument 3958 tegra_hdmi_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) argument 3977 tegra_hdmi_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) argument 3987 hda_find_pcm_by_type(struct hda_codec *codec, int type) argument 4002 tegra_hdmi_build_pcms(struct hda_codec *codec) argument 4027 tegra_hdmi_init(struct hda_codec *codec) argument 4059 patch_tegra_hdmi(struct hda_codec *codec) argument 4070 patch_tegra234_hdmi(struct hda_codec *codec) argument 4134 atihdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, int dev_id, unsigned char *buf, int *eld_size) argument 4143 atihdmi_pin_setup_infoframe(struct hda_codec *codec, hda_nid_t pin_nid, int dev_id, int ca, int active_channels, int conn_type) argument 4219 struct hda_codec *codec = hdac_to_hda_codec(hdac); local 4255 struct hda_codec *codec = hdac_to_hda_codec(hdac); local 4337 atihdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, int dev_id, bool hbr) argument 4368 atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, hda_nid_t pin_nid, int dev_id, u32 stream_tag, int format) argument 4386 atihdmi_init(struct hda_codec *codec) argument 4421 atihdmi_port2pin(struct hda_codec *codec, int port) argument 4433 patch_atihdmi(struct hda_codec *codec) argument 4492 patch_via_hdmi(struct hda_codec *codec) argument 4497 patch_gf_hdmi(struct hda_codec *codec) argument [all...] |
/linux-master/sound/pci/ac97/ |
H A D | Makefile | 7 snd-ac97-codec-y := ac97_codec.o ac97_pcm.o 8 snd-ac97-codec-$(CONFIG_SND_PROC_FS) += ac97_proc.o 11 obj-$(CONFIG_SND_AC97_CODEC) += snd-ac97-codec.o
|
/linux-master/sound/soc/codecs/ |
H A D | hda.h | 11 #define hda_codec_is_display(codec) \ 12 ((((codec)->core.vendor_id >> 16) & 0xFFFF) == 0x8086) 17 int hda_codec_probe_complete(struct hda_codec *codec);
|
/linux-master/drivers/media/pci/zoran/ |
H A D | videocodec.c | 5 * Interface for MJPEG (and maybe later MPEG/WAVELETS) codec's 20 struct videocodec *codec; member in struct:attached_list 25 const struct videocodec *codec; member in struct:codec_list 42 struct videocodec *codec; local 63 if ((master->flags & h->codec->flags) == master->flags) { 64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); 66 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); 67 if (!codec) 70 res = strlen(codec 109 videocodec_detach(struct videocodec *codec) argument 167 videocodec_register(const struct videocodec *codec) argument 202 videocodec_unregister(const struct videocodec *codec) argument [all...] |
/linux-master/sound/hda/ |
H A D | hdac_regmap.c | 25 static int codec_pm_lock(struct hdac_device *codec) argument 27 return snd_hdac_keep_power_up(codec); 30 static void codec_pm_unlock(struct hdac_device *codec, int lock) argument 33 snd_hdac_power_down_pm(codec); 40 struct hdac_device *codec = dev_to_hdac_dev(dev); local 45 return !codec->cache_coef; 67 struct hdac_device *codec = dev_to_hdac_dev(dev); local 72 snd_array_for_each(&codec->vendor_verbs, i, v) { 77 if (codec->caps_overwriting) 85 return codec 116 struct hdac_device *codec = dev_to_hdac_dev(dev); local 156 hda_reg_read_stereo_amp(struct hdac_device *codec, unsigned int reg, unsigned int *val) argument 174 hda_reg_write_stereo_amp(struct hdac_device *codec, unsigned int reg, unsigned int val) argument 204 hda_reg_read_coef(struct hdac_device *codec, unsigned int reg, unsigned int *val) argument 222 hda_reg_write_coef(struct hdac_device *codec, unsigned int reg, unsigned int val) argument 242 struct hdac_device *codec = context; local 281 struct hdac_device *codec = context; local 374 snd_hdac_regmap_init(struct hdac_device *codec) argument 391 snd_hdac_regmap_exit(struct hdac_device *codec) argument 408 snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec, unsigned int verb) argument 425 reg_raw_write(struct hdac_device *codec, unsigned int reg, unsigned int val) argument 459 snd_hdac_regmap_write_raw(struct hdac_device *codec, unsigned int reg, unsigned int val) argument 466 reg_raw_read(struct hdac_device *codec, unsigned int reg, unsigned int *val, bool uncached) argument 480 __snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg, unsigned int *val, bool uncached) argument 495 snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg, unsigned int *val) argument 505 snd_hdac_regmap_read_raw_uncached(struct hdac_device *codec, unsigned int reg, unsigned int *val) argument 511 reg_raw_update(struct hdac_device *codec, unsigned int reg, unsigned int mask, unsigned int val) argument 549 snd_hdac_regmap_update_raw(struct hdac_device *codec, unsigned int reg, unsigned int mask, unsigned int val) argument 556 reg_raw_update_once(struct hdac_device *codec, unsigned int reg, unsigned int mask, unsigned int val) argument 583 snd_hdac_regmap_update_raw_once(struct hdac_device *codec, unsigned int reg, unsigned int mask, unsigned int val) argument 594 snd_hdac_regmap_sync(struct hdac_device *codec) argument [all...] |
H A D | local.h | 9 #define get_wcaps(codec, nid) \ 10 snd_hdac_read_parm(codec, nid, AC_PAR_AUDIO_WIDGET_CAP) 31 int hda_widget_sysfs_init(struct hdac_device *codec); 32 int hda_widget_sysfs_reinit(struct hdac_device *codec, hda_nid_t start_nid, 34 void hda_widget_sysfs_exit(struct hdac_device *codec); 36 int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec); 38 struct hdac_device *codec); 43 int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd,
|
H A D | hdac_sysfs.c | 24 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 25 return sysfs_emit(buf, "0x%x\n", codec->type); \ 34 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 36 codec->type ? codec->type : ""); \ 89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid, 91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid, 114 struct hdac_device *codec; local 119 nid = get_codec_nid(kobj, &codec); 122 return wid_attr->show(codec, ni 130 struct hdac_device *codec; local 161 caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 167 pin_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 176 pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 188 has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) argument 201 pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 210 pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 219 amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 228 amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 237 power_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 246 gpio_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 253 connections_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 320 widget_tree_free(struct hdac_device *codec) argument 363 widget_tree_create(struct hdac_device *codec) argument 401 hda_widget_sysfs_init(struct hdac_device *codec) argument 418 hda_widget_sysfs_exit(struct hdac_device *codec) argument 424 hda_widget_sysfs_reinit(struct hdac_device *codec, hda_nid_t start_nid, int num_nodes) argument [all...] |
/linux-master/sound/pci/ali5451/ |
H A D | ali5451.c | 141 #define ALI_REG(codec, x) ((codec)->port + x) 180 struct snd_ali *codec; member in struct:snd_ali_voice 264 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, argument 267 return (unsigned int)inl(ALI_REG(codec, port)); 270 static inline void snd_ali_5451_poke(struct snd_ali *codec, argument 274 outl((unsigned int)val, ALI_REG(codec, port)); 277 static int snd_ali_codec_ready(struct snd_ali *codec, argument 286 res = snd_ali_5451_peek(codec,port); 294 snd_ali_5451_poke(codec, por 299 snd_ali_stimer_ready(struct snd_ali *codec) argument 320 snd_ali_codec_poke(struct snd_ali *codec,int secondary, unsigned short reg, unsigned short val) argument 352 snd_ali_codec_peek(struct snd_ali *codec, int secondary, unsigned short reg) argument 391 struct snd_ali *codec = ac97->private_data; local 407 struct snd_ali *codec = ac97->private_data; local 417 snd_ali_reset_5451(struct snd_ali *codec) argument 458 snd_ali_enable_special_channel(struct snd_ali *codec, unsigned int channel) argument 468 snd_ali_disable_special_channel(struct snd_ali *codec, unsigned int channel) argument 478 snd_ali_enable_address_interrupt(struct snd_ali *codec) argument 488 snd_ali_disable_address_interrupt(struct snd_ali *codec) argument 498 snd_ali_disable_voice_irq(struct snd_ali *codec, unsigned int channel) argument 512 snd_ali_alloc_pcm_channel(struct snd_ali *codec, int channel) argument 531 snd_ali_find_free_channel(struct snd_ali * codec, int rec) argument 580 snd_ali_free_channel_pcm(struct snd_ali *codec, int channel) argument 600 snd_ali_stop_voice(struct snd_ali *codec, unsigned int channel) argument 612 snd_ali_delay(struct snd_ali *codec,int interval) argument 627 snd_ali_detect_spdif_rate(struct snd_ali *codec) argument 683 snd_ali_get_spdif_in_rate(struct snd_ali *codec) argument 708 snd_ali_enable_spdif_in(struct snd_ali *codec) argument 723 snd_ali_disable_spdif_in(struct snd_ali *codec) argument 735 snd_ali_set_spdif_out_rate(struct snd_ali *codec, unsigned int rate) argument 758 snd_ali_enable_spdif_out(struct snd_ali *codec) argument 791 snd_ali_enable_spdif_chnout(struct snd_ali *codec) argument 809 snd_ali_disable_spdif_chnout(struct snd_ali *codec) argument 820 snd_ali_disable_spdif_out(struct snd_ali *codec) argument 830 snd_ali_update_ptr(struct snd_ali *codec, int channel) argument 880 struct snd_ali *codec = dev_id; local 906 snd_ali_alloc_voice(struct snd_ali * codec, int type, int rec, int channel) argument 936 snd_ali_free_voice(struct snd_ali * codec, struct snd_ali_voice *pvoice) argument 961 snd_ali_clear_voices(struct snd_ali *codec, unsigned int v_min, unsigned int v_max) 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) argument 1068 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1132 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1162 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1176 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1269 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1358 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1380 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1457 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1494 struct snd_ali *codec = snd_pcm_substream_chip(substream); local 1615 struct snd_ali *codec = pcm->private_data; local 1620 snd_ali_pcm(struct snd_ali *codec, int device, struct ali_pcm_description *desc) argument 1669 snd_ali_build_pcms(struct snd_ali *codec) argument 1691 struct snd_ali *codec = kcontrol->private_data; local 1719 struct snd_ali *codec = kcontrol->private_data; local 1784 snd_ali_mixer(struct snd_ali *codec) argument 1904 struct snd_ali *codec = card->private_data; local 1912 snd_ali_chip_init(struct snd_ali *codec) argument 1976 struct snd_ali *codec = entry->private_data; local 1982 snd_ali_proc_init(struct snd_ali *codec) argument 1987 snd_ali_resources(struct snd_ali *codec) argument 2014 struct snd_ali *codec = card->private_data; local 2109 struct snd_ali *codec; local [all...] |
/linux-master/include/sound/ |
H A D | hda_codec.h | 32 * codec bus 52 /* status for codec/controller */ 64 unsigned int mixer_assigned; /* codec addr for mixer name */ 71 * codec preset 105 int (*build_controls)(struct hda_codec *codec); 106 int (*build_pcms)(struct hda_codec *codec); 107 int (*init)(struct hda_codec *codec); 108 void (*free)(struct hda_codec *codec); 109 void (*unsol_event)(struct hda_codec *codec, unsigned int res); 110 void (*set_power_state)(struct hda_codec *codec, hda_nid_ 169 struct hda_codec *codec; member in struct:hda_pcm 326 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, int flags, unsigned int verb, unsigned int parm) argument 334 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, unsigned int verb, unsigned int parm) argument 347 snd_hda_get_num_conns(struct hda_codec *codec, hda_nid_t nid) argument 380 snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, int flags, unsigned int verb, unsigned int parm) argument 482 hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) argument 503 snd_hda_codec_set_power_save(struct hda_codec *codec, int delay) argument 507 hda_codec_need_resume(struct hda_codec *codec) argument 528 snd_hda_codec_load_dsp_prepare(struct hda_codec *codec, unsigned int format, unsigned int size, struct snd_dma_buffer *bufp) argument 535 snd_hda_codec_load_dsp_trigger(struct hda_codec *codec, bool start) argument 537 snd_hda_codec_load_dsp_cleanup(struct hda_codec *codec, struct snd_dma_buffer *dmab) argument [all...] |
H A D | hda_regmap.h | 15 int snd_hdac_regmap_init(struct hdac_device *codec); 16 void snd_hdac_regmap_exit(struct hdac_device *codec); 17 int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec, 19 int snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg, 21 int snd_hdac_regmap_read_raw_uncached(struct hdac_device *codec, 23 int snd_hdac_regmap_write_raw(struct hdac_device *codec, unsigned int reg, 25 int snd_hdac_regmap_update_raw(struct hdac_device *codec, unsigned int reg, 27 int snd_hdac_regmap_update_raw_once(struct hdac_device *codec, unsigned int reg, 29 void snd_hdac_regmap_sync(struct hdac_device *codec); 34 * @verb: codec ver 79 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int val) argument 97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int mask, unsigned int val) argument 115 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int *val) argument 136 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, int ch, int dir, int idx) argument 160 snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, int ch, int dir, int idx, int mask, int val) argument 181 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx) argument 205 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx, int mask, int val) argument 219 snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) argument [all...] |
/linux-master/sound/aoa/codecs/ |
H A D | Makefile | 2 snd-aoa-codec-onyx-objs := onyx.o 3 snd-aoa-codec-tas-objs := tas.o 4 snd-aoa-codec-toonie-objs := toonie.o 6 obj-$(CONFIG_SND_AOA_ONYX) += snd-aoa-codec-onyx.o 7 obj-$(CONFIG_SND_AOA_TAS) += snd-aoa-codec-tas.o 8 obj-$(CONFIG_SND_AOA_TOONIE) += snd-aoa-codec-toonie.o
|
H A D | toonie.c | 3 * Apple Onboard Audio driver for Toonie codec 7 * This is a driver for the toonie codec chip. This chip is present 15 MODULE_DESCRIPTION("toonie codec driver for snd-aoa"); 21 #define PFX "snd-aoa-codec-toonie: " 24 struct aoa_codec codec; member in struct:toonie 26 #define codec_to_toonie(c) container_of(c, struct toonie, codec) 85 static int toonie_init_codec(struct aoa_codec *codec) argument 87 struct toonie *toonie = codec_to_toonie(codec); 90 if (toonie->codec.connected != 1) 98 if (toonie->codec 109 toonie_exit_codec(struct aoa_codec *codec) argument [all...] |
/linux-master/drivers/media/test-drivers/vicodec/ |
H A D | Makefile | 2 vicodec-objs := vicodec-core.o codec-fwht.o codec-v4l2-fwht.o
|
/linux-master/sound/aoa/core/ |
H A D | core.c | 35 printk(KERN_ERR "snd-aoa: fabric didn't like codec %s\n", 45 printk(KERN_ERR "snd-aoa: codec %s didn't init\n", c->name); 57 int aoa_codec_register(struct aoa_codec *codec) argument 62 * will want to have this codec, so propagate error 65 err = attach_codec_to_fabric(codec); 67 list_add(&codec->list, &codec_list); 72 void aoa_codec_unregister(struct aoa_codec *codec) argument 74 list_del(&codec->list); 75 if (codec->fabric && codec 133 aoa_fabric_unlink_codec(struct aoa_codec *codec) argument [all...] |