OSDN Git Service

Move AUDIO_DEVICE_*_STUB to system/audio.h.
authorMikhail Naganov <mnaganov@google.com>
Tue, 8 Nov 2016 22:11:36 +0000 (14:11 -0800)
committerMikhail Naganov <mnaganov@google.com>
Tue, 8 Nov 2016 22:11:36 +0000 (14:11 -0800)
This is needed so it can be used in TypeConverter.cpp

Bug: 32740394
Change-Id: Ie203df160b808818813c169733641b6ac68b96f5
Test: make & check on the device

audio/include/system/audio.h

index 0e2780c..7f641e8 100644 (file)
@@ -230,6 +230,16 @@ typedef enum {
 } audio_in_acoustics_t;
 
 typedef uint32_t audio_devices_t;
+/**
+ * Stub audio output device. Used in policy configuration file on platforms without audio outputs.
+ * This alias value to AUDIO_DEVICE_OUT_DEFAULT is only used in the audio policy context.
+ */
+#define AUDIO_DEVICE_OUT_STUB AUDIO_DEVICE_OUT_DEFAULT
+/**
+ * Stub audio input device. Used in policy configuration file on platforms without audio inputs.
+ * This alias value to AUDIO_DEVICE_IN_DEFAULT is only used in the audio policy context.
+ */
+#define AUDIO_DEVICE_IN_STUB AUDIO_DEVICE_IN_DEFAULT
 
 /* Additional information about compressed streams offloaded to
  * hardware playback