Home
last modified time | relevance | path

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

/openbmc/linux/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.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()
830 unsigned int i, val, wcaps; in snd_hdac_query_supported_pcm() local
832 wcaps = get_wcaps(codec, nid); in snd_hdac_query_supported_pcm()
845 (wcaps & AC_WCAP_FORMAT_OVRD) ? 1 : 0); in snd_hdac_query_supported_pcm()
869 if (wcaps & AC_WCAP_DIGITAL) { in snd_hdac_query_supported_pcm()
908 (wcaps & AC_WCAP_FORMAT_OVRD) ? 1 : 0, in snd_hdac_query_supported_pcm()
/openbmc/linux/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.h484 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps()
488 static inline int get_wcaps_type(unsigned int wcaps) in get_wcaps_type() argument
490 if (!wcaps) in get_wcaps_type()
492 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in get_wcaps_type()
495 static inline unsigned int get_wcaps_channels(u32 wcaps) in get_wcaps_channels() argument
499 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in get_wcaps_channels()
510 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
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()
884 kfree(codec->wcaps); in snd_hda_codec_dev_release()
1075 kfree(codec->wcaps); in snd_hda_codec_update_widgets()
[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()
4062 unsigned int wcaps = get_wcaps(codec, dig_nid); in parse_digital() local
4063 if (get_wcaps_type(wcaps) != AC_WID_AUD_IN) in parse_digital()
4065 if (!(wcaps & AC_WCAP_DIGITAL)) in parse_digital()
/openbmc/linux/include/sound/
H A Dhda_codec.h201 u32 *wcaps; member
/openbmc/linux/Documentation/sound/hd-audio/
H A Dmodels.rst95 alc283-dac-wcaps