summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2016-04-05 11:10:08 +0800
committerBernard Xiong <[email protected]>2016-04-05 11:10:08 +0800
commit80431860208d0795c81decb03e6989de2115d97e (patch)
tree5455c781e9a5693bac5b3e94449f714df5a46b19
parentada2c7a3f547d8aba632a89df036fbd21d632d14 (diff)
[DeviceDrivers] Add audio.h header file.
-rw-r--r--components/drivers/include/drivers/audio.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/audio.h b/components/drivers/include/drivers/audio.h
new file mode 100644
index 0000000000..3836ab3fd2
--- /dev/null
+++ b/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