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
Denis Kenzior
c86fcc3a70
handsfree-audio: Match new card API
2013-03-18 13:42:46 -05:00
Denis Kenzior
c71f2967f2
include: Refactor ofono_handsfree_card_create
2013-03-18 13:42:46 -05:00
Denis Kenzior
f54ced9992
handsfree-audio: Implement get/set data
2013-03-18 13:42:46 -05:00
Denis Kenzior
5f6c3aa6e4
include: Add get/set data handsfree audio card
2013-03-18 13:42:46 -05:00
Denis Kenzior
d081e3d5ea
handsfree-audio: Add card driver registration
2013-03-18 13:42:46 -05:00
Denis Kenzior
46f95f0d4f
include: Add handsfree card driver registration
2013-03-18 13:42:43 -05:00
Claudio Takahasi
b64357f690
hfp_hf_bluez5: Remove duplicated include
2013-03-12 13:03:42 -05:00
Claudio Takahasi
241e3ca74c
handsfree-audio: Reject SCO if agent is unavailable
...
This patch rejects the incoming SCO connection if there isn't a
Handsfree Audio Agent registered.
2013-03-04 16:41:51 -06:00
Claudio Takahasi
a6874a64b2
handsfree-audio: Reject SCO if Card is not ready
...
The Audio Card is being created when the NewConnection from BlueZ
Profile is received, and registered when the service level connection
negotiation finishes. This patch rejects SCO connection if the SCO
incoming connection arrives when the service level negotiation is
ongoing.
2013-03-04 16:41:51 -06:00
Claudio Takahasi
2c4015278d
handsfree-audio: Check local SCO address
...
This patch verifies if the local Bluetooth address of the incoming
connection also matches with one of available audio cards.
2013-03-04 16:41:51 -06:00
Claudio Takahasi
4a6ecaf28b
handsfree-audio: Add NewConnection
...
This patch adds Agent NewConnection call. The card object path, the SCO
file descriptor, and the codec are being passed to the agent. This
initial version supports CVSD codec only.
2013-03-04 16:41:51 -06:00