hal: add support for SWB codec for BT SCO device
Configure the codec of BT SCO device as SWB when sink
device supports this profile.
Change-Id: I68402d0f7040871f1d44a97ec14444456616dbc7
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index 69c13e9..773aa5a 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -85,6 +85,9 @@
#define ACDB_DEV_TYPE_OUT 1
#define ACDB_DEV_TYPE_IN 2
+/* SCO SWB codec mode */
+#define SPEECH_MODE_INVALID 0xFFFF
+
/* support positional and index masks to 8ch */
#define MAX_SUPPORTED_CHANNEL_MASKS (2 * FCC_8)
#define MAX_SUPPORTED_FORMATS 15
@@ -525,6 +528,7 @@
unsigned int cur_hdmi_bit_width;
unsigned int cur_wfd_channels;
bool bt_wb_speech_enabled;
+ unsigned int swb_speech_mode;
bool allow_afe_proxy_usage;
bool is_charging; // from battery listener
bool mic_break_enabled;