diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-06-14 20:36:26 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-06-14 20:36:26 +0000 |
commit | 5ed2a3ba745856206c66d8ecb98afb8a1f9ec7b5 (patch) | |
tree | b158176d2c90868417f8611f0491a14ce5726ad2 /audio/ipc.h | |
parent | 9d1a7f6c590fc40315f74e710e88bcda85d7f7ba (diff) |
Initial support for audio control plugin and some code cleanups.
Diffstat (limited to 'audio/ipc.h')
-rw-r--r-- | audio/ipc.h | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/audio/ipc.h b/audio/ipc.h index 409abfda..d340d15e 100644 --- a/audio/ipc.h +++ b/audio/ipc.h @@ -44,6 +44,7 @@ #define PKT_TYPE_STATUS_RSP 3 #define PKT_TYPE_CTL_REQ 4 #define PKT_TYPE_CTL_RSP 5 +#define PKT_TYPE_CTL_NTFY 6 /* Errors codes */ #define PKT_ERROR_NONE 0 @@ -83,21 +84,26 @@ struct ipc_data_status { uint8_t status; /* Stream status */ } __attribute__ ((packed)); +#define CTL_MODE_PLAYBACK 0 +#define CTL_MODE_CAPTURE 1 +#define CTL_MODE_GENERAL 2 + /* Supported control operations */ -#define DATA_CTL_POWER 0x40 -#define DATA_CTL_VOL_UP 0x41 -#define DATA_CTL_VOL_DOWN 0x42 -#define DATA_CTL_MUTE 0x43 -#define DATA_CTL_PLAY 0x44 -#define DATA_CTL_STOP 0x45 -#define DATA_CTL_PAUSE 0x46 -#define DATA_CTL_RECORD 0x47 -#define DATA_CTL_REWIND 0x48 -#define DATA_CTL_FAST_FORWARD 0x49 -#define DATA_CTL_EJECT 0x4A -#define DATA_CTL_FORWARD 0x4B -#define DATA_CTL_BACKWARD 0x4C +#define CTL_KEY_POWER 0x40 +#define CTL_KEY_VOL_UP 0x41 +#define CTL_KEY_VOL_DOWN 0x42 +#define CTL_KEY_MUTE 0x43 +#define CTL_KEY_PLAY 0x44 +#define CTL_KEY_STOP 0x45 +#define CTL_KEY_PAUSE 0x46 +#define CTL_KEY_RECORD 0x47 +#define CTL_KEY_REWIND 0x48 +#define CTL_KEY_FAST_FORWARD 0x49 +#define CTL_KEY_EJECT 0x4A +#define CTL_KEY_FORWARD 0x4B +#define CTL_KEY_BACKWARD 0x4C struct ipc_data_ctl { - uint8_t operation; /* Operation ID */ + uint8_t mode; /* Control Mode */ + uint8_t key; /* Control Key */ } __attribute__ ((packed)); |