- Fix regression in config read and UCM handling on pipewire and pulseaudio (boo#1187079, boo#1187033): 0001-conf-fix-load_for_all_cards.patch 0002-ucm-add-_alibpref-to-get-the-private-device-prefix.patch 0003-ucm-fix-_alibpref-string-add-.-delimiter-to-the-end.patch OBS-URL: https://build.opensuse.org/request/show/898827 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=297
35 lines
969 B
Diff
35 lines
969 B
Diff
From 9621d0bff2e60b43e329ffa5059ab19f2914ec14 Mon Sep 17 00:00:00 2001
|
|
From: Jaroslav Kysela <perex@perex.cz>
|
|
Date: Wed, 2 Jun 2021 11:21:54 +0200
|
|
Subject: [PATCH] ucm: fix _alibpref string (add '.' delimiter to the end)
|
|
|
|
Fixes: 0e4ba2ea ("ucm: add _alibpref to get the private device prefix")
|
|
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
|
---
|
|
src/ucm/main.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/ucm/main.c b/src/ucm/main.c
|
|
index 3c9ea15d5642..c9b37b68b655 100644
|
|
--- a/src/ucm/main.c
|
|
+++ b/src/ucm/main.c
|
|
@@ -2146,13 +2146,13 @@ static int get_alibcfg(snd_use_case_mgr_t *uc_mgr, char **str)
|
|
*/
|
|
static int get_alibpref(snd_use_case_mgr_t *uc_mgr, char **str)
|
|
{
|
|
- const size_t l = 9;
|
|
+ const size_t l = 10;
|
|
char *s;
|
|
|
|
s = malloc(l);
|
|
if (s == NULL)
|
|
return -ENOMEM;
|
|
- snprintf(s, l, "_ucm%04X", uc_mgr->ucm_card_number);
|
|
+ snprintf(s, l, "_ucm%04X.", uc_mgr->ucm_card_number);
|
|
*str = s;
|
|
return 0;
|
|
}
|
|
--
|
|
2.26.2
|
|
|