/sound/pci/hda/ |
D | hda_proc.c | 121 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 …]
|
D | patch_cirrus.c | 757 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()
|
D | hda_generic.c | 572 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 …]
|
D | hda_codec.c | 2040 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 …]
|
D | patch_hdmi.c | 1664 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()
|
D | hda_local.h | 602 unsigned int caps); 605 unsigned int caps);
|
D | patch_sigmatel.c | 852 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()
|
D | patch_via.c | 1110 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()
|
D | patch_ca0132.c | 4125 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/ |
D | es18xx.c | 112 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/ |
D | sb_common.c | 436 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 …]
|
D | sb.h | 88 int caps; member
|
D | sb_ess.c | 386 } 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 */
|
D | sb_audio.c | 44 if (devc->caps & SB_NO_RECORDING && mode & OPEN_READ) in sb_audio_open()
|
/sound/core/ |
D | compress_offload.c | 64 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/ |
D | sst-mfld-platform-compress.c | 225 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()
|
D | sst-mfld-platform.h | 116 int (*get_caps)(struct snd_compr_caps *caps);
|
/sound/pci/ac97/ |
D | ac97_proc.c | 145 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()
|
D | ac97_codec.c | 1059 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()
|
D | ac97_patch.c | 391 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/ |
D | soc-compress.c | 491 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/ |
D | lola.h | 277 unsigned int caps; member
|
D | lola_mixer.c | 132 chip->mixer.caps = val; in lola_init_mixer_widget() 266 if (chip->mixer.caps & LOLA_PEAK_METER_CAN_AGC_MASK) {
|
/sound/pci/ |
D | via82xx.c | 2002 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()
|