summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvivek mehta <mvivek@codeaurora.org>2015-09-03 18:34:32 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:29:26 -0600
commita5caad1d543a8f557880b92c76bdc51204a0dc5f (patch)
treea7f2d1cb00694c8372e3234186deb10bb7d51234
parent5fb7de287361281b216b7f199e9ab4e5b3db93b6 (diff)
downloadandroid_system_media-a5caad1d543a8f557880b92c76bdc51204a0dc5f.tar.gz
android_system_media-a5caad1d543a8f557880b92c76bdc51204a0dc5f.tar.bz2
android_system_media-a5caad1d543a8f557880b92c76bdc51204a0dc5f.zip
audio: add support for direct pcm
- extend audio_offload_info and audio_config structure to support direct pcm Change-Id: Ie39c2f666e9d4ec1e1c20fdc648d8c04f0f2edce
-rw-r--r--audio/include/system/audio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/include/system/audio.h b/audio/include/system/audio.h
index 2d001747..480f7b01 100644
--- a/audio/include/system/audio.h
+++ b/audio/include/system/audio.h
@@ -812,7 +812,8 @@ typedef enum {
// SPDIF data bursts, not PCM.
AUDIO_OUTPUT_FLAG_VOIP_RX = 0x800, // use this flag in combination with DIRECT to
// start voip over voice path.
- AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH = 0x1000 // flag for HDMI compressed passthrough
+ AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH = 0x1000, // flag for HDMI compressed passthrough
+ AUDIO_OUTPUT_FLAG_DIRECT_PCM = 0x2000, // flag for Direct PCM
} audio_output_flags_t;
/* The audio input flags are analogous to audio output flags.
@@ -847,6 +848,7 @@ typedef struct {
bool is_streaming; // true if streaming, false if local playback
uint32_t bit_width;
uint32_t offload_buffer_size; // offload fragment size
+ audio_usage_t usage;
} audio_offload_info_t;
#define AUDIO_MAKE_OFFLOAD_INFO_VERSION(maj,min) \
@@ -868,6 +870,7 @@ static const audio_offload_info_t AUDIO_INFO_INITIALIZER = {
is_streaming: false,
bit_width: 16,
offload_buffer_size: 0,
+ usage: AUDIO_USAGE_UNKNOWN,
};
/* common audio stream configuration parameters