Vinicius Costa Gomes
12df4fca94
handsfree-audio: Keep track whether defer_setup is enabled
...
'defer_setup' will be one of the inputs when enabling or disabling
support for wideband speech codecs, we will only enable wideband
speech support if the kernel supports deferred setup.
So, we have to have this information available, in this case it means
a global variable.
2013-04-15 07:07:23 -05:00
Claudio Takahasi
f65070b377
handsfree-audio: Send the selected codec
...
This patch removes the hard-coded CVSD codec, and adds the selected
codec in the NewConnection method call, notifying the agent the codec
previously selected for the audio connection.
2013-04-15 07:01:59 -05:00
Vinicius Costa Gomes
9ef5953a56
handsfree-audio: Implement ofono_handsfree_card_set_codec()
2013-04-15 06:58:03 -05:00
Denis Kenzior
e130f22715
handsfree-audio: Move codec enums to hfp.h
2013-04-09 14:33:41 -05:00
Vinicius Costa Gomes
b2273d313f
handsfree-audio: Remove unused 'codecs' field from agent
...
Now that we only keep track whether we support wideband speech or not, we
don't have to keep track of the list of codecs supported by the Agent.
2013-04-09 14:33:41 -05:00
Vinicius Costa Gomes
1c51856434
handsfree-audio: Implement ofono_handsfree_audio_has_wideband
2013-04-09 14:33:41 -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
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
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
c86fcc3a70
handsfree-audio: Match new card API
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
d081e3d5ea
handsfree-audio: Add card driver registration
2013-03-18 13:42:46 -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
Claudio Takahasi
9504427173
handsfree-audio: Add SCO handling
...
Unlike the previous implementation in the plugin, the SCO/SLC matching
is done based on the Audio Card objects.
Audio Cards are created when the RFCOMM fd descriptor is received, and
registered when the service level connetion is established.
2013-03-04 16:39:53 -06:00
Claudio Takahasi
4fcd084859
handsfree-audio: Check CVSD when registering agent
...
This patch makes CVSD codec mandatory when registering a Handsfree
Audio Agent.
2013-03-01 13:32:11 -06:00
Denis Kenzior
c7a3f3990a
handsfree-audio: properly increment next_card_id
2013-02-26 15:47:08 -06:00
Denis Kenzior
ff2d68f2eb
handsfree-audio: Impelement CardRemoved signal
2013-02-26 14:14:46 -06:00
Denis Kenzior
dfacb14968
handsfree-audio: Implement CardAdded signal
2013-02-26 14:14:46 -06:00
Denis Kenzior
b76bb56dae
handsfree-audio: Implement the GetCards method
2013-02-26 14:14:46 -06:00
Denis Kenzior
1c75912380
handsfree-audio: Implement card GetProperties
2013-02-26 14:14:46 -06:00
Denis Kenzior
44281e53a9
handsfree-audio: Unregister from DBus on removal
2013-02-26 14:14:46 -06:00
Denis Kenzior
f3a7069c47
handsfree-audio: Add skeleton D-Bus registration
...
For HandsfreeAudioCard objects
2013-02-26 14:14:46 -06:00
Denis Kenzior
b179adf879
handsfree-audio: Don't hardcode '/' path
...
Use OFONO_MANAGER_PATH instead
2013-02-26 14:14:46 -06:00
Denis Kenzior
dfeb91fc08
handsfree-audio: Implement card create / remove
2013-02-26 11:09:48 -06:00
Denis Kenzior
951e03dfea
handsfree-audio: Add ref / unref support
2013-02-21 08:27:55 -06:00
Denis Kenzior
5f787fed4e
handsfree-audio: Don't go over 80 characters
2013-02-20 21:28:01 -06:00
Claudio Takahasi
555a883ecb
handsfree-audio: Add Agent tracking
...
This patch tracks when the Handsfree Audio Agent leaves the system BUS,
and free agent allocated resources.
2013-02-20 21:27:01 -06:00
Claudio Takahasi
7a7bb7399a
handsfree-audio: Call Agent "Release" when exiting
...
This patch notifies the Agent implementation that it is no longer
registered to the service daemon.
2013-02-20 21:26:57 -06:00
Claudio Takahasi
19f50c6a3b
handsfree-audio: Add Agent "Unregister"
...
This patch implements the "Unregister" method of the Handsfree Audio
Manager. The agent is unregistered if sender and path match.
2013-02-20 21:25:38 -06:00
Claudio Takahasi
a76e4d71f5
handsfree-audio: Free agent when exiting
...
Free agent allocated resources when oFono exits.
2013-02-20 21:23:01 -06:00
Vinicius Costa Gomes
9b77d65bf9
handsfree-audio: Add codec array validation
...
This patch checks if the codec array included in the "Register" method
contains valid codec ID's.
2013-02-20 21:22:45 -06:00
Claudio Takahasi
16246e120e
handsfree-audio: Add Agent "Register" method
...
This patch adds the initial Handsfree Audio Manager "Register"
method implementation. It adds the parsing of the arguments included
in the message and checks if there is an agent registered already.
2013-02-20 21:22:17 -06:00
Claudio Takahasi
850c1811fc
handsfree-audio: Add Manager registration
...
Adds the initial implementation of new experimental Handsfree Audio
Manager interface. This patch adds the interface registration and
the declaration of it's methods.
2013-02-20 21:19:27 -06:00