From a526b0683dba50dac8a37ed45e3a08536044e973 Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Fri, 6 Aug 2010 18:05:33 -0700 Subject: 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 --- libaudio-qsd8k/AudioHardware.cpp | 6 +++--- 1 file 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; -- cgit v1.2.3