summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2010-08-06 18:05:33 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2010-08-09 08:59:50 -0700
commita526b0683dba50dac8a37ed45e3a08536044e973 (patch)
tree9d94d1e0e65a501c3641bf6eee481c32021d2e98
parent28b31647cda80ee08b3b3d7a402832e132505b2c (diff)
downloadmsm7k-a526b0683dba50dac8a37ed45e3a08536044e973.tar.gz
Patch from HTC: fix improper device ID selection for BT with noise
suppression off. This patch is accompanied by updated ACDB files that define the matching acoustic configuration. Change-Id: I8cf769c30993e36c4dc07b8df8d234e752d26ffb
-rw-r--r--libaudio-qsd8k/AudioHardware.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libaudio-qsd8k/AudioHardware.cpp b/libaudio-qsd8k/AudioHardware.cpp
index f19f050..e5108e7 100644
--- a/libaudio-qsd8k/AudioHardware.cpp
+++ b/libaudio-qsd8k/AudioHardware.cpp
@@ -818,8 +818,7 @@ status_t AudioHardware::doAudioRouteOrMute(uint32_t device)
}
- if (device == (int) SND_DEVICE_BT
- || device == (int) SND_DEVICE_BT_EC_OFF) {
+ if (device == (int) SND_DEVICE_BT) {
if (mBluetoothIdTx != 0) {
rx_acdb_id = mBluetoothIdRx;
tx_acdb_id = mBluetoothIdTx;
@@ -829,7 +828,8 @@ status_t AudioHardware::doAudioRouteOrMute(uint32_t device)
tx_acdb_id = mBTEndpoints[0].tx;
LOGD("Update ACDB ID to default BT setting\n");
}
- } else if (device == (int) SND_DEVICE_CARKIT) {
+ } else if (device == (int) SND_DEVICE_CARKIT
+ || device == (int) SND_DEVICE_BT_EC_OFF) {
if (mBluetoothIdTx != 0) {
rx_acdb_id = mBluetoothIdRx;
tx_acdb_id = mBluetoothIdTx;