summaryrefslogtreecommitdiffstats
path: root/include/hardware/audio.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-08-07 10:05:40 -0700
committerEric Laurent <elaurent@google.com>2011-08-07 10:05:40 -0700
commit70e8110fcf2c35d1ac67f0eb4a2702014a16719b (patch)
tree6e66512a11cc519300e921613e4f5e1a4ce45aee /include/hardware/audio.h
parentee43a308b6d89442e41d5c14bf5831a213b681a9 (diff)
downloadhardware_libhardware-70e8110fcf2c35d1ac67f0eb4a2702014a16719b.zip
hardware_libhardware-70e8110fcf2c35d1ac67f0eb4a2702014a16719b.tar.gz
hardware_libhardware-70e8110fcf2c35d1ac67f0eb4a2702014a16719b.tar.bz2
audio HAL: add support for TTY mode selection
Change-Id: I680e008a091e31e6c0b11adb26f6b232829baacb
Diffstat (limited to 'include/hardware/audio.h')
-rw-r--r--include/hardware/audio.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h
index 75c5773..2d7f39d 100644
--- a/include/hardware/audio.h
+++ b/include/hardware/audio.h
@@ -43,18 +43,38 @@ __BEGIN_DECLS
/**************************************/
+/**
+ * standard audio parameters that the HAL may need to handle
+ */
+
+/**
+ * audio device parameters
+ */
+
/* 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 */
+/* TTY mode selection */
+#define AUDIO_PARAMETER_KEY_TTY_MODE "tty_mode"
+#define AUDIO_PARAMETER_VALUE_TTY_OFF "tty_off"
+#define AUDIO_PARAMETER_VALUE_TTY_VCO "tty_vco"
+#define AUDIO_PARAMETER_VALUE_TTY_HCO "tty_hco"
+#define AUDIO_PARAMETER_VALUE_TTY_FULL "tty_full"
+
+/**
+ * audio stream parameters
+ */
+
#define AUDIO_PARAMETER_STREAM_ROUTING "routing"
#define AUDIO_PARAMETER_STREAM_FORMAT "format"
#define AUDIO_PARAMETER_STREAM_CHANNELS "channels"
#define AUDIO_PARAMETER_STREAM_FRAME_COUNT "frame_count"
#define AUDIO_PARAMETER_STREAM_INPUT_SOURCE "input_source"
+/**************************************/
+
/* common audio stream parameters and operations */
struct audio_stream {