summaryrefslogtreecommitdiffstats
path: root/plugins/hfp_ag_bluez5.c
AgeCommit message (Collapse)AuthorFilesLines
2015-10-26hfp_ag_bluez5: use codec negotiationSimon Fels1-1/+55
2015-10-19hfp_ag_bluez5: Add initial handsfree audio driverSimon Fels1-3/+52
2015-10-06hfp_ag_bluez5: register audio cardSimon Fels1-0/+49
To let others (PulseAudio) be notified when a handsfree device is connected with us and can be used for audio routing we need to expose this by registering a audio card with the correct type.
2014-10-20hfp_ag_bluez5: Bump HFP version to 1.7Denis Kenzior1-2/+2
2013-11-25hfp_ag_bluez5: Try to support non-phone hardwareDenis Kenzior1-0/+37
For devices which are not 'real' phone modems, the voicecall initialization can happen outside of the pre-sim state. In this case the voicecall atom detection logic fails. Try to detect the voicecall atom separately, and register the profile if the SIM atom is already present and in state 'READY'. For all other cases, the previous logic still applies.
2013-04-25bluez5: Unify bt_register_profile_* into a single functionVinicius Costa Gomes1-1/+1
It was a cause of confusion for little gain to have separate functions for registering profiles with extra information, for example "role" and "features". We remove those helper functions in favor of a single one with more parameters, "role" and "feature" when NULL, will be ignored.
2013-04-22hfp_ag_bluez5: Implement RequestDisconnection()Paulo Borges1-3/+27
When a RequestDisconnect() is received, the socket must be closed. This way, the related emulator will be freed.
2013-04-22hfp_ag_bluez5: Add watch for G_IO_HUP when connectPaulo Borges1-1/+22
A watch to G_IO_HUP is added to remove the file descriptor when the emulator is automatically disconnected when its GAtServer closes. We use a dupped file descriptor because the events aren't delivered to the file descriptor who originated them.
2013-04-22hfp_ag_bluez5: Create a hash to store connectionsPaulo Borges1-0/+15
We need to store active connections so we can disconnect them at RequestDisconnect(). When we remove a connection from the hash, we also close it.
2013-04-18hfp_ag_bluez5: Remove unused includesPaulo Borges1-4/+0
2013-04-18hfp_ag_bluez5: Include hfp.hPaulo Borges1-0/+1
2013-03-21hfp_ag_bluez5: Fix sanity checkDenis Kenzior1-2/+2
We should be checking that modems != NULL, not modems->data. This is because the list can be empty and we would crash.
2013-02-20hfp_ag_bluez5: Send HFP version when registeringClaudio Takahasi1-2/+6
2013-02-14bluez5: Rename BlueZ Profile registration functionsClaudio Takahasi1-2/+2
This patch renames external profile registration functions replacing the prefix from 'bluetooth_' to 'bt_' in order to follow the name convention adopted for bluez5 functions.
2013-01-31hfp_ag: Add BlueZ 5 versionFrédéric Danis1-0/+271
This patch adds initial implementation of the D-Bus Profile1 interface and methods responsible for handling Bluetooth connections. The HFP AG profile interface is registered as soon as a voice capable modem is registered in oFono.