summaryrefslogtreecommitdiffstats
path: root/plugins/hfp_hf_bluez5.c
AgeCommit message (Collapse)AuthorFilesLines
2015-10-05handsfree-audio: add type for our audio cardsSimon Fels1-1/+3
When registering audio cards for the handsfree and gateway roles we need a way for our users to differentiate between both to decide which of them they start using for their purpose.
2015-07-12hfp_hf_bluez5: Fix crash on re-pairing a DeviceKuba Pawlak1-1/+10
It may happen that a Device object is unpaired an paired again without being removed from DBus. This in turn triggers second modem object to be created, but not fully initialized. If this modem object is used, oFono will crash.
2015-05-13hfp_hf_bluez5: Implement sco_connected_hintDenis Kenzior1-6/+42
2015-03-24hfp_ag_bluez5: use none prefix for AT+BCC.Kuba Pawlak1-1/+2
iPhone 5s with iOS8.2 sometimes failes to acknowledge AT+BCC with OK. This means +CIEV events get consumed by this command and call ended notification is not parsed. Nov 30 00:00:19 ofonod[938]: > AT+BCC\r Nov 30 00:00:28 ofonod[938]: < \r\n+CIEV: 2,0\r\n
2014-10-20hfp_hf_bluez5: Use latest HFP versionDenis Kenzior1-1/+1
2014-05-21hfp: Use proper prefixDenis Kenzior1-1/+2
Otherwise the BCS command can consume unsolicited notifications. ofonod[3270]: < \r\n+BCS: 2\r\n ofonod[3270]: > AT+BCS=2\r ofonod[3270]: < \r\n+CIEV: 1,1\r\n ofonod[3270]: < \r\n+CIEV: 2,0\r\n ofonod[3270]: < \r\nOK\r\n
2013-12-21git: Fixup messed up permissionsDenis Kenzior1-0/+0
2013-12-18hfp_hf_bluez5: Enable Siri atomKrzysztof Wilk1-0/+2
2013-10-01hfp_hf_bluez5: Be more pedantic in get_versionDenis Kenzior1-5/+6
If no 'Version' key is found we might be assigning an uninitialized value. Return an error in this case as the 'Version' key is required.
2013-10-01hfp_hf_bluez5: Add version debug infoDenis Kenzior1-0/+2
2013-09-12handsfree-audio: Detect transparent SCO in kernelVinicius Costa Gomes1-1/+1
Deferred SCO setup is not enough for HFP 1.6 wideband codec support. Wideband speech also requires Transparent SCO to be enabled in the kernel.
2013-09-12hfp_hf_bluez5: Remove Cancel methodDenis Kenzior1-11/+0
2013-09-12hfp_hf_bluez5: Mark Release method as NOREPLYDenis Kenzior1-4/+2
2013-06-26hfp_hf_bluez5: Fix SDP record with correct featuresFrederic Danis1-1/+2
2013-04-25hfp_hf_bluez5: Enable WB only with defer_setupVinicius Costa Gomes1-2/+8
When setting the SDP features, only enable wideband speech support if the kernel has defer setup for SCO. It is possible that even if defer setup is supported the kernel is not able to use Transparent Mode for SCO.
2013-04-25Revert "hfp_hf_bluez5: UUIDs can change after Pairing"Denis Kenzior1-2/+1
This reverts commit 456b8c9723b9b73c3ea4cadc8c6f84ca90675f9a.
2013-04-25hfp_hf_bluez5: Register the SDP record with correct featuresVinicius Costa Gomes1-1/+6
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-18hfp_hf_bluez5: UUIDs can change after PairingVinicius Costa Gomes1-1/+2
For example, in the case of a remote-initiated pairing, the device may be created and Paired first, then the UUID array is emitted later.
2013-04-15hfp_hf_bluez5: Watch for changes in the selected codecVinicius Costa Gomes1-0/+40
This patch adds a function to monitor when the AG sends a new codec before establishing the SCO connection.
2013-04-09hfp_hf_bluez5: Include hfp.hDenis Kenzior1-0/+1
2013-04-09hfp_hf_bluez5: Remove redundant parenthesesDenis Kenzior1-2/+2
2013-04-09hfp_hf_bluez5: Add audio card .connect() for HFP 1.6Vinicius Costa Gomes1-1/+29
2013-04-05hfp_hf_bluez5: Use 1.6 card driverVinicius Costa Gomes1-2/+10
2013-04-05hfp_hf_bluez5: Add extracting versionClaudio Takahasi1-1/+48
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-03-28hfp_hf_bluez5: Make sure to call the callbackDenis Kenzior1-1/+2
2013-03-28hfp_hf_bluez5: Add a card driver for HFP 1.6Vinicius Costa Gomes1-0/+37
This is just the skeleton of a Handsfree Audio Card for the HF side of HFP 1.6.
2013-03-18hfp_hf_bluez5: Set remote and local informationDenis Kenzior1-0/+2
2013-03-18hfp_hf_bluez5: Update to the new APIDenis Kenzior1-1/+1
2013-03-12hfp_hf_bluez5: Remove duplicated includeClaudio Takahasi1-1/+0
2013-03-04hfp_hf_bluez5: Remove SCO handlingClaudio Takahasi1-101/+1
This patch moves the SCO socket handling from hfp_hf_bluez5 plugin. It will be instead handled by the handsfree-audio functionality. This is the initial step to be able to support sending the file descriptor through the Agent NewConnection method.
2013-03-04hfp_hf_bluez5: Use new bluetooth.h headerClaudio Takahasi1-0/+1
2013-03-01bluez5: Move ref / unref handsfree audioPaulo Borges1-0/+5
This commit moves the ref / unref to hfp_hf_bluez5 to make bluez5 more generic and reusable.
2013-02-28hfp_hf_bluez5: Remove Card on RequestDisconnectionClaudio Takahasi1-0/+3
For local initiated disconnection the GAtChat disconnect callback is not called. For this case, Audio Card remove function needs to be called.
2013-02-28hfp_hf_bluez5: Remove Card when modem is disabledClaudio Takahasi1-0/+3
2013-02-28hfp_hf_bluez5: Remove Card if SLC is disconnectedClaudio Takahasi1-0/+3
This patch removes previous registered Audio Card when the remote Bluetooth device triggers the service level disconnection.
2013-02-28hfp_hf_bluez5: Remove Card when SLC failsClaudio Takahasi1-0/+3
This patch removes the previously created Audio Card if the service level negotiation fails.
2013-02-28hfp_hf_bluez5: Add local address to Audio CardClaudio Takahasi1-2/+15
2013-02-28hfp_hf_bluez5: Add registering Audio CardClaudio Takahasi1-0/+21
This patch registers the Handsfree Audio Card when the service level connection is established.
2013-02-20hfp_hf_bluez5: Send HFP version when registeringClaudio Takahasi1-1/+1
2013-02-20hfp_hf_bluez5: Add local HFP version trackingClaudio Takahasi1-1/+4
Fallback to HFP 1.5 if defer setup is not supported since it is not possible to proceed with codec negotiation.
2013-02-14hfp_hf_bluez5: Ensure active SLC for SCO linksDenis Kenzior1-1/+23
Whenever a SCO connection is attempted, ensure that the SLC link is already active between us and the same remote peer.
2013-02-14hfp_hf_bluez5: Remove use of hash tableDenis Kenzior1-10/+14
The number of paired devices is quite small, so the use of the hash table for lookup seems unnecessary. The typical user will have no more than 1-2 devices paired, maybe half a dozen in a less common case.
2013-02-14hfp_hf_bluez5: Use faster method of disable()Denis Kenzior1-9/+14
2013-02-14hfp_hf_bluez5: Remove unneeded modem hash lookupClaudio Takahasi1-4/+0
Modem object is created when the Device Proxy is added, and it is paired. Another path is when the Device "Paired" property changes to True.
2013-02-14hfp_hf_bluez5: Use some tricks to optimize codeDenis Kenzior1-39/+27
2013-02-14hfp_hf_bluez5: Add support for Enabling/Disabling the modemVinicius Costa Gomes1-2/+37
Now that we have the support for sending the correct messages to BlueZ, we are able to dynamically power up/down the HFP modem. We add another property to the modem to be able to get the D-Bus object path that represents the remote device.
2013-02-14hfp_hf_bluez5: Add Profile RequestDisconnectionClaudio Takahasi1-3/+32
This patch implements RequestDisconnection method of the Profile1 interface. This method gets called when the profile gets disconnected. The profile implementation needs to cleanup the resources related to the informed device.
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_hf_bluez5: Remove BlueZ devices proxies hashClaudio Takahasi1-13/+2
The hash table to track the devices is not necessary anymore since dynamic modem registration on NewConnection was removed.