diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2017-12-07 13:21:57 -0500 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2017-12-07 14:41:59 -0500 |
| commit | 6c868dd48feb23042576119b3052f9c88280d464 (patch) | |
| tree | 5d10a6162da7a71f684b049e8f7d85ea564406c2 /apps/codec_thread.c | |
| parent | 83e8e35a5888e32b131d628b7516d0de1d73d760 (diff) | |
| download | rockbox-6c868dd48feb23042576119b3052f9c88280d464.zip rockbox-6c868dd48feb23042576119b3052f9c88280d464.tar.gz rockbox-6c868dd48feb23042576119b3052f9c88280d464.tar.bz2 rockbox-6c868dd48feb23042576119b3052f9c88280d464.tar.xz | |
Remove explicit 'enum codec_command_action' in codec API
Just use long so the compiler potentially doesn't complain about
use of other values not in the enum. It's also the type used
around the system for event ids.
Increase min codec API version.
No functional changes.
Change-Id: If4419b42912f5e4ef673adcdeb69313e503f94cc
Diffstat (limited to 'apps/codec_thread.c')
| -rw-r--r-- | apps/codec_thread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c index a1fa96d..b511809 100644 --- a/apps/codec_thread.c +++ b/apps/codec_thread.c @@ -349,8 +349,7 @@ static void codec_configure_callback(int setting, intptr_t value) dsp_configure(ci.dsp, setting, value); } -static enum codec_command_action - codec_get_command_callback(intptr_t *param) +static long codec_get_command_callback(intptr_t *param) { yield(); @@ -361,7 +360,7 @@ static enum codec_command_action be expected) */ while (1) { - enum codec_command_action action = CODEC_ACTION_NULL; + long action = CODEC_ACTION_NULL; struct queue_event ev; queue_peek(&codec_queue, &ev); /* Find out what it is */ |