From a5caad1d543a8f557880b92c76bdc51204a0dc5f Mon Sep 17 00:00:00 2001 From: vivek mehta Date: Thu, 3 Sep 2015 18:34:32 -0700 Subject: audio: add support for direct pcm - extend audio_offload_info and audio_config structure to support direct pcm Change-Id: Ie39c2f666e9d4ec1e1c20fdc648d8c04f0f2edce --- audio/include/system/audio.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3