Home
last modified time | relevance | path

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

/linux/sound/hda/common/
H A Dbind.c259 if (!codec->wcaps) in is_likely_hdmi_codec()
263 unsigned int wcaps = get_wcaps(codec, nid); in is_likely_hdmi_codec() local
264 switch (get_wcaps_type(wcaps)) { in is_likely_hdmi_codec()
268 if (!(wcaps & AC_WCAP_DIGITAL)) in is_likely_hdmi_codec()
H A Dhda_local.h487 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps()
491 static inline int get_wcaps_type(unsigned int wcaps) in get_wcaps_type()
493 if (!wcaps) in get_wcaps_type()
495 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in get_wcaps_type()
498 static inline unsigned int get_wcaps_channels(u32 wcaps) in get_wcaps_channels()
502 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in get_wcaps_channels()
513 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps()
490 get_wcaps_type(unsigned int wcaps) get_wcaps_type() argument
497 get_wcaps_channels(u32 wcaps) get_wcaps_channels() argument
H A Dproc.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()
848 snd_iprintf(buffer, "Node 0x%02x [%s] wcaps 0x%x:", nid, in print_codec_info()
H A Dcodec.c311 unsigned int wcaps = get_wcaps(codec, nid); in snd_hda_get_num_devices() local
314 if (!codec->dp_mst || !(wcaps & AC_WCAP_DIGITAL) || in snd_hda_get_num_devices()
315 get_wcaps_type(wcaps) != AC_WID_PIN) in snd_hda_get_num_devices()
428 codec->wcaps = kmalloc_array(codec->core.num_nodes, 4, GFP_KERNEL); in read_widget_caps()
429 if (!codec->wcaps) in read_widget_caps()
433 codec->wcaps[i] = snd_hdac_read_parm_uncached(&codec->core, in read_widget_caps()
445 unsigned int wcaps = get_wcaps(codec, nid); in read_pin_defaults() local
446 unsigned int wid_type = get_wcaps_type(wcaps); in read_pin_defaults()
869 kfree(codec->wcaps); in snd_hda_codec_dev_release()
1058 kfree(codec->wcaps); in snd_hda_codec_update_widgets()
2698 unsigned int wcaps = get_wcaps(codec, nid); snd_hda_codec_set_power_to_all() local
2796 unsigned int wcaps = get_wcaps(codec, nid); sync_power_up_states() local
[all...]
H A Dhwdep.c50 res = codec->wcaps[verb]; in get_wcap_ioctl()
/linux/include/sound/
H A Dhdaudio.h694 static inline int snd_hdac_get_wcaps_type(unsigned int wcaps) in snd_hdac_get_wcaps_type() argument
696 if (!wcaps) in snd_hdac_get_wcaps_type()
698 return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; in snd_hdac_get_wcaps_type()
702 static inline unsigned int snd_hdac_get_wcaps_channels(u32 wcaps) in snd_hdac_get_wcaps_channels() argument
706 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in snd_hdac_get_wcaps_channels()
/linux/sound/hda/codecs/
H A Dgeneric.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()
4050 unsigned int wcaps = get_wcaps(codec, dig_nid); in parse_digital() local
4051 if (get_wcaps_type(wcaps) != AC_WID_AUD_IN) in parse_digital()
4053 if (!(wcaps & AC_WCAP_DIGITAL)) in parse_digital()
/linux/Documentation/sound/hd-audio/
H A Dmodels.rst95 alc283-dac-wcaps