mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
control: remap - don't allow I/O on renamed IDs
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
278462583c
commit
3e731ff51e
1 changed files with 2 additions and 0 deletions
|
|
@ -251,6 +251,8 @@ static int remap_id_to_child(snd_ctl_remap_t *priv, snd_ctl_elem_id_t *id, snd_c
|
|||
}
|
||||
*id = rid->id_child;
|
||||
} else {
|
||||
if (remap_find_id_child(priv, id))
|
||||
return -ENOENT;
|
||||
numid = remap_find_numid_app(priv, id->numid);
|
||||
if (numid)
|
||||
id->numid = numid->numid_child;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue