summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-08-01 14:42:44 -0700
committerEric Laurent <elaurent@google.com>2014-08-05 15:02:46 -0700
commit4ea9b95684508f25d9aa5d55396fc48bdde3085b (patch)
tree98398579105d7520d6e96b45483c344cf40bdd68
parentba3c1a972e113f3bdf1c76a26e89505c39c981d3 (diff)
downloadlibhardware-4ea9b95684508f25d9aa5d55396fc48bdde3085b.tar.gz
audio HAL: add parameter to get audio HW sync source
Bug: 16132368. Change-Id: Id76ce254b73ea11316cc684399de8d9c520c9b9b
-rw-r--r--include/hardware/audio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h
index fa6ab57c..59fb9a31 100644
--- a/include/hardware/audio.h
+++ b/include/hardware/audio.h
@@ -112,6 +112,7 @@ __BEGIN_DECLS
/* Bluetooth SCO wideband */
#define AUDIO_PARAMETER_KEY_BT_SCO_WB "bt_wbs"
+
/**
* audio stream parameters
*/
@@ -133,6 +134,11 @@ __BEGIN_DECLS
* "sup_sampling_rates=44100|48000" */
#define AUDIO_PARAMETER_STREAM_SUP_SAMPLING_RATES "sup_sampling_rates"
+/* Get the HW synchronization source used for an output stream.
+ * Return a valid source (positive integer) or AUDIO_HW_SYNC_INVALID if an error occurs
+ * or no HW sync source is used. */
+#define AUDIO_PARAMETER_STREAM_HW_AV_SYNC "hw_av_sync"
+
/**
* audio codec parameters
*/