From 6c868dd48feb23042576119b3052f9c88280d464 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 7 Dec 2017 13:21:57 -0500 Subject: 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 --- lib/rbcodec/test/warble.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/rbcodec/test') diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c index a203d6f1da..cb7a85ff25 100644 --- a/lib/rbcodec/test/warble.c +++ b/lib/rbcodec/test/warble.c @@ -108,7 +108,7 @@ static const char *config = ""; static uint32_t playback_vol_factor = VOL_FACTOR_UNITY; static int input_fd; -static enum codec_command_action codec_action; +static long codec_action; static intptr_t codec_action_param = 0; static unsigned long num_output_samples = 0; static struct codec_api ci; @@ -606,9 +606,9 @@ static void ci_configure(int setting, intptr_t value) } } -static enum codec_command_action ci_get_command(intptr_t *param) +static long ci_get_command(intptr_t *param) { - enum codec_command_action ret = codec_action; + long ret = codec_action; *param = codec_action_param; codec_action = CODEC_ACTION_NULL; return ret; -- cgit v1.2.3