Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/sound/hda/
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()
Dhdac_device.c438 unsigned int wcaps = get_wcaps(codec, nid); in get_num_conns() local
441 if (!(wcaps & AC_WCAP_CONN_LIST) && in get_num_conns()
442 get_wcaps_type(wcaps) != AC_WID_VOL_KNB) in get_num_conns()
829 unsigned int i, val, wcaps; in snd_hdac_query_supported_pcm() local
831 wcaps = get_wcaps(codec, nid); in snd_hdac_query_supported_pcm()
844 (wcaps & AC_WCAP_FORMAT_OVRD) ? 1 : 0); in snd_hdac_query_supported_pcm()
868 if (wcaps & AC_WCAP_DIGITAL) { in snd_hdac_query_supported_pcm()
907 (wcaps & AC_WCAP_FORMAT_OVRD) ? 1 : 0, in snd_hdac_query_supported_pcm()
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_local.h458 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps()
462 static inline int get_wcaps_type(unsigned int wcaps) in get_wcaps_type() argument
464 if (!wcaps) in get_wcaps_type()
466 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in get_wcaps_type()
469 static inline unsigned int get_wcaps_channels(u32 wcaps) in get_wcaps_channels() argument
473 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in get_wcaps_channels()
484 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps()
Dhda_bind.c248 unsigned int wcaps = get_wcaps(codec, nid); in is_likely_hdmi_codec() local
249 switch (get_wcaps_type(wcaps)) { in is_likely_hdmi_codec()
253 if (!(wcaps & AC_WCAP_DIGITAL)) in is_likely_hdmi_codec()
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()
Dhda_hwdep.c50 res = codec->wcaps[verb]; in get_wcap_ioctl()
Dhda_codec.c302 unsigned int wcaps = get_wcaps(codec, nid); in snd_hda_get_num_devices() local
305 if (!codec->dp_mst || !(wcaps & AC_WCAP_DIGITAL) || in snd_hda_get_num_devices()
306 get_wcaps_type(wcaps) != AC_WID_PIN) in snd_hda_get_num_devices()
421 codec->wcaps = kmalloc_array(codec->core.num_nodes, 4, GFP_KERNEL); in read_widget_caps()
422 if (!codec->wcaps) in read_widget_caps()
426 codec->wcaps[i] = snd_hdac_read_parm_uncached(&codec->core, 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()
860 kfree(codec->wcaps); in snd_hda_codec_dev_release()
1034 kfree(codec->wcaps); in snd_hda_codec_update_widgets()
[all …]
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()
4172 unsigned int wcaps = get_wcaps(codec, dig_nid); in parse_digital() local
4173 if (get_wcaps_type(wcaps) != AC_WID_AUD_IN) in parse_digital()
4175 if (!(wcaps & AC_WCAP_DIGITAL)) in parse_digital()
/kernel/linux/linux-5.10/include/sound/
Dhda_codec.h200 u32 *wcaps; member
/kernel/linux/linux-5.10/Documentation/sound/hd-audio/
Dmodels.rst95 alc283-dac-wcaps