Nedko Arnaudov
6414cd9dbf
Improved error reporting in device reservation code
...
rd_acquire() error handling is adjusted to match libdbus error
handling convention:
* Initialize error before calling rd_acquire()
* Free dbus error on rd_acquire() failures
* Always set dbus error on rd_acquire failures, except for
detected programming errors that now cause taboo assert.
2012-11-24 05:12:35 +02:00
Adrian Knoth
89c359eee0
[wscript] More fixes for -Wl,--as-needed
...
Reportedly, f28523ff54
was incomplete.
2012-11-07 13:32:46 +01:00
Adrian Knoth
a43aad2e91
Fix FTBFS on ppc64
...
Patch provided by Aurelien Jarno <aurel32@debian.org> in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684470
2012-08-11 11:40:39 +02:00
Adrian Knoth
007cdc3714
Make SA_SIGINFO conditional
...
SA_SIGINFO isn't defined on hurd, so check before setting it.
This patch was used in Debian since 2010-08-01.
2012-05-29 21:11:00 +02:00
David Henningsson
f82ec71566
jackdbus: Fix sigsegv handling segfaulting by itself
...
In my case, the siginfo code was -6, causing the sigsegv handling
to crash on its own. This patch adds a range check for siginfo code.
BugLink: https://bugs.launchpad.net/bugs/983835
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2012-04-18 03:18:19 +03:00
Nedko Arnaudov
fcda41cb59
indention fix
2012-02-15 21:40:36 +02:00
Nedko Arnaudov
83f991900d
switch from set_options() to options()
2012-02-15 21:39:33 +02:00
Nedko Arnaudov
329d83c92b
swtich from uselib/uselib_local to use
2012-02-15 21:36:44 +02:00
Nedko Arnaudov
971b1656d5
switch from bld.new_task_gen() to bld()
...
jackdbus needs explicit index because device reservation code
is shared with jackd and waf cannot autodetect this.
2012-02-15 21:30:55 +02:00
Adrian Knoth
aa7fe34739
wscript: Fix waf error (missing features) in dbus/wscript
2012-02-12 14:15:23 +01:00
Adrian Knoth
a534162500
wscript: Fix DBUS service file generation
...
New waf syntax for a subst build.
2012-02-12 14:15:23 +01:00
Adrian Knoth
58036bc80f
Run 2to3 on all wscript files.
...
Automatically upgrading to python3 syntax, where possible.
2012-02-09 18:13:53 +01:00
sletz
32bc4fa557
Use a time-out in notification channel write function.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4761 0c269be4-1314-0410-8aa9-9f06e86f4224
2012-02-01 11:16:25 +00:00
sletz
1ce0d5cd61
Correction to use public headers in dbus code.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4675 0c269be4-1314-0410-8aa9-9f06e86f4224
2012-01-07 13:27:55 +00:00
nedko
7bbe5971bf
jackdbus: group batch of saves into one
...
When a parameter is set, jackdbus used to save immediately.
This was quite annoying and ineffective when configuring
lot of parameters without delay. It caused log line to appear
for each parameter set and xml file serialization as well.
This changeset implements delayed save. Parameters are saved
two seconds after last parameter set.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4583 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-11-12 19:23:44 +00:00
nedko
1a205fac42
remove sneaked sleep that caused jack session saves to take long time
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4549 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-10-16 22:35:42 +00:00
Nedko Arnaudov
0f439c74dd
jackdbus: implement session command queue
2011-08-11 08:33:34 +03:00
Nedko Arnaudov
e93e526957
dbus: info log messages for session notify
2011-08-07 05:32:19 +03:00
Nedko Arnaudov
94eea6f4dd
jackdbus: SessionManager interface
2011-07-21 00:35:21 +03:00
sletz
90494cc885
Correct rd_acquire.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4395 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-05-27 12:37:06 +00:00
sletz
00fc09b3b8
Make switchmaster a bit more robust.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4394 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-05-25 13:44:45 +00:00
nedko
46017940a4
jackdbus: fix link issues
...
similar to db4b99b5b6
got broken by f94bf7174d
For example jack_error was not linked properly:
jackdbus.c:(.text+0x36): undefined reference to `jack_error'
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4389 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-05-13 00:28:39 +00:00
nedko
5cc529d9cf
jackdbus: slave-drivers parameter
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4317 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 21:52:26 +00:00
nedko
1d06e19943
jackdbus: remove dead prototypes and functions
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4316 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 18:27:49 +00:00
nedko
343a0e8069
jackdbus: params store
...
This changeset removes code duplication that was caused by lack of
unified access to parameters in the control API. Adding new virtual
parameters should be much easier now.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4315 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 18:18:32 +00:00
nedko
4b9b621a31
jackdbus: remove the libxml backend
...
It was be problematic in past (FFADO uses libxml as well).
Most systems will have both libxml and expat.
Maintaining two backends is waste of effort.
If needed, the libxml backend can be resurrected.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4314 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 14:08:35 +00:00
nedko
8a845aa02a
jackdbus: Don't emit ServerStopped signal on SwitchMaster
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4313 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-17 13:58:05 +00:00
nedko
e155b755bc
jackdbus: reduce code duplication
...
parameter info is transformed to dbus representation in same way for
single and for all parameters
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4293 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-10 02:36:42 +00:00
nedko
49dffe6226
jackdbus: fix slave driver support
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4292 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-04-09 23:09:25 +00:00
Devin Anderson
db132e1974
Update server control API with jackctl_server_open and jackctl_server_close (see http://trac.jackaudio.org/ticket/219 for rationale). Update drivers to support Start/Stop of slave drivers. Update dbus to use new jackctl_server_* functions. Freewheel driver is no longer an implicit slave of the master audio driver. Haven't tested freewheeling, and didn't update Solaris OSS driver. Tested slave addition by adding loopback driver, but don't have a slave driver in this branch on Linux platform to test with.
2011-03-20 22:39:31 -07:00
nedko
6ce74b1443
jackdbus: fix client lookup
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4054 0c269be4-1314-0410-8aa9-9f06e86f4224
2010-09-15 21:36:16 +00:00
nedko
3436223cf9
jackdbus: reopen log file when it is deleted or replaced (MERGE from ladi-fixes)
...
Fix for #190
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4044 0c269be4-1314-0410-8aa9-9f06e86f4224
2010-08-28 00:16:07 +00:00
Nedko Arnaudov
fda3dbe7ea
jackdbus: reopen log file when it is deleted or replaced
...
Fix for #190
2010-08-28 03:12:05 +03:00
sletz
caa6cd6c27
Adrian Knoth hurd.patch, kfreebsd-fix.patch and alpha_ia64-sigsegv.patch from ticket 177.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4034 0c269be4-1314-0410-8aa9-9f06e86f4224
2010-07-07 09:49:05 +00:00
sletz
399936ee92
Remove warning.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4011 0c269be4-1314-0410-8aa9-9f06e86f4224
2010-05-11 08:01:45 +00:00
nedko
8c4f03ed21
jackdbus: dont emit spurious signals. Fix for #174 (MERGE from ladi-fixes)
...
When server is already in target state, there is no state change
and thus signal for state change should not be emitted
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4010 0c269be4-1314-0410-8aa9-9f06e86f4224
2010-05-10 00:16:03 +00:00
nedko
9f47eda23b
jackdbus: improved handling of server start/stop failures (MERGE from ladi-fixes)
...
* Don't override detailed error string with generic one
* Set the D-Bus reply error in case of jackctl_server_stop() failure
* Set the D-Bus reply error in case of jack_controller_patchbay_init() failure
* Don't set the D-Bus reply error in case of jack_deactivate() failure because
this failure does not cause jack_controller_stop_server() failure and thus
will cause memory leak.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4009 0c269be4-1314-0410-8aa9-9f06e86f4224
2010-05-10 00:14:03 +00:00
Nedko Arnaudov
d1090f0ddf
jackdbus: dont emit spurious signals. Fix for #174
...
When server is already in target state, there is no state change
and thus signal for state change should not be emitted
2010-05-10 03:11:24 +03:00
Nedko Arnaudov
becacb17a4
jackdbus: improved handling of server start/stop failures
...
* Don't override detailed error string with generic one
* Set the D-Bus reply error in case of jackctl_server_stop() failure
* Set the D-Bus reply error in case of jack_controller_patchbay_init() failure
* Don't set the D-Bus reply error in case of jack_deactivate() failure because
this failure does not cause jack_controller_stop_server() failure and thus
will cause memory leak.
2010-05-10 02:58:59 +03:00
sletz
159ce1a594
Apply jackd2-powerpc.patch.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3995 0c269be4-1314-0410-8aa9-9f06e86f4224
2010-04-29 19:33:15 +00:00
Nedko Arnaudov
e7d837eda9
Return error over dbus when server start, stop or switchmaster fails
2010-03-05 23:21:06 +02:00
nedko
ddc96f38f0
Fix jackdbus dependencies handling
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3865 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-12-28 13:23:14 +00:00
nedko
d5afe86eef
jackdbus: port renamed signal. Fixes #10
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3847 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-12-07 17:11:25 +00:00
nedko
3a0b63edc4
jackdbus: update port names on renames. fixes #151
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3846 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-12-07 16:53:44 +00:00
nedko
6aebfde97d
jackdbus: don't print error during normal flow
...
Even if client is subscribed to jack server start/stop signals,
there is a timeframe between jack server stop and signal delivery.
In this frame, calls that require started server will fail.
This is part of normal operation and should not be treated as real error.
With this changeset, error is reported through dbus but no error is printed
in the log file
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3843 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-12-06 19:00:17 +00:00
nedko
6dda86654b
revert the wrong revert in r3818
...
The revert in r3818 was wrong because r3816 was correct in svn.
The revert error in r3818 happened,
because svn r3816 had wrong git version 9fb8b55379ae5778d46d89b905e5d8e689ca2916
the right git version of svn r3816 is c9bbc68a8d
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3820 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-11-19 20:55:21 +00:00
nedko
13034fdb08
Revert wrong changes that appeared in r3816 (9fb8b55379ae5778d46d89b905e5d8e689ca2916)
...
That changeset is supposed to only patch Jackdmp.cpp
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3818 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-11-19 12:51:47 +00:00
sletz
e84187fadf
Make dbus/sigsegv.c compile on OSX.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3811 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-11-18 21:24:39 +00:00
nedko
aab8a77bfb
Fix typo in dbus introspection.
...
UnlooadInternal -> UnloadInternal
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3680 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-10-29 13:44:25 +00:00
nedko
50550fada3
Fix introspection for GetClientPID
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3634 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-08-20 20:34:09 +00:00
sletz
af9790fa3a
More cleanup in Solaris boomer backend.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3631 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-31 09:04:52 +00:00
sletz
56f4d13ecb
In combined --dbus and --classic compilation ode, use PulseAudio acquire/release code.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3603 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-16 10:32:15 +00:00
sletz
5bd0d7711f
Fix wscripts when --libdir is used.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3593 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-10 10:17:34 +00:00
nedko
3aa9b525c3
Move dbus device reservation code to jackdbus
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3579 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-07 17:18:11 +00:00
nedko
28d8832a61
Fix deadlock
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3552 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-05-26 00:03:29 +00:00
nedko
747a847639
Improved log messages
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3549 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-05-24 19:54:09 +00:00
nedko
9e9cab8a4b
Fix typo in log message
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3548 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-05-24 17:32:52 +00:00
sletz
51f6a07821
D-Bus access for jackctl_server_add_slave/jackctl_server_remove_slave API.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3530 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-05-06 14:58:37 +00:00
sletz
c972442a7c
D-Bus control for switch master API.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3519 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-04-22 13:53:16 +00:00
sletz
29d663fca6
Better debug message in audio_reserve.c.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3512 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-04-20 15:41:38 +00:00
sletz
ff2b38bc8a
Add CreateAggregateDevice method in JackCoreAudioDriver (in progress).
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3505 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-04-17 09:07:04 +00:00
sletz
b822633846
For audio device reservation, add card_to_num function.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3348 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-02-25 09:06:29 +00:00
sletz
37875f215f
Correct licence headers.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3346 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-02-24 22:21:26 +00:00
sletz
abf1b2bca8
First version of D-Bus based audio device rerservation.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3342 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-02-24 16:41:38 +00:00
sletz
60f5da860e
Fix compiler warning.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3235 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-01-06 11:21:14 +00:00
nedko
b8f5e3e74f
Fix dbus detection and svnversion.h [re]generation
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3077 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-11-14 01:07:55 +00:00
nedko
3383f36952
Import waf.diff patch sent Stephane Letz
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3075 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-11-14 01:07:46 +00:00
nedko
cf848b8573
Fix bug (potential crash) in jackdbus error message formatting
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3052 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-25 15:29:32 +00:00
nedko
407b735a28
New method of D-Bus configure interface: ResetParameterValue
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3020 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-19 22:33:04 +00:00
nedko
4f871f28c7
Refactor dbus configure interface; always have a selected driver, default one
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3018 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-19 20:46:35 +00:00
nedko
0184012b96
Remove debug log that is useless now
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3012 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-18 12:34:57 +00:00
nedko
5fe2a26bfd
Implement jack_controller_get_parameter_constraint() for range constraints
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2997 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-13 15:54:46 +00:00
nedko
dc7cb7ddbf
New DBUS configure interface methods:
...
* GetEngineParameterConstraint
* GetInternalParameterConstraint
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2995 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-13 15:54:33 +00:00
nedko
8409374edd
Improve GetDriverParameterConstraint D-Bus method signature
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2994 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-13 15:54:27 +00:00
nedko
bfaf8988f0
Transform range bool into flags
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2992 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-13 15:54:10 +00:00
nedko
6546208a4d
New DBUS configure interface method: GetDriverParameterConstraint
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2990 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-10-13 15:53:50 +00:00
nedko
9e113a0712
Expose through introspection signals of D-Bus control interface
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2937 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-09-20 21:54:22 +00:00
sletz
3e01068967
Merge Michael Voigt drops branch after reorganization step.
...
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2880 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-09-05 13:36:28 +00:00