Searched refs:wcaps (Results 1 – 9 of 9) sorted by relevance
/sound/hda/ |
D | local.h | 12 static inline int get_wcaps_type(unsigned int wcaps) in get_wcaps_type() argument 14 if (!wcaps) in get_wcaps_type() 16 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in get_wcaps_type() 19 static inline unsigned int get_wcaps_channels(u32 wcaps) in get_wcaps_channels() argument 23 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in get_wcaps_channels()
|
D | hdac_device.c | 443 unsigned int wcaps = get_wcaps(codec, nid); in get_num_conns() local 446 if (!(wcaps & AC_WCAP_CONN_LIST) && in get_num_conns() 447 get_wcaps_type(wcaps) != AC_WID_VOL_KNB) in get_num_conns() 850 unsigned int i, val, wcaps; in snd_hdac_query_supported_pcm() local 852 wcaps = get_wcaps(codec, nid); in snd_hdac_query_supported_pcm() 865 (wcaps & AC_WCAP_FORMAT_OVRD) ? 1 : 0); in snd_hdac_query_supported_pcm() 889 if (wcaps & AC_WCAP_DIGITAL) { in snd_hdac_query_supported_pcm() 928 (wcaps & AC_WCAP_FORMAT_OVRD) ? 1 : 0, in snd_hdac_query_supported_pcm()
|
/sound/pci/hda/ |
D | local.h | 12 static inline int get_wcaps_type(unsigned int wcaps) in get_wcaps_type() argument 14 if (!wcaps) in get_wcaps_type() 16 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in get_wcaps_type()
|
D | hda_bind.c | 223 unsigned int wcaps = get_wcaps(codec, nid); in is_likely_hdmi_codec() local 224 switch (get_wcaps_type(wcaps)) { in is_likely_hdmi_codec() 228 if (!(wcaps & AC_WCAP_DIGITAL)) in is_likely_hdmi_codec()
|
D | hda_local.h | 528 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps() 532 static inline int get_wcaps_type(unsigned int wcaps) in get_wcaps_type() argument 534 if (!wcaps) in get_wcaps_type() 536 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in get_wcaps_type() 539 static inline unsigned int get_wcaps_channels(u32 wcaps) in get_wcaps_channels() argument 543 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in get_wcaps_channels() 554 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps()
|
D | hda_proc.c | 127 int dir, unsigned int wcaps, int indices) in is_stereo_amps() argument 131 if (wcaps & AC_WCAP_STEREO) in is_stereo_amps() 137 get_wcaps_type(wcaps) != AC_WID_AUD_MIX) in is_stereo_amps() 143 wcaps = snd_hda_param_read(codec, conn, AC_PAR_AUDIO_WIDGET_CAP); in is_stereo_amps() 144 return !!(wcaps & AC_WCAP_STEREO); in is_stereo_amps() 149 int dir, unsigned int wcaps, int indices) in print_amp_vals() argument 155 stereo = is_stereo_amps(codec, nid, dir, wcaps, indices); in print_amp_vals()
|
D | hda_codec.c | 318 unsigned int wcaps = get_wcaps(codec, nid); in get_num_devices() local 321 if (!codec->dp_mst || !(wcaps & AC_WCAP_DIGITAL) || in get_num_devices() 322 get_wcaps_type(wcaps) != AC_WID_PIN) in get_num_devices() 379 codec->wcaps = kmalloc(codec->core.num_nodes * 4, GFP_KERNEL); in read_widget_caps() 380 if (!codec->wcaps) in read_widget_caps() 384 codec->wcaps[i] = snd_hdac_read_parm_uncached(&codec->core, in read_widget_caps() 396 unsigned int wcaps = get_wcaps(codec, nid); in read_pin_defaults() local 397 unsigned int wid_type = get_wcaps_type(wcaps); in read_pin_defaults() 789 kfree(codec->wcaps); in snd_hda_codec_dev_release() 921 kfree(codec->wcaps); in snd_hda_codec_update_widgets() [all …]
|
D | hda_codec.h | 207 u32 *wcaps; member
|
D | hda_generic.c | 692 unsigned int wcaps = get_wcaps(codec, nid); in is_stereo_amps() local 695 if (wcaps & AC_WCAP_STEREO) in is_stereo_amps() 697 if (dir != HDA_INPUT || get_wcaps_type(wcaps) != AC_WID_AUD_MIX) in is_stereo_amps() 3893 unsigned int wcaps = get_wcaps(codec, dig_nid); in parse_digital() local 3894 if (get_wcaps_type(wcaps) != AC_WID_AUD_IN) in parse_digital() 3896 if (!(wcaps & AC_WCAP_DIGITAL)) in parse_digital()
|