mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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='<pcm_device_name>' BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/75#issuecomment-768555182 Signed-off-by: Jaroslav Kysela <perex@perex.cz> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/492>
This commit is contained in:
parent
c6309a9c18
commit
597a1eb1ba
1 changed files with 1 additions and 1 deletions
|
|
@ -731,7 +731,7 @@ snd_pcm_t *pa_alsa_open_by_device_string(
|
||||||
if (!pa_startswith(d, "plug:") && !pa_startswith(d, "plughw:")) {
|
if (!pa_startswith(d, "plug:") && !pa_startswith(d, "plughw:")) {
|
||||||
char *t;
|
char *t;
|
||||||
|
|
||||||
t = pa_sprintf_malloc("plug:%s", d);
|
t = pa_sprintf_malloc("plug:SLAVE='%s'", d);
|
||||||
pa_xfree(d);
|
pa_xfree(d);
|
||||||
d = t;
|
d = t;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue