Home
last modified time | relevance | path

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

12345678910>>...40

/kernel/linux/linux-6.6/sound/pci/hda/
H A Dhda_jack.c21 * @codec: the HDA codec
26 * detection is prohibited in the codec level, the pin config has
29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument
31 if (codec->no_jack_detect) in is_jack_detectable()
33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable()
35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable()
38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable()
39 !codec->jackpoll_interval) in is_jack_detectable()
46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_ argument
71 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_tbl_get_mst() argument
92 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag, int dev_id) snd_hda_jack_tbl_get_from_tag() argument
108 any_jack_tbl_get_from_nid(struct hda_codec *codec, hda_nid_t nid) any_jack_tbl_get_from_nid() argument
128 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_tbl_new() argument
161 snd_hda_jack_tbl_disconnect(struct hda_codec *codec) snd_hda_jack_tbl_disconnect() argument
172 snd_hda_jack_tbl_clear(struct hda_codec *codec) snd_hda_jack_tbl_clear() argument
195 jack_detect_update(struct hda_codec *codec, struct hda_jack_tbl *jack) jack_detect_update() argument
233 snd_hda_jack_set_dirty_all(struct hda_codec *codec) snd_hda_jack_set_dirty_all() argument
253 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_pin_sense() argument
274 snd_hda_jack_detect_state_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_detect_state_mst() 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) snd_hda_jack_detect_enable_callback_mst() argument
365 snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_detect_enable() argument
383 snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid, hda_nid_t gating_nid) snd_hda_jack_set_gating_jack() 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) snd_hda_jack_bind_keymap() argument
443 snd_hda_jack_set_button_state(struct hda_codec *codec, hda_nid_t jack_nid, int button_state) snd_hda_jack_set_button_state() argument
469 snd_hda_jack_report_sync(struct hda_codec *codec) snd_hda_jack_report_sync() argument
502 get_input_jack_type(struct hda_codec *codec, hda_nid_t nid) get_input_jack_type() 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) snd_hda_jack_add_kctl_mst() argument
586 add_jack_kctl(struct hda_codec *codec, hda_nid_t nid, const struct auto_pin_cfg *cfg, const char *base_name) add_jack_kctl() argument
627 snd_hda_jack_add_kctls(struct hda_codec *codec, const struct auto_pin_cfg *cfg) snd_hda_jack_add_kctls() argument
684 call_jack_callback(struct hda_codec *codec, unsigned int res, struct hda_jack_tbl *jack) call_jack_callback() argument
713 snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res) snd_hda_jack_unsol_event() argument
750 snd_hda_jack_poll_all(struct hda_codec *codec) snd_hda_jack_poll_all() argument
[all...]
H A Dpatch_cs8409.c22 static int cs8409_parse_auto_config(struct hda_codec *codec) in cs8409_parse_auto_config() argument
24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config()
28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config()
32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config()
45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config()
55 static struct cs8409_spec *cs8409_alloc_spec(struct hda_codec *codec) in cs8409_alloc_spec() argument
62 codec->spec = spec; in cs8409_alloc_spec()
63 spec->codec = codec; in cs8409_alloc_spec()
64 codec in cs8409_alloc_spec()
72 cs8409_vendor_coef_get(struct hda_codec *codec, unsigned int idx) cs8409_vendor_coef_get() argument
78 cs8409_vendor_coef_set(struct hda_codec *codec, unsigned int idx, unsigned int coef) cs8409_vendor_coef_set() argument
91 cs8409_disable_i2c_clock(struct hda_codec *codec) cs8409_disable_i2c_clock() argument
120 cs8409_enable_i2c_clock(struct hda_codec *codec) cs8409_enable_i2c_clock() argument
146 cs8409_i2c_wait_complete(struct hda_codec *codec) cs8409_i2c_wait_complete() argument
159 cs8409_set_i2c_dev_addr(struct hda_codec *codec, unsigned int addr) cs8409_set_i2c_dev_addr() argument
178 struct hda_codec *codec = scodec->codec; cs8409_i2c_set_page() local
199 struct hda_codec *codec = scodec->codec; cs8409_i2c_read() local
242 struct hda_codec *codec = scodec->codec; cs8409_i2c_bulk_read() local
287 struct hda_codec *codec = scodec->codec; cs8409_i2c_write() local
328 struct hda_codec *codec = scodec->codec; cs8409_i2c_bulk_write() local
361 cs8409_init(struct hda_codec *codec) cs8409_init() argument
371 cs8409_build_controls(struct hda_codec *codec) cs8409_build_controls() argument
384 cs8409_enable_ur(struct hda_codec *codec, int flag) cs8409_enable_ur() argument
400 cs8409_fix_caps(struct hda_codec *codec, unsigned int nid) cs8409_fix_caps() argument
425 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs8409_spk_sw_gpio_get() local
435 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cs8409_spk_sw_gpio_put() local
486 struct hda_codec *codec = snd_kcontrol_chip(kctrl); cs42l42_volume_get() local
545 struct hda_codec *codec = snd_kcontrol_chip(kctrl); cs42l42_volume_put() local
576 cs42l42_playback_pcm_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) cs42l42_playback_pcm_hook() argument
605 cs42l42_capture_pcm_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) cs42l42_capture_pcm_hook() argument
871 struct hda_codec *codec = cs42l42->codec; cs42l42_resume() local
915 struct hda_codec *codec = cs42l42->codec; cs42l42_suspend() local
953 cs8409_free(struct hda_codec *codec) cs8409_free() argument
976 cs8409_cs42l42_jack_unsol_event(struct hda_codec *codec, unsigned int res) cs8409_cs42l42_jack_unsol_event() argument
1008 cs8409_cs42l42_suspend(struct hda_codec *codec) cs8409_cs42l42_suspend() argument
1033 cs8409_cs42l42_hw_init(struct hda_codec *codec) cs8409_cs42l42_hw_init() argument
1091 struct hda_codec *codec = container_of(dev, struct hda_codec, core); cs8409_cs42l42_exec_verb() local
1123 cs8409_cs42l42_fixups(struct hda_codec *codec, const struct hda_fixup *fix, int action) cs8409_cs42l42_fixups() argument
1243 dolphin_jack_unsol_event(struct hda_codec *codec, unsigned int res) dolphin_jack_unsol_event() argument
1279 dolphin_hw_init(struct hda_codec *codec) dolphin_hw_init() argument
1321 struct hda_codec *codec = container_of(dev, struct hda_codec, core); dolphin_exec_verb() local
1356 dolphin_fixups(struct hda_codec *codec, const struct hda_fixup *fix, int action) dolphin_fixups() argument
1448 patch_cs8409(struct hda_codec *codec) patch_cs8409() argument
[all...]
H A Dpatch_analog.c50 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() argument
52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls()
61 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls()
65 err = snd_hda_ctl_add(codec, 0, kctl); in create_beep_ctls()
72 #define create_beep_ctls(codec) 0
76 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write() argument
79 if (snd_hda_query_pin_caps(codec, front) & AC_PINCAP_EAPD) in ad198x_power_eapd_write()
80 snd_hda_codec_write(codec, front, 0, AC_VERB_SET_EAPD_BTLENABLE, in ad198x_power_eapd_write()
81 !codec->inv_eapd ? 0x00 : 0x02); in ad198x_power_eapd_write()
82 if (snd_hda_query_pin_caps(codec, h in ad198x_power_eapd_write()
87 ad198x_power_eapd(struct hda_codec *codec) ad198x_power_eapd() argument
115 ad198x_suspend(struct hda_codec *codec) ad198x_suspend() argument
126 struct hda_codec *codec = private_data; ad_vmaster_eapd_hook() local
142 ad198x_auto_build_controls(struct hda_codec *codec) ad198x_auto_build_controls() argument
168 ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) ad198x_parse_auto_config() argument
196 alloc_ad_spec(struct hda_codec *codec) alloc_ad_spec() argument
214 ad_fixup_inv_jack_detect(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad_fixup_inv_jack_detect() argument
228 ad1986a_fixup_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1986a_fixup_eapd() argument
241 ad1986a_fixup_eapd_mix_in(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1986a_fixup_eapd_mix_in() argument
382 patch_ad1986a(struct hda_codec *codec) patch_ad1986a() argument
446 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_info() local
463 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_get() local
473 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_put() local
497 ad1983_add_spdif_mux_ctl(struct hda_codec *codec) ad1983_add_spdif_mux_ctl() argument
514 patch_ad1983(struct hda_codec *codec) patch_ad1983() argument
552 ad1981_fixup_hp_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1981_fixup_hp_eapd() argument
566 ad1981_fixup_amp_override(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1981_fixup_amp_override() argument
604 patch_ad1981(struct hda_codec *codec) patch_ad1981() argument
726 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_info() local
741 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_get() local
751 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_put() local
783 ad1988_auto_init(struct hda_codec *codec) ad1988_auto_init() argument
804 ad1988_add_spdif_mux_ctl(struct hda_codec *codec) ad1988_add_spdif_mux_ctl() argument
896 patch_ad1988(struct hda_codec *codec) patch_ad1988() argument
960 ad1884_fixup_amp_override(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1884_fixup_amp_override() argument
974 struct hda_codec *codec = private_data; ad1884_vmaster_hp_gpio_hook() local
984 ad1884_fixup_hp_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1884_fixup_hp_eapd() argument
1009 ad1884_fixup_thinkpad(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1884_fixup_thinkpad() argument
1076 patch_ad1884(struct hda_codec *codec) patch_ad1884() argument
1122 patch_ad1882(struct hda_codec *codec) patch_ad1882() argument
[all...]
H A Dpatch_via.c5 * 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) in via_new_spec() argument
125 get_codec_type(struct hda_codec *codec) get_codec_type() argument
184 vt1708_stop_hp_work(struct hda_codec *codec) vt1708_stop_hp_work() argument
197 vt1708_update_hp_work(struct hda_codec *codec) vt1708_update_hp_work() argument
222 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); via_pin_power_ctl_get() local
232 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); via_pin_power_ctl_put() local
277 auto_parse_beep(struct hda_codec *codec) auto_parse_beep() argument
292 is_aa_path_mute(struct hda_codec *codec) is_aa_path_mute() argument
313 __analog_low_current_mode(struct hda_codec *codec, bool force) __analog_low_current_mode() argument
362 analog_low_current_mode(struct hda_codec *codec) analog_low_current_mode() argument
367 via_playback_pcm_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) via_playback_pcm_hook() argument
376 via_free(struct hda_codec *codec) via_free() argument
383 via_suspend(struct hda_codec *codec) via_suspend() argument
395 via_resume(struct hda_codec *codec) via_resume() argument
406 via_check_power_status(struct hda_codec *codec, hda_nid_t nid) via_check_power_status() argument
439 vt1708_set_pinconfig_connect(struct hda_codec *codec, hda_nid_t nid) vt1708_set_pinconfig_connect() argument
457 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); vt1708_jack_detect_get() local
469 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); vt1708_jack_detect_put() local
509 via_parse_auto_config(struct hda_codec *codec) via_parse_auto_config() argument
538 via_init(struct hda_codec *codec) via_init() argument
550 vt1708_build_controls(struct hda_codec *codec) vt1708_build_controls() argument
562 vt1708_build_pcms(struct hda_codec *codec) vt1708_build_pcms() argument
589 patch_vt1708(struct hda_codec *codec) patch_vt1708() argument
643 patch_vt1709(struct hda_codec *codec) patch_vt1709() argument
667 patch_vt1708B(struct hda_codec *codec) patch_vt1708B() argument
703 override_mic_boost(struct hda_codec *codec, hda_nid_t pin, int offset, int num_steps, int step_size) override_mic_boost() argument
715 patch_vt1708S(struct hda_codec *codec) patch_vt1708S() argument
762 patch_vt1702(struct hda_codec *codec) patch_vt1702() argument
811 add_secret_dac_path(struct hda_codec *codec) add_secret_dac_path() argument
845 patch_vt1718S(struct hda_codec *codec) patch_vt1718S() argument
891 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); vt1716s_dmic_get() local
905 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); vt1716s_dmic_put() local
942 patch_vt1716S(struct hda_codec *codec) patch_vt1716S() argument
1010 via_fixup_intmic_boost(struct hda_codec *codec, const struct hda_fixup *fix, int action) via_fixup_intmic_boost() argument
1017 via_fixup_power_save(struct hda_codec *codec, const struct hda_fixup *fix, int action) via_fixup_power_save() argument
1055 fix_vt1802_connections(struct hda_codec *codec) fix_vt1802_connections() argument
1065 patch_vt2002P(struct hda_codec *codec) patch_vt2002P() argument
1115 patch_vt1812(struct hda_codec *codec) patch_vt1812() argument
1158 patch_vt3476(struct hda_codec *codec) patch_vt3476() 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) in cx_auto_parse_beep() argument
83 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep()
86 for_each_hda_codec_node(nid, codec) in cx_auto_parse_beep()
87 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) in cx_auto_parse_beep()
92 #define cx_auto_parse_beep(codec) 0
100 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd() argument
102 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd()
105 for_each_hda_codec_node(nid, codec) { in cx_auto_parse_eapd()
106 if (get_wcaps_type(get_wcaps(codec, ni in cx_auto_parse_eapd()
125 cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, bool on) cx_auto_turn_eapd() argument
140 struct hda_codec *codec = private_data; cx_auto_vmaster_hook() local
150 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cx_auto_vmaster_mute_led() local
159 cxt_init_gpio_led(struct hda_codec *codec) cxt_init_gpio_led() argument
174 cx_fixup_headset_recog(struct hda_codec *codec) cx_fixup_headset_recog() argument
195 cx_auto_init(struct hda_codec *codec) cx_auto_init() argument
211 cx_auto_shutdown(struct hda_codec *codec) cx_auto_shutdown() argument
220 cx_auto_free(struct hda_codec *codec) cx_auto_free() argument
226 cx_process_headset_plugin(struct hda_codec *codec) cx_process_headset_plugin() argument
253 cx_update_headset_mic_vref(struct hda_codec *codec, unsigned int res) cx_update_headset_mic_vref() argument
287 cx_jack_unsol_event(struct hda_codec *codec, unsigned int res) cx_jack_unsol_event() argument
298 cx_auto_suspend(struct hda_codec *codec) cx_auto_suspend() argument
353 cxt_fixup_stereo_dmic(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_stereo_dmic() argument
360 cxt5066_increase_mic_boost(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt5066_increase_mic_boost() argument
373 cxt_update_headset_mode(struct hda_codec *codec) cxt_update_headset_mode() argument
400 cxt_update_headset_mode_hook(struct hda_codec *codec, struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) cxt_update_headset_mode_hook() argument
407 cxt_fixup_headphone_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_headphone_mic() argument
428 cxt_fixup_headset_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_headset_mic() argument
462 olpc_xo_update_mic_boost(struct hda_codec *codec) olpc_xo_update_mic_boost() argument
477 olpc_xo_update_mic_pins(struct hda_codec *codec) olpc_xo_update_mic_pins() argument
532 olpc_xo_automic(struct hda_codec *codec, struct hda_jack_callback *jack) olpc_xo_automic() argument
546 olpc_xo_capture_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) olpc_xo_capture_hook() argument
571 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_mode_get() local
580 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_mode_put() local
596 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_bias_enum_get() local
611 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_dc_bias_enum_put() local
652 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); olpc_xo_mic_boost_put() local
660 cxt_fixup_olpc_xo(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_olpc_xo() argument
691 cxt_fixup_mute_led_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_mute_led_eapd() argument
707 cxt_fixup_cap_mix_amp(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_cap_mix_amp() argument
721 cxt_fixup_cap_mix_amp_5047(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_cap_mix_amp_5047() argument
731 cxt_fixup_hp_gate_mic_jack(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_hp_gate_mic_jack() argument
743 cxt_update_gpio_led(struct hda_codec *codec, unsigned int mask, bool led_on) cxt_update_gpio_led() argument
767 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cxt_gpio_mute_update() local
778 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); cxt_gpio_micmute_update() local
785 cxt_setup_mute_led(struct hda_codec *codec, unsigned int mute, unsigned int mic_mute) cxt_setup_mute_led() argument
802 cxt_fixup_mute_led_gpio(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_mute_led_gpio() argument
809 cxt_fixup_hp_zbook_mute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) cxt_fixup_hp_zbook_mute_led() argument
1136 add_cx5051_fake_mutes(struct hda_codec *codec) add_cx5051_fake_mutes() argument
1151 patch_conexant_auto(struct hda_codec *codec) patch_conexant_auto() argument
[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, in print_nid_array()
75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms()
80 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in print_nid_pcms()
94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps()
97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps()
112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() argument
126 if (snd_hda_get_raw_connections(codec, ni in is_stereo_amps()
47 print_nid_array(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, struct snd_array *array) print_nid_array() argument
74 print_nid_pcms(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_nid_pcms() argument
93 print_amp_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir) print_amp_caps() 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) print_amp_vals() argument
199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_pcm_caps() argument
304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) print_pin_caps() argument
400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) print_pin_ctls() argument
438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_vol_knob() argument
450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) print_audio_io() argument
468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_digital_conv() argument
512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_power_state() argument
553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_unsol_cap() argument
564 can_dump_coef(struct hda_codec *codec) can_dump_coef() argument
573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_proc_caps() 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) print_conn_list() argument
638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_gpio() argument
682 print_dpmst_connections(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dev_num) print_dpmst_connections() argument
714 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_device_list() argument
748 print_codec_core_info(struct hdac_device *codec, struct snd_info_buffer *buffer) print_codec_core_info() argument
777 struct hda_codec *codec = entry->private_data; print_codec_info() local
941 snd_hda_codec_proc_new(struct hda_codec *codec) snd_hda_codec_proc_new() argument
[all...]
H A Dhda_sysfs.c3 * sysfs interface for HD-audio codec
34 struct hda_codec *codec = dev_get_drvdata(dev); in power_on_acct_show() local
35 snd_hda_update_power_acct(codec); in power_on_acct_show()
36 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(codec->power_on_acct)); in power_on_acct_show()
43 struct hda_codec *codec = dev_get_drvdata(dev); in power_off_acct_show() local
44 snd_hda_update_power_acct(codec); in power_off_acct_show()
45 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(codec->power_off_acct)); in power_off_acct_show()
57 struct hda_codec *codec = dev_get_drvdata(dev); \
58 return sysfs_emit(buf, "0x%x\n", codec->field); \
66 struct hda_codec *codec
80 pin_configs_show(struct hda_codec *codec, struct snd_array *list, char *buf) pin_configs_show() argument
99 struct hda_codec *codec = dev_get_drvdata(dev); init_pin_configs_show() local
107 struct hda_codec *codec = dev_get_drvdata(dev); driver_pin_configs_show() local
117 clear_codec(struct hda_codec *codec) clear_codec() argument
130 reconfig_codec(struct hda_codec *codec) reconfig_codec() argument
220 struct hda_codec *codec = dev_get_drvdata(dev); init_verbs_show() local
232 parse_init_verbs(struct hda_codec *codec, const char *buf) parse_init_verbs() argument
258 struct hda_codec *codec = dev_get_drvdata(dev); init_verbs_store() local
269 struct hda_codec *codec = dev_get_drvdata(dev); hints_show() local
281 get_hint(struct hda_codec *codec, const char *key) get_hint() argument
308 parse_hints(struct hda_codec *codec, const char *buf) parse_hints() argument
363 struct hda_codec *codec = dev_get_drvdata(dev); hints_store() local
374 struct hda_codec *codec = dev_get_drvdata(dev); user_pin_configs_show() local
378 parse_user_pin_configs(struct hda_codec *codec, const char *buf) parse_user_pin_configs() argument
396 struct hda_codec *codec = dev_get_drvdata(dev); user_pin_configs_store() local
418 snd_hda_get_hint(struct hda_codec *codec, const char *key) snd_hda_get_hint() argument
434 snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) snd_hda_get_bool_hint() argument
470 snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) snd_hda_get_int_hint() argument
541 struct hda_codec *codec; parse_codec_mode() local
715 struct hda_codec *codec; snd_hda_load_patch() local
771 snd_hda_sysfs_init(struct hda_codec *codec) snd_hda_sysfs_init() argument
781 snd_hda_sysfs_clear(struct hda_codec *codec) snd_hda_sysfs_clear() argument
[all...]
H A Dhda_auto_parser.c56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument
63 nid_has_volume(codec, nid, HDA_INPUT); in add_auto_cfg_input_pin()
104 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity() argument
107 unsigned int pincap = snd_hda_query_pin_caps(codec, pin); in check_pincap_validity()
125 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic() argument
137 def_conf = snd_hda_codec_get_pincfg(codec, item->pin); in can_be_headset_mic()
168 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg() argument
180 if (!snd_hda_get_int_hint(codec, "parser_flags", &i)) in snd_hda_parse_pin_defcfg()
190 for_each_hda_codec_node(nid, codec) { in snd_hda_parse_pin_defcfg()
191 unsigned int wid_caps = get_wcaps(codec, ni in snd_hda_parse_pin_defcfg()
480 hda_get_input_pin_label(struct hda_codec *codec, const struct auto_pin_cfg_item *item, hda_nid_t pin, bool check_location) hda_get_input_pin_label() argument
532 check_mic_location_need(struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input) check_mic_location_need() argument
569 hda_get_autocfg_input_label(struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input) hda_get_autocfg_input_label() argument
620 check_output_pfx(struct hda_codec *codec, hda_nid_t nid) check_output_pfx() argument
635 get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, const hda_nid_t *pins, int num_pins) get_hp_label_index() 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) fill_audio_out_name() 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) snd_hda_get_pin_label() argument
776 snd_hda_add_verbs(struct hda_codec *codec, const struct hda_verb *list) snd_hda_add_verbs() argument
792 snd_hda_apply_verbs(struct hda_codec *codec) snd_hda_apply_verbs() argument
807 snd_hda_apply_pincfgs(struct hda_codec *codec, const struct hda_pintbl *cfg) snd_hda_apply_pincfgs() argument
815 set_pin_targets(struct hda_codec *codec, const struct hda_pintbl *cfg) set_pin_targets() argument
822 __snd_hda_apply_fixup(struct hda_codec *codec, int id, int action, int depth) __snd_hda_apply_fixup() argument
880 snd_hda_apply_fixup(struct hda_codec *codec, int action) snd_hda_apply_fixup() argument
889 pin_config_match(struct hda_codec *codec, const struct hda_pintbl *pins, bool match_all_pins) pin_config_match() 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) snd_hda_pick_pin_fixup() 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) snd_hda_pick_fixup() argument
[all...]
H A Dhda_generic.c105 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() argument
107 struct hda_gen_spec *spec = codec->spec; in parse_user_hints()
110 val = snd_hda_get_bool_hint(codec, "jack_detect"); in parse_user_hints()
112 codec->no_jack_detect = !val; in parse_user_hints()
113 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); in parse_user_hints()
115 codec->inv_jack_detect = !!val; in parse_user_hints()
116 val = snd_hda_get_bool_hint(codec, "trigger_sense"); in parse_user_hints()
118 codec->no_trigger_sense = !val; in parse_user_hints()
119 val = snd_hda_get_bool_hint(codec, "inv_eapd"); in parse_user_hints()
121 codec in parse_user_hints()
210 restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) restore_pin_ctl() argument
216 set_pin_target(struct hda_codec *codec, hda_nid_t pin, unsigned int val, bool do_write) set_pin_target() argument
228 set_pin_targets(struct hda_codec *codec, int num_pins, hda_nid_t *pins, unsigned int val) set_pin_targets() argument
256 get_nid_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid) get_nid_path() argument
287 snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) snd_hda_get_path_idx() argument
308 snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) snd_hda_get_path_from_idx() argument
319 is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) is_dac_already_used() argument
333 is_reachable_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid) is_reachable_path() argument
345 is_ctl_used(struct hda_codec *codec, unsigned int val, int type) is_ctl_used() argument
360 is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int type) is_ctl_associated() argument
367 print_nid_path(struct hda_codec *codec, const char *pfx, struct nid_path *path) print_nid_path() argument
384 __parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid, struct nid_path *path, int depth) __parse_nid_path() argument
454 snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid, struct nid_path *path) snd_hda_parse_nid_path() argument
477 snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid) snd_hda_add_new_path() argument
504 invalidate_nid_path(struct hda_codec *codec, int idx) invalidate_nid_path() argument
513 get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) get_preferred_dac() argument
527 look_for_dac(struct hda_codec *codec, hda_nid_t pin, bool is_digital) look_for_dac() argument
555 same_amp_caps(struct hda_codec *codec, hda_nid_t nid1, hda_nid_t nid2, int dir) same_amp_caps() argument
565 look_for_out_mute_nid(struct hda_codec *codec, struct nid_path *path) look_for_out_mute_nid() argument
581 look_for_out_vol_nid(struct hda_codec *codec, struct nid_path *path) look_for_out_vol_nid() argument
602 has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) has_amp_in() argument
616 has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) has_amp_out() argument
630 is_active_nid(struct hda_codec *codec, hda_nid_t nid, unsigned int dir, unsigned int idx) is_active_nid() argument
669 get_amp_val_to_activate(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int caps, bool enable) get_amp_val_to_activate() argument
687 is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) is_stereo_amps() argument
704 init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) init_amp() argument
716 update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, unsigned int mask, unsigned int val) update_amp() argument
730 get_amp_mask_to_modify(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, unsigned int caps) get_amp_mask_to_modify() argument
748 activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int idx_to_check, bool enable) activate_amp() argument
764 check_and_activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int idx_to_check, bool enable) check_and_activate_amp() argument
774 activate_amp_out(struct hda_codec *codec, struct nid_path *path, int i, bool enable) activate_amp_out() argument
782 activate_amp_in(struct hda_codec *codec, struct nid_path *path, int i, bool enable, bool add_aamix) activate_amp_in() argument
823 path_power_update(struct hda_codec *codec, struct nid_path *path, bool allow_powerdown) path_power_update() argument
862 sync_power_state_change(struct hda_codec *codec, hda_nid_t nid) sync_power_state_change() argument
879 snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, bool enable, bool add_aamix) snd_hda_activate_path() argument
907 path_power_down_sync(struct hda_codec *codec, struct nid_path *path) path_power_down_sync() argument
917 set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable) set_pin_eapd() argument
933 resume_path_from_idx(struct hda_codec *codec, int path_idx) resume_path_from_idx() argument
1020 add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, unsigned int chs, struct nid_path *path) add_vol_ctl() argument
1034 get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, int type) get_default_ch_nums() argument
1046 add_stereo_vol(struct hda_codec *codec, const char *pfx, int cidx, struct nid_path *path) add_stereo_vol() argument
1056 add_sw_ctl(struct hda_codec *codec, const char *pfx, int cidx, unsigned int chs, struct nid_path *path) add_sw_ctl() argument
1079 add_stereo_sw(struct hda_codec *codec, const char *pfx, int cidx, struct nid_path *path) add_stereo_sw() argument
1090 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); sync_auto_mute_bits() local
1117 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hda_gen_bind_mute_get() local
1133 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hda_gen_bind_mute_put() local
1156 path_has_mixer(struct hda_codec *codec, int path_idx, int ctl_type) path_has_mixer() argument
1167 get_line_out_pfx(struct hda_codec *codec, int ch, int *index, int ctl_type) get_line_out_pfx() argument
1285 assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) assign_out_path_ctls() argument
1348 get_primary_out(struct hda_codec *codec, int idx) get_primary_out() argument
1362 try_dac(struct hda_codec *codec, hda_nid_t dac, hda_nid_t pin) try_dac() argument
1369 try_assign_dacs(struct hda_codec *codec, int num_outs, const hda_nid_t *pins, hda_nid_t *dacs, int *path_idx, const struct badness_table *bad) try_assign_dacs() argument
1461 get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) get_dac_if_single() argument
1481 can_be_multiio_pin(struct hda_codec *codec, unsigned int location, hda_nid_t nid) can_be_multiio_pin() argument
1498 count_multiio_pins(struct hda_codec *codec, hda_nid_t reference_pin) count_multiio_pins() argument
1527 fill_multi_ios(struct hda_codec *codec, hda_nid_t reference_pin, bool hardwired) fill_multi_ios() argument
1613 map_singles(struct hda_codec *codec, int outs, const hda_nid_t *pins, hda_nid_t *dacs, int *path_idx) map_singles() argument
1649 check_aamix_out_path(struct hda_codec *codec, int path_idx) check_aamix_out_path() argument
1685 indep_hp_possible(struct hda_codec *codec) indep_hp_possible() argument
1724 refill_shared_dacs(struct hda_codec *codec, int num_outs, hda_nid_t *dacs, int *path_idx) refill_shared_dacs() argument
1741 fill_and_eval_dacs(struct hda_codec *codec, bool fill_hardwired, bool fill_mio_first) fill_and_eval_dacs() argument
1904 print_nid_path_idx(struct hda_codec *codec, const char *pfx, int idx) print_nid_path_idx() argument
1914 debug_show_configs(struct hda_codec *codec, struct auto_pin_cfg *cfg) debug_show_configs() argument
1967 fill_all_dac_nids(struct hda_codec *codec) fill_all_dac_nids() argument
1985 parse_output_paths(struct hda_codec *codec) parse_output_paths() argument
2106 create_multi_out_ctls(struct hda_codec *codec, const struct auto_pin_cfg *cfg) create_multi_out_ctls() argument
2157 create_extra_out(struct hda_codec *codec, int path_idx, const char *pfx, int cidx) create_extra_out() argument
2176 create_extra_outs(struct hda_codec *codec, int num_pins, const int *paths, const char *pfx) create_extra_outs() argument
2203 create_hp_out_ctls(struct hda_codec *codec) create_hp_out_ctls() argument
2211 create_speaker_out_ctls(struct hda_codec *codec) create_speaker_out_ctls() argument
2234 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); indep_hp_get() local
2247 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); indep_hp_put() local
2302 create_indep_hp_ctls(struct hda_codec *codec) create_indep_hp_ctls() argument
2332 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_info() local
2349 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_get() local
2357 get_multiio_path(struct hda_codec *codec, int idx) get_multiio_path() argument
2374 set_multi_io(struct hda_codec *codec, int idx, bool output) set_multi_io() argument
2407 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_put() local
2434 create_multi_channel_mode(struct hda_codec *codec) create_multi_channel_mode() argument
2454 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); loopback_mixing_get() local
2460 update_aamix_paths(struct hda_codec *codec, bool do_mix, int nomix_path_idx, int mix_path_idx, int out_type) update_aamix_paths() argument
2491 update_output_paths(struct hda_codec *codec, int num_outs, const int *paths) update_output_paths() argument
2509 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); loopback_mixing_put() local
2546 create_loopback_mixing_ctl(struct hda_codec *codec) create_loopback_mixing_ctl() argument
2565 update_hp_mic(struct hda_codec *codec, int adc_mux, bool force) update_hp_mic() argument
2609 create_hp_mic(struct hda_codec *codec) create_hp_mic() argument
2677 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); out_jack_mode_get() local
2689 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); out_jack_mode_put() local
2707 find_kctl_name(struct hda_codec *codec, const char *name, int idx) find_kctl_name() argument
2720 get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, char *name, size_t name_len) get_jack_mode_name() argument
2733 get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin) get_out_jack_num_items() argument
2744 create_out_jack_modes(struct hda_codec *codec, int num_pins, hda_nid_t *pins) create_out_jack_modes() argument
2781 get_vref_caps(struct hda_codec *codec, hda_nid_t pin) get_vref_caps() argument
2824 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_info() local
2839 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_get() local
2852 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_put() local
2875 get_in_jack_num_items(struct hda_codec *codec, hda_nid_t pin) get_in_jack_num_items() argument
2884 create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) create_in_jack_mode() argument
2917 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_info() local
2948 get_cur_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t nid) get_cur_hp_mic_jack_mode() argument
2972 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_get() local
2982 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_put() local
3021 create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin) create_hp_mic_jack_mode() argument
3057 look_for_mix_leaf_ctls(struct hda_codec *codec, hda_nid_t mix_nid, hda_nid_t pin, unsigned int *mix_val, unsigned int *mute_val) look_for_mix_leaf_ctls() argument
3093 new_analog_input(struct hda_codec *codec, int input_idx, hda_nid_t pin, const char *ctlname, int ctlidx, hda_nid_t mix_nid) new_analog_input() argument
3149 is_input_pin(struct hda_codec *codec, hda_nid_t nid) is_input_pin() argument
3156 fill_adc_nids(struct hda_codec *codec) fill_adc_nids() argument
3186 check_dyn_adc_switch(struct hda_codec *codec) check_dyn_adc_switch() argument
3254 parse_capture_source(struct hda_codec *codec, hda_nid_t pin, int cfg_idx, int num_adcs, const char *label, int anchor) parse_capture_source() argument
3296 fill_input_pin_labels(struct hda_codec *codec) fill_input_pin_labels() argument
3329 create_input_ctls(struct hda_codec *codec) create_input_ctls() argument
3402 get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx) get_input_path() argument
3424 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_info() local
3432 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_get() local
3444 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_put() local
3470 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cap_put_caller() local
3544 parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) parse_capvol_in_path() argument
3583 is_inv_dmic_pin(struct hda_codec *codec, hda_nid_t nid) is_inv_dmic_pin() argument
3607 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cap_single_sw_put() local
3621 add_single_cap_ctl(struct hda_codec *codec, const char *label, int idx, bool is_switch, unsigned int ctl, bool inv_dmic) add_single_cap_ctl() argument
3673 create_single_cap_vol_ctl(struct hda_codec *codec, int idx, unsigned int vol_ctl, unsigned int sw_ctl, bool inv_dmic) create_single_cap_vol_ctl() argument
3688 create_bind_cap_vol_ctl(struct hda_codec *codec, int idx, unsigned int vol_ctl, unsigned int sw_ctl) create_bind_cap_vol_ctl() argument
3716 get_first_cap_ctl(struct hda_codec *codec, int idx, int type) get_first_cap_ctl() argument
3737 create_multi_cap_vol_ctl(struct hda_codec *codec) create_multi_cap_vol_ctl() argument
3766 create_capture_mixers(struct hda_codec *codec) create_capture_mixers() argument
3839 check_boost_vol(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) check_boost_vol() argument
3857 look_for_boost_amp(struct hda_codec *codec, struct nid_path *path) look_for_boost_amp() argument
3882 parse_mic_boost(struct hda_codec *codec) parse_mic_boost() argument
3931 create_mute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness), bool micmute) create_mute_led_cdev() argument
3964 snd_hda_gen_add_mute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness)) snd_hda_gen_add_mute_led_cdev() argument
4001 snd_hda_gen_add_micmute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness)) snd_hda_gen_add_micmute_led_cdev() argument
4025 parse_digital(struct hda_codec *codec) parse_digital() argument
4089 mux_select(struct hda_codec *codec, unsigned int adc_idx, unsigned int idx) mux_select() argument
4136 set_path_power(struct hda_codec *codec, hda_nid_t nid, int pin_state, int stream_state) set_path_power() argument
4168 detect_pin_state(struct hda_codec *codec, hda_nid_t pin) detect_pin_state() argument
4181 set_pin_power_jack(struct hda_codec *codec, hda_nid_t pin, int power) set_pin_power_jack() argument
4196 pin_power_callback(struct hda_codec *codec, struct hda_jack_callback *jack, bool on) pin_power_callback() argument
4206 pin_power_up_callback(struct hda_codec *codec, struct hda_jack_callback *jack) pin_power_up_callback() argument
4213 pin_power_down_callback(struct hda_codec *codec, struct hda_jack_callback *jack) pin_power_down_callback() argument
4220 add_pin_power_ctls(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, bool on) add_pin_power_ctls() argument
4238 add_all_pin_power_ctls(struct hda_codec *codec, bool on) add_all_pin_power_ctls() argument
4256 sync_pin_power_ctls(struct hda_codec *codec, int num_pins, const hda_nid_t *pins) sync_pin_power_ctls() argument
4267 sync_all_pin_power_ctls(struct hda_codec *codec) sync_all_pin_power_ctls() argument
4285 add_fake_paths(struct hda_codec *codec, hda_nid_t nid, int num_pins, const hda_nid_t *pins) add_fake_paths() argument
4310 add_fake_beep_paths(struct hda_codec *codec) add_fake_beep_paths() argument
4347 snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin) snd_hda_gen_fix_pin_power() argument
4370 detect_jacks(struct hda_codec *codec, int num_pins, const hda_nid_t *pins) detect_jacks() argument
4389 do_automute(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, int *paths, bool mute) do_automute() argument
4454 snd_hda_gen_update_outputs(struct hda_codec *codec) snd_hda_gen_update_outputs() argument
4501 call_update_outputs(struct hda_codec *codec) call_update_outputs() argument
4519 snd_hda_gen_hp_automute(struct hda_codec *codec, struct hda_jack_callback *jack) snd_hda_gen_hp_automute() argument
4544 snd_hda_gen_line_automute(struct hda_codec *codec, struct hda_jack_callback *jack) snd_hda_gen_line_automute() argument
4569 snd_hda_gen_mic_autoswitch(struct hda_codec *codec, struct hda_jack_callback *jack) snd_hda_gen_mic_autoswitch() argument
4593 call_hp_automute(struct hda_codec *codec, struct hda_jack_callback *jack) call_hp_automute() argument
4603 call_line_automute(struct hda_codec *codec, struct hda_jack_callback *jack) call_line_automute() argument
4613 call_mic_autoswitch(struct hda_codec *codec, struct hda_jack_callback *jack) call_mic_autoswitch() argument
4624 update_automute_all(struct hda_codec *codec) update_automute_all() argument
4637 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_info() local
4651 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_get() local
4666 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_put() local
4712 add_automute_mode_enum(struct hda_codec *codec) add_automute_mode_enum() argument
4725 check_auto_mute_availability(struct hda_codec *codec) check_auto_mute_availability() argument
4798 auto_mic_check_imux(struct hda_codec *codec) auto_mic_check_imux() argument
4832 check_auto_mic_availability(struct hda_codec *codec) check_auto_mic_availability() argument
4907 snd_hda_gen_path_power_filter(struct hda_codec *codec, hda_nid_t nid, unsigned int power_state) snd_hda_gen_path_power_filter() argument
4926 mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix) mute_all_mixer_nid() argument
4952 snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on) snd_hda_gen_stream_pm() argument
4968 snd_hda_gen_parse_auto_config(struct hda_codec *codec, struct auto_pin_cfg *cfg) snd_hda_gen_parse_auto_config() argument
5173 snd_hda_gen_build_controls(struct hda_codec *codec) snd_hda_gen_build_controls() argument
5245 call_pcm_playback_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) call_pcm_playback_hook() argument
5255 call_pcm_capture_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) call_pcm_capture_hook() argument
5268 playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) playback_pcm_open() argument
5288 playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) playback_pcm_prepare() argument
5305 playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) playback_pcm_cleanup() argument
5319 playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) playback_pcm_close() argument
5332 capture_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) capture_pcm_open() argument
5340 capture_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) capture_pcm_prepare() argument
5352 capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) capture_pcm_cleanup() argument
5362 capture_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) capture_pcm_close() argument
5370 alt_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) alt_playback_pcm_open() argument
5388 alt_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) alt_playback_pcm_close() argument
5401 alt_playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) alt_playback_pcm_prepare() argument
5413 alt_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) alt_playback_pcm_cleanup() argument
5426 dig_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) dig_playback_pcm_open() argument
5434 dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) dig_playback_pcm_prepare() argument
5445 dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) dig_playback_pcm_cleanup() argument
5453 dig_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) dig_playback_pcm_close() argument
5467 alt_capture_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) alt_capture_pcm_prepare() argument
5482 alt_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) alt_capture_pcm_cleanup() argument
5579 dyn_adc_pcm_resetup(struct hda_codec *codec, int cur) dyn_adc_pcm_resetup() argument
5597 dyn_adc_capture_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) dyn_adc_capture_pcm_prepare() argument
5612 dyn_adc_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) dyn_adc_capture_pcm_cleanup() argument
5686 snd_hda_gen_build_pcms(struct hda_codec *codec) snd_hda_gen_build_pcms() argument
5800 set_output_and_unmute(struct hda_codec *codec, int path_idx) set_output_and_unmute() argument
5816 init_multi_out(struct hda_codec *codec) init_multi_out() argument
5826 __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) __init_extra_out() argument
5835 init_extra_out(struct hda_codec *codec) init_extra_out() argument
5847 init_multi_io(struct hda_codec *codec) init_multi_io() argument
5866 init_aamix_paths(struct hda_codec *codec) init_aamix_paths() argument
5886 init_analog_input(struct hda_codec *codec) init_analog_input() argument
5906 init_input_src(struct hda_codec *codec) init_input_src() argument
5937 init_digital(struct hda_codec *codec) init_digital() argument
5955 clear_unsol_on_unused_pins(struct hda_codec *codec) clear_unsol_on_unused_pins() argument
5975 snd_hda_gen_init(struct hda_codec *codec) snd_hda_gen_init() argument
6016 snd_hda_gen_free(struct hda_codec *codec) snd_hda_gen_free() argument
6033 snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) snd_hda_gen_check_power_status() argument
6061 snd_hda_parse_generic_codec(struct hda_codec *codec) snd_hda_parse_generic_codec() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/zoran/
H A Dvideocodec.c5 * Interface for MJPEG (and maybe later MPEG/WAVELETS) codec's
40 struct videocodec *codec; member
45 const struct videocodec *codec; member
61 struct videocodec *codec; in videocodec_attach() local
80 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach()
81 dprintk(4, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach()
83 if (!try_module_get(h->codec->owner)) in videocodec_attach()
86 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach()
87 if (!codec) in videocodec_attach()
132 videocodec_detach(struct videocodec *codec) videocodec_detach() argument
188 videocodec_register(const struct videocodec *codec) videocodec_register() argument
221 videocodec_unregister(const struct videocodec *codec) videocodec_unregister() argument
[all...]
/test/xts/acts/multimedia/av_codec/audio_decoder/src/
H A Dnull_check_test.cpp53 OH_AVCodec *codec = nullptr; in HWTEST_F() local
56 codec = aDecBufferDemo->CreateByMime(nullptr); in HWTEST_F()
57 ASSERT_EQ(codec, nullptr); in HWTEST_F()
58 result0 = aDecBufferDemo->Destroy(codec); in HWTEST_F()
70 OH_AVCodec *codec = nullptr; in HWTEST_F() local
73 codec = aDecBufferDemo->CreateByName(nullptr); in HWTEST_F()
74 ASSERT_EQ(codec, nullptr); in HWTEST_F()
75 result0 = aDecBufferDemo->Destroy(codec); in HWTEST_F()
82 * @tc.name : Destroy - codec null check
87 OH_AVCodec *codec in HWTEST_F() local
106 OH_AVCodec *codec = nullptr; HWTEST_F() local
125 OH_AVCodec *codec = nullptr; HWTEST_F() local
149 OH_AVCodec *codec = nullptr; HWTEST_F() local
174 OH_AVCodec *codec = nullptr; HWTEST_F() local
193 OH_AVCodec *codec = nullptr; HWTEST_F() local
219 OH_AVCodec *codec = nullptr; HWTEST_F() local
247 OH_AVCodec *codec = nullptr; HWTEST_F() local
275 OH_AVCodec *codec = nullptr; HWTEST_F() local
294 OH_AVCodec *codec = nullptr; HWTEST_F() local
323 OH_AVCodec *codec = nullptr; HWTEST_F() local
353 OH_AVCodec *codec = nullptr; HWTEST_F() local
387 OH_AVCodec *codec = nullptr; HWTEST_F() local
407 OH_AVCodec *codec = nullptr; HWTEST_F() local
428 OH_AVCodec *codec = nullptr; HWTEST_F() local
[all...]
/test/xts/acts/multimedia/av_codec/audio_encoder/src/
H A Dnull_check_test.cpp53 OH_AVCodec *codec = nullptr; in HWTEST_F() local
56 codec = audioBufferAacEncDemo->CreateByMime(nullptr); in HWTEST_F()
57 ASSERT_EQ(codec, nullptr); in HWTEST_F()
58 result0 = audioBufferAacEncDemo->Destroy(codec); in HWTEST_F()
70 OH_AVCodec *codec = nullptr; in HWTEST_F() local
73 codec = audioBufferAacEncDemo->CreateByName(nullptr); in HWTEST_F()
74 ASSERT_EQ(codec, nullptr); in HWTEST_F()
75 result0 = audioBufferAacEncDemo->Destroy(codec); in HWTEST_F()
82 * @tc.name : Destroy - codec null check
87 OH_AVCodec *codec in HWTEST_F() local
106 OH_AVCodec *codec = nullptr; HWTEST_F() local
125 OH_AVCodec *codec = nullptr; HWTEST_F() local
154 OH_AVCodec *codec = nullptr; HWTEST_F() local
184 OH_AVCodec *codec = nullptr; HWTEST_F() local
203 OH_AVCodec *codec = nullptr; HWTEST_F() local
234 OH_AVCodec *codec = nullptr; HWTEST_F() local
267 OH_AVCodec *codec = nullptr; HWTEST_F() local
300 OH_AVCodec *codec = nullptr; HWTEST_F() local
319 OH_AVCodec *codec = nullptr; HWTEST_F() local
353 OH_AVCodec *codec = nullptr; HWTEST_F() local
388 OH_AVCodec *codec = nullptr; HWTEST_F() local
423 OH_AVCodec *codec = nullptr; HWTEST_F() local
462 OH_AVCodec *codec = nullptr; HWTEST_F() local
482 OH_AVCodec *codec = nullptr; HWTEST_F() local
[all...]
/third_party/ffmpeg/libavcodec/tests/
H A Davcodec.c20 #include "libavcodec/codec.h"
34 AV_LOG(msg, codec->name __VA_ARGS__); \
40 static int priv_data_size_wrong(const FFCodec *codec) in priv_data_size_wrong() argument
42 if (codec->priv_data_size < 0 || in priv_data_size_wrong()
43 codec->p.priv_class && codec->priv_data_size < sizeof(AVClass*)) in priv_data_size_wrong()
45 if (!codec->p.priv_class || !codec->p.priv_class->option) in priv_data_size_wrong()
47 for (const AVOption *opt = codec->p.priv_class->option; opt->name; opt++) { in priv_data_size_wrong()
48 if (opt->offset >= codec in priv_data_size_wrong()
61 const AVCodec *codec = NULL; main() local
[all...]
/kernel/linux/linux-5.10/sound/pci/hda/
H A Dhda_local.h117 #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
157 struct hda_codec *codec; global() member
264 snd_hda_codec_proc_new(struct hda_codec *codec) snd_hda_codec_proc_new() argument
305 unsigned int codec; /* Codec vendor/device ID */ global() member
423 snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val) snd_hda_set_pin_ctl() argument
437 snd_hda_set_pin_ctl_cache(struct hda_codec *codec, hda_nid_t pin, unsigned int val) snd_hda_set_pin_ctl_cache() argument
453 get_wcaps(struct hda_codec *codec, hda_nid_t nid) get_wcaps() argument
479 snd_hda_override_wcaps(struct hda_codec *codec, hda_nid_t nid, u32 val) snd_hda_override_wcaps() argument
502 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) snd_hda_query_pin_caps() argument
519 snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, unsigned int caps) snd_hda_override_pin_caps() argument
556 snd_hda_create_hwdep(struct hda_codec *codec) snd_hda_create_hwdep() argument
570 snd_hda_get_hint(struct hda_codec *codec, const char *key) snd_hda_get_hint() argument
576 snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) snd_hda_get_bool_hint() argument
582 snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) snd_hda_get_int_hint() argument
611 snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) snd_hda_check_power_state() argument
617 snd_hda_sync_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) snd_hda_sync_power_state() argument
[all...]
H A Dpatch_analog.c50 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() argument
52 struct ad198x_spec *spec = codec->spec; in create_beep_ctls()
61 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls()
65 err = snd_hda_ctl_add(codec, 0, kctl); in create_beep_ctls()
72 #define create_beep_ctls(codec) 0
76 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write() argument
79 if (snd_hda_query_pin_caps(codec, front) & AC_PINCAP_EAPD) in ad198x_power_eapd_write()
80 snd_hda_codec_write(codec, front, 0, AC_VERB_SET_EAPD_BTLENABLE, in ad198x_power_eapd_write()
81 !codec->inv_eapd ? 0x00 : 0x02); in ad198x_power_eapd_write()
82 if (snd_hda_query_pin_caps(codec, h in ad198x_power_eapd_write()
87 ad198x_power_eapd(struct hda_codec *codec) ad198x_power_eapd() argument
115 ad198x_shutup(struct hda_codec *codec) ad198x_shutup() argument
122 ad198x_suspend(struct hda_codec *codec) ad198x_suspend() argument
132 struct hda_codec *codec = private_data; ad_vmaster_eapd_hook() local
148 ad198x_auto_build_controls(struct hda_codec *codec) ad198x_auto_build_controls() argument
175 ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) ad198x_parse_auto_config() argument
203 alloc_ad_spec(struct hda_codec *codec) alloc_ad_spec() argument
221 ad_fixup_inv_jack_detect(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad_fixup_inv_jack_detect() argument
235 ad1986a_fixup_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1986a_fixup_eapd() argument
248 ad1986a_fixup_eapd_mix_in(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1986a_fixup_eapd_mix_in() argument
389 patch_ad1986a(struct hda_codec *codec) patch_ad1986a() argument
453 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_info() local
470 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_get() local
480 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1983_auto_smux_enum_put() local
504 ad1983_add_spdif_mux_ctl(struct hda_codec *codec) ad1983_add_spdif_mux_ctl() argument
521 patch_ad1983(struct hda_codec *codec) patch_ad1983() argument
559 ad1981_fixup_hp_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1981_fixup_hp_eapd() argument
573 ad1981_fixup_amp_override(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1981_fixup_amp_override() argument
611 patch_ad1981(struct hda_codec *codec) patch_ad1981() argument
733 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_info() local
748 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_get() local
758 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ad1988_auto_smux_enum_put() local
790 ad1988_auto_init(struct hda_codec *codec) ad1988_auto_init() argument
811 ad1988_add_spdif_mux_ctl(struct hda_codec *codec) ad1988_add_spdif_mux_ctl() argument
903 patch_ad1988(struct hda_codec *codec) patch_ad1988() argument
967 ad1884_fixup_amp_override(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1884_fixup_amp_override() argument
981 struct hda_codec *codec = private_data; ad1884_vmaster_hp_gpio_hook() local
991 ad1884_fixup_hp_eapd(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1884_fixup_hp_eapd() argument
1016 ad1884_fixup_thinkpad(struct hda_codec *codec, const struct hda_fixup *fix, int action) ad1884_fixup_thinkpad() argument
1083 patch_ad1884(struct hda_codec *codec) patch_ad1884() argument
1129 patch_ad1882(struct hda_codec *codec) patch_ad1882() argument
[all...]
H A Dpatch_via.c5 * 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) in via_new_spec() argument
125 get_codec_type(struct hda_codec *codec) get_codec_type() argument
184 vt1708_stop_hp_work(struct hda_codec *codec) vt1708_stop_hp_work() argument
197 vt1708_update_hp_work(struct hda_codec *codec) vt1708_update_hp_work() argument
222 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); via_pin_power_ctl_get() local
232 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); via_pin_power_ctl_put() local
277 auto_parse_beep(struct hda_codec *codec) auto_parse_beep() argument
292 is_aa_path_mute(struct hda_codec *codec) is_aa_path_mute() argument
313 __analog_low_current_mode(struct hda_codec *codec, bool force) __analog_low_current_mode() argument
362 analog_low_current_mode(struct hda_codec *codec) analog_low_current_mode() argument
367 via_playback_pcm_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) via_playback_pcm_hook() argument
376 via_free(struct hda_codec *codec) via_free() argument
383 via_suspend(struct hda_codec *codec) via_suspend() argument
395 via_resume(struct hda_codec *codec) via_resume() argument
406 via_check_power_status(struct hda_codec *codec, hda_nid_t nid) via_check_power_status() argument
439 vt1708_set_pinconfig_connect(struct hda_codec *codec, hda_nid_t nid) vt1708_set_pinconfig_connect() argument
459 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); vt1708_jack_detect_get() local
471 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); vt1708_jack_detect_put() local
511 via_parse_auto_config(struct hda_codec *codec) via_parse_auto_config() argument
540 via_init(struct hda_codec *codec) via_init() argument
552 vt1708_build_controls(struct hda_codec *codec) vt1708_build_controls() argument
564 vt1708_build_pcms(struct hda_codec *codec) vt1708_build_pcms() argument
591 patch_vt1708(struct hda_codec *codec) patch_vt1708() argument
645 patch_vt1709(struct hda_codec *codec) patch_vt1709() argument
669 patch_vt1708B(struct hda_codec *codec) patch_vt1708B() argument
705 override_mic_boost(struct hda_codec *codec, hda_nid_t pin, int offset, int num_steps, int step_size) override_mic_boost() argument
717 patch_vt1708S(struct hda_codec *codec) patch_vt1708S() argument
764 patch_vt1702(struct hda_codec *codec) patch_vt1702() argument
813 add_secret_dac_path(struct hda_codec *codec) add_secret_dac_path() argument
847 patch_vt1718S(struct hda_codec *codec) patch_vt1718S() argument
893 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); vt1716s_dmic_get() local
907 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); vt1716s_dmic_put() local
944 patch_vt1716S(struct hda_codec *codec) patch_vt1716S() argument
1012 via_fixup_intmic_boost(struct hda_codec *codec, const struct hda_fixup *fix, int action) via_fixup_intmic_boost() argument
1019 via_fixup_power_save(struct hda_codec *codec, const struct hda_fixup *fix, int action) via_fixup_power_save() argument
1057 fix_vt1802_connections(struct hda_codec *codec) fix_vt1802_connections() argument
1067 patch_vt2002P(struct hda_codec *codec) patch_vt2002P() argument
1117 patch_vt1812(struct hda_codec *codec) patch_vt1812() argument
1160 patch_vt3476(struct hda_codec *codec) patch_vt3476() argument
[all...]
H A Dpatch_realtek.c81 /* codec parameterization */
109 void (*init_hook)(struct hda_codec *codec);
111 void (*power_hook)(struct hda_codec *codec);
113 void (*shutup)(struct hda_codec *codec);
114 void (*reboot_notify)(struct hda_codec *codec);
139 static void coef_mutex_lock(struct hda_codec *codec) in coef_mutex_lock() argument
141 struct alc_spec *spec = codec->spec; in coef_mutex_lock()
143 snd_hda_power_up_pm(codec); in coef_mutex_lock()
147 static void coef_mutex_unlock(struct hda_codec *codec) in coef_mutex_unlock() argument
149 struct alc_spec *spec = codec in coef_mutex_unlock()
155 __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, unsigned int coef_idx) __alc_read_coefex_idx() argument
165 alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, unsigned int coef_idx) alc_read_coefex_idx() argument
179 __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, unsigned int coef_idx, unsigned int coef_val) __alc_write_coefex_idx() argument
186 alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, unsigned int coef_idx, unsigned int coef_val) alc_write_coefex_idx() argument
197 __alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, unsigned int coef_idx, unsigned int mask, unsigned int bits_set) __alc_update_coefex_idx() argument
208 alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, unsigned int coef_idx, unsigned int mask, unsigned int bits_set) alc_update_coefex_idx() argument
221 alc_get_coef0(struct hda_codec *codec) alc_get_coef0() argument
244 alc_process_coef_fw(struct hda_codec *codec, const struct coef_fw *fw) alc_process_coef_fw() argument
263 alc_setup_gpio(struct hda_codec *codec, unsigned int mask) alc_setup_gpio() argument
272 alc_write_gpio_data(struct hda_codec *codec) alc_write_gpio_data() argument
280 alc_update_gpio_data(struct hda_codec *codec, unsigned int mask, bool on) alc_update_gpio_data() argument
294 alc_write_gpio(struct hda_codec *codec) alc_write_gpio() argument
310 alc_fixup_gpio(struct hda_codec *codec, int action, unsigned int mask) alc_fixup_gpio() argument
317 alc_fixup_gpio1(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_gpio1() argument
323 alc_fixup_gpio2(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_gpio2() argument
329 alc_fixup_gpio3(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_gpio3() argument
335 alc_fixup_gpio4(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_gpio4() argument
341 alc_fixup_micmute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_micmute_led() argument
348 has_loongson_workaround(struct hda_codec *codec) has_loongson_workaround() argument
360 alc_fix_pll(struct hda_codec *codec) alc_fix_pll() argument
369 alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid, unsigned int coef_idx, unsigned int coef_bit) alc_fix_pll_init() argument
380 alc_update_knob_master(struct hda_codec *codec, struct hda_jack_callback *jack) alc_update_knob_master() argument
402 alc880_unsol_event(struct hda_codec *codec, unsigned int res) alc880_unsol_event() argument
410 alc_fill_eapd_coef(struct hda_codec *codec) alc_fill_eapd_coef() argument
524 alc888_coef_init(struct hda_codec *codec) alc888_coef_init() argument
537 set_eapd(struct hda_codec *codec, hda_nid_t nid, int on) set_eapd() argument
547 alc_auto_setup_eapd(struct hda_codec *codec, bool on) alc_auto_setup_eapd() argument
560 alc_headset_mic_no_shutup(struct hda_codec *codec) alc_headset_mic_no_shutup() argument
582 alc_shutup_pins(struct hda_codec *codec) alc_shutup_pins() argument
606 alc_eapd_shutup(struct hda_codec *codec) alc_eapd_shutup() argument
617 alc_auto_init_amp(struct hda_codec *codec, int type) alc_auto_init_amp() argument
660 alc_fixup_sku_ignore(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_sku_ignore() argument
670 alc_fixup_no_depop_delay(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_no_depop_delay() argument
681 alc_auto_parse_customize_define(struct hda_codec *codec) alc_auto_parse_customize_define() argument
772 alc_subsystem_id(struct hda_codec *codec, const hda_nid_t *ports) alc_subsystem_id() argument
874 alc_ssid_check(struct hda_codec *codec, const hda_nid_t *ports) alc_ssid_check() argument
889 alc_fixup_inv_dmic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_inv_dmic() argument
898 alc_build_controls(struct hda_codec *codec) alc_build_controls() argument
915 alc_pre_init(struct hda_codec *codec) alc_pre_init() argument
925 alc_init(struct hda_codec *codec) alc_init() argument
947 alc_shutup(struct hda_codec *codec) alc_shutup() argument
960 alc_reboot_notify(struct hda_codec *codec) alc_reboot_notify() argument
973 alc_power_eapd(struct hda_codec *codec) alc_power_eapd() argument
978 alc_suspend(struct hda_codec *codec) alc_suspend() argument
989 alc_resume(struct hda_codec *codec) alc_resume() argument
1090 alc_codec_rename_from_preset(struct hda_codec *codec) alc_codec_rename_from_preset() argument
1163 has_cdefine_beep(struct hda_codec *codec) has_cdefine_beep() argument
1181 alc_parse_auto_config(struct hda_codec *codec, const hda_nid_t *ignore_nids, const hda_nid_t *ssid_nids) alc_parse_auto_config() argument
1205 alc_alloc_spec(struct hda_codec *codec, hda_nid_t mixer_nid) alc_alloc_spec() argument
1231 alc880_parse_auto_config(struct hda_codec *codec) alc880_parse_auto_config() argument
1270 alc880_fixup_vol_knob(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc880_fixup_vol_knob() argument
1653 patch_alc880(struct hda_codec *codec) patch_alc880() argument
1698 alc260_parse_auto_config(struct hda_codec *codec) alc260_parse_auto_config() argument
1722 alc260_gpio1_automute(struct hda_codec *codec) alc260_gpio1_automute() argument
1729 alc260_fixup_gpio1_toggle(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc260_fixup_gpio1_toggle() argument
1747 alc260_fixup_kn1(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc260_fixup_kn1() argument
1775 alc260_fixup_fsc_s7020(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc260_fixup_fsc_s7020() argument
1783 alc260_fixup_fsc_s7020_jwse(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc260_fixup_fsc_s7020_jwse() argument
1902 patch_alc260(struct hda_codec *codec) patch_alc260() argument
2008 alc889_fixup_coef(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc889_fixup_coef() argument
2017 alc885_fixup_macpro_gpio(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc885_fixup_macpro_gpio() argument
2030 alc889_fixup_dac_route(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc889_fixup_dac_route() argument
2052 alc889_fixup_mbp_vref(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc889_fixup_mbp_vref() argument
2073 alc889_fixup_mac_pins(struct hda_codec *codec, const hda_nid_t *nids, int num_nids) alc889_fixup_mac_pins() argument
2089 alc889_fixup_imac91_vref(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc889_fixup_imac91_vref() argument
2099 alc889_fixup_mba11_vref(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc889_fixup_mba11_vref() argument
2109 alc889_fixup_mba21_vref(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc889_fixup_mba21_vref() argument
2122 alc882_fixup_no_primary_hp(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc882_fixup_no_primary_hp() argument
2138 alc_fixup_dual_codecs(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_dual_codecs() argument
2156 rename_ctl(struct hda_codec *codec, const char *oldname, const char *newname) rename_ctl() argument
2166 alc1220_fixup_gb_dual_codecs(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc1220_fixup_gb_dual_codecs() argument
2190 alc1220_fixup_gb_x570(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc1220_fixup_gb_x570() argument
2214 alc1220_fixup_clevo_p950(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc1220_fixup_clevo_p950() argument
2234 alc1220_fixup_clevo_pb51ed(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc1220_fixup_clevo_pb51ed() argument
2242 alc887_asus_hp_automute_hook(struct hda_codec *codec, struct hda_jack_callback *jack) alc887_asus_hp_automute_hook() argument
2257 alc887_fixup_asus_jack(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc887_fixup_asus_jack() argument
2750 alc882_parse_auto_config(struct hda_codec *codec) alc882_parse_auto_config() argument
2759 patch_alc882(struct hda_codec *codec) patch_alc882() argument
2819 alc262_parse_auto_config(struct hda_codec *codec) alc262_parse_auto_config() argument
2938 patch_alc262(struct hda_codec *codec) patch_alc262() argument
2998 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); alc268_beep_switch_put() local
3083 alc268_parse_auto_config(struct hda_codec *codec) alc268_parse_auto_config() argument
3091 patch_alc268(struct hda_codec *codec) patch_alc268() argument
3184 alc269_parse_auto_config(struct hda_codec *codec) alc269_parse_auto_config() argument
3233 alc_headset_btn_callback(struct hda_codec *codec, struct hda_jack_callback *jack) alc_headset_btn_callback() argument
3255 alc_disable_headset_jack_key(struct hda_codec *codec) alc_disable_headset_jack_key() argument
3285 alc_enable_headset_jack_key(struct hda_codec *codec) alc_enable_headset_jack_key() argument
3315 alc_fixup_headset_jack(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_headset_jack() argument
3334 alc269vb_toggle_power_output(struct hda_codec *codec, int power_up) alc269vb_toggle_power_output() argument
3339 alc269_shutup(struct hda_codec *codec) alc269_shutup() argument
3385 alc282_restore_default_value(struct hda_codec *codec) alc282_restore_default_value() argument
3390 alc282_init(struct hda_codec *codec) alc282_init() argument
3427 alc282_shutup(struct hda_codec *codec) alc282_shutup() argument
3501 alc283_restore_default_value(struct hda_codec *codec) alc283_restore_default_value() argument
3506 alc283_init(struct hda_codec *codec) alc283_init() argument
3542 alc283_shutup(struct hda_codec *codec) alc283_shutup() argument
3579 alc256_init(struct hda_codec *codec) alc256_init() argument
3631 alc256_shutup(struct hda_codec *codec) alc256_shutup() argument
3680 alc225_init(struct hda_codec *codec) alc225_init() argument
3729 alc225_shutup(struct hda_codec *codec) alc225_shutup() argument
3783 alc_default_init(struct hda_codec *codec) alc_default_init() argument
3812 alc_default_shutup(struct hda_codec *codec) alc_default_shutup() argument
3845 alc294_hp_init(struct hda_codec *codec) alc294_hp_init() argument
3877 alc294_init(struct hda_codec *codec) alc294_init() argument
3890 alc5505_coef_set(struct hda_codec *codec, unsigned int index_reg, unsigned int val) alc5505_coef_set() argument
3898 alc5505_coef_get(struct hda_codec *codec, unsigned int index_reg) alc5505_coef_get() argument
3910 alc5505_dsp_halt(struct hda_codec *codec) alc5505_dsp_halt() argument
3925 alc5505_dsp_back_from_halt(struct hda_codec *codec) alc5505_dsp_back_from_halt() argument
3935 alc5505_dsp_init(struct hda_codec *codec) alc5505_dsp_init() argument
3983 alc269_suspend(struct hda_codec *codec) alc269_suspend() argument
3992 alc269_resume(struct hda_codec *codec) alc269_resume() argument
4029 alc269_fixup_pincfg_no_hp_to_lineout(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_pincfg_no_hp_to_lineout() argument
4038 alc269_fixup_pincfg_U7x7_headset_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_pincfg_U7x7_headset_mic() argument
4051 alc269_fixup_hweq(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_hweq() argument
4058 alc269_fixup_headset_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_headset_mic() argument
4067 alc271_fixup_dmic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc271_fixup_dmic() argument
4086 alc269vb_fixup_aspire_e1_coef(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269vb_fixup_aspire_e1_coef() argument
4094 alc269_fixup_pcm_44k(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_pcm_44k() argument
4109 alc269_fixup_stereo_dmic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_stereo_dmic() argument
4121 alc269_quanta_automute(struct hda_codec *codec) alc269_quanta_automute() argument
4129 alc269_fixup_quanta_mute(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_quanta_mute() argument
4138 alc269_x101_hp_automute_hook(struct hda_codec *codec, struct hda_jack_callback *jack) alc269_x101_hp_automute_hook() argument
4163 alc298_huawei_mbx_stereo_seq(struct hda_codec *codec, const struct hda_alc298_mbxinit *initval, bool first) alc298_huawei_mbx_stereo_seq() argument
4184 alc298_fixup_huawei_mbx_stereo(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc298_fixup_huawei_mbx_stereo() argument
4221 alc269_fixup_x101_headset_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_x101_headset_mic() argument
4231 alc_update_vref_led(struct hda_codec *codec, hda_nid_t pin, bool polarity, bool on) alc_update_vref_led() argument
4253 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); vref_mute_led_set() local
4262 led_power_filter(struct hda_codec *codec, hda_nid_t nid, unsigned int power_state) led_power_filter() argument
4279 alc269_fixup_hp_mute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_hp_mute_led() argument
4305 alc269_fixup_hp_mute_led_micx(struct hda_codec *codec, const struct hda_fixup *fix, int action, hda_nid_t pin) alc269_fixup_hp_mute_led_micx() argument
4319 alc269_fixup_hp_mute_led_mic1(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_hp_mute_led_mic1() argument
4325 alc269_fixup_hp_mute_led_mic2(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_hp_mute_led_mic2() argument
4331 alc269_fixup_hp_mute_led_mic3(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_hp_mute_led_mic3() argument
4338 alc_update_gpio_led(struct hda_codec *codec, unsigned int mask, int polarity, bool enabled) alc_update_gpio_led() argument
4350 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); gpio_mute_led_set() local
4362 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); micmute_led_set() local
4371 alc_fixup_hp_gpio_led(struct hda_codec *codec, int action, unsigned int mute_mask, unsigned int micmute_mask) alc_fixup_hp_gpio_led() argument
4392 alc236_fixup_hp_gpio_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc236_fixup_hp_gpio_led() argument
4398 alc269_fixup_hp_gpio_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_hp_gpio_led() argument
4404 alc285_fixup_hp_gpio_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_gpio_led() argument
4410 alc286_fixup_hp_gpio_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc286_fixup_hp_gpio_led() argument
4416 alc287_fixup_hp_gpio_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc287_fixup_hp_gpio_led() argument
4422 alc245_fixup_hp_gpio_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc245_fixup_hp_gpio_led() argument
4436 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); vref_micmute_led_set() local
4444 alc269_fixup_hp_gpio_mic1_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_hp_gpio_mic1_led() argument
4462 alc280_fixup_hp_gpio4(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc280_fixup_hp_gpio4() argument
4478 alc245_fixup_hp_x360_amp(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc245_fixup_hp_x360_amp() argument
4498 alc274_hp_envy_pcm_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) alc274_hp_envy_pcm_hook() argument
4513 alc274_fixup_hp_envy_gpio(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc274_fixup_hp_envy_gpio() argument
4526 alc_update_coef_led(struct hda_codec *codec, struct alc_coef_led *led, bool polarity, bool on) alc_update_coef_led() argument
4541 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); coef_mute_led_set() local
4549 alc285_fixup_hp_mute_led_coefbit(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_mute_led_coefbit() argument
4565 alc236_fixup_hp_mute_led_coefbit(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc236_fixup_hp_mute_led_coefbit() argument
4581 alc236_fixup_hp_mute_led_coefbit2(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc236_fixup_hp_mute_led_coefbit2() argument
4600 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); coef_micmute_led_set() local
4608 alc285_fixup_hp_coef_micmute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_coef_micmute_led() argument
4622 alc285_fixup_hp_gpio_micmute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_gpio_micmute_led() argument
4632 alc236_fixup_hp_coef_micmute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc236_fixup_hp_coef_micmute_led() argument
4646 alc285_fixup_hp_mute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_mute_led() argument
4653 alc285_fixup_hp_spectre_x360_mute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_spectre_x360_mute_led() argument
4660 alc236_fixup_hp_mute_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc236_fixup_hp_mute_led() argument
4667 alc236_fixup_hp_micmute_led_vref(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc236_fixup_hp_micmute_led_vref() argument
4679 alc236_fixup_hp_mute_led_micmute_vref(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc236_fixup_hp_mute_led_micmute_vref() argument
4686 alc298_samsung_write_coef_pack(struct hda_codec *codec, const unsigned short coefs[2]) alc298_samsung_write_coef_pack() argument
4699 alc298_fixup_samsung_amp(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc298_fixup_samsung_amp() argument
4729 gpio2_mic_hotkey_event(struct hda_codec *codec, struct hda_jack_callback *event) gpio2_mic_hotkey_event() argument
4742 alc_register_micmute_input_device(struct hda_codec *codec) alc_register_micmute_input_device() argument
4778 alc280_fixup_hp_gpio2_mic_hotkey(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc280_fixup_hp_gpio2_mic_hotkey() argument
4812 alc233_fixup_lenovo_line2_mic_hotkey(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc233_fixup_lenovo_line2_mic_hotkey() argument
4842 alc269_fixup_hp_line1_mic1_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_hp_line1_mic1_led() argument
4865 alc_headset_mode_unplugged(struct hda_codec *codec) alc_headset_mode_unplugged() argument
5000 alc_headset_mode_mic_in(struct hda_codec *codec, hda_nid_t hp_pin, hda_nid_t mic_pin) alc_headset_mode_mic_in() argument
5139 alc_headset_mode_default(struct hda_codec *codec) alc_headset_mode_default() argument
5258 alc_headset_mode_ctia(struct hda_codec *codec) alc_headset_mode_ctia() argument
5380 alc_headset_mode_omtp(struct hda_codec *codec) alc_headset_mode_omtp() argument
5480 alc_determine_headset_type(struct hda_codec *codec) alc_determine_headset_type() argument
5680 alc_update_headset_mode(struct hda_codec *codec) alc_update_headset_mode() argument
5740 alc_update_headset_mode_hook(struct hda_codec *codec, struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) alc_update_headset_mode_hook() argument
5747 alc_update_headset_jack_cb(struct hda_codec *codec, struct hda_jack_callback *jack) alc_update_headset_jack_cb() argument
5754 alc_probe_headset_mode(struct hda_codec *codec) alc_probe_headset_mode() argument
5774 alc_fixup_headset_mode(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_headset_mode() argument
5796 alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_headset_mode_no_hp_mic() argument
5807 alc255_set_default_jack_type(struct hda_codec *codec) alc255_set_default_jack_type() argument
5840 alc_fixup_headset_mode_alc255(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_headset_mode_alc255() argument
5849 alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_headset_mode_alc255_no_hp_mic() argument
5861 alc288_update_headset_jack_cb(struct hda_codec *codec, struct hda_jack_callback *jack) alc288_update_headset_jack_cb() argument
5871 alc_fixup_headset_mode_dell_alc288(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_headset_mode_dell_alc288() argument
5884 alc_fixup_auto_mute_via_amp(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_auto_mute_via_amp() argument
5893 alc_fixup_no_shutup(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_no_shutup() argument
5902 alc_fixup_disable_aamix(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_disable_aamix() argument
5913 alc_fixup_tpt440_dock(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_tpt440_dock() argument
5931 alc_fixup_tpt470_dock(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_tpt470_dock() argument
5954 alc_fixup_tpt470_dacs(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_tpt470_dacs() argument
5971 alc295_fixup_asus_dacs(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc295_fixup_asus_dacs() argument
5983 alc_shutup_dell_xps13(struct hda_codec *codec) alc_shutup_dell_xps13() argument
5994 alc_fixup_dell_xps13(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_dell_xps13() argument
6021 alc_fixup_headset_mode_alc662(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_headset_mode_alc662() argument
6038 alc_fixup_headset_mode_alc668(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_headset_mode_alc668() argument
6050 find_ext_mic_pin(struct hda_codec *codec) find_ext_mic_pin() argument
6071 alc271_hp_gate_mic_jack(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc271_hp_gate_mic_jack() argument
6087 alc269_fixup_limit_int_mic_boost(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc269_fixup_limit_int_mic_boost() argument
6119 alc283_hp_automute_hook(struct hda_codec *codec, struct hda_jack_callback *jack) alc283_hp_automute_hook() argument
6135 alc283_fixup_chromebook(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc283_fixup_chromebook() argument
6156 alc283_fixup_sense_combo_jack(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc283_fixup_sense_combo_jack() argument
6174 asus_tx300_automute(struct hda_codec *codec) asus_tx300_automute() argument
6182 alc282_fixup_asus_tx300(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc282_fixup_asus_tx300() argument
6217 alc290_fixup_mono_speakers(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc290_fixup_mono_speakers() argument
6230 alc298_fixup_speaker_volume(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc298_fixup_speaker_volume() argument
6247 alc295_fixup_disable_dac3(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc295_fixup_disable_dac3() argument
6257 alc285_fixup_speaker2_to_dac1(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_speaker2_to_dac1() argument
6267 alc280_hp_gpio4_automute_hook(struct hda_codec *codec, struct hda_jack_callback *jack) alc280_hp_gpio4_automute_hook() argument
6284 alc280_fixup_hp_9480m(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc280_fixup_hp_9480m() argument
6299 alc275_fixup_gpio4_off(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc275_fixup_gpio4_off() argument
6318 alc285_fixup_thinkpad_x1_gen7(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_thinkpad_x1_gen7() argument
6345 alc233_alc662_fixup_lenovo_dual_codecs(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc233_alc662_fixup_lenovo_dual_codecs() argument
6369 alc225_fixup_s3_pop_noise(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc225_fixup_s3_pop_noise() argument
6379 alc274_fixup_bind_dacs(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc274_fixup_bind_dacs() argument
6397 alc289_fixup_asus_ga401(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc289_fixup_asus_ga401() argument
6412 alc285_fixup_invalidate_dacs(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_invalidate_dacs() argument
6421 alc_combo_jack_hp_jd_restart(struct hda_codec *codec) alc_combo_jack_hp_jd_restart() argument
6445 alc295_fixup_chromebook(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc295_fixup_chromebook() argument
6460 alc_fixup_disable_mic_vref(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_disable_mic_vref() argument
6468 alc294_gx502_toggle_output(struct hda_codec *codec, struct hda_jack_callback *cb) alc294_gx502_toggle_output() argument
6480 alc294_fixup_gx502_hp(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc294_fixup_gx502_hp() argument
6501 alc294_gu502_toggle_output(struct hda_codec *codec, struct hda_jack_callback *cb) alc294_gu502_toggle_output() argument
6513 alc294_fixup_gu502_hp(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc294_fixup_gu502_hp() argument
6530 alc285_fixup_hp_gpio_amp_init(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_gpio_amp_init() argument
6540 alc274_fixup_hp_headset_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc274_fixup_hp_headset_mic() argument
6550 alc_fixup_no_int_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_no_int_mic() argument
6570 alc285_fixup_hp_spectre_x360_eb1(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_spectre_x360_eb1() argument
6605 alc285_fixup_hp_spectre_x360(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc285_fixup_hp_spectre_x360() argument
6626 alc_fixup_thinkpad_acpi(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_thinkpad_acpi() argument
6634 alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc287_fixup_legion_15imhg05_speakers() argument
6660 alc256_fixup_set_coef_defaults(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc256_fixup_set_coef_defaults() argument
6682 alc233_fixup_no_audio_jack(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc233_fixup_no_audio_jack() argument
6696 alc256_fixup_mic_no_presence_and_resume(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc256_fixup_mic_no_presence_and_resume() argument
6713 alc295_fixup_dell_inspiron_top_speakers(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc295_fixup_dell_inspiron_top_speakers() argument
6982 alc298_fixup_lenovo_c940_duet7(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc298_fixup_lenovo_c940_duet7() argument
9979 alc269_fill_coef(struct hda_codec *codec) alc269_fill_coef() argument
10021 patch_alc269(struct hda_codec *codec) patch_alc269() argument
10226 alc861_parse_auto_config(struct hda_codec *codec) alc861_parse_auto_config() argument
10243 alc861_fixup_asus_amp_vref_0f(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc861_fixup_asus_amp_vref_0f() argument
10260 alc_fixup_no_jack_detect(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_no_jack_detect() argument
10315 patch_alc861(struct hda_codec *codec) patch_alc861() argument
10364 alc861vd_parse_auto_config(struct hda_codec *codec) alc861vd_parse_auto_config() argument
10377 alc861vd_fixup_dallas(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc861vd_fixup_dallas() argument
10387 alc660vd_fixup_asus_gpio1(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc660vd_fixup_asus_gpio1() argument
10417 patch_alc861vd(struct hda_codec *codec) patch_alc861vd() argument
10473 alc662_parse_auto_config(struct hda_codec *codec) alc662_parse_auto_config() argument
10489 alc272_fixup_mario(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc272_fixup_mario() argument
10512 alc_fixup_bass_chmap(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc_fixup_bass_chmap() argument
10522 gpio_led_power_filter(struct hda_codec *codec, hda_nid_t nid, unsigned int power_state) gpio_led_power_filter() argument
10532 alc662_fixup_led_gpio1(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc662_fixup_led_gpio1() argument
10544 alc662_usi_automute_hook(struct hda_codec *codec, struct hda_jack_callback *jack) alc662_usi_automute_hook() argument
10558 alc662_fixup_usi_headset_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc662_fixup_usi_headset_mic() argument
10568 alc662_aspire_ethos_mute_speakers(struct hda_codec *codec, struct hda_jack_callback *cb) alc662_aspire_ethos_mute_speakers() argument
10586 alc662_fixup_aspire_ethos_hp(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc662_fixup_aspire_ethos_hp() argument
10609 alc671_fixup_hp_headset_mic2(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc671_fixup_hp_headset_mic2() argument
10632 alc897_hp_automute_hook(struct hda_codec *codec, struct hda_jack_callback *jack) alc897_hp_automute_hook() argument
10644 alc897_fixup_lenovo_headset_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc897_fixup_lenovo_headset_mic() argument
10653 alc897_fixup_lenovo_headset_mode(struct hda_codec *codec, const struct hda_fixup *fix, int action) alc897_fixup_lenovo_headset_mode() argument
10688 alc668_restore_default_value(struct hda_codec *codec) alc668_restore_default_value() argument
11423 patch_alc662(struct hda_codec *codec) patch_alc662() argument
11504 alc680_parse_auto_config(struct hda_codec *codec) alc680_parse_auto_config() argument
11511 patch_alc680(struct hda_codec *codec) patch_alc680() argument
[all...]
H A Dhda_sysfs.c3 * sysfs interface for HD-audio codec
34 struct hda_codec *codec = dev_get_drvdata(dev); in power_on_acct_show() local
35 snd_hda_update_power_acct(codec); in power_on_acct_show()
36 return sprintf(buf, "%u\n", jiffies_to_msecs(codec->power_on_acct)); in power_on_acct_show()
43 struct hda_codec *codec = dev_get_drvdata(dev); in power_off_acct_show() local
44 snd_hda_update_power_acct(codec); in power_off_acct_show()
45 return sprintf(buf, "%u\n", jiffies_to_msecs(codec->power_off_acct)); in power_off_acct_show()
57 struct hda_codec *codec = dev_get_drvdata(dev); \
58 return sprintf(buf, "0x%x\n", codec->field); \
66 struct hda_codec *codec
80 pin_configs_show(struct hda_codec *codec, struct snd_array *list, char *buf) pin_configs_show() argument
99 struct hda_codec *codec = dev_get_drvdata(dev); init_pin_configs_show() local
107 struct hda_codec *codec = dev_get_drvdata(dev); driver_pin_configs_show() local
117 clear_codec(struct hda_codec *codec) clear_codec() argument
130 reconfig_codec(struct hda_codec *codec) reconfig_codec() argument
220 struct hda_codec *codec = dev_get_drvdata(dev); init_verbs_show() local
233 parse_init_verbs(struct hda_codec *codec, const char *buf) parse_init_verbs() argument
259 struct hda_codec *codec = dev_get_drvdata(dev); init_verbs_store() local
270 struct hda_codec *codec = dev_get_drvdata(dev); hints_show() local
282 get_hint(struct hda_codec *codec, const char *key) get_hint() argument
309 parse_hints(struct hda_codec *codec, const char *buf) parse_hints() argument
364 struct hda_codec *codec = dev_get_drvdata(dev); hints_store() local
375 struct hda_codec *codec = dev_get_drvdata(dev); user_pin_configs_show() local
381 parse_user_pin_configs(struct hda_codec *codec, const char *buf) parse_user_pin_configs() argument
399 struct hda_codec *codec = dev_get_drvdata(dev); user_pin_configs_store() local
421 snd_hda_get_hint(struct hda_codec *codec, const char *key) snd_hda_get_hint() argument
437 snd_hda_get_bool_hint(struct hda_codec *codec, const char *key) snd_hda_get_bool_hint() argument
473 snd_hda_get_int_hint(struct hda_codec *codec, const char *key, int *valp) snd_hda_get_int_hint() argument
544 struct hda_codec *codec; parse_codec_mode() local
718 struct hda_codec *codec; snd_hda_load_patch() local
774 snd_hda_sysfs_init(struct hda_codec *codec) snd_hda_sysfs_init() argument
784 snd_hda_sysfs_clear(struct hda_codec *codec) snd_hda_sysfs_clear() argument
[all...]
H A Dhda_jack.c21 * @codec: the HDA codec
26 * detection is prohibited in the codec level, the pin config has
29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument
31 if (codec->no_jack_detect) in is_jack_detectable()
33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable()
35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable()
38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable()
39 !codec->jackpoll_interval) in is_jack_detectable()
46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_ argument
71 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_tbl_get_mst() argument
92 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag, int dev_id) snd_hda_jack_tbl_get_from_tag() argument
108 any_jack_tbl_get_from_nid(struct hda_codec *codec, hda_nid_t nid) any_jack_tbl_get_from_nid() argument
128 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_tbl_new() argument
161 snd_hda_jack_tbl_clear(struct hda_codec *codec) snd_hda_jack_tbl_clear() argument
184 jack_detect_update(struct hda_codec *codec, struct hda_jack_tbl *jack) jack_detect_update() argument
222 snd_hda_jack_set_dirty_all(struct hda_codec *codec) snd_hda_jack_set_dirty_all() argument
242 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_pin_sense() argument
263 snd_hda_jack_detect_state_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_detect_state_mst() argument
307 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id, hda_jack_callback_fn func) snd_hda_jack_detect_enable_callback_mst() argument
354 snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_detect_enable() argument
372 snd_hda_jack_set_gating_jack(struct hda_codec *codec, hda_nid_t gated_nid, hda_nid_t gating_nid) snd_hda_jack_set_gating_jack() argument
395 snd_hda_jack_report_sync(struct hda_codec *codec) snd_hda_jack_report_sync() argument
428 get_input_jack_type(struct hda_codec *codec, hda_nid_t nid) get_input_jack_type() argument
467 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) snd_hda_jack_add_kctl_mst() argument
512 add_jack_kctl(struct hda_codec *codec, hda_nid_t nid, const struct auto_pin_cfg *cfg, const char *base_name) add_jack_kctl() argument
553 snd_hda_jack_add_kctls(struct hda_codec *codec, const struct auto_pin_cfg *cfg) snd_hda_jack_add_kctls() argument
610 call_jack_callback(struct hda_codec *codec, unsigned int res, struct hda_jack_tbl *jack) call_jack_callback() argument
639 snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res) snd_hda_jack_unsol_event() argument
668 snd_hda_jack_poll_all(struct hda_codec *codec) snd_hda_jack_poll_all() argument
[all...]
H A Dhda_auto_parser.c56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument
63 nid_has_volume(codec, nid, HDA_INPUT); in add_auto_cfg_input_pin()
108 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity() argument
111 unsigned int pincap = snd_hda_query_pin_caps(codec, pin); in check_pincap_validity()
129 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic() argument
141 def_conf = snd_hda_codec_get_pincfg(codec, item->pin); in can_be_headset_mic()
172 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg() argument
184 if (!snd_hda_get_int_hint(codec, "parser_flags", &i)) in snd_hda_parse_pin_defcfg()
194 for_each_hda_codec_node(nid, codec) { in snd_hda_parse_pin_defcfg()
195 unsigned int wid_caps = get_wcaps(codec, ni in snd_hda_parse_pin_defcfg()
484 hda_get_input_pin_label(struct hda_codec *codec, const struct auto_pin_cfg_item *item, hda_nid_t pin, bool check_location) hda_get_input_pin_label() argument
536 check_mic_location_need(struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input) check_mic_location_need() argument
573 hda_get_autocfg_input_label(struct hda_codec *codec, const struct auto_pin_cfg *cfg, int input) hda_get_autocfg_input_label() argument
624 check_output_pfx(struct hda_codec *codec, hda_nid_t nid) check_output_pfx() argument
639 get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, const hda_nid_t *pins, int num_pins) get_hp_label_index() argument
656 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) fill_audio_out_name() argument
712 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) snd_hda_get_pin_label() argument
780 snd_hda_add_verbs(struct hda_codec *codec, const struct hda_verb *list) snd_hda_add_verbs() argument
796 snd_hda_apply_verbs(struct hda_codec *codec) snd_hda_apply_verbs() argument
811 snd_hda_apply_pincfgs(struct hda_codec *codec, const struct hda_pintbl *cfg) snd_hda_apply_pincfgs() argument
819 set_pin_targets(struct hda_codec *codec, const struct hda_pintbl *cfg) set_pin_targets() argument
826 __snd_hda_apply_fixup(struct hda_codec *codec, int id, int action, int depth) __snd_hda_apply_fixup() argument
884 snd_hda_apply_fixup(struct hda_codec *codec, int action) snd_hda_apply_fixup() argument
893 pin_config_match(struct hda_codec *codec, const struct hda_pintbl *pins, bool match_all_pins) pin_config_match() argument
934 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) snd_hda_pick_pin_fixup() argument
978 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) snd_hda_pick_fixup() argument
[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, in print_nid_array()
75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms()
80 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in print_nid_pcms()
94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps()
97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps()
112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() argument
126 if (snd_hda_get_raw_connections(codec, ni in is_stereo_amps()
47 print_nid_array(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, struct snd_array *array) print_nid_array() argument
74 print_nid_pcms(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_nid_pcms() argument
93 print_amp_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir) print_amp_caps() 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) print_amp_vals() argument
199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_pcm_caps() argument
304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) print_pin_caps() argument
400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) print_pin_ctls() argument
438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_vol_knob() argument
450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) print_audio_io() argument
468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_digital_conv() argument
512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_power_state() argument
553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_unsol_cap() argument
564 can_dump_coef(struct hda_codec *codec) can_dump_coef() argument
573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_proc_caps() 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) print_conn_list() argument
638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_gpio() argument
682 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_device_list() argument
712 print_codec_core_info(struct hdac_device *codec, struct snd_info_buffer *buffer) print_codec_core_info() argument
741 struct hda_codec *codec = entry->private_data; print_codec_info() local
905 snd_hda_codec_proc_new(struct hda_codec *codec) snd_hda_codec_proc_new() argument
[all...]
H A Dhda_generic.c105 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() argument
107 struct hda_gen_spec *spec = codec->spec; in parse_user_hints()
110 val = snd_hda_get_bool_hint(codec, "jack_detect"); in parse_user_hints()
112 codec->no_jack_detect = !val; in parse_user_hints()
113 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); in parse_user_hints()
115 codec->inv_jack_detect = !!val; in parse_user_hints()
116 val = snd_hda_get_bool_hint(codec, "trigger_sense"); in parse_user_hints()
118 codec->no_trigger_sense = !val; in parse_user_hints()
119 val = snd_hda_get_bool_hint(codec, "inv_eapd"); in parse_user_hints()
121 codec in parse_user_hints()
210 restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) restore_pin_ctl() argument
216 set_pin_target(struct hda_codec *codec, hda_nid_t pin, unsigned int val, bool do_write) set_pin_target() argument
228 set_pin_targets(struct hda_codec *codec, int num_pins, hda_nid_t *pins, unsigned int val) set_pin_targets() argument
256 get_nid_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid) get_nid_path() argument
287 snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) snd_hda_get_path_idx() argument
308 snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) snd_hda_get_path_from_idx() argument
319 is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) is_dac_already_used() argument
333 is_reachable_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid) is_reachable_path() argument
345 is_ctl_used(struct hda_codec *codec, unsigned int val, int type) is_ctl_used() argument
360 is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int type) is_ctl_associated() argument
367 print_nid_path(struct hda_codec *codec, const char *pfx, struct nid_path *path) print_nid_path() argument
384 __parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid, struct nid_path *path, int depth) __parse_nid_path() argument
454 snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid, struct nid_path *path) snd_hda_parse_nid_path() argument
477 snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, hda_nid_t to_nid, int anchor_nid) snd_hda_add_new_path() argument
504 invalidate_nid_path(struct hda_codec *codec, int idx) invalidate_nid_path() argument
513 get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) get_preferred_dac() argument
527 look_for_dac(struct hda_codec *codec, hda_nid_t pin, bool is_digital) look_for_dac() argument
555 same_amp_caps(struct hda_codec *codec, hda_nid_t nid1, hda_nid_t nid2, int dir) same_amp_caps() argument
565 look_for_out_mute_nid(struct hda_codec *codec, struct nid_path *path) look_for_out_mute_nid() argument
581 look_for_out_vol_nid(struct hda_codec *codec, struct nid_path *path) look_for_out_vol_nid() argument
602 has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) has_amp_in() argument
616 has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) has_amp_out() argument
630 is_active_nid(struct hda_codec *codec, hda_nid_t nid, unsigned int dir, unsigned int idx) is_active_nid() argument
669 get_amp_val_to_activate(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int caps, bool enable) get_amp_val_to_activate() argument
687 is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) is_stereo_amps() argument
704 init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) init_amp() argument
716 update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, unsigned int mask, unsigned int val) update_amp() argument
730 get_amp_mask_to_modify(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, unsigned int caps) get_amp_mask_to_modify() argument
748 activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int idx_to_check, bool enable) activate_amp() argument
764 check_and_activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, int idx_to_check, bool enable) check_and_activate_amp() argument
774 activate_amp_out(struct hda_codec *codec, struct nid_path *path, int i, bool enable) activate_amp_out() argument
782 activate_amp_in(struct hda_codec *codec, struct nid_path *path, int i, bool enable, bool add_aamix) activate_amp_in() argument
823 path_power_update(struct hda_codec *codec, struct nid_path *path, bool allow_powerdown) path_power_update() argument
862 sync_power_state_change(struct hda_codec *codec, hda_nid_t nid) sync_power_state_change() argument
879 snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, bool enable, bool add_aamix) snd_hda_activate_path() argument
907 path_power_down_sync(struct hda_codec *codec, struct nid_path *path) path_power_down_sync() argument
917 set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable) set_pin_eapd() argument
933 resume_path_from_idx(struct hda_codec *codec, int path_idx) resume_path_from_idx() argument
1014 add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, unsigned int chs, struct nid_path *path) add_vol_ctl() argument
1028 get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, int type) get_default_ch_nums() argument
1040 add_stereo_vol(struct hda_codec *codec, const char *pfx, int cidx, struct nid_path *path) add_stereo_vol() argument
1050 add_sw_ctl(struct hda_codec *codec, const char *pfx, int cidx, unsigned int chs, struct nid_path *path) add_sw_ctl() argument
1073 add_stereo_sw(struct hda_codec *codec, const char *pfx, int cidx, struct nid_path *path) add_stereo_sw() argument
1084 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); sync_auto_mute_bits() local
1111 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hda_gen_bind_mute_get() local
1127 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hda_gen_bind_mute_put() local
1150 path_has_mixer(struct hda_codec *codec, int path_idx, int ctl_type) path_has_mixer() argument
1161 get_line_out_pfx(struct hda_codec *codec, int ch, int *index, int ctl_type) get_line_out_pfx() argument
1279 assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) assign_out_path_ctls() argument
1342 get_primary_out(struct hda_codec *codec, int idx) get_primary_out() argument
1356 try_dac(struct hda_codec *codec, hda_nid_t dac, hda_nid_t pin) try_dac() argument
1363 try_assign_dacs(struct hda_codec *codec, int num_outs, const hda_nid_t *pins, hda_nid_t *dacs, int *path_idx, const struct badness_table *bad) try_assign_dacs() argument
1455 get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) get_dac_if_single() argument
1475 can_be_multiio_pin(struct hda_codec *codec, unsigned int location, hda_nid_t nid) can_be_multiio_pin() argument
1492 count_multiio_pins(struct hda_codec *codec, hda_nid_t reference_pin) count_multiio_pins() argument
1521 fill_multi_ios(struct hda_codec *codec, hda_nid_t reference_pin, bool hardwired) fill_multi_ios() argument
1607 map_singles(struct hda_codec *codec, int outs, const hda_nid_t *pins, hda_nid_t *dacs, int *path_idx) map_singles() argument
1643 check_aamix_out_path(struct hda_codec *codec, int path_idx) check_aamix_out_path() argument
1679 indep_hp_possible(struct hda_codec *codec) indep_hp_possible() argument
1718 refill_shared_dacs(struct hda_codec *codec, int num_outs, hda_nid_t *dacs, int *path_idx) refill_shared_dacs() argument
1735 fill_and_eval_dacs(struct hda_codec *codec, bool fill_hardwired, bool fill_mio_first) fill_and_eval_dacs() argument
1898 print_nid_path_idx(struct hda_codec *codec, const char *pfx, int idx) print_nid_path_idx() argument
1908 debug_show_configs(struct hda_codec *codec, struct auto_pin_cfg *cfg) debug_show_configs() argument
1961 fill_all_dac_nids(struct hda_codec *codec) fill_all_dac_nids() argument
1979 parse_output_paths(struct hda_codec *codec) parse_output_paths() argument
2100 create_multi_out_ctls(struct hda_codec *codec, const struct auto_pin_cfg *cfg) create_multi_out_ctls() argument
2151 create_extra_out(struct hda_codec *codec, int path_idx, const char *pfx, int cidx) create_extra_out() argument
2170 create_extra_outs(struct hda_codec *codec, int num_pins, const int *paths, const char *pfx) create_extra_outs() argument
2197 create_hp_out_ctls(struct hda_codec *codec) create_hp_out_ctls() argument
2205 create_speaker_out_ctls(struct hda_codec *codec) create_speaker_out_ctls() argument
2228 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); indep_hp_get() local
2241 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); indep_hp_put() local
2296 create_indep_hp_ctls(struct hda_codec *codec) create_indep_hp_ctls() argument
2326 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_info() local
2343 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_get() local
2351 get_multiio_path(struct hda_codec *codec, int idx) get_multiio_path() argument
2368 set_multi_io(struct hda_codec *codec, int idx, bool output) set_multi_io() argument
2401 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); ch_mode_put() local
2428 create_multi_channel_mode(struct hda_codec *codec) create_multi_channel_mode() argument
2448 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); loopback_mixing_get() local
2454 update_aamix_paths(struct hda_codec *codec, bool do_mix, int nomix_path_idx, int mix_path_idx, int out_type) update_aamix_paths() argument
2485 update_output_paths(struct hda_codec *codec, int num_outs, const int *paths) update_output_paths() argument
2503 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); loopback_mixing_put() local
2540 create_loopback_mixing_ctl(struct hda_codec *codec) create_loopback_mixing_ctl() argument
2559 update_hp_mic(struct hda_codec *codec, int adc_mux, bool force) update_hp_mic() argument
2603 create_hp_mic(struct hda_codec *codec) create_hp_mic() argument
2671 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); out_jack_mode_get() local
2683 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); out_jack_mode_put() local
2701 find_kctl_name(struct hda_codec *codec, const char *name, int idx) find_kctl_name() argument
2714 get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, char *name, size_t name_len) get_jack_mode_name() argument
2727 get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin) get_out_jack_num_items() argument
2738 create_out_jack_modes(struct hda_codec *codec, int num_pins, hda_nid_t *pins) create_out_jack_modes() argument
2775 get_vref_caps(struct hda_codec *codec, hda_nid_t pin) get_vref_caps() argument
2818 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_info() local
2833 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_get() local
2846 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in_jack_mode_put() local
2869 get_in_jack_num_items(struct hda_codec *codec, hda_nid_t pin) get_in_jack_num_items() argument
2878 create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) create_in_jack_mode() argument
2911 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_info() local
2942 get_cur_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t nid) get_cur_hp_mic_jack_mode() argument
2966 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_get() local
2976 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); hp_mic_jack_mode_put() local
3015 create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin) create_hp_mic_jack_mode() argument
3051 look_for_mix_leaf_ctls(struct hda_codec *codec, hda_nid_t mix_nid, hda_nid_t pin, unsigned int *mix_val, unsigned int *mute_val) look_for_mix_leaf_ctls() argument
3087 new_analog_input(struct hda_codec *codec, int input_idx, hda_nid_t pin, const char *ctlname, int ctlidx, hda_nid_t mix_nid) new_analog_input() argument
3143 is_input_pin(struct hda_codec *codec, hda_nid_t nid) is_input_pin() argument
3150 fill_adc_nids(struct hda_codec *codec) fill_adc_nids() argument
3180 check_dyn_adc_switch(struct hda_codec *codec) check_dyn_adc_switch() argument
3248 parse_capture_source(struct hda_codec *codec, hda_nid_t pin, int cfg_idx, int num_adcs, const char *label, int anchor) parse_capture_source() argument
3290 fill_input_pin_labels(struct hda_codec *codec) fill_input_pin_labels() argument
3323 create_input_ctls(struct hda_codec *codec) create_input_ctls() argument
3396 get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx) get_input_path() argument
3418 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_info() local
3426 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_get() local
3438 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); mux_enum_put() local
3464 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cap_put_caller() local
3537 parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) parse_capvol_in_path() argument
3576 is_inv_dmic_pin(struct hda_codec *codec, hda_nid_t nid) is_inv_dmic_pin() argument
3600 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); cap_single_sw_put() local
3614 add_single_cap_ctl(struct hda_codec *codec, const char *label, int idx, bool is_switch, unsigned int ctl, bool inv_dmic) add_single_cap_ctl() argument
3660 create_single_cap_vol_ctl(struct hda_codec *codec, int idx, unsigned int vol_ctl, unsigned int sw_ctl, bool inv_dmic) create_single_cap_vol_ctl() argument
3675 create_bind_cap_vol_ctl(struct hda_codec *codec, int idx, unsigned int vol_ctl, unsigned int sw_ctl) create_bind_cap_vol_ctl() argument
3701 get_first_cap_ctl(struct hda_codec *codec, int idx, int type) get_first_cap_ctl() argument
3722 create_multi_cap_vol_ctl(struct hda_codec *codec) create_multi_cap_vol_ctl() argument
3751 create_capture_mixers(struct hda_codec *codec) create_capture_mixers() argument
3824 check_boost_vol(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) check_boost_vol() argument
3842 look_for_boost_amp(struct hda_codec *codec, struct nid_path *path) look_for_boost_amp() argument
3867 parse_mic_boost(struct hda_codec *codec) parse_mic_boost() argument
3916 create_mute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness), bool micmute) create_mute_led_cdev() argument
3954 snd_hda_gen_add_mute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness)) snd_hda_gen_add_mute_led_cdev() argument
3988 call_micmute_led_update(struct hda_codec *codec) call_micmute_led_update() argument
4016 update_micmute_led(struct hda_codec *codec, struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) update_micmute_led() argument
4053 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); micmute_led_mode_get() local
4063 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); micmute_led_mode_put() local
4086 add_micmute_led_hook(struct hda_codec *codec) add_micmute_led_hook() argument
4114 snd_hda_gen_add_micmute_led_cdev(struct hda_codec *codec, int (*callback)(struct led_classdev *, enum led_brightness)) snd_hda_gen_add_micmute_led_cdev() argument
4136 parse_digital(struct hda_codec *codec) parse_digital() argument
4200 mux_select(struct hda_codec *codec, unsigned int adc_idx, unsigned int idx) mux_select() argument
4247 set_path_power(struct hda_codec *codec, hda_nid_t nid, int pin_state, int stream_state) set_path_power() argument
4279 detect_pin_state(struct hda_codec *codec, hda_nid_t pin) detect_pin_state() argument
4292 set_pin_power_jack(struct hda_codec *codec, hda_nid_t pin, int power) set_pin_power_jack() argument
4307 pin_power_callback(struct hda_codec *codec, struct hda_jack_callback *jack, bool on) pin_power_callback() argument
4317 pin_power_up_callback(struct hda_codec *codec, struct hda_jack_callback *jack) pin_power_up_callback() argument
4324 pin_power_down_callback(struct hda_codec *codec, struct hda_jack_callback *jack) pin_power_down_callback() argument
4331 add_pin_power_ctls(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, bool on) add_pin_power_ctls() argument
4349 add_all_pin_power_ctls(struct hda_codec *codec, bool on) add_all_pin_power_ctls() argument
4367 sync_pin_power_ctls(struct hda_codec *codec, int num_pins, const hda_nid_t *pins) sync_pin_power_ctls() argument
4378 sync_all_pin_power_ctls(struct hda_codec *codec) sync_all_pin_power_ctls() argument
4396 add_fake_paths(struct hda_codec *codec, hda_nid_t nid, int num_pins, const hda_nid_t *pins) add_fake_paths() argument
4421 add_fake_beep_paths(struct hda_codec *codec) add_fake_beep_paths() argument
4458 snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin) snd_hda_gen_fix_pin_power() argument
4481 detect_jacks(struct hda_codec *codec, int num_pins, const hda_nid_t *pins) detect_jacks() argument
4500 do_automute(struct hda_codec *codec, int num_pins, const hda_nid_t *pins, int *paths, bool mute) do_automute() argument
4565 snd_hda_gen_update_outputs(struct hda_codec *codec) snd_hda_gen_update_outputs() argument
4612 call_update_outputs(struct hda_codec *codec) call_update_outputs() argument
4630 snd_hda_gen_hp_automute(struct hda_codec *codec, struct hda_jack_callback *jack) snd_hda_gen_hp_automute() argument
4655 snd_hda_gen_line_automute(struct hda_codec *codec, struct hda_jack_callback *jack) snd_hda_gen_line_automute() argument
4680 snd_hda_gen_mic_autoswitch(struct hda_codec *codec, struct hda_jack_callback *jack) snd_hda_gen_mic_autoswitch() argument
4704 call_hp_automute(struct hda_codec *codec, struct hda_jack_callback *jack) call_hp_automute() argument
4714 call_line_automute(struct hda_codec *codec, struct hda_jack_callback *jack) call_line_automute() argument
4724 call_mic_autoswitch(struct hda_codec *codec, struct hda_jack_callback *jack) call_mic_autoswitch() argument
4735 update_automute_all(struct hda_codec *codec) update_automute_all() argument
4748 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_info() local
4762 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_get() local
4777 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); automute_mode_put() local
4823 add_automute_mode_enum(struct hda_codec *codec) add_automute_mode_enum() argument
4836 check_auto_mute_availability(struct hda_codec *codec) check_auto_mute_availability() argument
4909 auto_mic_check_imux(struct hda_codec *codec) auto_mic_check_imux() argument
4943 check_auto_mic_availability(struct hda_codec *codec) check_auto_mic_availability() argument
5018 snd_hda_gen_path_power_filter(struct hda_codec *codec, hda_nid_t nid, unsigned int power_state) snd_hda_gen_path_power_filter() argument
5037 mute_all_mixer_nid(struct hda_codec *codec, hda_nid_t mix) mute_all_mixer_nid() argument
5063 snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on) snd_hda_gen_stream_pm() argument
5079 snd_hda_gen_parse_auto_config(struct hda_codec *codec, struct auto_pin_cfg *cfg) snd_hda_gen_parse_auto_config() argument
5281 snd_hda_gen_build_controls(struct hda_codec *codec) snd_hda_gen_build_controls() argument
5352 call_pcm_playback_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) call_pcm_playback_hook() argument
5362 call_pcm_capture_hook(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream, int action) call_pcm_capture_hook() argument
5375 playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) playback_pcm_open() argument
5395 playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) playback_pcm_prepare() argument
5412 playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) playback_pcm_cleanup() argument
5426 playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) playback_pcm_close() argument
5439 capture_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) capture_pcm_open() argument
5447 capture_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) capture_pcm_prepare() argument
5459 capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) capture_pcm_cleanup() argument
5469 capture_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) capture_pcm_close() argument
5477 alt_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) alt_playback_pcm_open() argument
5495 alt_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) alt_playback_pcm_close() argument
5508 alt_playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) alt_playback_pcm_prepare() argument
5520 alt_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) alt_playback_pcm_cleanup() argument
5533 dig_playback_pcm_open(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) dig_playback_pcm_open() argument
5541 dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) dig_playback_pcm_prepare() argument
5552 dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) dig_playback_pcm_cleanup() argument
5560 dig_playback_pcm_close(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) dig_playback_pcm_close() argument
5574 alt_capture_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) alt_capture_pcm_prepare() argument
5589 alt_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) alt_capture_pcm_cleanup() argument
5686 dyn_adc_pcm_resetup(struct hda_codec *codec, int cur) dyn_adc_pcm_resetup() argument
5704 dyn_adc_capture_pcm_prepare(struct hda_pcm_stream *hinfo, struct hda_codec *codec, unsigned int stream_tag, unsigned int format, struct snd_pcm_substream *substream) dyn_adc_capture_pcm_prepare() argument
5719 dyn_adc_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, struct hda_codec *codec, struct snd_pcm_substream *substream) dyn_adc_capture_pcm_cleanup() argument
5793 snd_hda_gen_build_pcms(struct hda_codec *codec) snd_hda_gen_build_pcms() argument
5907 set_output_and_unmute(struct hda_codec *codec, int path_idx) set_output_and_unmute() argument
5923 init_multi_out(struct hda_codec *codec) init_multi_out() argument
5933 __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) __init_extra_out() argument
5942 init_extra_out(struct hda_codec *codec) init_extra_out() argument
5954 init_multi_io(struct hda_codec *codec) init_multi_io() argument
5973 init_aamix_paths(struct hda_codec *codec) init_aamix_paths() argument
5993 init_analog_input(struct hda_codec *codec) init_analog_input() argument
6013 init_input_src(struct hda_codec *codec) init_input_src() argument
6044 init_digital(struct hda_codec *codec) init_digital() argument
6062 clear_unsol_on_unused_pins(struct hda_codec *codec) clear_unsol_on_unused_pins() argument
6082 snd_hda_gen_init(struct hda_codec *codec) snd_hda_gen_init() argument
6123 snd_hda_gen_free(struct hda_codec *codec) snd_hda_gen_free() argument
6138 snd_hda_gen_reboot_notify(struct hda_codec *codec) snd_hda_gen_reboot_notify() argument
6158 snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) snd_hda_gen_check_power_status() argument
6187 snd_hda_parse_generic_codec(struct hda_codec *codec) snd_hda_parse_generic_codec() argument
[all...]
/third_party/node/deps/base64/base64/lib/
H A Dcodec_choose.c96 codec_choose_forced (struct codec *codec, int flags) in codec_choose_forced() argument
98 // If the user wants to use a certain codec, in codec_choose_forced()
99 // always allow it, even if the codec is a no-op. in codec_choose_forced()
107 codec->enc = base64_stream_encode_avx2; in codec_choose_forced()
108 codec->dec = base64_stream_decode_avx2; in codec_choose_forced()
112 codec->enc = base64_stream_encode_neon32; in codec_choose_forced()
113 codec->dec = base64_stream_decode_neon32; in codec_choose_forced()
117 codec->enc = base64_stream_encode_neon64; in codec_choose_forced()
118 codec in codec_choose_forced()
155 codec_choose_arm(struct codec *codec) codec_choose_arm() argument
180 codec_choose_x86(struct codec *codec) codec_choose_x86() argument
289 codec_choose(struct codec *codec, int flags) codec_choose() argument
[all...]
/kernel/linux/linux-5.10/sound/hda/
H A Dhdac_sysfs.c24 struct hdac_device *codec = dev_to_hdac_dev(dev); \
25 return sprintf(buf, "0x%x\n", codec->type); \
34 struct hdac_device *codec = dev_to_hdac_dev(dev); \
36 codec->type ? codec->type : ""); \
89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid,
91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid,
114 struct hdac_device *codec; in widget_attr_show() local
119 nid = get_codec_nid(kobj, &codec); in widget_attr_show()
122 return wid_attr->show(codec, ni in widget_attr_show()
130 struct hdac_device *codec; widget_attr_store() local
161 caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) caps_show() argument
167 pin_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pin_caps_show() argument
176 pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pin_cfg_show() argument
188 has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) has_pcm_cap() argument
201 pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pcm_caps_show() argument
210 pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pcm_formats_show() argument
219 amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) amp_in_caps_show() argument
228 amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) amp_out_caps_show() argument
237 power_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) power_caps_show() argument
246 gpio_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) gpio_caps_show() argument
253 connections_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) connections_show() argument
320 widget_tree_free(struct hdac_device *codec) widget_tree_free() argument
363 widget_tree_create(struct hdac_device *codec) widget_tree_create() argument
401 hda_widget_sysfs_init(struct hdac_device *codec) hda_widget_sysfs_init() argument
418 hda_widget_sysfs_exit(struct hdac_device *codec) hda_widget_sysfs_exit() argument
424 hda_widget_sysfs_reinit(struct hdac_device *codec, hda_nid_t start_nid, int num_nodes) hda_widget_sysfs_reinit() argument
[all...]
/kernel/linux/linux-6.6/sound/hda/
H A Dhdac_sysfs.c24 struct hdac_device *codec = dev_to_hdac_dev(dev); \
25 return sysfs_emit(buf, "0x%x\n", codec->type); \
34 struct hdac_device *codec = dev_to_hdac_dev(dev); \
36 codec->type ? codec->type : ""); \
89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid,
91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid,
114 struct hdac_device *codec; in widget_attr_show() local
119 nid = get_codec_nid(kobj, &codec); in widget_attr_show()
122 return wid_attr->show(codec, ni in widget_attr_show()
130 struct hdac_device *codec; widget_attr_store() local
161 caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) caps_show() argument
167 pin_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pin_caps_show() argument
176 pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pin_cfg_show() argument
188 has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) has_pcm_cap() argument
201 pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pcm_caps_show() argument
210 pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pcm_formats_show() argument
219 amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) amp_in_caps_show() argument
228 amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) amp_out_caps_show() argument
237 power_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) power_caps_show() argument
246 gpio_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) gpio_caps_show() argument
253 connections_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) connections_show() argument
320 widget_tree_free(struct hdac_device *codec) widget_tree_free() argument
363 widget_tree_create(struct hdac_device *codec) widget_tree_create() argument
401 hda_widget_sysfs_init(struct hdac_device *codec) hda_widget_sysfs_init() argument
418 hda_widget_sysfs_exit(struct hdac_device *codec) hda_widget_sysfs_exit() argument
424 hda_widget_sysfs_reinit(struct hdac_device *codec, hda_nid_t start_nid, int num_nodes) hda_widget_sysfs_reinit() argument
[all...]

Completed in 34 milliseconds

12345678910>>...40