summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2013-05-22common: Fix parsing SS control stringLucas De Marchi1-1/+1
It's not possible to be both greater than '9' and less than '0'. This would lead to accepting things like "#$33#" as activation and "*$33#" as deactivation, even though the string makes no sense.
2013-05-22stk: Fix sizeof on memcpyLucas De Marchi1-1/+1
src/stk.c: In function ‘__ofono_cbs_sim_download’: src/stk.c:283:45: error: argument to ‘sizeof’ in ‘memcpy’ call is the same expression as the source; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] memcpy(&e.cbs_pp_download.page, msg, sizeof(msg)); ^
2013-05-03handsfree-audio: Fix replying to an empty D-Bus messageVinicius Costa Gomes1-2/+7
In the case that ofono_handsfree_card_connect_sco() is called outside the context of a .Connect() call, there's no message we need to reply. This happens, for example, when the HFP AG plugin initiates a SCO connection when it receives an AT+BCC command from the HF.
2013-04-25handsfree-audio: Implement ofono_handsfree_audio_has_defer_setup()Vinicius Costa Gomes1-0/+5
2013-04-25hfp: Add defines for HFP SDP feature bitsVinicius Costa Gomes1-0/+18
2013-04-23core: Add SetProperty for EchoCancelingNoiseReductionClaudio Takahasi1-9/+45
This patch extends SetProperty method of the Handsfree interface allowing to disable echo canceling and noise reduction feature in the audio gateway through a D-Bus method call. Once disabled, it is not allowed to enable it using this procedure.
2013-04-23core: Set EchoCancelingNoiseReduction to TRUE by defaultClaudio Takahasi1-0/+1
According to Bluetooth HFP spec: By default, if the AG supports its own embedded echo canceling and/or noise reduction functions, it shall have them activated until the AT+NREC command is received. The configuration set by the HF shall by used by the AG while the Service Level Connection is active. Since there isn't a command to query the current value, it is being assumed that Echo Canceling and Noise Reduction is enabled when the connection is established and the gateway supports this feature.
2013-04-23core: Add EchoCancelingNoiseReduction to GetPropertiesClaudio Takahasi1-0/+5
This patch adds EchoCancelingNoiseReduction property to GetProperties method of Handsfree interface.
2013-04-23core: Add "echo-canceling-and-noise-reduction"Claudio Takahasi1-0/+3
This patch adds "echo-canceling-and-noise-reduction" to "Features" property of the Handsfree interface.
2013-04-18hfp: Move HFP versions definitions to hfp.hPaulo Borges1-0/+6
hfp.h should store all HFP related definitions.
2013-04-16handsfree-audio: Add debug loggingJoão Paulo Rechi Vita1-1/+9
Print debug messages when Handsfree Audio Agent registers or unregisters itself.
2013-04-15emulator: Change feature check to attend HFP 1.6Paulo Borges1-1/+1
HFP 1.6 adds a new feature called Codec Negotitation. For the HF Role, this feature is stored in bit 8 of the supported features bitmap. This patch changes the range of valid HF feature bitmaps to 2^8-1.
2013-04-15handsfree-audio: Toggle wideband support when the agent registersVinicius Costa Gomes1-2/+9
Each time an agent registers itself, we check if we support deferred setup and if the agent has mSBC as a codec, if both checks are true, we enable wideband speech support.
2013-04-15handsfree-audio: Keep track whether defer_setup is enabledVinicius Costa Gomes1-2/+5
'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-15handsfree-audio: Send the selected codecClaudio Takahasi1-4/+3
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-15handsfree-audio: Implement ofono_handsfree_card_set_codec()Vinicius Costa Gomes1-0/+20
2013-04-09handsfree-audio: Move codec enums to hfp.hDenis Kenzior2-6/+7
2013-04-09core: Include hfp.hDenis Kenzior2-0/+2
2013-04-09core: Add hfp.hDenis Kenzior1-0/+46
This will serve as a collection point for all HFP related definitions.
2013-04-09handsfree-audio: Remove unused 'codecs' field from agentVinicius Costa Gomes1-5/+0
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-09handsfree-audio: Implement ofono_handsfree_audio_has_widebandVinicius Costa Gomes1-0/+6
2013-04-01modem: Support modem property "AlwaysOnline"Forest Bond1-6/+14
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-03-28modem: Allow setting boolean propertiesForest Bond1-1/+2
2013-03-28handsfree-audio: Add .Connect using the card driverVinicius Costa Gomes1-0/+25
Now each handsfree implementation may be notified that a card wants its audio to be connected.
2013-03-28handsfree-audio: Add ofono_handsfree_card_connect_scoVinicius Costa Gomes1-43/+44
2013-03-26handsfree-audio: Reject .Connect() from other sendersVinicius Costa Gomes1-0/+6
Only the agent should be able to call .Connect() on the card.
2013-03-26handsfree-audio: Add support for sending the SCO socketVinicius Costa Gomes1-0/+2
Send the SCO socket to the agent associated with the card that just got connected.
2013-03-26handsfree-audio: Add support for initiating SCO connectionsVinicius Costa Gomes1-1/+92
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-19ofono.conf: Punch hole for HandsfreeAudioAgentVinicius Costa Gomes1-0/+1
2013-03-18handsfree_audio: Call driver remove() on removalDenis Kenzior1-0/+3
2013-03-18core: Add bt_str2ba() to bluetooth.hClaudio Takahasi2-0/+9
This patch adds a utility Bluetooth function to convert Bluetooth address from string to bdaddr_t.
2013-03-18handsfree-audio: Match new card APIDenis Kenzior1-5/+46
2013-03-18handsfree-audio: Implement get/set dataDenis Kenzior1-0/+12
2013-03-18handsfree-audio: Add card driver registrationDenis Kenzior1-0/+22
2013-03-04handsfree-audio: Reject SCO if agent is unavailableClaudio Takahasi1-0/+6
This patch rejects the incoming SCO connection if there isn't a Handsfree Audio Agent registered.
2013-03-04handsfree-audio: Reject SCO if Card is not readyClaudio Takahasi1-1/+1
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-04handsfree-audio: Check local SCO addressClaudio Takahasi1-13/+31
This patch verifies if the local Bluetooth address of the incoming connection also matches with one of available audio cards.
2013-03-04handsfree-audio: Add NewConnectionClaudio Takahasi1-1/+27
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-04handsfree-audio: Add SCO handlingClaudio Takahasi1-1/+90
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-04core: Add new Bluetooth headerClaudio Takahasi1-0/+71
This patch adds the Bluetooth utility funtions and socket type declarations to a new header src/bluetooth.h, allowing to share it between core, and plugins.
2013-03-01handsfree-audio: Check CVSD when registering agentClaudio Takahasi1-2/+9
This patch makes CVSD codec mandatory when registering a Handsfree Audio Agent.
2013-02-26handsfree-audio: properly increment next_card_idDenis Kenzior1-0/+2
2013-02-26handsfree-audio: Impelement CardRemoved signalDenis Kenzior1-0/+15
2013-02-26handsfree-audio: Implement CardAdded signalDenis Kenzior1-1/+36
2013-02-26handsfree-audio: Implement the GetCards methodDenis Kenzior1-1/+44
2013-02-26handsfree-audio: Implement card GetPropertiesDenis Kenzior1-1/+29
2013-02-26handsfree-audio: Unregister from DBus on removalDenis Kenzior1-1/+13
2013-02-26handsfree-audio: Add skeleton D-Bus registrationDenis Kenzior1-0/+50
For HandsfreeAudioCard objects
2013-02-26handsfree-audio: Don't hardcode '/' pathDenis Kenzior1-3/+5
Use OFONO_MANAGER_PATH instead
2013-02-26handsfree-audio: Implement card create / removeDenis Kenzior1-0/+36