[alsa-devel] [PATCH 6/6] ASoC: Beagle: Add support for 4 channel mode

Peter Ujfalusi peter.ujfalusi at nokia.com
Tue Apr 7 06:45:31 CEST 2009


On Monday 06 April 2009 15:50:29 ext Mark Brown wrote:
> On Mon, Apr 06, 2009 at 03:19:32PM +0300, Peter Ujfalusi wrote:
> > +	switch (params_channels(params)) {
> > +	case 2: /* Stereo I2S mode */
> > +		fmt =	SND_SOC_DAIFMT_I2S |
> > +			SND_SOC_DAIFMT_NB_NF |
> > +			SND_SOC_DAIFMT_CBM_CFM;
> > +		break;
> > +	case 4: /* Four channel TDM mode */
> > +		fmt =	SND_SOC_DAIFMT_DSP_A |
>
> Might it not be easier to just run in DSP mode all the time?

The reason for this is the fact that twl4030 in TDM mode only supports 4. 
channel.

The Audio interface has three modes:
codec mode (i2s) - Stereo
Left-justified   - Stereo
Right-justified  - Stereo
TDM              - 4 channels

-- 
Péter


More information about the Alsa-devel mailing list