Commit Graph

6173 Commits

Author SHA1 Message Date
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
Johan Hedberg
7fb4d906c0 Fix another device removal crash with client_free 2009-04-27 00:10:29 +03:00
Luiz Augusto von Dentz
f7e6b2cd75 Fix bug on Serial.Connect which cause UUID-128 to be interpreted as channel.
strtol was generating a valid channel from the given UUID-128 and find_port
would first check if the port channel matches the given pattern.
2009-04-24 16:46:22 +03:00
Marcel Holtmann
f59ea5e814 Mention Scott's contributions 2009-04-23 16:36:04 +01:00
Scott Talbot
fbdaeebc77 Fix sending AVRCP button released passthrough messages
Set the high bit in the op value for the button released event rather
than clearing the entire field.
2009-04-23 15:39:11 +03:00
Marcel Holtmann
e1758a9365 Release 4.37 2009-04-23 10:35:25 +01:00
Marcel Holtmann
517464e6ce Fix missing defines for big endian AVCRP header sizes 2009-04-23 10:34:07 +01:00
Marcel Holtmann
37f86d2cbf Update library version 2009-04-23 10:12:29 +01:00
Johan Hedberg
c09aa2b376 Use more suitable AVRCP keycode mappings
KEY_STOP is apparently only used by Sun keyboards while KEY_STOPCD is more
common. KEY_FASTFORWARD also maps better to the AVRCP fast forward key code.
2009-04-23 11:18:16 +03:00
Johan Hedberg
70f8a458b6 Fix sending AVRCP commands to non-target devices
This patch changes the VolumeUp and VolumeDown methods to return a NotSupported
error if the remote device doesn't have a AVRCP Target service record.
2009-04-23 01:27:27 +03:00
Johan Hedberg
f36f66d1ca Cleanup and simplify AVRCP code
This patch gets rid of the unnecessary struct avrcp and moves the necessary
bits directly into struct control.
2009-04-23 00:58:50 +03:00
Luiz Augusto von Dentz
3bcd43d2d3 Make network plugin to use disconnect watches. 2009-04-22 15:41:59 -03:00
Luiz Augusto von Dentz
f12e4e2783 Make input plugin to use disconnect watches. 2009-04-22 15:41:56 -03:00
Luiz Augusto von Dentz
5063d28f17 Make audio plugin to use disconnect watches. 2009-04-22 15:41:53 -03:00
Luiz Augusto von Dentz
8d7017d8be Add support to disconnect watch registration.
It is necessary to make Device.Disconnect safe to be called, since some devices
were treating it as an unwanted disconnection and try to reconnect imediately
after it.
2009-04-22 15:41:32 -03:00
Luiz Augusto von Dentz
0ba18c2857 Introduce btd_device_ref and btd_device_unref. 2009-04-22 10:04:15 -03:00
Luiz Augusto von Dentz
04e2e66722 Cleanup temporary device entries from storage.
This make sure no entry is left on storage when removing a temporary and
make device_set_temporary usable for marking devices to be removed from
storage when disconnected.
2009-04-22 10:04:15 -03:00
Marcel Holtmann
5c623a59d9 Add version value for Bluetooth 3.0 2009-04-21 14:03:06 +01:00
Marcel Holtmann
20f67b1845 Mention Forrest's contributions 2009-04-21 13:50:34 +01:00
Forrest Zhao
b13f02db1a re-use the sco_server initiated by audio plugin 2009-04-21 13:49:52 +01:00
Alok Barsode
e050cc3d14 Using # operator to stringify plugin name. 2009-04-21 13:25:35 +01:00
Alok Barsode
2f28c39a63 Add priority field to plugin descriptor definition and load plugins in priority order. 2009-04-21 13:23:51 +01:00
Marcel Holtmann
49d0b05136 Retreive fixed channels list if supported 2009-04-19 22:38:36 +02:00
Marcel Holtmann
9fca3da026 Add additional L2CAP extended feature mask bits 2009-04-19 22:28:53 +02:00
Gustavo F. Padovan
3fb63ab3bf Add Enhanced Retransmission mode, Streaming mode and FCS Option. 2009-04-19 22:22:49 +02:00
Johan Hedberg
e40a1ccc50 Fix potentially infinite recursion of adapter_up
The stored onmode should never be "off" but in the case that it is avoid
infinite adapter_up recursion by falling back to the default "connectable".
2009-04-19 22:51:48 +03:00
Johan Hedberg
1118edbc79 Fix uninitialized variable compiler warning 2009-04-19 00:07:39 +03:00
Johan Hedberg
e336e9930d Add basic AVRCP volume control support 2009-04-19 00:04:20 +03:00
Johan Hedberg
6c404eec84 Add missing AVRCP operation id's 2009-04-18 23:59:40 +03:00
Johan Hedberg
148964fcb2 Fix format string 2009-04-18 14:31:38 +03:00
Luiz Augusto von Dentz
d31cee86b0 Make input service to use confirm callback. 2009-04-17 21:02:54 +03:00
Siarhei Siamashka
3df7c3e660 sbc: added saturated clipping of decoder output to 16-bit
This prevents overflows and audible artefacts for the audio files which
originally had loudness maximized. Music from audio CD disks is an
example of such files, see http://en.wikipedia.org/wiki/Loudness_war
2009-04-17 19:00:24 +02:00
Johan Hedberg
4199592bad Don't force SCO up in the case of an incoming call
In principle HFP 1.5 requires us to bring SCO up in the case of an
incoming call (before we start sending RING indications). However, it's
not safe to force it up ourselves in bluetoothd since there could be an
A2DP stream active which needs to be suspended first and the telephony
subsystem might want to do some extra initialization before enabling
SCO. This patch basicly leaves the responsibility of bringing up SCO to
an external entity but still leaves the hs->pending_ring flag on so that
we know to start sending RING indications when SCO finally goes up.
2009-04-17 13:36:01 +03:00
Marcel Holtmann
83c8bd3d43 Release 4.36 2009-04-17 02:11:00 +02:00
Marcel Holtmann
a90d88b37e Do some coding style cleanups 2009-04-17 01:55:42 +02:00
Marcel Holtmann
db06bdd711 Only install ALSA configuration when selected 2009-04-17 01:48:57 +02:00
Lennart Poettering
4220225c57 Replace asound.conf with a more full-fledged bluetooth.conf
The new fragment will introduce device strings that can be given the BT
address of the headset as parameter. Also, they integrate 'plug' so that
they can be used with any application.

This replaces the old 'asound.conf' file which was much more limited.
Also since we now install 'bluetooth.conf' to /etc/alsa it is not a good
idea to simply call that file 'asound.conf'.

Please note that this will install the config fragment but not actually
enable it. For that some minor changes to the /etc/asoundrc as shipped
by the distro are necessary. It's up to the distributions to do this.
How that works in explained in the header of bluetooth.conf.
2009-04-17 01:45:19 +02:00
Lennart Poettering
c43f8bdcc1 fix up sbc.h prototypes to use const/size_t wherever applicable 2009-04-17 01:45:19 +02:00
Luiz Augusto von Dentz
999d9b9ac1 Emit Manager.AdapterAdded only when adapter is ready.
Emitting Manager.AdapterAdded without adapter being ready may cause
Adapter.GetProperties to return properties in an invalid state.
2009-04-16 18:20:08 -03:00
Johan Hedberg
dbfd944d83 Fix SCO connect attempt tracking
Without this patch bluetothd would segfault if the device is removed while a
SCO connect attempt is pending.
2009-04-16 09:59:48 +03:00
Johan Hedberg
1ba4468cc5 Use correct state enum for sink old_state 2009-04-16 00:09:53 +03:00
Johan Hedberg
d2fe0f577f Fix a2dp_source_get error checking 2009-04-15 23:11:26 +03:00
Johan Hedberg
f1af647c4b Return proper error if HFP indicators aren't initialized 2009-04-15 22:38:11 +03:00
Luiz Augusto von Dentz
8cb3371db4 Update serial API documentation. 2009-04-15 17:50:28 +03:00
Luiz Augusto von Dentz
bc1b555acd Add support to channel pattern in Serial interface.
Application can give RFCOMM channel as pattern for Serial.Connect and
Serial.Disconnect, in case of no service matching the given channel it
wont trigger the channel discover proceeding directly to connection phase.
2009-04-15 17:50:22 +03:00
Johan Hedberg
426ed2f9ba Fix call indicator value for multiple calls
Getting the call indicator value right is actually pretty tricky. If we set it
to 1 in the first ->ACTIVE state transition then we need to change it to 0 when
we make the first transition that will result in the call becoming IDLE. As far
as I can see there are two possible such transitions: MT_RELEASE and
MO_RELEASE.
2009-04-15 17:15:34 +03:00
Johan Hedberg
66583544c6 Reset a2dp->sep whenever resetting a2dp->session 2009-04-15 16:20:47 +03:00
Johan Hedberg
9fe662df2a Fix sink.c crash if removing device while connecting 2009-04-15 13:33:29 +03:00
Johan Hedberg
6df133cba3 Track the AVCTP connect attempt from the start 2009-04-15 13:33:13 +03:00