mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: add alsa.deny to fail init of the PCM
Handy to block audacity from probing the hardware.
This commit is contained in:
parent
e940361c94
commit
e063cc38a9
1 changed files with 6 additions and 0 deletions
|
|
@ -1238,6 +1238,12 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp,
|
|||
if (str != NULL)
|
||||
pw_properties_update_string(pw->props, str, strlen(str));
|
||||
|
||||
if ((str = pw_properties_get(pw->props, "alsa.deny")) != NULL &&
|
||||
spa_atob(str)) {
|
||||
err = -EACCES;
|
||||
goto error;
|
||||
}
|
||||
|
||||
str = getenv("PIPEWIRE_NODE");
|
||||
if (str != NULL && str[0])
|
||||
pw_properties_set(pw->props, PW_KEY_TARGET_OBJECT, str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue