summaryrefslogtreecommitdiffstats
path: root/audio/include
diff options
context:
space:
mode:
authorPhil Burk <philburk@google.com>2015-08-04 11:07:41 -0700
committerPhil Burk <philburk@google.com>2015-08-04 11:07:41 -0700
commitcf6443f4e67079e2b3c3f7849f49681e856f7f38 (patch)
tree90ad898b5118d1f972d671e5b998cf829008515a /audio/include
parent8b6721ca77a780e2d88c6299684b454952105481 (diff)
downloadandroid_system_media-cf6443f4e67079e2b3c3f7849f49681e856f7f38.tar.gz
android_system_media-cf6443f4e67079e2b3c3f7849f49681e856f7f38.tar.bz2
android_system_media-cf6443f4e67079e2b3c3f7849f49681e856f7f38.zip
Audio HAL API: add bit for compressed audio
Add a bit to tell the HAL that the PCM data is really encoded audio wrapped in a data burst. Otherwise the device may try to play the encoded data directly which will sound like modulated white noise. Bug: 22576112 Change-Id: I8a68a9cf08b34f231c39e9f63283f868169744c0 Signed-off-by: Phil Burk <philburk@google.com>
Diffstat (limited to 'audio/include')
-rw-r--r--audio/include/system/audio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/include/system/audio.h b/audio/include/system/audio.h
index 1fb0daca..2f33b2b5 100644
--- a/audio/include/system/audio.h
+++ b/audio/include/system/audio.h
@@ -739,6 +739,8 @@ typedef enum {
AUDIO_OUTPUT_FLAG_RAW = 0x100, // minimize signal processing
AUDIO_OUTPUT_FLAG_SYNC = 0x200, // synchronize I/O streams
+ AUDIO_OUTPUT_FLAG_IEC958_NONAUDIO = 0x400, // Audio stream contains compressed audio in
+ // SPDIF data bursts, not PCM.
} audio_output_flags_t;
/* The audio input flags are analogous to audio output flags.