summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-05-22gitignore: Ignore file generated by Automake 1.13Lucas De Marchi1-0/+4
Automake >= 1.13 enables parallel-tests option by default which uses a test-driver script (copied by automake). Ignore this file and the files generated by this script.
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-08gdbus: Fix using NULL DBusPendingCall when disconnected from D-BusAnderson Lizardo1-0/+5
From D-Bus documentation for dbus_connection_send_with_reply(): "Warning: if the connection is disconnected or you try to send Unix file descriptors on a connection that does not support them, the DBusPendingCall will be set to NULL, so be careful with this." Fix these errors when killing D-Bus daemon with the client still running: process 5712: arguments to dbus_pending_call_set_notify() were incorrect, assertion "pending != NULL" failed in file ../../dbus/dbus-pending-call.c line 596. This is normally a bug in some application using the D-Bus library. process 5712: arguments to dbus_pending_call_unref() were incorrect, assertion "pending != NULL" failed in file ../../dbus/dbus-pending-call.c line 572. This is normally a bug in some application using the D-Bus library.
2013-05-08gdbus: Fix segfault when D-Bus daemon exitsAnderson Lizardo1-0/+2
Fix this crash if D-Bus exits while the client is still connected to it: ==5570== Invalid read of size 1 ==5570== at 0x402D28E: strcmp (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==5570== by 0x4070E22: g_str_equal (ghash.c:1704) ==5570== by 0x8055F61: message_filter (client.c:1123) ==5570== by 0x4141500: dbus_connection_dispatch (in /lib/i386-linux-gnu/libdbus-1.so.3.5.8) ==5570== by 0x80506F7: message_dispatch (mainloop.c:76) ==5570== by 0x4081A7E: g_timeout_dispatch (gmain.c:3882) ==5570== by 0x4080D85: g_main_context_dispatch (gmain.c:2539) ==5570== by 0x4081124: g_main_context_iterate.isra.21 (gmain.c:3146) ==5570== by 0x408156A: g_main_loop_run (gmain.c:3340) ==5570== by 0x41BF4D2: (below main) (libc-start.c:226) ==5570== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==5570== ==5570==
2013-05-03gdbus: Fix calling GetManagedObjects twice in a rowLuiz Augusto von Dentz1-7/+18
Calling g_dbus_client_new followed by g_dbus_client_set_proxy_handlers cause two calls to GetManagedObjects in a row as GetNameOwner reply is asyncronously it triggers the second call because the handlers have been set by g_dbus_client_set_proxy_handlers.
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-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-25handsfree-audio: Implement ofono_handsfree_audio_has_defer_setup()Vinicius Costa Gomes1-0/+5
2013-04-25include: Add ofono_handsfree_audio_has_defer_setup()Vinicius Costa Gomes1-0/+2
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-25hfp: Add defines for HFP SDP feature bitsVinicius Costa Gomes1-0/+18
2013-04-25bluez5: Unify bt_register_profile_* into a single functionVinicius Costa Gomes6-20/+14
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-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-23hfpmodem: Add EchoCancelingNoiseReductionClaudio Takahasi1-0/+17
This patch adds echo canceling and noise reduction implementation to hfpmodem. It adds the implementation to send the command "AT+NREC=0" to the AG.
2013-04-23include: Add disable_nrec to handsfree driverClaudio Takahasi1-0/+2
This patch extends the handsfree driver adding echo canceling and noise reduction callback to allow disabling this feature in the audio gateway.
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-23doc: Add EchoCancelingNoiseReduction to HandsfreeClaudio Takahasi1-0/+10
This patch adds echo canceling and noise reduction property to Handsfree interface, allowing the handsfree unit to disable this feature in the audio gateway. The HFP spec defines the procedure to turn off echo canceling and noise reduction only, it is not allowed to enable this feature from the HF unit. According to Bluetooth HFP 1.6 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 from the HF unit. From then on, and until the current Service Level Connection is dropped for any reason, the AG shall disable these functions every time an Audio Connection is established.
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: Move HFP versions definitions to hfp.hPaulo Borges2-6/+6
hfp.h should store all HFP related definitions.
2013-04-18hfp_ag_bluez5: Include hfp.hPaulo Borges1-0/+1
2013-04-18phonesim: Include hfp.hPaulo Borges1-0/+1
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-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-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-15handsfree-audio: Implement ofono_handsfree_card_set_codec()Vinicius Costa Gomes1-0/+20
2013-04-15include: Add ofono_handsfree_card_set_codec()Vinicius Costa Gomes1-0/+2
This will be used by the drivers that a given codec was negotiated for a card. It will return FALSE if the codec can't be used. For example, if the selected codec is mSBC and defer setup is not supported by the kernel.
2013-04-09hfpmodem: Send AT+BAC with the supported codecsVinicius Costa Gomes1-1/+11
Before, the AT+BAC command was being sent with fixed information, now we send the command (that inform the AG of the codecs supported by the HF) with the codecs supported by the registered Handsfree Audio Agent.
2013-04-09handsfree-audio: Move codec enums to hfp.hDenis Kenzior2-6/+7
2013-04-09core: Include hfp.hDenis Kenzior2-0/+2
2013-04-09hfp_hf_bluez5: Include hfp.hDenis Kenzior1-0/+1
2013-04-09drivers: Include hfp.hDenis Kenzior2-0/+2
2013-04-09core: Add hfp.hDenis Kenzior2-1/+48
This will serve as a collection point for all HFP related definitions.
2013-04-09include: Remove hfp bits from types.hDenis Kenzior1-26/+0
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-09include: Add ofono_handsfree_audio_has_wideband()Vinicius Costa Gomes1-0/+2
As we can assume that the CVSD codec will be always available, the only information that we need to export is if we have support for wideband codecs. Right now only mSBC is defined as wideband.
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-08gdbus: Fix not calling property_changed callbackLuiz Augusto von Dentz1-13/+10
In case a property did not appear by the time proxy_added was called property_changed has to be called if it appear latter otherwise the application will be unaware of it.
2013-04-08gdbus: Use gcc builtin instead of g_atomicLucas De Marchi1-6/+6
g_atomic_* end up using G_STATIC_ASSERT, causing gcc 4.8 to yell due to -Wunused-local-typedefs. gdbus/client.c: In function ‘g_dbus_client_ref’: /usr/include/glib-2.0/glib/gmacros.h:162:53: error: typedef ‘_GStaticAssertCompileTimeAssertion_2’ locally defined but not used [-Werror=unused-local-typedefs] #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]