summaryrefslogtreecommitdiffstats
path: root/audio/ipc.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-07-10 13:34:57 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-07-10 13:34:57 +0000
commit66d48b0ac25c85de354f26782a377d0ad91bd322 (patch)
tree973a2c30fa6609a8fa10b7d99c150ef476f7b142 /audio/ipc.h
parentdf235d1f395b10654024979180c778777bd50c71 (diff)
Code cleanup.
Diffstat (limited to 'audio/ipc.h')
-rw-r--r--audio/ipc.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/audio/ipc.h b/audio/ipc.h
index d340d15e..e56dca24 100644
--- a/audio/ipc.h
+++ b/audio/ipc.h
@@ -40,8 +40,8 @@
/* Packet types */
#define PKT_TYPE_CFG_REQ 0
#define PKT_TYPE_CFG_RSP 1
-#define PKT_TYPE_STATUS_REQ 2
-#define PKT_TYPE_STATUS_RSP 3
+#define PKT_TYPE_STATE_REQ 2
+#define PKT_TYPE_STATE_RSP 3
#define PKT_TYPE_CTL_REQ 4
#define PKT_TYPE_CTL_RSP 5
#define PKT_TYPE_CTL_NTFY 6
@@ -75,13 +75,14 @@ struct ipc_data_cfg {
} __attribute__ ((packed));
/* Device status */
-#define STATUS_DISCONNECTED 0
-#define STATUS_CONNECTING 1
-#define STATUS_CONNECTED 2
-#define STATUS_STREAMING 3
+#define STATE_DISCONNECTED 0
+#define STATE_CONNECTING 1
+#define STATE_CONNECTED 2
+#define STATE_STREAM_STARTING 3
+#define STATE_STREAMING 4
-struct ipc_data_status {
- uint8_t status; /* Stream status */
+struct ipc_data_state {
+ uint8_t state; /* Stream state */
} __attribute__ ((packed));
#define CTL_MODE_PLAYBACK 0