/Linux-v5.4/sound/hda/ |
D | hdac_sysfs.c | 164 return sprintf(buf, "0x%08x\n", get_wcaps(codec, nid)); in caps_show() 170 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in pin_caps_show() 181 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in pin_cfg_show() 192 switch (get_wcaps_type(get_wcaps(codec, nid))) { in has_pcm_cap() 222 if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_IN_AMP)) in amp_in_caps_show() 231 if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_OUT_AMP)) in amp_out_caps_show() 240 if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_POWER)) in power_caps_show()
|
D | local.h | 9 #define get_wcaps(codec, nid) \ macro
|
D | hdac_device.c | 431 unsigned int wcaps = get_wcaps(codec, nid); in get_num_conns() 785 (get_wcaps(codec, nid) & AC_WCAP_FORMAT_OVRD)) in query_pcm_param() 823 wcaps = get_wcaps(codec, nid); in snd_hdac_query_supported_pcm()
|
/Linux-v5.4/sound/pci/hda/ |
D | patch_via.c | 282 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) in auto_parse_beep() 708 get_wcaps(codec, pin) | AC_WCAP_IN_AMP); in override_mic_boost() 824 if (get_wcaps_type(get_wcaps(codec, conn[i])) == AC_WID_AUD_OUT) in add_secret_dac_path() 830 unsigned int caps = get_wcaps(codec, nid); in add_secret_dac_path()
|
D | hda_codec.c | 282 unsigned int type = get_wcaps_type(get_wcaps(codec, conn[i])); in snd_hda_get_conn_index() 302 unsigned int wcaps = get_wcaps(codec, nid); in snd_hda_get_num_devices() 438 unsigned int wcaps = get_wcaps(codec, nid); in read_pin_defaults() 1108 type = get_wcaps_type(get_wcaps(codec, nid)); in snd_hda_codec_setup_stream() 1112 get_wcaps_type(get_wcaps(c, p->nid)) == type) in snd_hda_codec_setup_stream() 1216 if (!(get_wcaps(codec, nid) & AC_WCAP_AMP_OVRD)) in query_amp_caps() 1238 if (get_wcaps(codec, nid) & (1 << (dir + 1))) in snd_hda_check_amp_caps() 1264 get_wcaps(codec, nid) | AC_WCAP_AMP_OVRD); in snd_hda_override_amp_caps() 2358 if ((get_wcaps(codec, nid) & AC_WCAP_OUT_AMP) && in set_spdif_ctls() 2731 unsigned int wcaps = get_wcaps(codec, nid); in snd_hda_codec_set_power_to_all() [all …]
|
D | hda_generic.c | 398 get_wcaps_type(get_wcaps(codec, conn[i])) != AC_WID_AUD_OUT || in __parse_nid_path() 410 type = get_wcaps_type(get_wcaps(codec, conn[i])); in __parse_nid_path() 423 if (nums > 1 && get_wcaps_type(get_wcaps(codec, to_nid)) != AC_WID_AUD_MIX) in __parse_nid_path() 532 cap_digital = !!(get_wcaps(codec, nid) & AC_WCAP_DIGITAL); in look_for_dac() 552 if (!(get_wcaps(codec, nid1) & (1 << (dir + 1)))) in same_amp_caps() 553 return !(get_wcaps(codec, nid2) & (1 << (dir + 1))); in same_amp_caps() 599 unsigned int caps = get_wcaps(codec, nid); in has_amp_in() 613 unsigned int caps = get_wcaps(codec, nid); in has_amp_out() 628 int type = get_wcaps_type(get_wcaps(codec, nid)); in is_active_nid() 683 unsigned int wcaps = get_wcaps(codec, nid); in is_stereo_amps() [all …]
|
D | patch_hdmi.c | 456 if (get_wcaps(codec, pin_nid) & AC_WCAP_OUT_AMP) in hdmi_init_pin() 722 if (get_wcaps(codec, pin_nid) & AC_WCAP_OUT_AMP) in hdmi_setup_audio_infoframe() 1296 if (!(get_wcaps(codec, pin_nid) & AC_WCAP_CONN_LIST)) { in hdmi_read_pin_conn() 1299 pin_nid, get_wcaps(codec, pin_nid)); in hdmi_read_pin_conn() 1780 chans = get_wcaps(codec, cvt_nid); in hdmi_add_cvt() 1824 caps = get_wcaps(codec, nid); in hdmi_parse_codec() 1923 if (get_wcaps(codec, cvt_nid) & AC_WCAP_STRIPE) { in generic_hdmi_playback_pcm_prepare() 2507 if (get_wcaps_type(get_wcaps(codec, pin_nid)) != AC_WID_PIN) in generic_acomp_pin_eld_notify() 2916 chans = get_wcaps(codec, per_cvt->cvt_nid); in simple_playback_build_pcms() 2970 if (get_wcaps(codec, pin) & AC_WCAP_OUT_AMP) in simple_playback_init()
|
D | hda_bind.c | 240 unsigned int wcaps = get_wcaps(codec, nid); in is_likely_hdmi_codec()
|
D | patch_cirrus.c | 785 get_wcaps(codec, 0x18) | AC_WCAP_STEREO); in patch_cs4208() 1050 if (get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) { in parse_cs421x_digital()
|
D | patch_conexant.c | 80 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) in cx_auto_parse_beep() 99 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in cx_auto_parse_eapd()
|
D | hda_jack.c | 38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable()
|
D | hda_local.h | 450 static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid) in get_wcaps() function
|
D | patch_analog.c | 844 get_wcaps_type(get_wcaps(codec, 0x1d)) != AC_WID_AUD_MIX) in ad1988_add_spdif_mux_ctl()
|
D | hda_auto_parser.c | 189 unsigned int wid_caps = get_wcaps(codec, nid); in snd_hda_parse_pin_defcfg()
|
D | patch_sigmatel.c | 4780 if (get_wcaps_type(get_wcaps(codec, 0x28)) == AC_WID_VOL_KNB) in patch_stac92hd71bxx() 4783 if (get_wcaps(codec, 0xa) & AC_WCAP_IN_AMP) { in patch_stac92hd71bxx()
|
D | patch_ca0132.c | 6693 if (get_wcaps(codec, pin) & AC_WCAP_OUT_AMP) in init_output() 6698 if (dac && (get_wcaps(codec, dac) & AC_WCAP_OUT_AMP)) in init_output() 6707 if (get_wcaps(codec, pin) & AC_WCAP_IN_AMP) in init_input() 6712 if (adc && (get_wcaps(codec, adc) & AC_WCAP_IN_AMP)) { in init_input()
|
D | patch_realtek.c | 453 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in set_eapd() 5313 snd_hda_override_wcaps(codec, 0x1b, get_wcaps(codec, 0x1b) & ~AC_WCAP_IN_AMP); in alc_fixup_headset_mode_alc662() 5375 snd_hda_override_wcaps(codec, 0x1a, get_wcaps(codec, 0x1a) & ~AC_WCAP_IN_AMP); in alc256_fixup_dell_xps_13_headphone_noise2()
|
/Linux-v5.4/sound/soc/codecs/ |
D | hdac_hdmi.c | 229 caps = get_wcaps(hdev, nid); in hdac_hdmi_get_port_len() 494 if (!(get_wcaps(hdev, pin->nid) & AC_WCAP_CONN_LIST)) { in hdac_hdmi_query_port_connlist() 497 pin->nid, get_wcaps(hdev, pin->nid)); in hdac_hdmi_query_port_connlist() 662 chans = get_wcaps(hdev, cvt->nid); in hdac_hdmi_query_cvt_params() 744 if (get_wcaps(hdev, nid) & AC_WCAP_POWER) { in hdac_hdmi_set_power_state() 762 if (get_wcaps(hdev, nid) & AC_WCAP_OUT_AMP) in hdac_hdmi_set_amp() 1524 caps = get_wcaps(hdev, nid); in hdac_hdmi_parse_and_map_nid()
|