Luiz Augusto von Dentz
a381d5342d
Make disconnect watch callback to take removal flag.
...
This should make watches aware of a force disconnection for permanent device
removal making possible to remove any persistent data associate with the
device.
2009-04-27 10:43:29 -03:00
Johan Hedberg
a395a8f0b6
Fix removing sink retry timer in sink_free
2009-04-27 11:10:24 +03:00
Luiz Augusto von Dentz
5063d28f17
Make audio plugin to use disconnect watches.
2009-04-22 15:41:53 -03:00
Johan Hedberg
d2fe0f577f
Fix a2dp_source_get error checking
2009-04-15 23:11:26 +03:00
Johan Hedberg
9fe662df2a
Fix sink.c crash if removing device while connecting
2009-04-15 13:33:29 +03:00
Johan Hedberg
1200c9362b
Fix disconnection timers for org.bluez.Audio
...
The original org.bluez.Audio patch forgot to make sure that the disconnection
timers for Headset and AudioSink get disabled when org.bluez.Audio.Connect is
used. This patch fixes it.
2009-04-02 17:30:31 +03:00
Johan Hedberg
e240882cdc
Add support for sink state callbacks
2009-03-28 01:15:23 +02:00
Johan Hedberg
b7c0c6f79a
Implement Audio.Connect and Audio.Disconnect
2009-03-27 21:20:07 +02:00
Johan Hedberg
80b1146a20
Add support for automatic HFP+A2DP connection creation with incoming connections
...
This patch adds logic for automatically connecting both A2DP and HFP profiles
if the headset only connects the other. The feature can be switched off using
the AutoConnect audio.conf parameter.
2009-03-27 19:10:04 +02:00
Luiz Augusto von Dentz
784c8238e0
Fix Disconnected being emitted while reconfiguring.
2009-03-27 00:41:46 +02:00
Luiz Augusto von Dentz
bd30e5535a
Introduce BT_OPEN command to audio ipc.
...
BT_OPEN make it possible to lock a given seid which is automacally
release if the client disconnects from the unix socket.
2009-03-25 18:56:20 -03:00
Johan Hedberg
9ab9895a92
Add State property also to AudioSink.GetProperties()
2009-03-25 02:28:28 +02:00
Johan Hedberg
243103b980
Make use of the AVDTP session state callback for automatic AVRCP control
2009-03-25 01:59:37 +02:00
Johan Hedberg
3cb26e9bcf
Handle sink->session == NULL && session == NULL correctly in sink_setup_stream
2009-03-25 00:16:32 +02:00
Johan Hedberg
e6f892a966
Ignore non-sink devices in sink.c avdtp_state_callback
2009-03-24 23:14:24 +02:00
Johan Hedberg
5427c56e49
Add State property to the AudioSink interface
...
This patch adds a new string State property to the AudioSink interface. It
makes use of the recently added AVDTP connection state tracking support to
create a "connecting" state.
2009-03-24 21:41:43 +02:00
Johan Hedberg
763e9253e0
Add possibility to track AVDTP connection state changes
...
This patch adds a public API to avdtp.c that can be used to track the AVDTP
connection status to devices.
2009-03-24 21:41:06 +02:00
Johan Hedberg
8e706e2d4f
Convert some not-so-important info logs to debug logs
2009-03-24 12:31:10 +02:00
Johan Hedberg
38ca09be34
Set up a stream for incoming connections if the sink doesn't do it
...
Some headsets when acting as initiators of an AVDTP connection create
the AVDTP signaling channel but don't do anything else over it (i.e.
they expect us to set up a stream when needed). This patch makes
bluetoothd do the same as AudioSink.Connect() if no AVDTP commands have
been received from the sink within one second after it has created the
AVDTP signaling channel to us.
Setting up a stream is also important because the AudioSink Connected
property is bound to the existence of a configured stream (which makes
sense since an AVDTP connection as such tells us nothing about what
sinks and sources there are or even if audio or video will be used).
2009-02-02 19:32:14 -08:00
Johan Hedberg
836c502d8a
Don't auto-disconnect explicitly created A2DP connections
...
This patch makes sure that explicitly created connections (remotely
initiated or using AudioSink.Connect()) stay up until explictly
disconnected. The control for this needs to be in the stream timer and
not the disconnect timer since our AVDTP state machine always tries to
keep one stream in configured state (i.e. it should be ok to always
disconnect if we stay too long in IDLE state).
2009-01-27 22:06:00 +02:00
Marcel Holtmann
fb333f1c88
Update copyright information
2009-01-01 19:33:20 +01:00
Luiz Augusto von Dentz
7ec871d37d
Make use of g_timeout_add_seconds whenever possible.
2008-11-17 14:15:10 -03:00
Johan Hedberg
a5883ecb1a
Use g_dbus_send_message instead of dbus_connection_send
2008-10-24 15:49:52 +03:00
Johan Hedberg
cd87fad76b
Fix indentation levels
2008-10-16 22:36:30 +03:00
Johan Hedberg
c0736ea762
Rename dbus_connection_emit_property_changed to emit_property_changed
2008-10-16 22:03:25 +03:00
Johan Hedberg
102df1da56
Fix remaining places to use dict_append_entry too
2008-10-16 21:23:43 +03:00
Marcel Holtmann
d68a57d8be
Fix uninitialized reply of multiple GetProperties methods
2008-10-03 08:29:51 +02:00
Luiz Augusto von Dentz
acf2a8a0b3
Mark old plugins API as deprecated.
2008-10-02 19:16:39 -03:00
Luiz Augusto von Dentz
29c9f31631
Add code to emit PropertyChanged on sink interface.
2008-10-02 16:42:54 -03:00
Luiz Augusto von Dentz
21691bc11d
Add property support for sink interface.
2008-10-02 16:38:43 -03:00
Luiz Augusto von Dentz
876f306ab4
Fix potential invalid read.
2008-10-01 12:34:53 -03:00
Marcel Holtmann
1f57429a07
Move error_failed to its usage places
2008-08-04 21:39:10 +02:00
Luiz Augusto von Dentz
d0c561820c
Remove use of g_dbus_unregister_all_interfaces.
2008-07-30 17:57:50 -03:00
Luiz Augusto von Dentz
12d81a98fe
Cleanup audio manager.
2008-07-28 17:15:27 -03:00
Marcel Holtmann
f80a721527
Use g_dbus_emit_signal for sending D-Bus signals
2008-06-07 19:30:24 +00:00
Marcel Holtmann
f269e27ce7
Fix the last remains of sending helpers
2008-06-06 10:20:21 +00:00
Luiz Augusto von Dentz
b6029c0ffd
Make audio service to use libgdbus functions.
2008-06-02 14:34:58 +00:00
Marcel Holtmann
caf9fdd6d0
Replace struct device with struct audio_device
2008-05-29 08:05:16 +00:00
Marcel Holtmann
15ea15b3a7
Move D-Bus object and interface helpers into libgdbus
2008-05-08 22:19:14 +00:00
Marcel Holtmann
e7d668ac9e
Move D-Bus watch functions into libgdbus
2008-05-08 20:23:45 +00:00
Marcel Holtmann
e823c15e43
Update copyright information
2008-02-02 03:37:05 +00:00
Luiz Augusto von Dentz
9ae63b37bb
Initial support of mpeg12 codec.
2008-01-23 13:11:07 +00:00
Luiz Augusto von Dentz
2934e194f3
Handle new ipc messages properly and adapt the plugins.
2007-12-03 22:41:29 +00:00
Johan Hedberg
7e88afe4f8
Update services to new error codes and helper functions
2007-11-26 13:43:17 +00:00
Marcel Holtmann
de72271829
Update copyright information
2007-10-23 17:17:47 +00:00
Luiz Augusto von Dentz
942422b8c9
Fixes a2dpsink element.
2007-10-18 21:50:00 +00:00
Johan Hedberg
d328981381
Handle cross-connect case for AVDTP
2007-10-09 13:36:33 +00:00
Johan Hedberg
a13f569db6
Minor coding style fixes
2007-10-03 13:54:14 +00:00
Johan Hedberg
847dad179f
Expose stream setup errors higher up in the call stack
2007-09-28 13:46:55 +00:00
Johan Hedberg
fc0d501d82
Cleanup and fixes of stream handling
2007-08-31 10:25:18 +00:00