summaryrefslogtreecommitdiff
path: root/code/fe310/eos/i2s.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-10-13 02:05:03 +0200
committerUros Majstorovic <majstor@majstor.org>2019-10-13 02:05:03 +0200
commit8c6c68e92d6b4c8aa5e2fcc784ed52da40845acc (patch)
tree0251bea9be01701c488f9d8719b52eeb2a64855d /code/fe310/eos/i2s.c
parent2a39fdf6d943f5738ba174368053a86304b0d8fa (diff)
net refactor; rename cmd -> type
Diffstat (limited to 'code/fe310/eos/i2s.c')
-rw-r--r--code/fe310/eos/i2s.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/code/fe310/eos/i2s.c b/code/fe310/eos/i2s.c
index 2ff465e..78bc2e6 100644
--- a/code/fe310/eos/i2s.c
+++ b/code/fe310/eos/i2s.c
@@ -77,14 +77,14 @@ static uint16_t _abuf_len(EOSABuf *buf) {
return buf->idx_w - buf->idx_r;
}
-static void audio_handler(unsigned char cmd, unsigned char *buffer, uint16_t len) {
- cmd = cmd & ~EOS_EVT_MASK;
+static void audio_handler(unsigned char type, unsigned char *buffer, uint16_t len) {
+ type = type & ~EOS_EVT_MASK;
- if (cmd < I2S_MAX_HANDLER) {
- evt_handler[cmd](cmd, buffer, len);
- _eos_i2s_evt_enable[cmd] = 1;
+ if (type < I2S_MAX_HANDLER) {
+ evt_handler[type](type, buffer, len);
+ _eos_i2s_evt_enable[type] = 1;
} else {
- eos_evtq_bad_handler(cmd, buffer, len);
+ eos_evtq_bad_handler(type, buffer, len);
}
}