Home
last modified time | relevance | path

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

/sound/pci/hda/
Dhda_proc.c121 unsigned int caps; in print_amp_caps() local
122 caps = snd_hda_param_read(codec, nid, in print_amp_caps()
125 if (caps == -1 || caps == 0) { in print_amp_caps()
131 caps & AC_AMPCAP_OFFSET, in print_amp_caps()
132 (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT, in print_amp_caps()
133 (caps & AC_AMPCAP_STEP_SIZE) >> AC_AMPCAP_STEP_SIZE_SHIFT, in print_amp_caps()
134 (caps & AC_AMPCAP_MUTE) >> AC_AMPCAP_MUTE_SHIFT); in print_amp_caps()
274 unsigned int caps, val; in print_pin_caps() local
276 caps = snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP); in print_pin_caps()
277 snd_iprintf(buffer, " Pincap 0x%08x:", caps); in print_pin_caps()
[all …]
Dpatch_cirrus.c757 unsigned int caps; in cs4208_fix_amp_caps() local
759 caps = query_amp_caps(codec, adc, HDA_INPUT); in cs4208_fix_amp_caps()
760 caps &= ~(AC_AMPCAP_OFFSET); in cs4208_fix_amp_caps()
761 caps |= 0x02; in cs4208_fix_amp_caps()
762 snd_hda_override_amp_caps(codec, adc, HDA_INPUT, caps); in cs4208_fix_amp_caps()
1107 unsigned int caps; in fix_volume_caps() local
1110 caps = query_amp_caps(codec, dac, HDA_OUTPUT); in fix_volume_caps()
1111 caps &= ~(0x7f << AC_AMPCAP_NUM_STEPS_SHIFT); in fix_volume_caps()
1112 caps |= ((caps >> AC_AMPCAP_OFFSET_SHIFT) & 0x7f) in fix_volume_caps()
1114 snd_hda_override_amp_caps(codec, dac, HDA_OUTPUT, caps); in fix_volume_caps()
Dhda_generic.c572 unsigned int caps = get_wcaps(codec, nid); in has_amp_in() local
573 unsigned int type = get_wcaps_type(caps); in has_amp_in()
575 if (!(caps & AC_WCAP_IN_AMP)) in has_amp_in()
586 unsigned int caps = get_wcaps(codec, nid); in has_amp_out() local
587 unsigned int type = get_wcaps_type(caps); in has_amp_out()
589 if (!(caps & AC_WCAP_OUT_AMP)) in has_amp_out()
624 int dir, unsigned int caps, bool enable) in get_amp_val_to_activate() argument
628 if (caps & AC_AMPCAP_NUM_STEPS) { in get_amp_val_to_activate()
631 val = (caps & AC_AMPCAP_OFFSET) >> AC_AMPCAP_OFFSET_SHIFT; in get_amp_val_to_activate()
633 if (caps & (AC_AMPCAP_MUTE | AC_AMPCAP_MIN_MUTE)) { in get_amp_val_to_activate()
[all …]
Dhda_codec.c2040 unsigned int caps) in snd_hda_override_amp_caps() argument
2042 return write_caps_hash(codec, HDA_HASH_KEY(nid, dir, 0), caps); in snd_hda_override_amp_caps()
2081 unsigned int caps) in snd_hda_override_pin_caps() argument
2083 return write_caps_hash(codec, HDA_HASH_PINCAP_KEY(nid), caps); in snd_hda_override_pin_caps()
2183 unsigned int caps; in codec_amp_update() local
2203 caps = info->amp_caps; in codec_amp_update()
2206 put_vol_mute(codec, caps, nid, ch, direction, idx, val); in codec_amp_update()
2327 u32 caps = query_amp_caps(codec, nid, dir); in get_amp_max_value() local
2329 caps = (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT; in get_amp_max_value()
2330 if (ofs < caps) in get_amp_max_value()
[all …]
Dpatch_hdmi.c1664 unsigned int caps, config; in hdmi_add_pin() local
1669 caps = snd_hda_query_pin_caps(codec, pin_nid); in hdmi_add_pin()
1670 if (!(caps & (AC_PINCAP_HDMI | AC_PINCAP_DP))) in hdmi_add_pin()
1745 unsigned int caps; in hdmi_parse_codec() local
1748 caps = get_wcaps(codec, nid); in hdmi_parse_codec()
1749 type = get_wcaps_type(caps); in hdmi_parse_codec()
1751 if (!(caps & AC_WCAP_DIGITAL)) in hdmi_parse_codec()
Dhda_local.h602 unsigned int caps);
605 unsigned int caps);
Dpatch_sigmatel.c852 u32 caps = query_amp_caps(codec, nid, HDA_OUTPUT); in stac_auto_create_beep_ctls() local
862 if ((caps & AC_AMPCAP_MUTE) >> AC_AMPCAP_MUTE_SHIFT) { in stac_auto_create_beep_ctls()
877 if ((caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT) { in stac_auto_create_beep_ctls()
4265 unsigned int caps; in stac_parse_auto_config() local
4274 caps = query_amp_caps(codec, nid, HDA_OUTPUT); in stac_parse_auto_config()
4275 if (!(caps & AC_AMPCAP_MUTE)) { in stac_parse_auto_config()
Dpatch_via.c1110 unsigned int caps = get_wcaps(codec, nid); in add_secret_dac_path() local
1111 if (get_wcaps_type(caps) == AC_WID_AUD_OUT && in add_secret_dac_path()
1112 !(caps & AC_WCAP_DIGITAL)) { in add_secret_dac_path()
Dpatch_ca0132.c4125 unsigned int caps; in refresh_amp_caps() local
4127 caps = snd_hda_param_read(codec, nid, dir == HDA_OUTPUT ? in refresh_amp_caps()
4129 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/oss/
Dsb_common.c436 devc->caps |= SB_NO_MIDI; in init_Jazz16()
533 devc->caps |= SB_PCI_IRQ; in sb_dsp_detect()
541 devc->caps |= SB_PCI_IRQ; in sb_dsp_detect()
605 devc->caps = SB_NO_AUDIO | SB_NO_MIDI; /* Mixer only */ in sb_dsp_detect()
666 devc->caps = hw_config->driver_use_1; in sb_dsp_init()
668 if (!((devc->caps & SB_NO_AUDIO) && (devc->caps & SB_NO_MIDI)) && hw_config->irq > 0) in sb_dsp_init()
676 int i=(devc->caps&SB_PCI_IRQ)?IRQF_SHARED:0; in sb_dsp_init()
810 devc->caps |= SB_NO_MIDI; in sb_dsp_init()
813 if (!(devc->caps & SB_NO_MIXER)) in sb_dsp_init()
817 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()
1210 devc->caps |= SB_CAP_ES18XX_RATE;
1224 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/core/
Dcompress_offload.c64 unsigned long caps; member
433 struct snd_compr_caps caps; in snd_compr_get_caps() local
438 memset(&caps, 0, sizeof(caps)); in snd_compr_get_caps()
439 retval = stream->ops->get_caps(stream, &caps); in snd_compr_get_caps()
442 if (copy_to_user((void __user *)arg, &caps, sizeof(caps))) in snd_compr_get_caps()
453 struct snd_compr_codec_caps *caps; in snd_compr_get_codec_caps() local
458 caps = kzalloc(sizeof(*caps), GFP_KERNEL); in snd_compr_get_codec_caps()
459 if (!caps) in snd_compr_get_codec_caps()
462 retval = stream->ops->get_codec_caps(stream, caps); in snd_compr_get_codec_caps()
465 if (copy_to_user((void __user *)arg, caps, sizeof(*caps))) in snd_compr_get_codec_caps()
[all …]
/sound/soc/intel/
Dsst-mfld-platform-compress.c225 struct snd_compr_caps *caps) in sst_platform_compr_get_caps() argument
230 return stream->compr_ops->get_caps(caps); in sst_platform_compr_get_caps()
Dsst-mfld-platform.h116 int (*get_caps)(struct snd_compr_caps *caps);
/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.c1059 return ac97->caps & AC97_BC_BASS_TREBLE ? 1 : 0; in snd_ac97_try_volume_mix()
1061 return ac97->caps & AC97_BC_HEADPHONE ? 1 : 0; in snd_ac97_try_volume_mix()
1063 return ac97->caps & AC97_BC_DEDICATED_MIC ? 1 : 0; in snd_ac97_try_volume_mix()
1065 if (ac97->caps & AC97_BC_3D_TECH_ID_MASK) { in snd_ac97_try_volume_mix()
1573 if (ac97->caps & AC97_BC_SIM_STEREO) { in snd_ac97_mixer_build()
1585 if (ac97->caps & AC97_BC_LOUDNESS) { in snd_ac97_mixer_build()
2126 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/
Dsoc-compress.c491 struct snd_compr_caps *caps) in soc_compr_get_caps() argument
500 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()
266 if (chip->mixer.caps & LOLA_PEAK_METER_CAN_AGC_MASK) {
/sound/pci/
Dvia82xx.c2002 int i, err, caps; in snd_via8233_init_misc() local
2005 caps = chip->chip_type == TYPE_VIA8233A ? 1 : 2; in snd_via8233_init_misc()
2006 for (i = 0; i < caps; i++) { in snd_via8233_init_misc()