Claudio Takahasi
e51f734881
hfp_hf_bluez5: Remove SCO handling
...
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-04 16:16:24 -06:00
Claudio Takahasi
3b8d84d19d
hfp_hf_bluez5: Use new bluetooth.h header
2013-03-04 16:13:31 -06:00
Claudio Takahasi
3373fae662
bluez5: Remove Bluetooth related utilities
2013-03-04 16:13:18 -06:00
Claudio Takahasi
1095e4a126
core: Add new Bluetooth header
...
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-04 16:08:59 -06:00
Paulo Borges
08eea76ea8
bluez5: Add bt_register_profile_with_role
...
This function allows to specify which role is registering when the
profile does not have specific UUIDs for each role.
2013-03-04 12:04:54 -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
Paulo Borges
80212a3db2
bluez5: Move ref / unref handsfree audio
...
This commit moves the ref / unref to hfp_hf_bluez5 to make
bluez5 more generic and reusable.
2013-03-01 13:22:35 -06:00
Claudio Takahasi
cf6137c187
hfp_hf_bluez5: Remove Card on RequestDisconnection
...
For local initiated disconnection the GAtChat disconnect callback is not
called. For this case, Audio Card remove function needs to be called.
2013-02-28 10:11:05 -06:00
Claudio Takahasi
bff9432007
hfp_hf_bluez5: Remove Card when modem is disabled
2013-02-28 10:10:54 -06:00
Claudio Takahasi
134b237344
hfp_hf_bluez5: Remove Card if SLC is disconnected
...
This patch removes previous registered Audio Card when the remote
Bluetooth device triggers the service level disconnection.
2013-02-28 10:10:41 -06:00
Claudio Takahasi
1ee6c6ea09
hfp_hf_bluez5: Remove Card when SLC fails
...
This patch removes the previously created Audio Card if the service
level negotiation fails.
2013-02-28 10:10:30 -06:00
Claudio Takahasi
fb9b54bc2c
hfp_hf_bluez5: Add local address to Audio Card
2013-02-28 10:10:13 -06:00
Claudio Takahasi
4ef4d620e4
hfp_hf_bluez5: Add registering Audio Card
...
This patch registers the Handsfree Audio Card when the service level
connection is established.
2013-02-28 10:09:33 -06:00
Denis Kenzior
c7a3f3990a
handsfree-audio: properly increment next_card_id
2013-02-26 15:47:08 -06:00
Claudio Takahasi
36cdc0297a
doc: Add possible handsfree-audio API errors
...
This patch adds possible errors that can be returned by Register and
Unregister methods of the Manager interface.
2013-02-26 14:20:54 -06:00
Patrik Flykt
71551c98a9
bluez4: Increase Bluez 4 D-Bus timeouts to 60 seconds
...
RequestAuthorization method call may trigger pairing and/or pop up a
dialog in the remote device to which the user needs to react. Thus
increase D-Bus timeouts to 60 seconds for the Bluez 4 plugin.
2013-02-26 14:15:44 -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
d15e22ab6d
include: Add handsfree card register method
2013-02-26 13:21:32 -06:00
Denis Kenzior
dfeb91fc08
handsfree-audio: Implement card create / remove
2013-02-26 11:09:48 -06:00
Denis Kenzior
d202b18a9d
include: Add handsfree card create / remove API
2013-02-26 11:03:41 -06:00
Claudio Takahasi
82fae93ca1
audio-settings: Fix unneeded async for GetProperties
...
GetProperties method call for Audio settings returns the reply in the
same iteraction, it doesn't need to be asynchronous.
2013-02-25 12:21:35 -06:00
Tomasz Bursztyka
7b0b28bb41
gdbus: Always unreference the message in g_dbus_send_message()
...
A quick fix on g_dbus_send_message(), if check_signal() fails it returns
FALSE without unreferencing the message as it should. This patch fixes
it.
2013-02-23 11:50:16 +01:00
Denis Kenzior
93eb1e5d8e
AUTHORS: Mention Paulo's contributions
2013-02-22 11:29:26 -06:00
Paulo Borges
ba07289963
dundee: Fix typo in dundee-disconnect test
2013-02-22 11:29:01 -06:00
Paulo Borges
08a8eb7fa8
dundee: Fix typo in Manager's signal DeviceAdded
...
This typo was preventing dundee from sending the signal.
2013-02-22 11:28:57 -06:00
Claudio Takahasi
0772fda92e
hfpmodem: Fix segfault in CIEV GAtChat callback
...
This patch fixes segmentation fault when the network registration
watch is called without being initialized. CIEV GAtChat callback can
be called before ofono_netreg_register().
==15101== Invalid read of size 8
==15101== at 0x492B56: ofono_netreg_register (network.c:2073)
==15101== by 0x47245E: hfp_netreg_probe (network-registration.c:311)
==15101== by 0x492A8D: ofono_netreg_create (network.c:1881)
==15101== by 0x4849D5: hfp_pre_sim (hfp_hf_bluez5.c:288)
==15101== by 0x48C486: ofono_modem_set_powered (modem.c:1194)
==15101== by 0x484E9D: slc_established (hfp_hf_bluez5.c:85)
==15101== by 0x4702AD: chld_cb (slc.c:147)
==15101== by 0x440457: at_chat_finish_command (gatchat.c:461)
==15101== by 0x44109F: new_bytes (gatchat.c:532)
==15101== by 0x4433B7: received_data (gatio.c:122)
==15101== by 0x3CBAA47824: g_main_context_dispatch (gmain.c:2539)
==15101== by 0x3CBAA47B57: g_main_context_iterate.isra.23
(gmain.c:3146)
==15101== Address 0x18 is not stack'd, malloc'd or (recently) free'd
2013-02-21 17:09:54 -06:00
Denis Kenzior
2f8b9ab50c
bluez5: ref / unref handsfree audio
2013-02-21 08:30:03 -06:00
Denis Kenzior
951e03dfea
handsfree-audio: Add ref / unref support
2013-02-21 08:27:55 -06:00
Denis Kenzior
3e16bc5e88
include: Add skeleton for handsfree-audio
2013-02-21 08:27:32 -06:00
Claudio Takahasi
28603a98ce
hfp_ag_bluez5: Send HFP version when registering
2013-02-20 21:39:06 -06:00
Claudio Takahasi
f765427b22
hfp_hf_bluez5: Send HFP version when registering
2013-02-20 21:36:49 -06:00
Claudio Takahasi
6672f41fd6
bluez5: Add profile version argument
...
This patch adds sending of the Version argument to RegisterProfile
method. The version is required to create the service record
containing the correct profile version.
2013-02-20 21:35:44 -06:00
Claudio Takahasi
8a1cd911d8
hfp_hf_bluez5: Add local HFP version tracking
...
Fallback to HFP 1.5 if defer setup is not supported since it is not
possible to proceed with codec negotiation.
2013-02-20 21:31:04 -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
55a9b0411e
main: Call handsfree audio manager init and cleanup
2013-02-20 21:20:26 -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
Denis Kenzior
57a44e8d23
doc: Add experimental handsfree-audio API
2013-02-19 09:47:57 -06:00
Denis Kenzior
7ba9521f10
hfp_hf_bluez5: Ensure active SLC for SCO links
...
Whenever a SCO connection is attempted, ensure that the SLC link is
already active between us and the same remote peer.
2013-02-14 08:47:10 -06:00