[alsa-devel] ASoC: how to calculate dma size in tdm mode

Scott Jiang scott.jiang.linux at gmail.com
Thu Aug 9 11:56:57 CEST 2012

Hi Mark,

If user app use 2 channels but codec need 8 channels in tdm mode, I
need to copy this data from user space to dma buffer. I wonder how to
calculate dma size, snd_pcm_hardware.buffer_bytes_max or
buffer_bytes_max * tdm_channels / channels_min?


More information about the Alsa-devel mailing list