aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-03-16audio: fix wrong latency reported by audio HALics-mr1Eric Laurent
Commit 355afe9a broke the calculation of the latency returned by A2DP, leading to incorrect A/V sync. The latency must take into account the intermediate buffering added in audio HAL. Change-Id: I1f3d7494fe58517151c5dba0a4883f583d7a6ef2
2011-12-21a2dp audio HAL: extend write timeout.android-cts-4.0.3_r2Eric Laurent
Extend the timeout delay in out_write() when waiting for available space in output buffer to accomodate A2DP sink with a long startup time. Issue 5781477. Change-Id: I4e31b5116ddbea8774a15b2016d088ea7039ec93
2011-12-09Merge "Fix channel connected signal emission." into ics-mr1android-sdk-4.0.3_r1android-sdk-4.0.3-tools_r1android-cts-verifier-4.0_r1android-cts-verifier-4.0.3_r1android-cts-4.0.3_r1Jaikumar Ganesh
2011-12-09Fix channel connected signal emission.Jaikumar Ganesh
Channel Connected signal was being emitted too early leading to failure in acquisition of the fd. Delay channel connection signal it is ready to be used by users. Patch in consulation with Jose Antonio Santos Cadenas <santoscadenas@gmail.com> Bug: 5732670 Change-Id: I7855bd9d372ec9d548240c9086a66e9a340ce1ce
2011-12-05a2dp HAL: add write thread to avoid audio skipsEric Laurent
The a2dp stack is throttling the audio throughtput to accommodate headsets that can accept audio too fast. This makes that very limited audio buffering exists in the A2DP output path. We are therefore vulnerable to irregular scheduling of audioflinger mixer thread when CPU clock speed or system activity changes. The fix consists in adding an intermediate audio buffer between audioflinger mixer thread and the A2DP socket. Issue 5682206. Change-Id: I6f2387fb694a75e62c0805b7f134f7cb88eaedd6
2011-08-29Fix setting high priority on the ACL link for A2DP.android-sdk-adt_r16.0.1android-cts-4.0_r1android-4.0.2_r1android-4.0.1_r1.2android-4.0.1_r1.1android-4.0.1_r1ics-mr0-releaseics-mr0ics-factoryrom-2-releaseJaikumar Ganesh
memset the addr variable. Change-Id: I3a3567145985ba425ebf8e4b21d426dcb490dbf5
2011-08-23avdtp: fix race condition when starting a streamPeter Hurley
The AVDTP spec allows for a race condition between remote and local device when issuing an AVDTP_START cmd on a stream in the OPEN state. However, the internal state must continue to be consistent. For example, suppose that avdtp_start() has been called while in the OPEN state and a AVDTP_START cmd is sent. Now before we have received a response (and thus entered the STREAMING state), we *receive* a START cmd. Prior to this fix, since the sep is still in the OPEN state, we would accept the new START cmd. This will leads us to send both a Start_Ind and Start_Cfm - not good. Now, we track this transitional state (starting == TRUE). NB - 'starting' is only in a valid state while the sep is in the OPEN state. 'starting' is reset when we return to the OPEN state.
2011-08-23Fix crash when disconnecting A2DPSyam Sidhardhan
When we disconnect an A2DP device by immediate power off and quickly also initiate a disconnection from our side, a crash is occurring. This is happening because of the disconnect_timeout coming after freeing the session.
2011-08-15Send hci command to disable scan mode in power down functionMatthew Xie
Before we power down HCI dev, we should disable Bluetooth chip scan mode so that the chip set would not repond to device outside inquiry and page. bug 5080232 Change-Id: I357a300ad61332c6f95376c0690602cf396e5973
2011-08-11Merge "Revert "Send hci command to disable scan mode in power down function""Matthew Xie
2011-08-10Revert "Send hci command to disable scan mode in power down function"Matthew Xie
This reverts commit 6b08f121c817cda19431fa472c9640733df05d6f
2011-08-09Merge "Send hci command to disable scan mode in power down function"Matthew Xie
2011-08-05Send hci command to disable scan mode in power down functionMatthew Xie
Before we power down HCI dev, we should disable Bluetooth chip scan mode so that it saves power. bug 5080232 Change-Id: I28a761ebcb14c0a4215c53ed82e4ff9430a32250
2011-08-04Fix for Pin or key missing rfcomm socket errorjhtop.kim
If cancel is pressed on the pin request dialog (for non SSP case), auth request continues in a loop. Add additional checks for the auth agent. This is a gross temporary hack till we move to the mgmt interface. Change-Id: I565a75698cb4fa1c2ed8c93ed6198b05a1a7b8af
2011-07-26Merge "Fix unpair device when disconnected for No Bonding"Jaikumar Ganesh
2011-07-26Fix unpair device when disconnected for No BondingDmitriy Paliy
Fix Paired device property if 'No Bonding' authentication is used. It is set to be false when device is disconnected and no link key is stored. Otherwise, there can be cases when device is still valid and being claimed as paired without available bonding information. For instanse, use of CreateDevice method call and obex client file transfer is such use case.
2011-07-26Fix Bluetooth HS AG SDP record.jhtop.kim
SDP_ATTR_EXTERNAL_NETWORK is not part of the HS specification. Original Author: Jh Kim Change-Id: Ic649e7532acabfbbb9adeaa1db3e7c8e51d3fd19
2011-07-21Fix bonding failure error propogation.Jaikumar Ganesh
When Bonding was failing due to authentication failure, this error report was not being sent to the caller, because cancel_bonding was being called from btd_event_conn_failed, which was sending the wrong error code back. Change-Id: I2816d714fc85c499d0d4850733e33807f3073217
2011-07-14am cfd4fe3f: (-s ours) am f3d1a2c3: Merge "Add make file to build bccmd ↵Jaikumar Ganesh
utility for CSR bluetooth modules" * commit 'cfd4fe3f0bf605978fc72efada90060efbeb16c3': Add make file to build bccmd utility for CSR bluetooth modules
2011-07-13am f3d1a2c3: Merge "Add make file to build bccmd utility for CSR bluetooth ↵Jaikumar Ganesh
modules" * commit 'f3d1a2c3f2005451f40cfa48782ee5aebebe784e': Add make file to build bccmd utility for CSR bluetooth modules
2011-07-13Merge "Add make file to build bccmd utility for CSR bluetooth modules"Jaikumar Ganesh
2011-07-13Merge "Add NOTICE and MODULE_LICENSE_GPL files."Jean-Baptiste Queru
2011-07-12Merge "Remove the simulator target from all makefiles. Bug: 5010576"Jeff Brown
2011-07-11Remove the simulator target from all makefiles.Jeff Brown
Bug: 5010576 Change-Id: I95b5e51b909c5ed7bc7c61c441f9b315f2b4db27
2011-07-08Audio HAL: added interface for audio preprocessingEric Laurent
Change-Id: Ic15f9dc50ad4643e8272c62ed9134ab09f7d0966
2011-07-07Change health plugin name to bluetooth-health.Jaikumar Ganesh
This makes it easier to decipher in the PRODUCT_PACKAGE section of build files. Change-Id: Iee1860fd350a17a77f57d30647f54f3ff3833284
2011-06-18Also allow legacy behaviorsJean-Baptiste Queru
Change-Id: I88ab8e0191e67fb09f9a271190993592fcab0484
2011-06-13audio hal: update audio hal header locationDima Zavin
Change-Id: Idb06aa33dc60eb4b1769335fc6c07ff007ccf090 Signed-off-by: Dima Zavin <dima@android.com>
2011-05-31Add make file to build bccmd utility for CSR bluetooth modulesAxel Lin
This patch adds make file to support building bccmd utility, which is needed by CSR bluetooth modules. To build bccmd utility, set BOARD_HAVE_BLUETOOTH_CSR to be true. Change-Id: I8012688cdbc3846c500eafce5831e4c74d3b3095
2011-05-25Add cleanspec to clean out plugin intermediates.Jaikumar Ganesh
Change-Id: Ia76c76ab428aadb859d646059db9d65794fab3d1
2011-05-25Merge branch 'bluez_master'Jaikumar Ganesh
2011-05-25Temporary changes till attrib is made an independent plugin.Jaikumar Ganesh
Change-Id: I03f277e6ed28538bb1618b6161994459efaa4d1b
2011-05-25Change version number to 4.93Jaikumar Ganesh
Change-Id: Idc8204629b859ef3873afc4d303a61308af14a07
2011-05-25Signal client thread in error cases.Mathias Jeppsson
When the a2dp_thread has finished executing one command, it signals the client thread. Some error cases do not signal and due to this calls to liba2dp will hang until the client thread times out. Add signaling in error cases to avoid calls to liba2dp to hang. Change-Id: Ic6eae5af3ed4f40c0eb022aba35ed4e0d3f81904
2011-05-25update for new audio.h header locationDima Zavin
Change-Id: Ic3d8c530441a26074f6baabb7ea05182d5c03b1e Signed-off-by: Dima Zavin <dima@android.com>
2011-05-25Fix issue 4368520: crash in bluez audio at bootEric Laurent
Added missing initialization of output stream pointer in device struct and test on valid output stream in set_parameters() Change-Id: I162c410968dcbd6ed89f939c42bd48dbfe390a71
2011-05-25bluez/audio: add native android audio HAL wrapperDima Zavin
Change-Id: Ia01ea6f9caf51756d9d45a6068a8e2dc4bf7d49e Signed-off-by: Dima Zavin <dima@android.com>
2011-05-25Fix setting of mode after discovery times out.Jaikumar Ganesh
When discovery times out, we were not setting the mode appropriately. Thus, if the adapter is turned off and on, we will get the incorrect mode. Also add a forward declaration for the introduced circular dependency.
2011-05-25Fix authentication problem due to deleted link keyJaikumar Ganesh
When two SSP devices are paired and the other end deletes the link key, any connection requests requiring authentication will fail with the error code "PIN or Key missing". In such a case, the link key has to be deleted and authentication tried again. Note: This is a temporary fix. The new management interfaces will consolidate all the SSP logic. Change-Id: I517b081c0014e75507554604dc45ae44f15050c4
2011-05-25Fix removing the watch when network session is freed.Jaikumar Ganesh
This fixes bluetoothd taking a lot of CPU when local NAP role connection is disconnected. Change-Id: I8be15622d4dc3bb1a33867e6472b899928473d40
2011-05-25Add ability to disconnect from a device from the network server interface.Jaikumar Ganesh
Change-Id: I40043877b9718a8c0287869a61f0a7b4620d5091
2011-05-25Add DBus calls to Adapter for adding SDP records.Jaikumar Ganesh
There is no way to add SDP records by just specifying the uuid. Since Android doesn't use all profiles on Bluez directly, we need one such API to add the SDP records. Change-Id: I560d3f2bad60afd317fbf0465281e901d2fcbae5
2011-05-25Add BT_POWER socket option.Jaikumar Ganesh
BT_POWER socket option is used to control the power characteristics of the underlying ACL link. Currently, this is used to set the ACL link to active mode when the remote end has put the ACL link in sniff mode and we are sending data. By default, the ACL link will always be moved to active mode. However, this causes problems with HID devices. And hence, for HID devices the ACL link will not be moved to active mode when we are sending data. This socket option is implemented for both rfcomm and l2cap sockets. Change-Id: I0261a8daa2241d691670cc690cd27c39c67c1591
2011-05-25Add missing NOTICE files.David Deephanphongs
Original commit: c3d03f1916d453eabbc5e3d58f6926dcaba2c4df update by Jaikumar Ganesh for Bluez upmerge.
2011-05-25A2dp SDP record: We only support player category.Jaikumar Ganesh
Change-Id: I6eaf6b2ad1eb99c0c163d4d1131d851ec6781cb6
2011-05-25Update SDP records for AVRCP TG role.Jaikumar Ganesh
Android only supports category 1 keys. Change-Id: I0760b7a8f49ff9e21dbd28cb3a5ce486209a30c3
2011-05-25Shutdown the IO channel after watch is triggered.Jaikumar Ganesh
If we don't shut it down, the watches don't get triggered for future events. This is similar to incoming connections for input and audio. Change-Id: I4acd91527d909b1018856105dcc07bb61053e916
2011-05-25Add local C flag for Broadcomm boards.Jaikumar Ganesh
This is used to set ACL priorities which allows for better A2DP streaming. Change-Id: I8b5f651d3dd3eff400db226c56df42025795ebb8
2011-05-25Add the interface of the network in the signal.Jaikumar Ganesh
This makes it similar to outgoing connections. Change-Id: I09fe2a9cc2d06d2b6ca1b8c98b6c8ccdc63306b5
2011-05-25Update SDP records for OPPJaikumar Ganesh
Android doesn't support import of iCal, vNote, vMessage, vCal at this point. So don't advertise these formats. Based on a report by: hyungseoung.yoo@samsung.com Change-Id: Ifa14844570b893775c45784a31cfeb24e8fd88b1