[alsa-devel] [PATCH V2 2/3] add set_tdm_slot in tdm dai to define the relationship between audio channel and tdm slot

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Aug 17 19:50:10 CEST 2009

On Thu, Aug 13, 2009 at 12:25:11PM +0800, Barry Song wrote:

> For ad1938, the audio channel n just uses slot n, but for ad1836, it's
> different, channel 0 uses slot 0, channel 1 uses slot 4, channels 2 uses
> slot1, ... So add set_tdm_slot entry and use the mask field to define
> the relationship between audio channel and slot number.

I think what you're trying to describe here is that the device is
expecting to see all the left channels on the bus followed by all the
right channels?  This is the normal case for I2S TDM so no unusual
configuration is required in order to implement it.

I really don't think we should have Blackfin implementing a different
API here - it makes the TDM slot API much harder to use.  Instead we
should have a consistent API between all devices.  This may mean that we
need to extend the APIs here.

More information about the Alsa-devel mailing list