Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1389127
| From | Martin Sperl <kernel@martin.sperl.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] ASoC: bcm2835: Add S16_LE support via packed DMA transfers |
| Date | 2016-04-27 16:40 +0200 |
| Message-ID | <rsyNc-2L2-3@gated-at.bofh.it> (permalink) |
| References | <rsxR8-1XC-11@gated-at.bofh.it> <rsxR8-1XC-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> On 27.04.2016, at 15:26, Matthias Reichl <hias@horus.com> wrote: > > The bcm2835-i2s driver already has support for the S16_LE format but > that format hasn't been made available because dmaengine_pcm didn't > support packed data transfers. > > bcm2835-i2s needs 16-bit left+right channel data to be packed into > a 32-bit word, the FIFO register is 32-bit only and doesn't support > 16-bit access. > > Now that dmaengine_pcm supports packed transfers the format can > be made available by setting the SND_DMAENGINE_PCM_DAI_FLAG_PACK flag. > > No further configuration is necessary: > - snd_dmaengine_dai_dma_data.addr_width is already set to > DMA_SLAVE_BUSWIDTH_4_BYTES to force 32-bit DMA transfers > - dmaengine_pcm will pick up the S16_LE format from the DAI > configuration and make it available since it's no longer > masked out due to the PACK flag. > - there are no further corner cases to catch in hw_params, > since the channel count is fixed at 2 we always have two > 16-bit stereo samples that can be transferred via 32-bit DMA > > Signed-off-by: Matthias Reichl <hias@horus.com> Tested-by: Martin Sperl <kernel@martin.sperl.org>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] ASoC: dmaengine_pcm: Add support for packed transfers Matthias Reichl <hias@horus.com> - 2016-04-27 15:40 +0200
[PATCH 2/2] ASoC: bcm2835: Add S16_LE support via packed DMA transfers Matthias Reichl <hias@horus.com> - 2016-04-27 15:40 +0200
Re: [PATCH 2/2] ASoC: bcm2835: Add S16_LE support via packed DMA transfers Martin Sperl <kernel@martin.sperl.org> - 2016-04-27 16:40 +0200
Applied "ASoC: bcm2835: Add S16_LE support via packed DMA transfers" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-04-27 18:40 +0200
Re: [PATCH 2/2] ASoC: bcm2835: Add S16_LE support via packed DMA transfers Eric Anholt <eric@anholt.net> - 2016-04-27 21:00 +0200
Re: [PATCH 1/2] ASoC: dmaengine_pcm: Add support for packed transfers Lars-Peter Clausen <lars@metafoo.de> - 2016-04-27 16:20 +0200
Re: [PATCH 1/2] ASoC: dmaengine_pcm: Add support for packed transfers Martin Sperl <kernel@martin.sperl.org> - 2016-04-27 16:40 +0200
Applied "ASoC: dmaengine_pcm: Add support for packed transfers" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-04-27 18:40 +0200
csiph-web