/sound/soc/codecs/ |
D | mt6359-accdet.c | 84 if (priv->caps & ACCDET_PMIC_EINT0) { in adjust_eint_analog_setting() 90 } else if (priv->caps & ACCDET_PMIC_EINT1) { in adjust_eint_analog_setting() 111 if (priv->caps & ACCDET_PMIC_EINT0) { in adjust_eint_digital_setting() 116 } else if (priv->caps & ACCDET_PMIC_EINT1) { in adjust_eint_digital_setting() 124 if (priv->caps & ACCDET_PMIC_EINT0) { in adjust_eint_digital_setting() 129 } else if (priv->caps & ACCDET_PMIC_EINT1) { in adjust_eint_digital_setting() 166 if (priv->caps & ACCDET_PMIC_EINT0) { in recover_eint_analog_setting() 171 } else if (priv->caps & ACCDET_PMIC_EINT1) { in recover_eint_analog_setting() 184 if (priv->caps & ACCDET_PMIC_EINT0) { in recover_eint_digital_setting() 188 } else if (priv->caps & ACCDET_PMIC_EINT1) { in recover_eint_digital_setting() [all …]
|
D | wm_adsp.c | 570 const struct wm_adsp_fw_caps *caps; member 583 .caps = ctrl_caps, 591 .caps = trace_caps, 3561 const struct wm_adsp_fw_caps *caps; in wm_adsp_compr_check_params() local 3578 caps = &wm_adsp_fw[dsp->fw].caps[i]; in wm_adsp_compr_check_params() 3579 desc = &caps->desc; in wm_adsp_compr_check_params() 3581 if (caps->id != params->codec.id) in wm_adsp_compr_check_params() 3641 struct snd_compr_caps *caps) in wm_adsp_compr_get_caps() argument 3647 if (wm_adsp_fw[fw].caps) { in wm_adsp_compr_get_caps() 3649 caps->codecs[i] = wm_adsp_fw[fw].caps[i].id; in wm_adsp_compr_get_caps() [all …]
|
D | mt6359-accdet.h | 108 unsigned int caps; member
|
/sound/pci/hda/ |
D | hda_proc.c | 96 unsigned int caps; in print_amp_caps() local 97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps() 99 if (caps == -1 || caps == 0) { in print_amp_caps() 105 caps & AC_AMPCAP_OFFSET, in print_amp_caps() 106 (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT, in print_amp_caps() 107 (caps & AC_AMPCAP_STEP_SIZE) >> AC_AMPCAP_STEP_SIZE_SHIFT, in print_amp_caps() 108 (caps & AC_AMPCAP_MUTE) >> AC_AMPCAP_MUTE_SHIFT); in print_amp_caps() 311 unsigned int caps, val; in print_pin_caps() local 313 caps = param_read(codec, nid, AC_PAR_PIN_CAP); in print_pin_caps() 314 snd_iprintf(buffer, " Pincap 0x%08x:", caps); in print_pin_caps() [all …]
|
D | patch_cirrus.c | 761 unsigned int caps; in cs4208_fix_amp_caps() local 763 caps = query_amp_caps(codec, adc, HDA_INPUT); in cs4208_fix_amp_caps() 764 caps &= ~(AC_AMPCAP_OFFSET); in cs4208_fix_amp_caps() 765 caps |= 0x02; in cs4208_fix_amp_caps() 766 snd_hda_override_amp_caps(codec, adc, HDA_INPUT, caps); in cs4208_fix_amp_caps() 1093 unsigned int caps; in fix_volume_caps() local 1096 caps = query_amp_caps(codec, dac, HDA_OUTPUT); in fix_volume_caps() 1097 caps &= ~(0x7f << AC_AMPCAP_NUM_STEPS_SHIFT); in fix_volume_caps() 1098 caps |= ((caps >> AC_AMPCAP_OFFSET_SHIFT) & 0x7f) in fix_volume_caps() 1100 snd_hda_override_amp_caps(codec, dac, HDA_OUTPUT, caps); in fix_volume_caps()
|
D | hda_codec.c | 1284 unsigned int caps) in snd_hda_override_amp_caps() argument 1291 return snd_hdac_override_parm(&codec->core, nid, parm, caps); in snd_hda_override_amp_caps() 1407 u32 caps = query_amp_caps(codec, nid, dir); in get_amp_max_value() local 1409 caps = (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT; in get_amp_max_value() 1410 if (ofs < caps) in get_amp_max_value() 1411 caps -= ofs; in get_amp_max_value() 1412 return caps; in get_amp_max_value() 1543 u32 caps, val1, val2; in get_ctl_amp_tlv() local 1545 caps = query_amp_caps(codec, nid, dir); in get_ctl_amp_tlv() 1546 val2 = (caps & AC_AMPCAP_STEP_SIZE) >> AC_AMPCAP_STEP_SIZE_SHIFT; in get_ctl_amp_tlv() [all …]
|
D | hda_generic.c | 605 unsigned int caps = get_wcaps(codec, nid); in has_amp_in() local 606 unsigned int type = get_wcaps_type(caps); in has_amp_in() 608 if (!(caps & AC_WCAP_IN_AMP)) in has_amp_in() 619 unsigned int caps = get_wcaps(codec, nid); in has_amp_out() local 620 unsigned int type = get_wcaps_type(caps); in has_amp_out() 622 if (!(caps & AC_WCAP_OUT_AMP)) in has_amp_out() 670 int dir, unsigned int caps, bool enable) in get_amp_val_to_activate() argument 674 if (caps & AC_AMPCAP_NUM_STEPS) { in get_amp_val_to_activate() 677 val = (caps & AC_AMPCAP_OFFSET) >> AC_AMPCAP_OFFSET_SHIFT; in get_amp_val_to_activate() 679 if (caps & (AC_AMPCAP_MUTE | AC_AMPCAP_MIN_MUTE)) { in get_amp_val_to_activate() [all …]
|
D | hda_local.h | 491 unsigned int caps); 522 unsigned int caps) in snd_hda_override_pin_caps() argument 524 return snd_hdac_override_parm(&codec->core, nid, AC_PAR_PIN_CAP, caps); in snd_hda_override_pin_caps()
|
/sound/soc/sof/ |
D | pcm.c | 464 struct snd_soc_tplg_stream_caps *caps; in sof_pcm_open() local 479 caps = &spcm->pcm.caps[substream->stream]; in sof_pcm_open() 485 runtime->hw.formats = le64_to_cpu(caps->formats); in sof_pcm_open() 486 runtime->hw.period_bytes_min = le32_to_cpu(caps->period_size_min); in sof_pcm_open() 487 runtime->hw.period_bytes_max = le32_to_cpu(caps->period_size_max); in sof_pcm_open() 488 runtime->hw.periods_min = le32_to_cpu(caps->periods_min); in sof_pcm_open() 489 runtime->hw.periods_max = le32_to_cpu(caps->periods_max); in sof_pcm_open() 495 runtime->hw.buffer_bytes_max = le32_to_cpu(caps->buffer_size_max); in sof_pcm_open() 564 struct snd_soc_tplg_stream_caps *caps; in sof_pcm_new() local 581 caps = &spcm->pcm.caps[stream]; in sof_pcm_new() [all …]
|
D | sof-audio.c | 338 if (*spcm->pcm.caps[0].name && in snd_sof_find_spcm_name() 339 !strcmp(spcm->pcm.caps[0].name, name)) in snd_sof_find_spcm_name() 343 if (*spcm->pcm.caps[1].name && in snd_sof_find_spcm_name() 344 !strcmp(spcm->pcm.caps[1].name, name)) in snd_sof_find_spcm_name()
|
/sound/isa/ |
D | es18xx.c | 94 int caps; /* Chip capabilities */ member 401 if (chip->caps & ES18XX_NEW_RATE) { in snd_es18xx_rate_set() 416 if ((chip->caps & ES18XX_PCM2) && mode == DAC2) { in snd_es18xx_rate_set() 442 if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) { in snd_es18xx_playback_hw_params() 443 if ((chip->caps & ES18XX_DUPLEX_MONO) && in snd_es18xx_playback_hw_params() 500 if (chip->caps & ES18XX_PCM2) in snd_es18xx_playback1_trigger() 517 if (chip->caps & ES18XX_PCM2) in snd_es18xx_playback1_trigger() 539 if ((chip->caps & ES18XX_DUPLEX_MONO) && in snd_es18xx_capture_hw_params() 697 if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) in snd_es18xx_playback_prepare() 707 if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) in snd_es18xx_playback_trigger() [all …]
|
/sound/core/ |
D | compress_offload.c | 51 unsigned long caps; member 448 struct snd_compr_caps caps; in snd_compr_get_caps() local 453 memset(&caps, 0, sizeof(caps)); in snd_compr_get_caps() 454 retval = stream->ops->get_caps(stream, &caps); in snd_compr_get_caps() 457 if (copy_to_user((void __user *)arg, &caps, sizeof(caps))) in snd_compr_get_caps() 468 struct snd_compr_codec_caps *caps; in snd_compr_get_codec_caps() local 473 caps = kzalloc(sizeof(*caps), GFP_KERNEL); in snd_compr_get_codec_caps() 474 if (!caps) in snd_compr_get_codec_caps() 477 retval = stream->ops->get_codec_caps(stream, caps); in snd_compr_get_codec_caps() 480 if (copy_to_user((void __user *)arg, caps, sizeof(*caps))) in snd_compr_get_codec_caps() [all …]
|
/sound/soc/intel/skylake/ |
D | skl-nhlt.c | 44 fmt_config = (struct nhlt_fmt_cfg *)(fmt_config->config.caps + in skl_get_specific_cfg() 104 fmt = (struct nhlt_fmt *)(epnt->config.caps + in skl_get_ep_blob() 249 tmp_fmt_cfg = (struct nhlt_fmt_cfg *)(tmp_fmt_cfg->config.caps + in skl_get_ssp_clks() 270 first_fmt_cfg->config.caps; in skl_get_ssp_clks() 285 fmt_cfg = (struct nhlt_fmt_cfg *)(fmt_cfg->config.caps + in skl_get_ssp_clks() 317 i2s_config_ext = (struct skl_i2s_config_blob_ext *)fmt_cfg->config.caps; in skl_get_mclk() 363 fmt = (struct nhlt_fmt *)(epnt->config.caps in skl_get_clks()
|
D | skl-topology.c | 50 void skl_tplg_d0i3_get(struct skl_dev *skl, enum d0i3_capability caps) in skl_tplg_d0i3_get() argument 54 switch (caps) { in skl_tplg_d0i3_get() 69 void skl_tplg_d0i3_put(struct skl_dev *skl, enum d0i3_capability caps) in skl_tplg_d0i3_put() argument 73 switch (caps) { in skl_tplg_d0i3_put() 332 m_cfg->formats_config[SKL_PARAM_INIT].caps = (u32 *)&cfg->caps; in skl_tplg_update_be_blob() 392 ret = skl_set_module_params(skl, sp_cfg->caps, in skl_tplg_set_module_params() 441 mconfig->formats_config[SKL_PARAM_INIT].caps = in skl_tplg_set_module_init_data() 808 ret = skl_set_module_params(skl, sp_cfg->caps, in skl_tplg_set_module_bind_params() 1509 if (!sp_cfg->caps) { in skl_fill_mic_sel_params() 1510 sp_cfg->caps = devm_kzalloc(dev, sp_cfg->caps_size, GFP_KERNEL); in skl_fill_mic_sel_params() [all …]
|
D | skl-topology.h | 265 u32 *caps; member 467 int skl_dsp_set_dma_control(struct skl_dev *skl, u32 *caps, 480 void skl_tplg_d0i3_get(struct skl_dev *skl, enum d0i3_capability caps); 481 void skl_tplg_d0i3_put(struct skl_dev *skl, enum d0i3_capability caps);
|
/sound/hda/ |
D | intel-nhlt.c | 53 cfg = (struct nhlt_dmic_array_config *)(epnt->config.caps); in intel_nhlt_get_dmic_geo() 54 fmt_configs = (struct nhlt_fmt *)(epnt->config.caps + epnt->config.size); in intel_nhlt_get_dmic_geo() 72 fmt_cfg = (struct nhlt_fmt_cfg *)(fmt_cfg->config.caps + in intel_nhlt_get_dmic_geo()
|
/sound/soc/sprd/ |
D | sprd-pcm-compress.c | 609 struct snd_compr_caps *caps) in sprd_platform_compr_get_caps() argument 611 caps->direction = cstream->direction; in sprd_platform_compr_get_caps() 612 caps->min_fragment_size = SPRD_COMPR_MIN_FRAGMENT_SIZE; in sprd_platform_compr_get_caps() 613 caps->max_fragment_size = SPRD_COMPR_MAX_FRAGMENT_SIZE; in sprd_platform_compr_get_caps() 614 caps->min_fragments = SPRD_COMPR_MIN_NUM_FRAGMENTS; in sprd_platform_compr_get_caps() 615 caps->max_fragments = SPRD_COMPR_MAX_NUM_FRAGMENTS; in sprd_platform_compr_get_caps() 616 caps->num_codecs = 2; in sprd_platform_compr_get_caps() 617 caps->codecs[0] = SND_AUDIOCODEC_MP3; in sprd_platform_compr_get_caps() 618 caps->codecs[1] = SND_AUDIOCODEC_AAC; in sprd_platform_compr_get_caps()
|
/sound/soc/uniphier/ |
D | aio-compress.c | 391 struct snd_compr_caps *caps) in uniphier_aio_compr_get_caps() argument 393 caps->num_codecs = 1; in uniphier_aio_compr_get_caps() 394 caps->min_fragment_size = AUD_MIN_FRAGMENT_SIZE; in uniphier_aio_compr_get_caps() 395 caps->max_fragment_size = AUD_MAX_FRAGMENT_SIZE; in uniphier_aio_compr_get_caps() 396 caps->min_fragments = AUD_MIN_FRAGMENT; in uniphier_aio_compr_get_caps() 397 caps->max_fragments = AUD_MAX_FRAGMENT; in uniphier_aio_compr_get_caps() 398 caps->codecs[0] = SND_AUDIOCODEC_IEC61937; in uniphier_aio_compr_get_caps()
|
/sound/soc/intel/atom/sst/ |
D | sst_drv_interface.c | 376 static int sst_cdev_caps(struct snd_compr_caps *caps) in sst_cdev_caps() argument 378 caps->num_codecs = NUM_CODEC; in sst_cdev_caps() 379 caps->min_fragment_size = MIN_FRAGMENT_SIZE; /* 50KB */ in sst_cdev_caps() 380 caps->max_fragment_size = MAX_FRAGMENT_SIZE; /* 1024KB */ in sst_cdev_caps() 381 caps->min_fragments = MIN_FRAGMENT; in sst_cdev_caps() 382 caps->max_fragments = MAX_FRAGMENT; in sst_cdev_caps() 383 caps->codecs[0] = SND_AUDIOCODEC_MP3; in sst_cdev_caps() 384 caps->codecs[1] = SND_AUDIOCODEC_AAC; in sst_cdev_caps()
|
/sound/soc/qcom/qdsp6/ |
D | q6asm-dai.c | 1133 struct snd_compr_caps *caps) in q6asm_dai_compr_get_caps() argument 1135 caps->direction = SND_COMPRESS_PLAYBACK; in q6asm_dai_compr_get_caps() 1136 caps->min_fragment_size = COMPR_PLAYBACK_MIN_FRAGMENT_SIZE; in q6asm_dai_compr_get_caps() 1137 caps->max_fragment_size = COMPR_PLAYBACK_MAX_FRAGMENT_SIZE; in q6asm_dai_compr_get_caps() 1138 caps->min_fragments = COMPR_PLAYBACK_MIN_NUM_FRAGMENTS; in q6asm_dai_compr_get_caps() 1139 caps->max_fragments = COMPR_PLAYBACK_MAX_NUM_FRAGMENTS; in q6asm_dai_compr_get_caps() 1140 caps->num_codecs = 5; in q6asm_dai_compr_get_caps() 1141 caps->codecs[0] = SND_AUDIOCODEC_MP3; in q6asm_dai_compr_get_caps() 1142 caps->codecs[1] = SND_AUDIOCODEC_FLAC; in q6asm_dai_compr_get_caps() 1143 caps->codecs[2] = SND_AUDIOCODEC_WMA; in q6asm_dai_compr_get_caps() [all …]
|
/sound/soc/ |
D | soc-topology.c | 1638 struct snd_soc_tplg_stream_caps *caps) in set_stream_info() argument 1640 stream->stream_name = devm_kstrdup(tplg->dev, caps->name, GFP_KERNEL); in set_stream_info() 1644 stream->channels_min = le32_to_cpu(caps->channels_min); in set_stream_info() 1645 stream->channels_max = le32_to_cpu(caps->channels_max); in set_stream_info() 1646 stream->rates = le32_to_cpu(caps->rates); in set_stream_info() 1647 stream->rate_min = le32_to_cpu(caps->rate_min); in set_stream_info() 1648 stream->rate_max = le32_to_cpu(caps->rate_max); in set_stream_info() 1649 stream->formats = le64_to_cpu(caps->formats); in set_stream_info() 1650 stream->sig_bits = le32_to_cpu(caps->sig_bits); in set_stream_info() 1678 struct snd_soc_tplg_stream_caps *caps; in soc_tplg_dai_create() local [all …]
|
/sound/soc/atmel/ |
D | atmel-i2s.c | 205 const struct atmel_i2s_caps *caps; member 632 dev->caps = match->data; in atmel_i2s_probe() 676 if (dev->caps && dev->caps->mck_init) { in atmel_i2s_probe() 677 err = dev->caps->mck_init(dev, np); in atmel_i2s_probe()
|
/sound/virtio/ |
D | virtio_jack.c | 37 u32 caps; member 162 vjack->caps = le32_to_cpu(info[i].hda_reg_caps); in virtsnd_jack_parse_cfg()
|
/sound/pci/ac97/ |
D | ac97_proc.c | 130 val = ac97->caps; in snd_ac97_proc_read_main() 138 tmp = ac97->caps & AC97_BC_DAC_MASK; in snd_ac97_proc_read_main() 144 tmp = ac97->caps & AC97_BC_ADC_MASK; in snd_ac97_proc_read_main()
|
/sound/soc/intel/atom/ |
D | sst-mfld-platform-compress.c | 232 struct snd_compr_caps *caps) in sst_platform_compr_get_caps() argument 237 return stream->compr_ops->get_caps(caps); in sst_platform_compr_get_caps()
|