Nedko Arnaudov
6f1e24b00c
Ignore device reservation failures
Device reservation could fail because of bad system setup.
Trying to open the device anyway seems to have no undesired impact.
12 years ago
Nedko Arnaudov
b3394f4dce
Improve computation of the alsa control device name
We recommend using symbolic names like hw:Live but when subdevices are used
regcomp() was failing to parse them. This changeset improves the algorithm
by using less assumptions.
12 years ago
Nedko Arnaudov
6afe197889
Fixes for alsa device reservation
* Don't attempt to use device reservation when card_to_num() mapping
has failed. In case of card_to_num() failures, "Audio-1" device
was reserved on start but not released on stop. This was causing
next start to fail with out of memory error, and since previous
commit, with "A handler is already registered for
/org/freedesktop/ReserveDevice1/Audio-1" error.
* In case of playback device reservation failure, release the
capture device
* Remove unused fReservedCaptureDevice and fReservedPlaybackDevice
data members of the JackAlsaDriver class
12 years ago
Stephane Letz
57e5daac1f
Fix ALSA driver inchannels/outchannels types.
12 years ago
Nedko Arnaudov
7c6d11160f
Use string ids in the alsa device list
We recommend this at http://jackaudio.org/device_naming
fixes #18
12 years ago
Stephane Letz
cb88917543
alsa driver/adapter improvements to flexibly use playback/capture devices through dbus calls patch.
13 years ago
Nedko Arnaudov
3b12bcf186
fix alsa driver parameter order
Parameter order doesnt matter for jackd but does for jackdbus. jackd
sets parameters (via Control API) in the order they were specified at
commandline. Thus, the jackd user is expected to specify parameters in
correct order. This is not good solution for jackdbus though. jackdbus
settings persistence in ~/.config/jack/jack.xml stores parameter in
the order they are defined by the driver. OTOH the D-Bus interface
itself suggests no particular order. For example the user can change
only one parameter via the jack_control tool. Other parameters either
have their default values or the ones that were previously set are
used.
The particular ordering problem this changeset aims to fix is that when
user specifies capture/playback device and device, the first one(s)
is/are ignored. This happens because the device parameter is set after
the capture/playback device parameters. The alsa then uses the string
from the device parameter for both capture and playback devices,
despite the user wish to override one or both of them.
13 years ago
sletz
022e551350
Cleanup.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4608 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
7747eb808d
Some missing snprintf.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4595 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
b70bef511b
Cleanup code using snprintf(2).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4587 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
00b166e731
Cleanup code using snprintf.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4586 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
08edac7982
Add jackctl_driver_get_type in Control API.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4529 0c269be4-1314-0410-8aa9-9f06e86f4224
13 years ago
sletz
48fe42f14e
Typo.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4396 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
90494cc885
Correct rd_acquire.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4395 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
Stephane Letz
80bc23a3af
Should compile on Linux.
14 years ago
Stephane Letz
07d2c64f39
Use of PortRegister/PortUnRegister in drivers.
14 years ago
Nedko Arnaudov
55557d1f74
Port registration notifications on SwitchMaster
14 years ago
Nedko Arnaudov
a9e4628340
helper functions for jack_driver_desc_t construction
The main goal is to reduce risk of mismatch between allocated
and initialized parameter numbers.
14 years ago
sletz
ecb84b5f9f
rebase from trunk 4238:4306
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4307 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
92bb6df214
Remove warnings.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4273 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
3ea1d70b0c
Netdriver can now ask for in/out values from the master (in progress).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4253 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
7254ce1ebc
rebase from trunk 4180:4238
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4239 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
Stephane Letz
51e07561ad
Correct JackAlsaDriver::UpdateLatencies.
14 years ago
Stephane Letz
cf98c33ef8
Correct SetBufferSize for drivers.
14 years ago
sletz
641179517f
Correct alsa_driver_restart (thanks Devin Anderson).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4222 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
f8d78dc7d0
Fix CELT code in JackNetOneDriver.cpp.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4218 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
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.
14 years ago
sletz
ccdfe51346
Cleanup.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4212 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
b8d0230de8
Cleanup ALSA driver code.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4209 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
3f9a3d85f8
ALSA driver still in progress.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4206 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
ee393311bf
New ALSA driver now compile.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4205 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
a12d18becd
Code to link alsa_driver.c and C++ wrapper.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4204 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
14e2f368cc
Update ALSA driver in progress(4).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4202 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
1abff2cbe0
Update ALSA driver in progress(3).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4201 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
608ba9885e
Update ALSA driver in progress(2).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4200 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
e27f815216
Rework internal slave driver management, JackServerGlobals now handle same parameters as jackdmp.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4184 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
a7e8377441
rebase from trunk 4083:4180
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4181 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
97c3a441f5
Use of latency range in all backends. ComputeTotalLatencies now a client/server call.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4151 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
92c5da66da
Revert r4119 (RT notification in the server). JackAudioDriver::ProcessSync now skip backend write in case of graph process failure. Fix incorrect error codes in alsa/usx2y.c and alsa/JackAlsaDriver.cpp.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4143 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
8b1d593d3a
ALSA backend : suspend/resume handling (jack1 r4075).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4088 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
4828d0c835
rebase from trunk 4041:4083
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4084 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
7327eff7a4
Cleanup ALSA backend.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4081 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
7dfb47b067
Improve backend error handling: fatal error returned by Read/Write now cause a Process failure (so a thread exit for blocking backends). Recoverable ones (XRuns..) are now treated internally in ALSA, FreeBob and FFADO backends.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4079 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
f5d2ce7662
Sync JackAlsaDriver::alsa_driver_check_card_type with JACK1 backend.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4051 0c269be4-1314-0410-8aa9-9f06e86f4224
14 years ago
sletz
249c0c3b5d
rebase from trunk 3966:4004
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@4005 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
ccf2041c51
Remove call to exit in library code.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3979 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
ec2e42c933
rebase from trunk 3899:3916
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3917 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
5f68a6557a
rebase from trunk 3813:3899
git-svn-id: http://subversion.jackaudio.org/jack/jack2/branches/libjacknet@3900 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
sletz
8b0d84b326
Josh Green ALSA driver capture only patch.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3848 0c269be4-1314-0410-8aa9-9f06e86f4224
15 years ago
Stéphane LETZ
04206f10d1
Implement new JackPortIsActive flag for ports, ports have this status between client "activate" and "deactivate".
15 years ago