summaryrefslogtreecommitdiffstats
path: root/btif/src
Commit message (Collapse)AuthorAgeFilesLines
* Properly handle missing firmwaresreplicant-4.2-0001Paul Kocialkowski2013-11-111-3/+7
| | | | | Change-Id: I47d7d59c49d06149cbf27e0ac570188b451197f8 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Support USB HCIravindranath2013-07-141-2/+2
| | | | | | | | | Issue: AXIA-1459 Change-Id: Ie4cc5766446774a0bae3bbf7d9baa5f44e814f59 Signed-off-by: Ravindranath Doddi <ravindranathx.doddi@intel.com> Signed-off-by: Krishnan V <krishnanx.vaidyanathan.venkitakrishnan@intel.com> Signed-off-by: Daniel Leung <daniel.leung@intel.com> Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
* Fix MAP SDP record generation [1/3]Danny Baumann2013-05-311-4/+107
| | | | | | This change adds support for generating MAS and MNS SDP records. Change-Id: I54d5d5847b9cdf4bd5e03aadf4e5012540e669c0
* a2dp: Set the default A2DP bitrate to high qualityMichael Brehm2013-03-041-2/+2
| | | | | | | | | | | | Allows bluedroid to calculate the proper A2DP bitpool size. This resolves the main A2DP audio quality issues with Android 4.2, but does not address the difference in audio output gain/volume as compared with Android 4.1. Setting the output volume level to approximately 80% in conjunction with this change seems to result in comparable audio quality Change-Id: Ic05c3278ebe9288d00926fab8b7c1a646fd861cd
* Merge tag 'android-4.2.2_r1' of ↵Steve Kondik2013-02-129-189/+235
|\ | | | | | | | | | | https://android.googlesource.com/platform/external/bluetooth/bluedroid into 1.1 Android 4.2.2 release 1
| * Snapshot 9fd57cbacd95e89602f430244c35bbc67f08b6d2The Android Open Source Project2012-12-129-189/+235
| | | | | | | | Change-Id: Ibc3a4bf4161d286c7cfab89a19c676eb5cc9224f
| * Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879bafThe Android Open Source Project2012-12-1221-0/+22342
| | | | Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d
* Bluetooth: Change Sampling Frequency to 48 kHzSunny Kapdi2013-01-281-1/+6
| | | | | | | Change Default Sampling Frequency to 48 kHz by default to match Audio Source. CRs-fixed: 436686 Change-Id: I0a4aa9ca61964e76220c77fa60c281f7a5df58b4
* Merge "Turn off socket debug messages" into jb-mr1-devMatthew Xie2012-11-013-155/+108
|\
| * Turn off socket debug messagesMatthew Xie2012-10-313-155/+108
| | | | | | | | | | | | | | Change the message macro so that they can be turned on at runtime bug 7174712 Change-Id: I59b955720ec5de26774c58fba6d369ef34d1ac3b
* | Turn off hid debug messagesMatthew Xie2012-11-011-3/+0
|/ | | | | | | | Some of the message should be debug instead of warning. Some of the messages were in wrong log message module bug 7174712 Change-Id: Ib57ae6255bdbe53d2d931b1003a47cd6cadcb425
* Address type should be UINT8 instead of char for btif_media_check_iop_exceptionsMatthew Xie2012-10-262-2/+2
| | | | | | | Fix a type mismatch error introduced by last checkin: Manage a2dp frame distribution... bug 7302257 Change-Id: I8fec02d416e9bd0f2a1cca72e0bbc5d2f704b29a
* Merge "Increase media task encoded buffer queue throw-away threshold from 12 ↵Matthew Xie2012-10-261-1/+1
|\ | | | | | | to 24" into jb-mr1-dev
| * Increase media task encoded buffer queue throw-away threshold from 12 to 24Matthew Xie2012-10-261-1/+1
| | | | | | | | | | | | | | | | To manage temporary congestion in lower layers, the max amount of queued up audio is raised from 240ms to 480ms bug 7394193 Change-Id: Ibee000b83c0f608120537f21323a069caa4f952d
* | Merge "Manage a2dp frame distribution when rate doesn't scale with media ↵Matthew Xie2012-10-262-175/+72
|\ \ | | | | | | | | | tick" into jb-mr1-dev
| * | Manage a2dp frame distribution when rate doesn't scale with media tickMatthew Xie2012-10-252-175/+72
| |/ | | | | | | | | | | | | | | | | | | Added back original frame rate calculation used to manage sending 6.89 frames every 20 ms tick. Removed unused rate adjustment logic Blacklist Porsche carkit out of this change, ie keep old behavior. Originally by Mattias Ganesh bug 7302257 7394193 7267756 Change-Id: Id40fee2d52098a011d13ad3b70301003da675c72
* | Merge "Bump up priority of a few tasks that could affect a2dp" into jb-mr1-devMatthew Xie2012-10-262-0/+7
|\ \ | |/ |/|
| * Bump up priority of a few tasks that could affect a2dpMatthew Xie2012-10-192-0/+7
| | | | | | | | | | | | | | | | Change nice to -16, same as android audio service. Affected tasks: btu, gki timer, hci worker, media task, userial_read bug 7267756 Change-Id: I0b5ecc4345240601ef6e5890240054dab193e4a0
* | Add new user-to-kernel interface for Bluetooth low power mode control (2/2)YK Jeffrey Chao2012-10-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | The bluesleep kernel module was used in Tegra3 platform to perform Bluetooth low power wakelock and interrup control. Add new user-to-kernel interface through proc fs nodes for Bluedroid to feed bluesleep with the HCI_DEV events which bluesleep was monitoring on. Add call to disable LPM mode at turning BT off. bug 7347413 Change-Id: I65b58137ccbc7b3694b805d9be6756304a8da1be
* | During call state change DIALING/ALERTING -> CONNECTED, donot redo SCOMatthew Xie2012-10-181-1/+1
|/ | | | | | 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-152-38/+99
| | | | | | | | 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
* 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
* 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
* Trigger restart on BT Controller H/W errorKausik Sinnaswamy2012-09-262-0/+11
| | | | | | | | | | 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
* 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
* 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-1821-846/+238
| | | | | | | | 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
* Revert "Header file and whitespace cleanups"Matthew Xie2012-09-187-5/+5
| | | | | | | | This reverts commit cc914cffd521b2e6e1be804c82aea2388b843ebf More changes in the original CL after my cherry-pick. Change-Id: Ic144dba96aeb8a60611baac7565c9f628ab8f9eb
* Header file and whitespace cleanupsAndre Eisenbach2012-09-187-5/+5
| | | | | | | Also fixed file permission to remove executable bit from source files. Change-Id: I6954c2d16190bc35b1b0d38386543253696b1112
* 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
* 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
* Use new storage APIs for NV itemsSen-Der Huang2012-09-121-91/+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
* 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
* 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
* 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
| * fixed the issue that remote unpaired device not removed from config filezzy2012-08-291-0/+1
| | | | | | | | | | root cause: forgot to remove the device from storage when bound is canceled Bug 7077419
* | Turn on NUMLOCK states for HID KBs without NUMLOCKSyed Ibrahim M2012-08-291-8/+203
|/ | | | | | | Set NUMLOCK state for HID keyboards without NUMLOCK key to be ON so that the numeric keypad can be used. Change-Id: Ib9811d55cc62ba380c0418f0ac9ff3827b9a3c8a
* Log DM eventsRavi Nagarajan2012-08-282-1/+34
| | | | | | Add strings for DM event Change-Id: I800780c181dd51cbf9bb037690ad167a5f8bf363
* Added new storage code and bluez configuration migration supportzzy2012-08-279-846/+1964
| | | | | | | | | | Filter out hid device from bluez migration. Change-Id: I8b5eb29f37ca37e97b728f69063266a1b0a61eb8 Conflicts: main/Android.mk
* Null terminate Local name before sending to stackGanesh Ganapathi Batta2012-08-251-2/+9
| | | | | | | | Ensure that Local name string is always Null terminated when sending it to BT stack from BTIF layer Bug:7027639 Change-Id: I319642d6073d4178bd34ca82431c4bda16270474
* Ignore AVRCP Pause command from carkits right after the callGanesh Ganapathi Batta2012-08-241-9/+10
| | | | | | | | | Certain carkits (e.g Audi MMI 2801)send AVRCP Pause command right after the call if there was an active music streaming when the call was answered. This command needs to be ignored as Phone/MediaPlayer will take care of music Play/pause after the call based on the state of the streaming before the call Change-Id: Iddb50089bff0f54bc3ad9665f95e64d3083c568a
* Do not send Bond state change evt after SDP completion if security upgrade ↵Ganesh Ganapathi Batta2012-08-231-1/+6
| | | | | | | | | is in progress In mid of security upgrade, sending BOND_STATUS_BONDED to java dismisses Pairing confirmation dialog and results in security upgrade failure. Change-Id: If2a3858c6811eaa243f1c67d055862a634ccbb45
* Remove attr_mask field from BTA_HH_ADD_DEV_EVT cbSyed Ibrahim M2012-08-231-1/+0
| | | | | | | | Remove attr_mask field from bta_hh_api.c and bta_hh_act.c for BTA_HH_ADD_DEV_EVT callback as stack updates the attribute mask to the stack callout function bta_hh_co_open() Change-Id: I1e450a210a63359c7ae30551fd3c468f0e109fda
* fixed the second reconnect issueSen-Der Huang2012-08-211-39/+48
| | | | | | | The problem was due to incorrect loading of the MDL configuratoion The issues is fixed after loading the MDL configiration in the right order Change-Id: Id33f680e089e71a10f9dd00163f931daa277b021