Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879baf

Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d
Snapshot 0d153181bbe9ce75555b437567796a9aef4ef0ae

Change-Id: I99fb22bd2e10af658de4cfe26470e71bda147ce8
Bluetooth: Change Sampling Frequency to 48 kHz

Change Default Sampling Frequency to 48 kHz by default to
match Audio Source.
CRs-fixed: 436686
Change-Id: I0a4aa9ca61964e76220c77fa60c281f7a5df58b4
Snapshot 09118679ff7861de0fe2b742591e5d6aadba3fcc

Change-Id: I35cdb320673d847d8122bc03b9832d13673ea208
Snapshot 9fd57cbacd95e89602f430244c35bbc67f08b6d2

Change-Id: Ibc3a4bf4161d286c7cfab89a19c676eb5cc9224f
Fixed i2s call for headsets

Credits: maxell

Change-Id: I1bdf2ff5e8c475907aa8450af85116bafadd739d
Merge "Fixed i2s call for headsets" into jb4.2
a2dp: Set the default A2DP bitrate to high quality

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
Remove bluedroid configuration warning

This warning is fired on every full-eng build.  It seems excessive
given that there are very few other warning fired on a full-eng build
and 0 seems like a reasonable goal to shoot for.

Change-Id: I2fb2b5342dee35b3ed05343466309f6c335022ef
a2dp hw: adding a2dp tuning through bdroid_buildcfg.h

This adds possibility to configure a2dp tuning on an
arbitrary sysfs path and arbitrary ON/OFF values.
It's activated when a2dp is being used, and
deactivates when a2dp is stopped.
This way a device can either use an a2dp_tuning sysfs file
or cpu scaling min freq sysfs path with a target
min_freq value for elevation.

Here are two example of the two strategies of usage for
this:
bdroid_buildcfg.h - sysfs tuning file
 #define A2DP_HW_SYSFS_TUNER "/sys/devices/platform/tegra_uart.2/a2dp_tuning"
 #define A2DP_HW_SYSFS_TUNER_OFF "0"
 #define A2DP_HW_SYSFS_TUNER_ON "1"

bdroid_buildcfg.h - scaling min freq file
 #define A2DP_HW_SYSFS_TUNER "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq"
 #define A2DP_HW_SYSFS_TUNER_OFF "0"
 #define A2DP_HW_SYSFS_TUNER_ON "204000"

Change-Id: I2cd94e626eb2a6d04a6e52ddac94fa5773eb09d8
increase read buffer size
fixes compatibility issues with ti-hci driver
bluedroid: Fix build with gcc 4.8+

Use -Wno-error=unused-parameter with gcc >= 4.8

Change-Id: I330a56b0363b90118628bc3b30451f8921ca6f60
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
bluedroid: Fix build with gcc 4.8+

Use -Wno-error=unused-parameter with gcc >= 4.8

Change-Id: Id7299c8f0a1e2dd683647d49225342ebfa0a8dcf
bluedroid: Fix build with gcc 4.8

In gcc 4.8, the warning for unused parameters is enabled by
default - causing -Werror to break the build.

Change-Id: Ifa4dbc6a7cfec0c82486906ecf3ed6d53a550c3f
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Remove dead code

Change-Id: I40797639d92749ec49210ae0a7aaf030ade9eeb2
initial commit