[alsa-devel] [PATCH] ASoC: imx-ssi: Fix mono playback

Fabio Estevam festevam at gmail.com
Tue Aug 7 00:10:07 CEST 2012


On Mon, Aug 6, 2012 at 7:01 PM, Mark Brown
<broonie at opensource.wolfsonmicro.com> wrote:
> On Mon, Aug 06, 2012 at 06:49:04PM -0300, Fabio Estevam wrote:
>
>> So it seems the issue is mc13783 related then.
>
> Is the device using I2S?  I2S doesn't really support stero properly...

The format is:

#define FMT_SSI (SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_NB_NF | \
		SND_SOC_DAIFMT_CBM_CFM)

In wm1133-ev1.c you did:

	/* TODO: The SSI driver should figure this out for us */
	switch (channels) {
	case 2:
		snd_soc_dai_set_tdm_slot(cpu_dai, 0xffffffc, 0xffffffc, 2, 0);
		break;
	case 1:
		snd_soc_dai_set_tdm_slot(cpu_dai, 0xffffffe, 0xffffffe, 1, 0);
		break;
	default:
		return -EINVAL;
	}

Maybe I should do something similar in imx-mc13783?

Regards,

Fabio Estevam


More information about the Alsa-devel mailing list