|
@@ -127,8 +127,11 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
|
|
|
if (ret < 0)
|
|
|
return ret;
|
|
|
|
|
|
- /* We're not really in network mode but the emulation wants this. */
|
|
|
- ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 1);
|
|
|
+ /* Use network mode for stereo, one slot per channel. */
|
|
|
+ if (params_channels(params) > 1)
|
|
|
+ ret = snd_soc_dai_set_tdm_slot(cpu_dai, 0x3, 2);
|
|
|
+ else
|
|
|
+ ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 1);
|
|
|
if (ret < 0)
|
|
|
return ret;
|
|
|
|