From 6f060510979e213d5584144101e82ab34efc5617 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Sat, 16 Jun 2018 01:33:45 +0200 Subject: Use correct chanel number when creating PCM Use correct chanel number when creating PCM. Change-Id: I17ac0273f9a6eec1d3b49845f579495f2cdcf9d7 Signed-off-by: Jonathan Aillet --- plugins/alsa/alsa-plug-route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/alsa/alsa-plug-route.c b/plugins/alsa/alsa-plug-route.c index a225983..5e63e4d 100644 --- a/plugins/alsa/alsa-plug-route.c +++ b/plugins/alsa/alsa-plug-route.c @@ -153,8 +153,8 @@ PUBLIC AlsaPcmCtlT* AlsaCreateRoute(SoftMixerT *mixer, AlsaSndZoneT *zone, int o error += snd_config_make_compound(&slaveConfig, "slave", 0); error += snd_config_imake_string(&elemConfig, "pcm", dmixUid); error += snd_config_add(slaveConfig, elemConfig); -// error += snd_config_imake_integer(&elemConfig, "channels", scount); -// error += snd_config_add(slaveConfig, elemConfig); + error += snd_config_imake_integer(&elemConfig, "channels", slave.ccount); + error += snd_config_add(slaveConfig, elemConfig); error += snd_config_add(routeConfig, slaveConfig); error += snd_config_add(routeConfig, tableConfig); if (error) goto OnErrorExit; -- cgit 1.2.3-korg