Home
last modified time | relevance | path

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

/linux-4.1.27/sound/hda/
Dlocal.h12 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()
Dhdac_device.c377 unsigned int wcaps = get_wcaps(codec, nid); in get_num_conns() local
380 if (!(wcaps & AC_WCAP_CONN_LIST) && in get_num_conns()
381 get_wcaps_type(wcaps) != AC_WID_VOL_KNB) in get_num_conns()
/linux-4.1.27/sound/pci/hda/
Dlocal.h12 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()
Dhda_bind.c183 unsigned int wcaps = get_wcaps(codec, nid); in is_likely_hdmi_codec() local
184 switch (get_wcaps_type(wcaps)) { in is_likely_hdmi_codec()
188 if (!(wcaps & AC_WCAP_DIGITAL)) in is_likely_hdmi_codec()
Dhda_local.h528 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()
Dhda_proc.c142 int dir, unsigned int wcaps, int indices) in is_stereo_amps() argument
146 if (wcaps & AC_WCAP_STEREO) in is_stereo_amps()
152 get_wcaps_type(wcaps) != AC_WID_AUD_MIX) in is_stereo_amps()
158 wcaps = snd_hda_param_read(codec, conn, AC_PAR_AUDIO_WIDGET_CAP); in is_stereo_amps()
159 return !!(wcaps & AC_WCAP_STEREO); in is_stereo_amps()
164 int dir, unsigned int wcaps, int indices) in print_amp_vals() argument
170 stereo = is_stereo_amps(codec, nid, dir, wcaps, indices); in print_amp_vals()
Dhda_codec.c432 unsigned int wcaps = get_wcaps(codec, nid); in get_num_devices() local
435 if (!codec->dp_mst || !(wcaps & AC_WCAP_DIGITAL) || in get_num_devices()
436 get_wcaps_type(wcaps) != AC_WID_PIN) in get_num_devices()
584 codec->wcaps = kmalloc(codec->core.num_nodes * 4, GFP_KERNEL); in read_widget_caps()
585 if (!codec->wcaps) in read_widget_caps()
589 codec->wcaps[i] = snd_hdac_read_parm_uncached(&codec->core, in read_widget_caps()
601 unsigned int wcaps = get_wcaps(codec, nid); in read_pin_defaults() local
602 unsigned int wid_type = get_wcaps_type(wcaps); in read_pin_defaults()
992 kfree(codec->wcaps); in snd_hda_codec_dev_release()
1124 kfree(codec->wcaps); in snd_hda_codec_update_widgets()
[all …]
Dhda_codec.h233 u32 *wcaps; member
Dhda_generic.c709 unsigned int wcaps = get_wcaps(codec, nid); in is_stereo_amps() local
712 if (wcaps & AC_WCAP_STEREO) in is_stereo_amps()
714 if (dir != HDA_INPUT || get_wcaps_type(wcaps) != AC_WID_AUD_MIX) in is_stereo_amps()
3911 unsigned int wcaps = get_wcaps(codec, dig_nid); in parse_digital() local
3912 if (get_wcaps_type(wcaps) != AC_WID_AUD_IN) in parse_digital()
3914 if (!(wcaps & AC_WCAP_DIGITAL)) in parse_digital()