diff options
Diffstat (limited to 'sound/soc/pxa/zylonite.c')
-rw-r--r-- | sound/soc/pxa/zylonite.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/soc/pxa/zylonite.c b/sound/soc/pxa/zylonite.c index 0140a250db24..9f6116edbb84 100644 --- a/sound/soc/pxa/zylonite.c +++ b/sound/soc/pxa/zylonite.c | |||
@@ -127,8 +127,11 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream, | |||
127 | if (ret < 0) | 127 | if (ret < 0) |
128 | return ret; | 128 | return ret; |
129 | 129 | ||
130 | /* We're not really in network mode but the emulation wants this. */ | 130 | /* Use network mode for stereo, one slot per channel. */ |
131 | ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 1); | 131 | if (params_channels(params) > 1) |
132 | ret = snd_soc_dai_set_tdm_slot(cpu_dai, 0x3, 2); | ||
133 | else | ||
134 | ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 1); | ||
132 | if (ret < 0) | 135 | if (ret < 0) |
133 | return ret; | 136 | return ret; |
134 | 137 | ||