From 597a1eb1ba02891c79132319f3d2beb2b5cbc108 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 28 Jan 2021 08:48:03 +0100 Subject: [PATCH] alsa: fix the plug: PCM device name creation The plug: ALSA PCM device name can pass any device name even with argument, but the syntax is: plug:SLAVE='' BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/75#issuecomment-768555182 Signed-off-by: Jaroslav Kysela Part-of: --- src/modules/alsa/alsa-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c index 172a7bb51..172ffbb99 100644 --- a/src/modules/alsa/alsa-util.c +++ b/src/modules/alsa/alsa-util.c @@ -731,7 +731,7 @@ snd_pcm_t *pa_alsa_open_by_device_string( if (!pa_startswith(d, "plug:") && !pa_startswith(d, "plughw:")) { char *t; - t = pa_sprintf_malloc("plug:%s", d); + t = pa_sprintf_malloc("plug:SLAVE='%s'", d); pa_xfree(d); d = t;