Home
last modified time | relevance | path

Searched refs:caps (Results 1 – 24 of 24) sorted by relevance

/sound/pci/hda/
Dhda_proc.c116 unsigned int caps; in print_amp_caps() local
117 caps = snd_hda_param_read(codec, nid, in print_amp_caps()
120 if (caps == -1 || caps == 0) { in print_amp_caps()
126 caps & AC_AMPCAP_OFFSET, in print_amp_caps()
127 (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT, in print_amp_caps()
128 (caps & AC_AMPCAP_STEP_SIZE) >> AC_AMPCAP_STEP_SIZE_SHIFT, in print_amp_caps()
129 (caps & AC_AMPCAP_MUTE) >> AC_AMPCAP_MUTE_SHIFT); in print_amp_caps()
244 unsigned int caps, val; in print_pin_caps() local
246 caps = snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP); in print_pin_caps()
247 snd_iprintf(buffer, " Pincap 0x%08x:", caps); in print_pin_caps()
[all …]
Dpatch_cirrus.c861 unsigned int caps; in fix_volume_caps() local
864 caps = query_amp_caps(codec, dac, HDA_OUTPUT); in fix_volume_caps()
865 caps &= ~(0x7f << AC_AMPCAP_NUM_STEPS_SHIFT); in fix_volume_caps()
866 caps |= ((caps >> AC_AMPCAP_OFFSET_SHIFT) & 0x7f) in fix_volume_caps()
868 snd_hda_override_amp_caps(codec, dac, HDA_OUTPUT, caps); in fix_volume_caps()
Dhda_generic.c563 unsigned int caps = get_wcaps(codec, nid); in has_amp_in() local
564 unsigned int type = get_wcaps_type(caps); in has_amp_in()
566 if (!(caps & AC_WCAP_IN_AMP)) in has_amp_in()
577 unsigned int caps = get_wcaps(codec, nid); in has_amp_out() local
578 unsigned int type = get_wcaps_type(caps); in has_amp_out()
580 if (!(caps & AC_WCAP_OUT_AMP)) in has_amp_out()
615 int dir, unsigned int caps, bool enable) in get_amp_val_to_activate() argument
619 if (caps & AC_AMPCAP_NUM_STEPS) { in get_amp_val_to_activate()
622 val = (caps & AC_AMPCAP_OFFSET) >> AC_AMPCAP_OFFSET_SHIFT; in get_amp_val_to_activate()
624 if (caps & AC_AMPCAP_MUTE) { in get_amp_val_to_activate()
[all …]
Dhda_codec.c1848 unsigned int caps) in snd_hda_override_amp_caps() argument
1850 return write_caps_hash(codec, HDA_HASH_KEY(nid, dir, 0), caps); in snd_hda_override_amp_caps()
1889 unsigned int caps) in snd_hda_override_pin_caps() argument
1891 return write_caps_hash(codec, HDA_HASH_PINCAP_KEY(nid), caps); in snd_hda_override_pin_caps()
1981 unsigned int caps; in codec_amp_update() local
2001 caps = info->amp_caps; in codec_amp_update()
2004 put_vol_mute(codec, caps, nid, ch, direction, idx, val); in codec_amp_update()
2125 u32 caps = query_amp_caps(codec, nid, dir); in get_amp_max_value() local
2127 caps = (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT; in get_amp_max_value()
2128 if (ofs < caps) in get_amp_max_value()
[all …]
Dpatch_hdmi.c1301 unsigned int caps, config; in hdmi_add_pin() local
1306 caps = snd_hda_query_pin_caps(codec, pin_nid); in hdmi_add_pin()
1307 if (!(caps & (AC_PINCAP_HDMI | AC_PINCAP_DP))) in hdmi_add_pin()
1382 unsigned int caps; in hdmi_parse_codec() local
1385 caps = get_wcaps(codec, nid); in hdmi_parse_codec()
1386 type = get_wcaps_type(caps); in hdmi_parse_codec()
1388 if (!(caps & AC_WCAP_DIGITAL)) in hdmi_parse_codec()
Dhda_local.h567 unsigned int caps);
570 unsigned int caps);
Dpatch_sigmatel.c849 u32 caps = query_amp_caps(codec, nid, HDA_OUTPUT); in stac_auto_create_beep_ctls() local
859 if ((caps & AC_AMPCAP_MUTE) >> AC_AMPCAP_MUTE_SHIFT) { in stac_auto_create_beep_ctls()
874 if ((caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT) { in stac_auto_create_beep_ctls()
3568 unsigned int caps; in stac_parse_auto_config() local
3577 caps = query_amp_caps(codec, nid, HDA_OUTPUT); in stac_parse_auto_config()
3578 if (!(caps & AC_AMPCAP_MUTE)) { in stac_parse_auto_config()
Dpatch_via.c1138 unsigned int caps = get_wcaps(codec, nid); in add_secret_dac_path() local
1139 if (get_wcaps_type(caps) == AC_WID_AUD_OUT && in add_secret_dac_path()
1140 !(caps & AC_WCAP_DIGITAL)) { in add_secret_dac_path()
Dpatch_ca0132.c4184 unsigned int caps; in refresh_amp_caps() local
4186 caps = snd_hda_param_read(codec, nid, dir == HDA_OUTPUT ? in refresh_amp_caps()
4188 snd_hda_override_amp_caps(codec, nid, dir, caps); in refresh_amp_caps()
/sound/isa/
Des18xx.c112 int caps; /* Chip capabilities */ member
418 if (chip->caps & ES18XX_NEW_RATE) { in snd_es18xx_rate_set()
433 if ((chip->caps & ES18XX_PCM2) && mode == DAC2) { in snd_es18xx_rate_set()
459 if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) { in snd_es18xx_playback_hw_params()
460 if ((chip->caps & ES18XX_DUPLEX_MONO) && in snd_es18xx_playback_hw_params()
524 if (chip->caps & ES18XX_PCM2) in snd_es18xx_playback1_trigger()
541 if (chip->caps & ES18XX_PCM2) in snd_es18xx_playback1_trigger()
563 if ((chip->caps & ES18XX_DUPLEX_MONO) && in snd_es18xx_capture_hw_params()
723 if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) in snd_es18xx_playback_prepare()
733 if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) in snd_es18xx_playback_trigger()
[all …]
/sound/core/
Dcompress_offload.c57 unsigned long caps; member
415 struct snd_compr_caps caps; in snd_compr_get_caps() local
420 memset(&caps, 0, sizeof(caps)); in snd_compr_get_caps()
421 retval = stream->ops->get_caps(stream, &caps); in snd_compr_get_caps()
424 if (copy_to_user((void __user *)arg, &caps, sizeof(caps))) in snd_compr_get_caps()
434 struct snd_compr_codec_caps *caps; in snd_compr_get_codec_caps() local
439 caps = kzalloc(sizeof(*caps), GFP_KERNEL); in snd_compr_get_codec_caps()
440 if (!caps) in snd_compr_get_codec_caps()
443 retval = stream->ops->get_codec_caps(stream, caps); in snd_compr_get_codec_caps()
446 if (copy_to_user((void __user *)arg, caps, sizeof(*caps))) in snd_compr_get_codec_caps()
[all …]
/sound/oss/
Dsb_common.c440 devc->caps |= SB_NO_MIDI; in init_Jazz16()
537 devc->caps |= SB_PCI_IRQ; in sb_dsp_detect()
545 devc->caps |= SB_PCI_IRQ; in sb_dsp_detect()
609 devc->caps = SB_NO_AUDIO | SB_NO_MIDI; /* Mixer only */ in sb_dsp_detect()
670 devc->caps = hw_config->driver_use_1; in sb_dsp_init()
672 if (!((devc->caps & SB_NO_AUDIO) && (devc->caps & SB_NO_MIDI)) && hw_config->irq > 0) in sb_dsp_init()
680 int i=(devc->caps&SB_PCI_IRQ)?IRQF_SHARED:0; in sb_dsp_init()
814 devc->caps |= SB_NO_MIDI; in sb_dsp_init()
817 if (!(devc->caps & SB_NO_MIXER)) in sb_dsp_init()
821 if (!(devc->caps & SB_NO_MIDI)) in sb_dsp_init()
[all …]
Dsb.h88 int caps; member
Dsb_ess.c386 } else if(devc->caps & SB_CAP_ES18XX_RATE) { in ess_common_speed()
1214 devc->caps |= SB_CAP_ES18XX_RATE;
1228 devc->caps |= SB_NO_MIDI; /* ES1688 uses MPU401 MIDI mode */
Dsb_audio.c44 if (devc->caps & SB_NO_RECORDING && mode & OPEN_READ) in sb_audio_open()
/sound/pci/ac97/
Dac97_proc.c145 val = ac97->caps; in snd_ac97_proc_read_main()
153 tmp = ac97->caps & AC97_BC_DAC_MASK; in snd_ac97_proc_read_main()
159 tmp = ac97->caps & AC97_BC_ADC_MASK; in snd_ac97_proc_read_main()
Dac97_codec.c1052 return ac97->caps & AC97_BC_BASS_TREBLE ? 1 : 0; in snd_ac97_try_volume_mix()
1054 return ac97->caps & AC97_BC_HEADPHONE ? 1 : 0; in snd_ac97_try_volume_mix()
1056 return ac97->caps & AC97_BC_DEDICATED_MIC ? 1 : 0; in snd_ac97_try_volume_mix()
1058 if (ac97->caps & AC97_BC_3D_TECH_ID_MASK) { in snd_ac97_try_volume_mix()
1566 if (ac97->caps & AC97_BC_SIM_STEREO) { in snd_ac97_mixer_build()
1578 if (ac97->caps & AC97_BC_LOUDNESS) { in snd_ac97_mixer_build()
2116 ac97->caps = snd_ac97_read(ac97, AC97_RESET); in snd_ac97_mixer()
Dac97_patch.c391 ac97->caps |= AC97_BC_BASS_TREBLE; in patch_yamaha_ymf743()
392 ac97->caps |= 0x04 << 10; /* Yamaha 3D enhancement */ in patch_yamaha_ymf743()
482 ac97->caps |= AC97_BC_BASS_TREBLE; in patch_yamaha_ymf753()
483 ac97->caps |= 0x04 << 10; /* Yamaha 3D enhancement */ in patch_yamaha_ymf753()
1045 ac97->caps |= 0x10; /* HP (sigmatel surround) support */ in patch_sigmatel_stac9708()
/sound/soc/mid-x86/
Dsst_platform.h125 int (*get_caps) (struct snd_compr_caps *caps);
Dsst_platform.c642 struct snd_compr_caps *caps) in sst_platform_compr_get_caps() argument
647 return stream->compr_ops->get_caps(caps); in sst_platform_compr_get_caps()
/sound/soc/
Dsoc-compress.c260 struct snd_compr_caps *caps) in soc_compr_get_caps() argument
269 ret = platform->driver->compr_ops->get_caps(cstream, caps); in soc_compr_get_caps()
/sound/pci/lola/
Dlola.h277 unsigned int caps; member
Dlola_mixer.c132 chip->mixer.caps = val; in lola_init_mixer_widget()
265 if (chip->mixer.caps & LOLA_PEAK_METER_CAN_AGC_MASK) {
/sound/pci/
Dvia82xx.c1995 int i, err, caps; in snd_via8233_init_misc() local
1998 caps = chip->chip_type == TYPE_VIA8233A ? 1 : 2; in snd_via8233_init_misc()
1999 for (i = 0; i < caps; i++) { in snd_via8233_init_misc()