[alsa-devel] SOC that needs L/R data in separate buffers
Is there a format in ALSA for hardware that wants the L/R stereo data in two different buffers and not inter-leaved? Hardware has two DMA channels into separate FIFOs for L/R.
If not I guess I have to unpack it inside the device driver. Doing that will mess up mixing since ALSA won't know where the real DMA buffer is.
FIFOs are only four samples deeps so that's probably too many interrupts/sec to do programmed IO when FIFO is half full.
-- Jon Smirl jonsmirl@gmail.com
On 28/11/12 04:13, jonsmirl@gmail.com wrote:
Is there a format in ALSA for hardware that wants the L/R stereo data in two different buffers and not inter-leaved? Hardware has two DMA channels into separate FIFOs for L/R.
asound.h lists all the supported data formats and we have SNDRV_PCM_ACCESS_RW_NONINTERLEAVED for non interleaved hardware.
Regards
Liam
participants (2)
-
jonsmirl@gmail.com
-
Liam Girdwood