[alsa-devel] [PATCH 03/12] add a mc13783 codec driver

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Nov 25 11:39:59 CET 2009


On Wed, Nov 25, 2009 at 08:46:31AM +0100, Sascha Hauer wrote:

> The problem here is that I don't really understand what arguments I
> should supply to this function and how to parse them to archieve what I
> want.

> The MC13783 Voice Codec always uses a network mode to send data. It has
> a fixed width of four slots.

> PMIC_SSI_NETWORK[2:3] defines the slot for primary transmit/receive
> PMIC_SSI_NETWORK[4:5] defines the secondary transmit timeslot
> PMIC_SSI_NETWORK[6:7] defines the secondary receive timeslot

> The Codec has two channels and it's not primarily desgined to do stereo
> Audio. I want to put the primary channel into the first timeslot and
> the secondary channel into the second timeslot.

What are "primary" and "secondary" here?  If they are broadly unrelated
except for the clocking (which is what this sounds like) then they
probably should be handled as separate DAIs.  For the TDM configuration
you should be forcing a slot count of four slots.  The RX and TX masks
will then allow one bit to be set, specifying which of the slots the
data goes in for each direction.


More information about the Alsa-devel mailing list