OSDN Git Service

audio HAL: add defines for BT NREC parameter
authorEric Laurent <elaurent@google.com>
Wed, 3 Aug 2011 00:12:00 +0000 (17:12 -0700)
committerEric Laurent <elaurent@google.com>
Wed, 3 Aug 2011 02:30:37 +0000 (19:30 -0700)
Added definitions of keys and values used to enable or disable
AEC and NS via set_parameters according to BT headset capabilities.

Change-Id: Id3fba06edfe77e2832b8256c0c4c46eeef17b816

include/hardware/audio.h

index 36ff399..75c5773 100644 (file)
@@ -43,6 +43,11 @@ __BEGIN_DECLS
 
 /**************************************/
 
+/* BT SCO Noise Reduction + Echo Cancellation parameters */
+#define AUDIO_PARAMETER_KEY_BT_NREC "bt_headset_nrec"
+#define AUDIO_PARAMETER_VALUE_ON "on"
+#define AUDIO_PARAMETER_VALUE_OFF "off"
+
 /* standard audio parameters that the HAL may need to handle */
 #define AUDIO_PARAMETER_STREAM_ROUTING "routing"
 #define AUDIO_PARAMETER_STREAM_FORMAT "format"