OSDN Git Service

audio: added definitions for audio HAL modules
authorEric Laurent <elaurent@google.com>
Tue, 3 Apr 2012 19:07:02 +0000 (12:07 -0700)
committerEric Laurent <elaurent@google.com>
Tue, 3 Apr 2012 23:01:17 +0000 (16:01 -0700)
Change-Id: I16f8b42ab5de503d38086413b83e934ac9aa1f24

include/hardware/audio.h

index af4df04..65e754d 100644 (file)
@@ -41,6 +41,17 @@ __BEGIN_DECLS
  */
 #define AUDIO_HARDWARE_INTERFACE "audio_hw_if"
 
+/**
+ * List of known audio HAL modules. This is the base name of the audio HAL
+ * library composed of the "audio." prefix, one of the base names below and
+ * a suffix specific to the device.
+ * e.g: audio.primary.goldfish.so or audio.a2dp.default.so
+ */
+
+#define AUDIO_HARDWARE_MODULE_ID_PRIMARY "primary"
+#define AUDIO_HARDWARE_MODULE_ID_A2DP "a2dp"
+#define AUDIO_HARDWARE_MODULE_ID_USB "usb"
+
 /**************************************/
 
 /**