summaryrefslogtreecommitdiff
path: root/src/modules/alsa/module-alsa-card.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-03 22:26:15 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-03 22:27:05 +0100
commitf3de61edf68c039abf3499463333ad920019f430 (patch)
tree9ff606d33b4064fd4baccdfe4ba2d173eb6bcc11 /src/modules/alsa/module-alsa-card.c
parent0329edd1791e3c8fbed33f266d86cae6b91a5556 (diff)
fix device reservation for system mode
Diffstat (limited to 'src/modules/alsa/module-alsa-card.c')
-rw-r--r--src/modules/alsa/module-alsa-card.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c
index 22f0ae0a..d5e2cdc2 100644
--- a/src/modules/alsa/module-alsa-card.c
+++ b/src/modules/alsa/module-alsa-card.c
@@ -310,8 +310,9 @@ int pa__init(pa_module *m) {
pa_snprintf(rname, sizeof(rname), "Audio%i", alsa_card_index);
- if (!(reserve = pa_reserve_wrapper_get(m->core, rname)))
- goto fail;
+ if (!pa_in_system_mode())
+ if (!(reserve = pa_reserve_wrapper_get(m->core, rname)))
+ goto fail;
pa_card_new_data_init(&data);
data.driver = __FILE__;