summaryrefslogtreecommitdiff
path: root/lib/rbcodec/dsp/resample.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-12-03 15:24:41 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-12-22 18:00:37 -0500
commit34a092a99729dd4de014aa1f76c48660f28a9c97 (patch)
tree40bd89c62bb6b1b7da10ede5a744b83c9c29bee5 /lib/rbcodec/dsp/resample.c
parentb96b7640de381757c5ceac182e01bc84f668e64a (diff)
downloadrockbox-34a092a99729dd4de014aa1f76c48660f28a9c97.tar.gz
rockbox-34a092a99729dd4de014aa1f76c48660f28a9c97.zip
rbcodec dsp: Replace enum dsp_ids arguments with unsigned int
Because casting to and from "enum dsp_id" just adds noise, change everything to unsigned int. Change-Id: I52a7ae55f406e673d5b811b29657fcdc4b62ab10
Diffstat (limited to 'lib/rbcodec/dsp/resample.c')
-rw-r--r--lib/rbcodec/dsp/resample.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rbcodec/dsp/resample.c b/lib/rbcodec/dsp/resample.c
index a583f60a55..77e1c5e0e5 100644
--- a/lib/rbcodec/dsp/resample.c
+++ b/lib/rbcodec/dsp/resample.c
@@ -262,8 +262,7 @@ static intptr_t resample_new_format(struct dsp_proc_entry *this,
262 return PROC_NEW_FORMAT_DEACTIVATED; 262 return PROC_NEW_FORMAT_DEACTIVATED;
263} 263}
264 264
265static void resample_dsp_init(struct dsp_config *dsp, 265static void resample_dsp_init(struct dsp_config *dsp, unsigned int dsp_id)
266 enum dsp_ids dsp_id)
267{ 266{
268 int32_t *lbuf, *rbuf; 267 int32_t *lbuf, *rbuf;
269 268
@@ -280,7 +279,7 @@ static void resample_dsp_init(struct dsp_config *dsp,
280 279
281 default: 280 default:
282 /* huh? */ 281 /* huh? */
283 DEBUGF("DSP_PROC_RESAMPLE- unknown DSP %d\n", (int)dsp_id); 282 DEBUGF("DSP_PROC_RESAMPLE- unknown DSP %u\n", dsp_id);
284 return; 283 return;
285 } 284 }
286 285
@@ -312,7 +311,7 @@ static intptr_t resample_configure(struct dsp_proc_entry *this,
312 switch (setting) 311 switch (setting)
313 { 312 {
314 case DSP_INIT: 313 case DSP_INIT:
315 resample_dsp_init(dsp, (enum dsp_ids)value); 314 resample_dsp_init(dsp, value);
316 break; 315 break;
317 316
318 case DSP_FLUSH: 317 case DSP_FLUSH: