diff options
author | Eric Laurent <elaurent@google.com> | 2014-10-17 18:17:51 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-10-20 09:58:04 -0700 |
commit | bc19a3de775b6a1e4a5576c6447927637fc3b5b5 (patch) | |
tree | 0a4675a07dbb52f6ab5669cc894ea83f1e882a94 /include/hardware | |
parent | 4b6c51550904123892656b3f2074b0bb1714ebe2 (diff) | |
download | hardware_libhardware-bc19a3de775b6a1e4a5576c6447927637fc3b5b5.zip hardware_libhardware-bc19a3de775b6a1e4a5576c6447927637fc3b5b5.tar.gz hardware_libhardware-bc19a3de775b6a1e4a5576c6447927637fc3b5b5.tar.bz2 |
audio: new parameter key for HW A/V sync ID allocation
The HW A/V sync ID is retrieved from the HAL by calling
global get_parameters() with key AUDIO_PARAMETER_HW_AV_SYNC.
After the output stream is opened, the HW A/V sync ID is communicated
by stream set_parameters() with key AUDIO_PARAMETER_STREAM_HW_AV_SYNC.
Bug: 17112525.
Change-Id: Id1e3a3aa1e88d15461a609b381ca8c1902735a29
Diffstat (limited to 'include/hardware')
-rw-r--r-- | include/hardware/audio.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h index 763ca58..8d5b2f0 100644 --- a/include/hardware/audio.h +++ b/include/hardware/audio.h @@ -112,6 +112,10 @@ __BEGIN_DECLS /* Bluetooth SCO wideband */ #define AUDIO_PARAMETER_KEY_BT_SCO_WB "bt_wbs" +/* Get a new HW synchronization source identifier. + * Return a valid source (positive integer) or AUDIO_HW_SYNC_INVALID if an error occurs + * or no HW sync is available. */ +#define AUDIO_PARAMETER_HW_AV_SYNC "hw_av_sync" /** * audio stream parameters @@ -136,9 +140,7 @@ __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. */ +/* Set the HW synchronization source for an output stream. */ #define AUDIO_PARAMETER_STREAM_HW_AV_SYNC "hw_av_sync" /** |