Home
last modified time | relevance | path

Searched refs:wcaps (Results 1 – 10 of 10) sorted by relevance

/linux-6.15/sound/hda/
H A Dlocal.h13 static inline int get_wcaps_type(unsigned int wcaps) in get_wcaps_type() argument
15 if (!wcaps) in get_wcaps_type()
17 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in get_wcaps_type()
20 static inline unsigned int get_wcaps_channels(u32 wcaps) in get_wcaps_channels() argument
24 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in get_wcaps_channels()
H A Dhdac_device.c439 unsigned int wcaps = get_wcaps(codec, nid); in get_num_conns() local
442 if (!(wcaps & AC_WCAP_CONN_LIST) && in get_num_conns()
443 get_wcaps_type(wcaps) != AC_WID_VOL_KNB) in get_num_conns()
896 unsigned int i, val, wcaps; in snd_hdac_query_supported_pcm() local
898 wcaps = get_wcaps(codec, nid); in snd_hdac_query_supported_pcm()
911 (wcaps & AC_WCAP_FORMAT_OVRD) ? 1 : 0); in snd_hdac_query_supported_pcm()
947 if (wcaps & AC_WCAP_DIGITAL) { in snd_hdac_query_supported_pcm()
975 (wcaps & AC_WCAP_FORMAT_OVRD) ? 1 : 0, in snd_hdac_query_supported_pcm()
/linux-6.15/sound/pci/hda/
H A Dhda_bind.c256 if (!codec->wcaps) in is_likely_hdmi_codec()
260 unsigned int wcaps = get_wcaps(codec, nid); in is_likely_hdmi_codec() local
261 switch (get_wcaps_type(wcaps)) { in is_likely_hdmi_codec()
265 if (!(wcaps & AC_WCAP_DIGITAL)) in is_likely_hdmi_codec()
H A Dhda_local.h486 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps()
490 static inline int get_wcaps_type(unsigned int wcaps) in get_wcaps_type() argument
492 if (!wcaps) in get_wcaps_type()
494 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in get_wcaps_type()
497 static inline unsigned int get_wcaps_channels(u32 wcaps) in get_wcaps_channels() argument
501 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in get_wcaps_channels()
512 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps()
H A Dhda_proc.c113 int dir, unsigned int wcaps, int indices) in is_stereo_amps() argument
117 if (wcaps & AC_WCAP_STEREO) in is_stereo_amps()
123 get_wcaps_type(wcaps) != AC_WID_AUD_MIX) in is_stereo_amps()
129 wcaps = snd_hda_param_read(codec, conn, AC_PAR_AUDIO_WIDGET_CAP); in is_stereo_amps()
130 return !!(wcaps & AC_WCAP_STEREO); in is_stereo_amps()
135 int dir, unsigned int wcaps, int indices) in print_amp_vals() argument
141 stereo = is_stereo_amps(codec, nid, dir, wcaps, indices); in print_amp_vals()
H A Dhda_hwdep.c50 res = codec->wcaps[verb]; in get_wcap_ioctl()
H A Dhda_codec.c302 unsigned int wcaps = get_wcaps(codec, nid); in snd_hda_get_num_devices() local
306 get_wcaps_type(wcaps) != AC_WID_PIN) in snd_hda_get_num_devices()
422 if (!codec->wcaps) in read_widget_caps()
438 unsigned int wcaps = get_wcaps(codec, nid); in read_pin_defaults() local
439 unsigned int wid_type = get_wcaps_type(wcaps); in read_pin_defaults()
882 kfree(codec->wcaps); in snd_hda_codec_dev_release()
1071 kfree(codec->wcaps); in snd_hda_codec_update_widgets()
2749 unsigned int wcaps = get_wcaps(codec, nid); in snd_hda_codec_set_power_to_all() local
2751 if (!(wcaps & AC_WCAP_POWER)) in snd_hda_codec_set_power_to_all()
2846 unsigned int wcaps = get_wcaps(codec, nid); in sync_power_up_states() local
[all …]
H A Dhda_generic.c689 unsigned int wcaps = get_wcaps(codec, nid); in is_stereo_amps() local
692 if (wcaps & AC_WCAP_STEREO) in is_stereo_amps()
694 if (dir != HDA_INPUT || get_wcaps_type(wcaps) != AC_WID_AUD_MIX) in is_stereo_amps()
4061 unsigned int wcaps = get_wcaps(codec, dig_nid); in parse_digital() local
4062 if (get_wcaps_type(wcaps) != AC_WID_AUD_IN) in parse_digital()
4064 if (!(wcaps & AC_WCAP_DIGITAL)) in parse_digital()
/linux-6.15/include/sound/
H A Dhda_codec.h201 u32 *wcaps; member
/linux-6.15/Documentation/sound/hd-audio/
H A Dmodels.rst95 alc283-dac-wcaps