diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-16 01:33:45 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-16 01:33:45 +0200 |
commit | 6f060510979e213d5584144101e82ab34efc5617 (patch) | |
tree | dadac4c2fbeee126eb2bb4e9dde971880e6d89e1 /plugins/alsa/alsa-plug-route.c | |
parent | e173f942334e741714ac45924554552b5511de1d (diff) |
Use correct chanel number when creating PCMhal-rc2-sandbox
Use correct chanel number when creating PCM.
Change-Id: I17ac0273f9a6eec1d3b49845f579495f2cdcf9d7
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/alsa/alsa-plug-route.c')
-rw-r--r-- | plugins/alsa/alsa-plug-route.c | 4 |
1 files 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; |