summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-api-sndcards.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/alsa/alsa-api-sndcards.c')
-rw-r--r--plugins/alsa/alsa-api-sndcards.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/alsa/alsa-api-sndcards.c b/plugins/alsa/alsa-api-sndcards.c
index d48abd8..e98a294 100644
--- a/plugins/alsa/alsa-api-sndcards.c
+++ b/plugins/alsa/alsa-api-sndcards.c
@@ -75,7 +75,9 @@ STATIC int ProcessOneSndCard(CtlSourceT *source, json_object *sndcardJ, AlsaPcmI
}
// protect each sndcard with a dmix plugin to enable audio-stream mixing
- AlsaPcmInfoT *dmixPcm= AlsaCreateDmix(source, snd->uid, snd);
+ char dmixUid[100];
+ snprintf(dmixUid, sizeof(dmixUid),"Dmix-%s", snd->uid);
+ AlsaPcmInfoT *dmixPcm= AlsaCreateDmix(source, dmixUid, snd);
if (!dmixPcm) {
AFB_ApiError(source->api, "ProcessOneSndCard: sndcard=%s fail to attach dmix plugin", snd->uid);
goto OnErrorExit;