Commit Graph

7079 Commits

Author SHA1 Message Date
Denis Kenzior 3715103654 hfp_hf_bluez5: Remove redundant parentheses 2013-04-09 14:33:41 -05:00
Vinicius Costa Gomes 3697794f9e hfp_hf_bluez5: Add audio card .connect() for HFP 1.6 2013-04-09 14:33:41 -05:00
Luiz Augusto von Dentz dcf4ccb947 gdbus: Fix not calling property_changed callback
In case a property did not appear by the time proxy_added was called
property_changed has to be called if it appear latter otherwise the
application will be unaware of it.
2013-04-08 20:09:51 -07:00
Lucas De Marchi de4aa7266b gdbus: Use gcc builtin instead of g_atomic
g_atomic_* end up using G_STATIC_ASSERT, causing gcc 4.8 to yell due to
-Wunused-local-typedefs.

gdbus/client.c: In function ‘g_dbus_client_ref’:
/usr/include/glib-2.0/glib/gmacros.h:162:53: error: typedef ‘_GStaticAssertCompileTimeAssertion_2’ locally defined but not used [-Werror=unused-local-typedefs]
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
2013-04-08 20:07:37 -07:00
Vinicius Costa Gomes a36ffa872a hfp_hf_bluez5: Use 1.6 card driver 2013-04-05 12:25:10 -05:00
Claudio Takahasi dd24a39d2f hfp_hf_bluez5: Add extracting version
This patch parses and reads the profile "Version" that comes in the fd
dictionary of the NewConnection method. "Version" is input for Audio Card
registration.
2013-04-05 12:14:00 -05:00
Forest Bond 692e59f108 huawei: Use AlwaysOnline for CDMA modems 2013-04-01 21:42:44 -05:00
Forest Bond 0e0eb227f2 modem: Support modem property "AlwaysOnline"
This can be set by the modem driver to indicate that the device is
always in the online state when it is enabled.  This is useful for
modem drivers that handle both CDMA and GSM devices.
2013-04-01 21:41:58 -05:00
Denis Kenzior 8ce35499cf AUTHORS: Mention Anthony's contributions 2013-04-01 21:39:11 -05:00
Anthony Viallard 8650c1019a sim: Add SIMCOM SIM card ready quirk
SIM is busy right after pin is entered. Use the quirk which
add a CPIN? pooling check until having "CPIN: READY" answer.
2013-04-01 21:38:26 -05:00
Forest Bond b0ad1ecb8f modem: Allow setting boolean properties 2013-03-28 09:47:32 -05:00
Vinicius Costa Gomes 9dd7bb365f handsfree-audio: Add .Connect using the card driver
Now each handsfree implementation may be notified that a card wants
its audio to be connected.
2013-03-28 09:34:39 -05:00
Vinicius Costa Gomes 4f02f03abb handsfree-audio: Add ofono_handsfree_card_connect_sco 2013-03-28 09:34:03 -05:00
Vinicius Costa Gomes 405961a657 include: Add ofono_handsfree_card_connect_sco()
This will be used by HFP plugins to tell the core that a SCO connection
needs to be established.
2013-03-28 09:32:59 -05:00
Denis Kenzior 2f50d25ab5 hfp_hf_bluez5: Make sure to call the callback 2013-03-28 09:30:45 -05:00
Vinicius Costa Gomes 759cf25614 hfp_hf_bluez5: Add a card driver for HFP 1.6
This is just the skeleton of a Handsfree Audio Card for the HF side of
HFP 1.6.
2013-03-28 09:29:50 -05:00
Denis Kenzior ac4e5f0045 include: Fix hf audio connect method declaration 2013-03-26 23:28:06 -05:00
Vinicius Costa Gomes 798ff5887b handsfree-audio: Reject .Connect() from other senders
Only the agent should be able to call .Connect() on the card.
2013-03-26 23:24:18 -05:00
Vinicius Costa Gomes cc5a86f1db handsfree-audio: Add support for sending the SCO socket
Send the SCO socket to the agent associated with the card that
just got connected.
2013-03-26 23:23:58 -05:00
Vinicius Costa Gomes c3cd427ee8 handsfree-audio: Add support for initiating SCO connections
When calling the card's .Connect() method, we should be able to
establish a SCO connection.

Right now, we only have support for establishing the SCO connection
directly, this is what is expected from HFP 1.5 HF/AG devices.
2013-03-26 23:23:39 -05:00
Denis Kenzior 93ac1669a0 sim900: Fix disable cleanup procedure 2013-03-26 10:53:41 -05:00
Denis Kenzior 32cece7b09 sim900: Fix compile error
make --no-print-directory all-am
  CC     plugins/sim900.o
  cc1: warnings being treated as errors
  plugins/sim900.c: In function ‘shutdown_device’:
  plugins/sim900.c:180:9: error: unused variable ‘fd’
  make[1]: *** [plugins/sim900.o] Error 1
  make: *** [all] Error 2
2013-03-26 10:36:25 -05:00
Denis Kenzior 548611e939 sim900: Remove unneeded goto / label 2013-03-26 10:35:59 -05:00
Denis Kenzior b4518caa50 sim900: Properly clean up device IOChannel on error 2013-03-26 10:34:09 -05:00
Renat Zaripov 2d09257855 sim900: Add multiplexer support
Also add gprs and call-volume support.
2013-03-26 10:29:08 -05:00
Denis Kenzior d8a9bf776b sim900: Fix leak of options hash table 2013-03-26 10:21:14 -05:00
Daniel Wagner c65a79f537 TODO: Mark BlueZ 5 support in dundee as done 2013-03-24 13:33:47 +01:00
Paulo Borges 3e259929b9 dundee: Handle Profile connect and disconnect 2013-03-24 13:25:37 +01:00
Paulo Borges 8eecae16c0 dundee: Add dundee disconnect function 2013-03-24 13:23:10 +01:00
Paulo Borges bd29b33083 dundee: Add support for driver connect
This patch glues together the dundee driver interface with the
D-Bus Profile1 interface.

When the dundee driver requests a connection, it will call the
Device1's ConnectProfile.
2013-03-24 13:23:07 +01:00
Paulo Borges ce933c58a8 dundee: Add BlueZ Profile handler
This patch declares the external dundee Profile handler. It
contains the initial implementation of the D-Bus Profile1
interface and methods responsible for handling Bluetooth
connections.
2013-03-24 13:22:17 +01:00
Paulo Borges a3ce2daccd dundee: Register/unregister dundee device
This patch adds the dundee device struct to the our Bluetooth
device representation.
2013-03-24 13:22:14 +01:00
Paulo Borges 9e90988fb4 dundee: Add dundee device driver skeleton
This patch adds the functions to be called when the dundee will
connect or disconnect with a Bluetooth device.
2013-03-24 13:22:10 +01:00
Paulo Borges 92c1273507 dundee: Listen to devices property changes
When a bluetooth device property change and this property is Alias,
we need to refresh our representation of this device.
2013-03-24 13:22:03 +01:00
Paulo Borges 2226e57dfa dundee: Add tracking of bluetooth devices
This patch tracks the GDBusProxy for Bluetooth devices in order to
be able to get their properties.
2013-03-24 13:22:02 +01:00
Paulo Borges f0c85c9c55 dundee: Add mechanism to store bluetooth devices
This patch adds a hash that will store every known bluetooth
device that implements DUN service.
2013-03-24 13:20:18 +01:00
Paulo Borges 953e74a945 dundee: Initial GDBusClient for BlueZ 5
This patch adds callbacks to track additions of BlueZ related
interfaces.
2013-03-24 13:20:16 +01:00
Paulo Borges d26dab944c dundee: Start BlueZ 5 support
This patch adds the BlueZ 5 support file for dundee.
2013-03-24 13:18:55 +01:00
Paulo Borges 63f92d60b5 dundee: Rename dundee BlueZ 4 support
The BlueZ 4 support file for dundee has now been renamed to
bluez4.c to make it easier to add a BlueZ 5 support file.
2013-03-24 13:18:54 +01:00
Denis Kenzior 2864624c56 hfp_ag_bluez5: Fix sanity check
We should be checking that modems != NULL, not modems->data.  This is
because the list can be empty and we would crash.
2013-03-21 10:19:00 -05:00
Denis Kenzior 823215ff66 dun_gw_bluez5: Fix sanity check
We should be checking that modems != NULL, not modems->data.  This is
because the list can be empty and we would crash.
2013-03-21 10:18:11 -05:00
Denis Kenzior 439712a937 dun_gw_bluez5: Fix copy-paste error 2013-03-21 10:15:16 -05:00
Frédéric Danis 770cb38352 dun_gw: Add BlueZ 5 version
This patch adds initial implementation of the D-Bus Profile1
interface and methods responsible for handling Bluetooth connections.

The DUN GW profile interface is registered as soon as a GPRS capable
modem is registered in oFono.
2013-03-21 10:12:42 -05:00
Frédéric Danis 8a1bd0d657 bluetooth: Rename DUN GW plugin
As BlueZ 5 introduced backwards incompatible API changes, and we want to
keep support for BlueZ 4 based DUN GW plugin for some time, we need to
separate DUN GW plugin which is based on BlueZ 4 from the one based on
BlueZ 5.

The dun_gw.c plugin is renamed to dun_gw_bluez4. This will make it easy
to add a DUN GW plugin for BlueZ 5.
2013-03-21 10:08:41 -05:00
Claudio Takahasi 9dd517a948 doc: Add Handsfree Audio Card "Connect" errors 2013-03-21 10:06:45 -05:00
Vinicius Costa Gomes c735b26c06 ofono.conf: Punch hole for HandsfreeAudioAgent 2013-03-19 22:23:40 -05:00
Denis Kenzior 32ea0c683a handsfree_audio: Call driver remove() on removal 2013-03-18 14:06:56 -05:00
Claudio Takahasi 5d0ba72d04 core: Add bt_str2ba() to bluetooth.h
This patch adds a utility Bluetooth function to convert Bluetooth
address from string to bdaddr_t.
2013-03-18 14:00:15 -05:00
Denis Kenzior afb4470558 hfp_hf_bluez5: Set remote and local information 2013-03-18 13:57:30 -05:00
Denis Kenzior 0f973d7150 hfp_hf_bluez5: Update to the new API 2013-03-18 13:42:46 -05:00