mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
ASoC: davinci-mcasp: enable ping-pong SRAM buffers
The davinci-i2s driver copies the platform data for playback and capture sram sizes which is in turn used by davinci-pcm to allocate ping-pong buffers. Copy also the platform data in davinci-mcasp probe. Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
c26f642e26
commit
a0c8326397
1 changed files with 2 additions and 0 deletions
|
@ -909,6 +909,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
|
||||||
dma_data = &dev->dma_params[SNDRV_PCM_STREAM_PLAYBACK];
|
dma_data = &dev->dma_params[SNDRV_PCM_STREAM_PLAYBACK];
|
||||||
dma_data->asp_chan_q = pdata->asp_chan_q;
|
dma_data->asp_chan_q = pdata->asp_chan_q;
|
||||||
dma_data->ram_chan_q = pdata->ram_chan_q;
|
dma_data->ram_chan_q = pdata->ram_chan_q;
|
||||||
|
dma_data->sram_size = pdata->sram_size_playback;
|
||||||
dma_data->dma_addr = (dma_addr_t) (pdata->tx_dma_offset +
|
dma_data->dma_addr = (dma_addr_t) (pdata->tx_dma_offset +
|
||||||
mem->start);
|
mem->start);
|
||||||
|
|
||||||
|
@ -925,6 +926,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
|
||||||
dma_data = &dev->dma_params[SNDRV_PCM_STREAM_CAPTURE];
|
dma_data = &dev->dma_params[SNDRV_PCM_STREAM_CAPTURE];
|
||||||
dma_data->asp_chan_q = pdata->asp_chan_q;
|
dma_data->asp_chan_q = pdata->asp_chan_q;
|
||||||
dma_data->ram_chan_q = pdata->ram_chan_q;
|
dma_data->ram_chan_q = pdata->ram_chan_q;
|
||||||
|
dma_data->sram_size = pdata->sram_size_capture;
|
||||||
dma_data->dma_addr = (dma_addr_t)(pdata->rx_dma_offset +
|
dma_data->dma_addr = (dma_addr_t)(pdata->rx_dma_offset +
|
||||||
mem->start);
|
mem->start);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue