Nedko Arnaudov
b82728b36a
daemon: properly count number of owned jack clients
...
jmcore clients are not counted on appear so they should not be counted on disappear too
2010-05-09 15:48:27 +03:00
Nedko Arnaudov
7c10be38cf
daemon: coherent naming of studio related functions
2010-05-05 00:35:10 +03:00
Nedko Arnaudov
c2c96d1fa4
daemon: Fix invalid memory access
...
This fixes negative pid reports on 32bit systems
2010-04-24 16:56:20 +03:00
Nedko Arnaudov
2923a9772d
daemon: fix wrong goto that was causing warning
...
../daemon/virtualizer.c:437: error: 'is_a2j' may be used uninitialized in this function
2010-04-11 22:43:32 +03:00
Nedko Arnaudov
245897bc6d
daemon: jmcore support in virtualizer
2010-04-11 22:24:41 +03:00
Nedko Arnaudov
31f6cb939b
daemon: room-studio port creation through jmcore
...
virtualizer does not know about jmcore yet
2010-04-11 16:45:30 +03:00
Nedko Arnaudov
c7379123eb
remove extra line
2010-04-05 17:17:23 +03:00
Nedko Arnaudov
c78c4c6483
daemon: register virtualizer graph connection handlers for rooms
2010-04-05 04:18:24 +03:00
Nedko Arnaudov
e498a65b6f
daemon: fix use of uninitialized vars
2010-04-04 21:51:47 +03:00
Nedko Arnaudov
9f3f884c4d
daemon: improve log messages and add TODO comments
2010-04-04 21:30:25 +03:00
Nedko Arnaudov
de772730a5
daemon: fix port lifecycle problem that was causing crash
...
There are three types of ports depeneding on references to them:
* ports that are referenced from jack and studio graphs
* ports that are referenced from jack and room graphs
* studio-room link ports that are referenced from studio and room graphs
The old approach was to destroy ports when removing references from jack graph.
Studio-room link ports were destroyed when removing the room.
However this caused double free when removing app ports that appear in jack and
room graphs.
The introduced implementation uses reference counting of graph references to ports.
Temporary references (like the one returned by port constructor and graph_get_port())
are not tracked.
2010-04-04 21:08:20 +03:00
Nedko Arnaudov
d161a68191
daemon: make the room app ports appear in the room graph instead of studio graph
2010-04-04 04:03:40 +03:00
Nedko Arnaudov
06fa6965b4
daemon: fit app search by pid that got broken in 454346ce65
2010-04-04 00:35:40 +03:00
Nedko Arnaudov
22aa3feb67
daemon: Fix comment
2010-04-04 00:31:40 +03:00
Nedko Arnaudov
e2c0400548
daemon: add commented logs
2010-04-04 00:31:14 +03:00
Nedko Arnaudov
3e5b69c481
daemon: iterate studio graphs instead of app supervisors
...
The callback has both app supervisor and graph parameters.
The graph parameter is needed so virtualizer can know where to add clients/ports
2010-04-03 22:25:28 +03:00
Nedko Arnaudov
496f8712e2
fix typo in comment
2010-04-03 22:07:55 +03:00
Nedko Arnaudov
454346ce65
daemon: search client pids in room supervisors too
2010-04-03 20:33:20 +03:00
Nedko Arnaudov
e22b7a2d69
daemon: remove useless client properties
2010-03-24 02:02:45 +02:00
Nedko Arnaudov
093af66573
rename graph clients when app is renamed
...
this fixes autoconnection too because hidden clients are searched by name
2009-12-26 22:46:20 +02:00
Nedko Arnaudov
b42455029a
daemon: fix warning
2009-12-21 21:38:25 +02:00
Nedko Arnaudov
3bec987ea4
handle port renames. closes #32
2009-12-21 20:46:14 +02:00
Nedko Arnaudov
128590f5bf
daemom: for now, ignore clients when they are more than one per app
...
asserting is not good in this case...
2009-12-16 03:12:41 +02:00
Nedko Arnaudov
b5565fd398
move proxy implementations to new /proxies directory
2009-12-13 18:10:57 +02:00
Nedko Arnaudov
d76dcc4b20
daemon: Fix #33
...
JACK graph connections are always visible and match the actual
JACK graph connections. So the logic for hiding connections when
they are removed should be disabled for JACK graphs. See
also commit 5ef9e1e006
where this
bug was intoduced.
2009-12-12 21:55:41 +02:00
Nedko Arnaudov
a1670050dc
daemon: dont assert when jackd goes crazy
2009-12-12 20:07:59 +02:00
Nedko Arnaudov
a10355eb4e
daemon: fix handling of a2j ports for alsa seq inout ports. Fixes #36
2009-12-12 15:13:53 +02:00
Nedko Arnaudov
4a2c32b36e
daemon: fix use of uninitialized variable
2009-12-12 13:18:08 +02:00
Nedko Arnaudov
fde1b8f19b
daemon: properly check for system client
2009-12-12 01:32:49 +02:00
Nedko Arnaudov
cf3d6bd277
daemon: fix restoring of a2j clients/ports/connections (again)
2009-12-12 01:15:48 +02:00
Nedko Arnaudov
ff45e7fe56
daemon: add some logs
2009-12-12 01:14:51 +02:00
Nedko Arnaudov
c83b4be47a
daemon: don't skip a2j when counting ladish started clients
2009-12-12 01:13:15 +02:00
Nedko Arnaudov
8d15292faf
daemon: fix restoring of a2j clients/ports/connections
2009-12-12 00:06:46 +02:00
Nedko Arnaudov
938b6746ce
daemon: maintain count of JACK clients ladish started
2009-12-11 22:54:08 +02:00
Nedko Arnaudov
958b36c279
daemon: fix memory leak (virtualizer struct)
2009-12-11 22:47:55 +02:00
Nedko Arnaudov
96e4d5289a
daemon: fix a2j handling
2009-12-11 01:41:28 +02:00
Nedko Arnaudov
7d947e383d
daemon: use app names instead of jack client names. Closes #17
2009-12-11 00:46:06 +02:00
Nedko Arnaudov
5eb3930bc4
daemon: find app name when client appears
2009-12-11 00:11:03 +02:00
Nedko Arnaudov
bb854a8fd2
daemon: get jack client pid on appear
2009-12-10 23:20:20 +02:00
Nedko Arnaudov
bb7338fae0
daemon: a2j virtualization
2009-12-07 00:56:48 +02:00
Nedko Arnaudov
9383960e44
daemon: reuse the two hardware clients for new hardware ports
2009-12-06 21:59:30 +02:00
Nedko Arnaudov
9344b9c9f8
ladishd: fix studio client reuse when new ports appear
2009-11-29 04:28:19 +02:00
Nedko Arnaudov
1fbcc155a7
ladishd: fix disconnect
2009-11-29 03:25:31 +02:00
Nedko Arnaudov
6cd9754d56
ladishd: save connections and load them in hidden state
2009-11-29 00:09:34 +02:00
Nedko Arnaudov
effcdfca27
ladishd: implement ports disconnect
2009-11-28 21:24:18 +02:00
Nedko Arnaudov
23b1a8fa1e
ladishd: implement ports connect
2009-11-28 19:46:43 +02:00
Nedko Arnaudov
5955c05ca0
ladishd: graph calls to virtualizer for connect/disconnect
2009-11-28 18:36:07 +02:00
Nedko Arnaudov
8e6f044d74
ladishd: jack_dispatcher -> virtualizer
2009-11-28 17:23:23 +02:00