]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ASoC: Fix Zylonite voice interface stereo configurations
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 23 Feb 2009 18:45:19 +0000 (18:45 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 24 Feb 2009 23:48:12 +0000 (23:48 +0000)
We always run in the first timeslot of one.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/pxa/zylonite.c

index ec2fb764b241f6a30dacb1558c601ee26822df9e..0140a250db24247797b06c917cb3823a94765a71 100644 (file)
@@ -127,9 +127,8 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
        if (ret < 0)
                return ret;
 
-       ret = snd_soc_dai_set_tdm_slot(cpu_dai,
-                                      params_channels(params),
-                                      params_channels(params));
+       /* We're not really in network mode but the emulation wants this. */
+       ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 1);
        if (ret < 0)
                return ret;