diff options
author | Manish Dewangan <manish@codeaurora.org> | 2015-08-11 21:36:51 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:29:26 -0600 |
commit | 5fb7de287361281b216b7f199e9ab4e5b3db93b6 (patch) | |
tree | 8d62a788adc134c2faa5af1e5bf79b2dd24d0450 | |
parent | 6bbaf563603c1b43de071e7c7a51a274c0f3afc5 (diff) | |
download | android_system_media-5fb7de287361281b216b7f199e9ab4e5b3db93b6.tar.gz android_system_media-5fb7de287361281b216b7f199e9ab4e5b3db93b6.tar.bz2 android_system_media-5fb7de287361281b216b7f199e9ab4e5b3db93b6.zip |
audio_offload: add support to set offload fragment size
In case of audio offload,add parameter to set offload fragment size.
If the size passed is greater than the computed offload fragment
size in HAL then use the size passed.
Change-Id: I2a4c321583c70c617584b0811a10c76b1a198c08
-rw-r--r-- | audio/include/system/audio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/include/system/audio.h b/audio/include/system/audio.h index 34da3fc8..2d001747 100644 --- a/audio/include/system/audio.h +++ b/audio/include/system/audio.h @@ -846,6 +846,7 @@ typedef struct { bool has_video; // true if stream is tied to a video stream bool is_streaming; // true if streaming, false if local playback uint32_t bit_width; + uint32_t offload_buffer_size; // offload fragment size } audio_offload_info_t; #define AUDIO_MAKE_OFFLOAD_INFO_VERSION(maj,min) \ @@ -866,6 +867,7 @@ static const audio_offload_info_t AUDIO_INFO_INITIALIZER = { has_video: false, is_streaming: false, bit_width: 16, + offload_buffer_size: 0, }; /* common audio stream configuration parameters |