summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* During call state change DIALING/ALERTING -> CONNECTED, donot redo SCOMatthew Xie2012-10-182-1/+7
| | | | | | bug 7337252 Change-Id: Icd3ceada57c02887a9e5f3c850ebd7b5639111af
* Add support of getting factory BDADDR from Controller's non-volatile memory(1/2)YK Jeffrey Chao2012-10-161-2/+39
| | | | | | | | | | | | | When factory Bluetooth device address is stored in the BT Controller's non-volatile memory instead of devices's file system, the BDADDR will be retrieved from the Controller while enabling Bluedroid core stack. Fire an HAL adapter_properties_cb callback to notify the AdapterProperties of the Controller's BDADDR information. bug 7340441 Change-Id: Iec9c0abe11ab2945ca74796f80930596561baf24
* Add serial port profile support and allow to connect to rfcomm channel ↵zzy2012-10-153-39/+106
| | | | | | | | without sdp discovery bug 7272974 Change-Id: Idc10edc056b48da2fd96bea84eba3fb73b97bab1
* Remove frame count offset compensation codeMatthew Xie2012-10-131-1/+2
| | | | | | | | | | | The clock rate base for bt media encoding drifts. Compensations were added. Frame count offset compensation causes problem. On certain carkit, removing this adjustment fixes problem. I am commenting this code out as it causes problem. We think GKI timer compensations should be sufficient. bug 7302257 Change-Id: Ia25d04ce06dc2f9a7c2be33e99ecb69d5e508cdf
* Disable btsnoop external parser for productionGanesha Batta2012-10-082-1/+12
| | | | | | | | This port allows real time parsing of the btsnoop traces using an external tool. Disabled this by default for production. bug 7298743 Change-Id: I595e3e9fede532dbf1bd1383d9babe7c44503af1
* Change the file gid to net_bt_stackMatthew Xie2012-10-041-79/+7
| | | | | | | So the config file can be shared by Bluetooth apk of multi-users bug 6925422 Change-Id: Id97061454325ef898eb9413756408cf9d95bca62
* Fix for timer thread stuck on BT OFFRavi Nagarajan2012-10-031-0/+1
| | | | | | | Wake up with timer_thread on BT OFF bug 7266585 Change-Id: Id4ff27b94fc1e7f38b9c6861cb325e3d33ea91ce
* Ensure timer thread stops when inactivity timer expiresMattias Agren2012-09-301-9/+24
| | | | | | Bug 7243062 Change-Id: Ib9d85f65adce364f5a75c85d3cc55ab387a8efd5
* Merge "Fix HCI Timeout issue on Mako" into jb-mr1-devMatthew Xie2012-09-281-3/+7
|\
| * Fix HCI Timeout issue on MakoGanesh Ganapathi Batta2012-09-281-3/+7
| | | | | | | | | | | | | | | | | | | | | | Root cause: HCI RX path event sometimes gets received at host HCI and the num_hci_cmd_pkts counter gets updated before the TX path returned from hci_mct_send_msg function. This results in next HCI command not being sent to controller and eventually resulting in HCI command timeout Bug 7223945, 7073814, 7150111 Change-Id: Idc6ea48d316385f99f95d9d9015d41b66cded5c8
* | Send the enabled hfp/hsp service UUIDs based on configRavi Nagarajan2012-09-283-1/+12
| | | | | | | | | | | | | | | | | | On platforms where HFP is disabled, we were incorrectly notifying upper layer of HFP support in local uuids. Use the build config to determine the right set of local UUIDs bug 7232184 Change-Id: Ica308dd879336300714e97d3441334e16471359a
* | Fixed the crash when rfcomm run out of 30 channelszzy2012-09-281-15/+29
|/ | | | | | Bug 7230522 Change-Id: Id8bdedb757a9324d891aac1cbbaed0da94d7e274
* Trigger restart on BT Controller H/W errorKausik Sinnaswamy2012-09-266-28/+27
| | | | | | | | | | On a Bluetooth chip h/w error, trigger an event from the core stack to restart the Bluetooth process. This would ensure that any state is cleaned up and the process starts from scratch Bug: 7001800 Change-Id: I57b0b44276585e2ae3c22ddbcc9d80bd467135b2 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Change the order of Local BDA read locations.Ganesh Ganapathi Batta2012-09-251-9/+22
| | | | | | | Look for Local BDA at ro.bdaddr_path before reading it from BT Local storage path Bug 7228514 Change-Id: Ib6d4b5321b1146d19f671d15c34df3a85b3a89d2
* Add timer compensation to manage timer thread preemtionMattias Agren2012-09-251-9/+92
| | | | | | | | | | | For each timer tick we monitor the actual elapsed time and compensate for any additional delays in next timer tick. This results in a correct timer tick value on average as opposed to simply incrementing delays Bug 7161154 Change-Id: I38dc56215fb03540f501f49dd8e48a4d0f6b1564
* Set btif media timer tick to 20 msMattias Agren2012-09-251-54/+41
| | | | | | | | | | | | | | * Reducing media timer tick prevents a2dp fragmentation due to MTU size limitations in many headsets. This also provides better robustness on poor rf links. * Adjusted bitrate to 229 kbps which represents middle quality setting in A2DP spec (bitpool 35 @ 44.1 khz). * Use fixed estimated nbr sbc frames per a2dp packet and adjust only using rate adjustment logic which would keep us within ~3 ms of the ideal rate Bug 7161154 Change-Id: Ifd84e7ab9f5ac404162269dc4ad0e3a9b024e788
* Reduced logging before/after music play/pauseKausik Sinnaswamy2012-09-251-6/+6
| | | | | | | A burst of log messages are sent right music is paused. Moved these as verbose logs. bug 7222516 Change-Id: I08a0583eb1b96734e3fdbd0c97cd3a93d9a0304f
* Added a configurable BT disable timerKausik Sinnaswamy2012-09-212-2/+15
| | | | | | | | | This timer(BTA_DISABLE_DELAY) if set to a value greater than zero shall delay the chip/transport shutdown. The BTA_DISABLE_DELAY can be fine-tuned per platform. bug 7212447 Change-Id: Ib0346af42f6b596e9fbb281203058872bceffbd9
* Move default COD macro BTA_DM_COD to bt_target.hKausik Sinnaswamy2012-09-213-16/+15
| | | | | | | | | This can be over-ridden on the various platforms via the respective bdroid_buildcfg.h. Default value chosen is for MAJOR_PHONE and MINOR_SMARTPHONE. bug 7176584 Change-Id: Ie553e082273b63e871aad5cda9816b16345fd9e2
* bluedroid: add mutex lock when enumerating the hci tx queuezzy2012-09-213-17/+68
| | | | | | | | | | | | Bug: 7167816 Bug: 7136940 This could be fix for most of the hci timeout issues. The root cause seemed like the while loop for sending hci message messed up when another thread try to enque/deque a hci message at same time. Change-Id: Ib7f6a68b49b700b0d575326cafae41a158483b27 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Broadcom license for proprietary filesAndre Eisenbach2012-09-191-0/+50
| | | | Change-Id: I93e951df61326703bca58094ce58d9e0e2ad6748
* Fixed OPP SDP records to indicate support for only vCard 2.1 and other type ↵Fred2012-09-191-1/+1
| | | | | | | | | of object This fix removes vNote and vCal from the OPP SDP record. Bug 7167658 Change-Id: I41c79e6a6e2c5b042dbf9f225265f4ad85ea3a87
* Defer sending RC pass-through commands until A2DP connection is upGanesh Ganapathi Batta2012-09-192-5/+5
| | | | | | | | Root cause for the bug is RC connection establishment before A2DP connection and play command from carkit arriving in mid of A2DP connection. Bug: 7131791 Change-Id: I74e7c456f68c5ab5a02e827c9a1e14d770f5ec2a
* Initual Bluetooth open source releaseAndre Eisenbach2012-09-18372-13353/+14640
| | | | | | | | First release under Apache source license with updated header files and whitespace cleanups. Also fixed file permission to remove executable bit from source files. Change-Id: I7155903edfc2f491c1cbbd0db108f207852caaa0
* Merge "Revert "Header file and whitespace cleanups"" into jb-mr1-devMatthew Xie2012-09-18285-7339/+7395
|\
| * Revert "Header file and whitespace cleanups"Matthew Xie2012-09-18285-7339/+7395
| | | | | | | | | | | | | | | | This reverts commit cc914cffd521b2e6e1be804c82aea2388b843ebf More changes in the original CL after my cherry-pick. Change-Id: Ic144dba96aeb8a60611baac7565c9f628ab8f9eb
* | Revert "Reference headers in their new location"Jean-Baptiste Queru2012-09-182-3/+1
|/ | | | This reverts commit 6ed67e2ac54c83d18701d2b4ee1b9d729e99a38c.
* Header file and whitespace cleanupsAndre Eisenbach2012-09-18285-7395/+7339
| | | | | | | Also fixed file permission to remove executable bit from source files. Change-Id: I6954c2d16190bc35b1b0d38386543253696b1112
* Reference headers in their new locationJean-Baptiste Queru2012-09-152-1/+3
| | | | Change-Id: I5a10b52c6e6e7efe9c451d1f705dd875a9739117
* Save the service uuid when changedzzy2012-09-141-0/+1
| | | | | | Root cause: the service uuid is cached in memory, it could lost in case device crash or reboot bug 7170559
* bluetooth: BT SIG - AVRCP - Response for invalid PDU fixedhyungjung0521.kim2012-09-132-4/+10
| | | | | | | | | | When PTS sends the invalid PDU to the IUT, due to AVRCP spec, it's supposed to response back to PTS with General Reject MSG and Error code. PTS test case : AVRCP TC_TG_INV_BI_01_C Change-Id: Ieba59503f0e3c156c639b37167d3a3a743016706
* BTIF Media task not terminated during BT offKausik Sinnaswamy2012-09-131-3/+3
| | | | | | | | During BT disable, the BTIF AV media task was not shutdown cleanly, this could result in bad state on subsequent BT enable. bug 7142673 Change-Id: I6177baec5804720e96adcf9aa9445cc2bb438b07
* Disable Power Manager callback on BT OFFRavi Nagarajan2012-09-131-0/+1
| | | | | | | | | | On BT OFF, PowerManager callback has to be disabled to avoid handling events that are triggered as part of the BT OFF sequence. This was causing a dead lock in the BTU thread not exitting when AV is disconnected as part of BT OFF sequence bug 7142673 Change-Id: I29554e47514210a5002c06b078a30b3e7cd03710
* Use new storage APIs for NV itemsSen-Der Huang2012-09-124-1411/+60
| | | | Change-Id: I22120a69273e5cd2b484009421f31df97d59b410
* Fix for HDP thread leak during BT on/offKausik Sinnaswamy2012-09-111-1/+6
| | | | | | | | During cleanup, we were not doing a pthread_join of the thread that was created as part of the init API. The fix was to do a join during cleanup bug 7083069 Change-Id: I48c7b597e969d08de36365abd6bbd321001b4e0d
* bluedroid: clean up a2dp log spewIliyan Malchev2012-09-101-36/+38
| | | | | Change-Id: I6f9459197724cbb2824f4160f7f366bfe7631556 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Merge "Turn off messages that has lower priority than warning." into jb-mr1-devIliyan Malchev2012-09-101-12/+12
|\
| * Turn off messages that has lower priority than warning.Matthew Xie2012-09-101-12/+12
| | | | | | | | Change-Id: Ib1f39b66b3422164f64fcbbf271636244b6cb1a3
* | Update HFP version in SDP to 1.6Ravi Nagarajan2012-09-101-4/+0
|/ | | | | | | | | Stack supports AT+BIA, which is mandatory for HFP 1.6 support. WBS is optional, hence does not impact the HFP version. Update HFP version in SDP to be 1.6 bug 7127626 Change-Id: I7dcd6edc3299b267a737d281c1663a2db2ef591a
* audio: audio device API 2.0Eric Laurent2012-09-071-8/+0
| | | | | | Remove obsolete get_supported_devices() function. Change-Id: I4e2e6daa2222b9c7b6c685d8ac0763dc5f8cdaa9
* Fixed acl credit issue when host data flow control is n/azzy2012-09-061-0/+1
| | | | Bug 7009277
* Fix for Fixed pin keyboard blacklist search issue.Ganesh Ganapathi Batta2012-09-041-15/+8
| | | | | Bug:7074362 Change-Id: I76afb73e51e8f6ab1da8257ea004c8d7131e6884
* Send proper length while retrieving local name during BT EnableGanesh Ganapathi Batta2012-09-041-1/+1
| | | | | Bug: 7093571 Change-Id: I328b0a24ffa827a5a7d22f90ee8d476bd151675e
* Fix for overlapping bt_target & gki_target definesKausik Sinnaswamy2012-09-042-95/+11
| | | | | | | | A few GKI buffer macro definitions were overlapping between bt_target and gki_target. GKI buffer definitions should only be present in gki_target.h. Change-Id: I0930960efe114ad479a894785b3ecf3e94195caf
* Handle all auth failure codes to retry pairingRavi Nagarajan2012-09-041-0/+6
| | | | | | | | | | By default stack will attempt to auto-pair with devices that match a certain COD. If pairing fails, pairing will be retried with manual user pin entry. The retry was limited to HCI error code 0x05 (auth failure). Expanded this list to handle more error conditions bug 7092121 Change-Id: I7c11d03b87350af597062cf77a296e340a929ef9
* Add log tag for stack logsRavi Nagarajan2012-08-311-12/+68
| | | | | | | Use layer specific data to display the log tags for stack logs bug 7070825 Change-Id: I39b9a5c7c719a08bd5355c1648effc7828eceb57
* audio: fix get_parameters()Eric Laurent2012-08-301-1/+3
| | | | | | | | Fix two bugs in adev_get_parameters(): - the str_parms struct was not destroyed causing a memory leak. - get_parameters() should return an empty string, not NULL. Change-Id: Icdf2803afe82fa4be7950b4659f850b772381f17
* Enhanced log traces to print h/w error codeKausik Sinnaswamy2012-08-301-1/+1
| | | | | | Prints the error code of hardware failure for the BR/EDR Controller Change-Id: I8c5172d9485ef0d71668969789fdacd720a2067f
* Fixed the issue that local adapter name cannot be changed and lost last ↵zzy2012-08-292-19/+21
| | | | | | | | | bonded device 2 Root case: the adapter name property set/get with wrong section & key; The end condition of the loop to load bonded device is wrong removed the wrong return value check when loading blacklist Change-Id: Ib02d472311cd872befd17e6d2445f649f53f02fb
* Merge "fixed the issue that remote unpaired device not removed from config ↵Matthew Xie2012-08-291-0/+1
|\ | | | | | | file" into jb-mr1-dev