]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: do not share the ctl cache handle for different device names
authorJaroslav Kysela <perex@perex.cz>
Tue, 24 Nov 2026 15:35:33 +0000 (16:35 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 24 Nov 2026 15:42:29 +0000 (16:42 +0100)
commit7f5a75fae90601fbb01c327b0c25f53b392c3b57
tree4a8d1b2c2b5d8eb1a79dba5bfadc35e7dace5182
parent91a0e4d05565fd51b22e1fbb0d5042b9e5f433ca
ucm: do not share the ctl cache handle for different device names

uc_mgr_open_ctl() merged any two devices resolving to the same card id
into a single cached ctl_list sharing one snd_ctl_t handle. This is wrong
when the device names differ: hw:1 and default:1 reference the same card
but are distinct control interfaces and must not share a handle.

Match the device name (the part before ':', ignoring the arguments) in
addition to the card id when reusing a cached handle.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/utils.c