aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-plug-vol.c
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-06-22 17:19:40 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-06-22 17:19:40 +0200
commit7a02db1106cc5fab6016b05a5c13d3dc7c6f0be9 (patch)
tree0e1fe523a8c1196f401a5851d40d404fe7592de8 /plugins/alsa/alsa-plug-vol.c
parentb124cc00e9714ac20fdf96f480fc7f08e06a2150 (diff)
plugins: code & log cleanup
Diffstat (limited to 'plugins/alsa/alsa-plug-vol.c')
-rw-r--r--plugins/alsa/alsa-plug-vol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/alsa/alsa-plug-vol.c b/plugins/alsa/alsa-plug-vol.c
index 310a8b8..ce4627a 100644
--- a/plugins/alsa/alsa-plug-vol.c
+++ b/plugins/alsa/alsa-plug-vol.c
@@ -27,7 +27,7 @@ PUBLIC AlsaPcmCtlT *AlsaCreateSoftvol(SoftMixerT *mixer, AlsaStreamAudioT *strea
AlsaPcmCtlT *pcmVol= calloc(1,sizeof(AlsaPcmCtlT));
int error = 0;
- AFB_ApiInfo(mixer->api, "%s create SOFTVOL on %s\n", __func__, slaveid);
+ AFB_ApiInfo(mixer->api, "%s create SOFTVOL on %s", __func__, slaveid);
char *cardid = NULL;
if (asprintf(&cardid, "softvol-%s", stream->uid) == -1)
@@ -49,6 +49,7 @@ PUBLIC AlsaPcmCtlT *AlsaCreateSoftvol(SoftMixerT *mixer, AlsaStreamAudioT *strea
error += snd_config_make_compound(&slaveConfig, "slave", 0);
error += snd_config_imake_string(&elemConfig, "pcm", slaveid);
error += snd_config_add(slaveConfig, elemConfig);
+
error += snd_config_add(streamConfig, slaveConfig);
if (error) goto OnErrorExit;