/sound/soc/blackfin/ |
D | bf5xx-i2s-pcm.c | 68 struct bf5xx_i2s_pcm_data *dma_data; in bf5xx_pcm_hw_params() local 70 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in bf5xx_pcm_hw_params() 72 if (dma_data->tdm_mode) in bf5xx_pcm_hw_params() 91 struct bf5xx_i2s_pcm_data *dma_data; in bf5xx_pcm_prepare() local 93 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in bf5xx_pcm_prepare() 95 if (dma_data->tdm_mode) in bf5xx_pcm_prepare() 148 struct bf5xx_i2s_pcm_data *dma_data; in bf5xx_pcm_pointer() local 150 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in bf5xx_pcm_pointer() 168 if (dma_data->tdm_mode) in bf5xx_pcm_pointer() 181 struct bf5xx_i2s_pcm_data *dma_data; in bf5xx_pcm_open() local [all …]
|
/sound/core/ |
D | pcm_dmaengine.c | 115 const struct snd_dmaengine_dai_dma_data *dma_data, in snd_dmaengine_pcm_set_config_from_dai_data() argument 119 slave_config->dst_addr = dma_data->addr; in snd_dmaengine_pcm_set_config_from_dai_data() 120 slave_config->dst_maxburst = dma_data->maxburst; in snd_dmaengine_pcm_set_config_from_dai_data() 121 if (dma_data->flags & SND_DMAENGINE_PCM_DAI_FLAG_PACK) in snd_dmaengine_pcm_set_config_from_dai_data() 124 if (dma_data->addr_width != DMA_SLAVE_BUSWIDTH_UNDEFINED) in snd_dmaengine_pcm_set_config_from_dai_data() 125 slave_config->dst_addr_width = dma_data->addr_width; in snd_dmaengine_pcm_set_config_from_dai_data() 127 slave_config->src_addr = dma_data->addr; in snd_dmaengine_pcm_set_config_from_dai_data() 128 slave_config->src_maxburst = dma_data->maxburst; in snd_dmaengine_pcm_set_config_from_dai_data() 129 if (dma_data->flags & SND_DMAENGINE_PCM_DAI_FLAG_PACK) in snd_dmaengine_pcm_set_config_from_dai_data() 132 if (dma_data->addr_width != DMA_SLAVE_BUSWIDTH_UNDEFINED) in snd_dmaengine_pcm_set_config_from_dai_data() [all …]
|
/sound/soc/pxa/ |
D | pxa2xx-ac97.c | 111 struct snd_dmaengine_dai_dma_data *dma_data; in pxa2xx_ac97_hifi_startup() local 114 dma_data = &pxa2xx_ac97_pcm_stereo_out; in pxa2xx_ac97_hifi_startup() 116 dma_data = &pxa2xx_ac97_pcm_stereo_in; in pxa2xx_ac97_hifi_startup() 118 snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data); in pxa2xx_ac97_hifi_startup() 126 struct snd_dmaengine_dai_dma_data *dma_data; in pxa2xx_ac97_aux_startup() local 129 dma_data = &pxa2xx_ac97_pcm_aux_mono_out; in pxa2xx_ac97_aux_startup() 131 dma_data = &pxa2xx_ac97_pcm_aux_mono_in; in pxa2xx_ac97_aux_startup() 133 snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data); in pxa2xx_ac97_aux_startup()
|
D | mmp-pcm.c | 85 struct mmp_dma_data *dma_data = param; in filter() local 89 devname = kasprintf(GFP_KERNEL, "%s.%d", dma_data->dma_res->name, in filter() 90 dma_data->ssp_id); in filter() 92 (chan->chan_id == dma_data->dma_res->start)) { in filter() 105 struct mmp_dma_data dma_data; in mmp_pcm_open() local 115 dma_data.dma_res = r; in mmp_pcm_open() 116 dma_data.ssp_id = cpu_dai->id; in mmp_pcm_open() 119 &dma_data); in mmp_pcm_open()
|
D | pxa2xx-i2s.c | 166 struct snd_dmaengine_dai_dma_data *dma_data; in pxa2xx_i2s_hw_params() local 175 dma_data = &pxa2xx_i2s_pcm_stereo_out; in pxa2xx_i2s_hw_params() 177 dma_data = &pxa2xx_i2s_pcm_stereo_in; in pxa2xx_i2s_hw_params() 179 snd_soc_dai_set_dma_data(dai, substream, dma_data); in pxa2xx_i2s_hw_params()
|
/sound/soc/ |
D | soc-generic-dmaengine-pcm.c | 71 struct snd_dmaengine_dai_dma_data *dma_data; in snd_dmaengine_pcm_prepare_slave_config() local 74 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in snd_dmaengine_pcm_prepare_slave_config() 80 snd_dmaengine_pcm_set_config_from_dai_data(substream, dma_data, in snd_dmaengine_pcm_prepare_slave_config() 125 struct snd_dmaengine_dai_dma_data *dma_data; in dmaengine_pcm_set_runtime_hwparams() local 137 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in dmaengine_pcm_set_runtime_hwparams() 147 hw.fifo_size = dma_data->fifo_size; in dmaengine_pcm_set_runtime_hwparams() 171 if (!(dma_data->flags & SND_DMAENGINE_PCM_DAI_FLAG_PACK)) in dmaengine_pcm_set_runtime_hwparams() 225 struct snd_dmaengine_dai_dma_data *dma_data; in dmaengine_pcm_compat_request_channel() local 228 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in dmaengine_pcm_compat_request_channel() 239 return snd_dmaengine_pcm_request_channel(fn, dma_data->filter_data); in dmaengine_pcm_compat_request_channel() [all …]
|
/sound/soc/fsl/ |
D | imx-pcm.h | 29 imx_pcm_dma_params_init_data(struct imx_dma_data *dma_data, in imx_pcm_dma_params_init_data() argument 32 dma_data->dma_request = dma; in imx_pcm_dma_params_init_data() 33 dma_data->priority = DMA_PRIO_HIGH; in imx_pcm_dma_params_init_data() 34 dma_data->peripheral_type = peripheral_type; in imx_pcm_dma_params_init_data()
|
D | fsl_asrc_dma.c | 207 pair->dma_data.dma_request = tmp_data->dma_request; in fsl_asrc_dma_hw_params() 213 pair->dma_data.dma_request2 = tmp_data->dma_request; in fsl_asrc_dma_hw_params() 214 pair->dma_data.peripheral_type = tmp_data->peripheral_type; in fsl_asrc_dma_hw_params() 215 pair->dma_data.priority = tmp_data->priority; in fsl_asrc_dma_hw_params() 218 pair->dma_chan[dir] = dma_request_channel(mask, filter, &pair->dma_data); in fsl_asrc_dma_hw_params()
|
/sound/soc/davinci/ |
D | davinci-vcif.c | 51 struct snd_dmaengine_dai_dma_data dma_data[2]; member 178 dai->playback_dma_data = &dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_vcif_dai_probe() 179 dai->capture_dma_data = &dev->dma_data[SNDRV_PCM_STREAM_CAPTURE]; in davinci_vcif_dai_probe() 218 davinci_vcif_dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].filter_data = in davinci_vcif_probe() 220 davinci_vcif_dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].addr = in davinci_vcif_probe() 224 davinci_vcif_dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].filter_data = in davinci_vcif_probe() 226 davinci_vcif_dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].addr = in davinci_vcif_probe()
|
D | davinci-i2s.c | 132 struct snd_dmaengine_dai_dma_data dma_data[2]; member 631 dai->playback_dma_data = &dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_i2s_dai_probe() 632 dai->capture_dma_data = &dev->dma_data[SNDRV_PCM_STREAM_CAPTURE]; in davinci_i2s_dai_probe() 659 struct snd_dmaengine_dai_dma_data *dma_data; in davinci_i2s_probe() local 689 dma_data = &dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_i2s_probe() 690 dma_data->addr = (dma_addr_t)(mem->start + DAVINCI_MCBSP_DXR_REG); in davinci_i2s_probe() 696 dma_data->filter_data = dma; in davinci_i2s_probe() 698 dma_data->filter_data = "tx"; in davinci_i2s_probe() 704 dma_data = &dev->dma_data[SNDRV_PCM_STREAM_CAPTURE]; in davinci_i2s_probe() 705 dma_data->addr = (dma_addr_t)(mem->start + DAVINCI_MCBSP_DRR_REG); in davinci_i2s_probe() [all …]
|
D | davinci-mcasp.c | 77 struct snd_dmaengine_dai_dma_data dma_data[2]; member 758 struct snd_dmaengine_dai_dma_data *dma_data = &mcasp->dma_data[stream]; in mcasp_common_hw_param() local 827 dma_data->maxburst = active_serializers; in mcasp_common_hw_param() 829 dma_data->maxburst = 0; in mcasp_common_hw_param() 859 dma_data->maxburst = numevt; in mcasp_common_hw_param() 1394 dai->playback_dma_data = &mcasp->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_mcasp_dai_probe() 1395 dai->capture_dma_data = &mcasp->dma_data[SNDRV_PCM_STREAM_CAPTURE]; in davinci_mcasp_dai_probe() 1741 tmp = mcasp->dma_data[SNDRV_PCM_STREAM_PLAYBACK].filter_data; in davinci_mcasp_get_dma_type() 1818 struct snd_dmaengine_dai_dma_data *dma_data; in davinci_mcasp_probe() local 1956 dma_data = &mcasp->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_mcasp_probe() [all …]
|
/sound/soc/omap/ |
D | omap-pcm.c | 80 struct omap_pcm_dma_data *dma_data; in omap_pcm_hw_params() local 87 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in omap_pcm_hw_params() 91 if (!dma_data) in omap_pcm_hw_params() 134 struct snd_dmaengine_dai_dma_data *dma_data; in omap_pcm_open() local 139 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in omap_pcm_open() 146 dma_data->filter_data); in omap_pcm_open() 151 dma_data->filter_data); in omap_pcm_open()
|
D | omap-mcpdm.c | 74 struct snd_dmaengine_dai_dma_data dma_data[2]; member 314 struct snd_dmaengine_dai_dma_data *dma_data; in omap_mcpdm_dai_hw_params() local 343 dma_data = snd_soc_dai_get_dma_data(dai, substream); in omap_mcpdm_dai_hw_params() 354 dma_data->maxburst = in omap_mcpdm_dai_hw_params() 362 dma_data->maxburst = threshold * channels; in omap_mcpdm_dai_hw_params() 451 &mcpdm->dma_data[SNDRV_PCM_STREAM_PLAYBACK], in omap_mcpdm_probe() 452 &mcpdm->dma_data[SNDRV_PCM_STREAM_CAPTURE]); in omap_mcpdm_probe() 569 mcpdm->dma_data[0].addr = res->start + MCPDM_REG_DN_DATA; in asoc_mcpdm_probe() 570 mcpdm->dma_data[1].addr = res->start + MCPDM_REG_UP_DATA; in asoc_mcpdm_probe() 572 mcpdm->dma_data[0].filter_data = "dn_link"; in asoc_mcpdm_probe() [all …]
|
D | omap-hdmi-audio.c | 39 struct snd_dmaengine_dai_dma_data dma_data; member 95 snd_soc_dai_set_dma_data(dai, substream, &ad->dma_data); in hdmi_dai_startup() 124 ad->dma_data.maxburst = 16; in hdmi_dai_hw_params() 127 ad->dma_data.maxburst = 32; in hdmi_dai_hw_params() 335 ad->dma_data.addr = ha->audio_dma_addr; in omap_hdmi_audio_probe() 336 ad->dma_data.filter_data = "audio_tx"; in omap_hdmi_audio_probe() 337 ad->dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in omap_hdmi_audio_probe()
|
D | omap-dmic.c | 62 struct snd_dmaengine_dai_dma_data dma_data; member 205 struct snd_dmaengine_dai_dma_data *dma_data; in omap_dmic_dai_hw_params() local 231 dma_data = snd_soc_dai_get_dma_data(dai, substream); in omap_dmic_dai_hw_params() 232 dma_data->maxburst = dmic->threshold * channels; in omap_dmic_dai_hw_params() 430 snd_soc_dai_init_dma_data(dai, NULL, &dmic->dma_data); in omap_dmic_probe() 489 dmic->dma_data.addr = res->start + OMAP_DMIC_DATA_REG; in asoc_dmic_probe() 491 dmic->dma_data.filter_data = "up_link"; in asoc_dmic_probe()
|
/sound/soc/zte/ |
D | zx-spdif.c | 77 struct snd_dmaengine_dai_dma_data dma_data; member 88 zx_spdif->dma_data.addr = zx_spdif->mapbase + ZX_DATA; in zx_spdif_dai_probe() 89 zx_spdif->dma_data.maxburst = 8; in zx_spdif_dai_probe() 90 snd_soc_dai_init_dma_data(dai, &zx_spdif->dma_data, NULL); in zx_spdif_dai_probe() 142 struct snd_dmaengine_dai_dma_data *dma_data = &zx_spdif->dma_data; in zx_spdif_hw_params() local 146 dma_data = snd_soc_dai_get_dma_data(socdai, substream); in zx_spdif_hw_params() 147 dma_data->addr_width = params_width(params) >> 3; in zx_spdif_hw_params()
|
/sound/soc/bcm/ |
D | bcm2835-i2s.c | 116 struct snd_dmaengine_dai_dma_data dma_data[2]; member 569 &dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK], in bcm2835_i2s_dai_probe() 570 &dev->dma_data[SNDRV_PCM_STREAM_CAPTURE]); in bcm2835_i2s_dai_probe() 677 dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].addr = in bcm2835_i2s_probe() 680 dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].addr = in bcm2835_i2s_probe() 684 dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].addr_width = in bcm2835_i2s_probe() 686 dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].addr_width = in bcm2835_i2s_probe() 690 dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].maxburst = 2; in bcm2835_i2s_probe() 691 dev->dma_data[SNDRV_PCM_STREAM_CAPTURE].maxburst = 2; in bcm2835_i2s_probe() 697 dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].flags = in bcm2835_i2s_probe() [all …]
|
/sound/soc/jz4740/ |
D | jz4740-i2s.c | 381 struct snd_dmaengine_dai_dma_data *dma_data; in jz4740_i2c_init_pcm_config() local 384 dma_data = &i2s->playback_dma_data; in jz4740_i2c_init_pcm_config() 385 dma_data->maxburst = 16; in jz4740_i2c_init_pcm_config() 386 dma_data->slave_id = JZ4740_DMA_TYPE_AIC_TRANSMIT; in jz4740_i2c_init_pcm_config() 387 dma_data->addr = i2s->phys_base + JZ_REG_AIC_FIFO; in jz4740_i2c_init_pcm_config() 390 dma_data = &i2s->capture_dma_data; in jz4740_i2c_init_pcm_config() 391 dma_data->maxburst = 16; in jz4740_i2c_init_pcm_config() 392 dma_data->slave_id = JZ4740_DMA_TYPE_AIC_RECEIVE; in jz4740_i2c_init_pcm_config() 393 dma_data->addr = i2s->phys_base + JZ_REG_AIC_FIFO; in jz4740_i2c_init_pcm_config()
|
/sound/soc/hisilicon/ |
D | hi6210-i2s.c | 52 struct snd_dmaengine_dai_dma_data dma_data[2]; member 268 struct snd_dmaengine_dai_dma_data *dma_data; in hi6210_i2s_hw_params() local 318 dma_data = snd_soc_dai_get_dma_data(cpu_dai, substream); in hi6210_i2s_hw_params() 323 dma_data->addr_width = 3; in hi6210_i2s_hw_params() 327 dma_data->addr_width = 2; in hi6210_i2s_hw_params() 430 dma_data->maxburst = 2; in hi6210_i2s_hw_params() 433 dma_data->addr = i2s->base_phys + HII2S_ST_DL_CHANNEL; in hi6210_i2s_hw_params() 435 dma_data->addr = i2s->base_phys + HII2S_STEREO_UPLINK_CHANNEL; in hi6210_i2s_hw_params() 513 &i2s->dma_data[SNDRV_PCM_STREAM_PLAYBACK], in hi6210_i2s_dai_probe() 514 &i2s->dma_data[SNDRV_PCM_STREAM_CAPTURE]); in hi6210_i2s_dai_probe()
|
/sound/soc/adi/ |
D | axi-spdif.c | 43 struct snd_dmaengine_dai_dma_data dma_data; member 113 snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL); in axi_spdif_dai_probe() 215 spdif->dma_data.addr = res->start + AXI_SPDIF_REG_TX_FIFO; in axi_spdif_probe() 216 spdif->dma_data.addr_width = 4; in axi_spdif_probe() 217 spdif->dma_data.maxburst = 1; in axi_spdif_probe()
|
/sound/soc/img/ |
D | img-i2s-in.c | 57 struct snd_dmaengine_dai_dma_data dma_data; member 354 snd_soc_dai_init_dma_data(dai, NULL, &i2s->dma_data); in img_i2s_in_dai_probe() 368 struct snd_dmaengine_dai_dma_data *dma_data; in img_i2s_in_dma_prepare_slave_config() local 371 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, st); in img_i2s_in_dma_prepare_slave_config() 377 sc->src_addr = dma_data->addr; in img_i2s_in_dma_prepare_slave_config() 378 sc->src_addr_width = dma_data->addr_width; in img_i2s_in_dma_prepare_slave_config() 435 i2s->dma_data.addr = res->start + IMG_I2S_IN_RX_FIFO; in img_i2s_in_probe() 436 i2s->dma_data.addr_width = 4; in img_i2s_in_probe()
|
D | img-i2s-out.c | 58 struct snd_dmaengine_dai_dma_data dma_data; member 380 snd_soc_dai_init_dma_data(dai, &i2s->dma_data, NULL); in img_i2s_out_dai_probe() 394 struct snd_dmaengine_dai_dma_data *dma_data; in img_i2s_out_dma_prepare_slave_config() local 397 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, st); in img_i2s_out_dma_prepare_slave_config() 403 sc->dst_addr = dma_data->addr; in img_i2s_out_dma_prepare_slave_config() 404 sc->dst_addr_width = dma_data->addr_width; in img_i2s_out_dma_prepare_slave_config() 495 i2s->dma_data.addr = res->start + IMG_I2S_OUT_TX_FIFO; in img_i2s_out_probe() 496 i2s->dma_data.addr_width = 4; in img_i2s_out_probe() 497 i2s->dma_data.maxburst = 4; in img_i2s_out_probe()
|
D | img-parallel-out.c | 42 struct snd_dmaengine_dai_dma_data dma_data; member 186 snd_soc_dai_init_dma_data(dai, &prl->dma_data, NULL); in img_prl_out_dai_probe() 264 prl->dma_data.addr = res->start + IMG_PRL_OUT_TX_FIFO; in img_prl_out_probe() 265 prl->dma_data.addr_width = 4; in img_prl_out_probe() 266 prl->dma_data.maxburst = 4; in img_prl_out_probe()
|
D | img-spdif-out.c | 47 struct snd_dmaengine_dai_dma_data dma_data; member 291 snd_soc_dai_init_dma_data(dai, &spdif->dma_data, NULL); in img_spdif_out_dai_probe() 376 spdif->dma_data.addr = res->start + IMG_SPDIF_OUT_TX_FIFO; in img_spdif_out_probe() 377 spdif->dma_data.addr_width = 4; in img_spdif_out_probe() 378 spdif->dma_data.maxburst = 4; in img_spdif_out_probe()
|
/sound/soc/sti/ |
D | sti_uniperif.c | 287 struct snd_dmaengine_dai_dma_data *dma_data; in sti_uniperiph_dai_hw_params() local 296 dma_data = snd_soc_dai_get_dma_data(dai, substream); in sti_uniperiph_dai_hw_params() 297 dma_data->maxburst = transfer_size; in sti_uniperiph_dai_hw_params() 361 snd_soc_dai_init_dma_data(dai, &dai_data->dma_data, NULL); in sti_uniperiph_dai_probe() 363 snd_soc_dai_init_dma_data(dai, NULL, &dai_data->dma_data); in sti_uniperiph_dai_probe() 365 dai_data->dma_data.addr = dai_data->uni->fifo_phys_address; in sti_uniperiph_dai_probe() 366 dai_data->dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sti_uniperiph_dai_probe()
|