Browse Source

[DeviceDrivers] Add audio.h header file.

Bernard Xiong 9 years ago
parent
commit
8043186020
1 changed files with 14 additions and 0 deletions
  1. 14 0
      components/drivers/include/drivers/audio.h

+ 14 - 0
components/drivers/include/drivers/audio.h

@@ -0,0 +1,14 @@
+#ifndef AUDIO_H__
+#define AUDIO_H__
+
+/* Device Control Commands */
+#define CODEC_CMD_RESET             0
+#define CODEC_CMD_SET_VOLUME        1
+#define CODEC_CMD_GET_VOLUME        2
+#define CODEC_CMD_SAMPLERATE        3
+#define CODEC_CMD_EQ                4
+#define CODEC_CMD_3D                5
+
+#define CODEC_VOLUME_MAX            (63)
+
+#endif