summaryrefslogtreecommitdiff
path: root/lib/rbcodec/dsp/tdspeed.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/tdspeed.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/tdspeed.c')
-rw-r--r--lib/rbcodec/dsp/tdspeed.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rbcodec/dsp/tdspeed.c b/lib/rbcodec/dsp/tdspeed.c
index 7a9d818f19..88d057560c 100644
--- a/lib/rbcodec/dsp/tdspeed.c
+++ b/lib/rbcodec/dsp/tdspeed.c
@@ -521,8 +521,7 @@ static intptr_t tdspeed_new_format(struct dsp_proc_entry *this,
521 (void)this; 521 (void)this;
522} 522}
523 523
524static void tdspeed_dsp_init(struct tdspeed_state_s *st, 524static void tdspeed_dsp_init(struct tdspeed_state_s *st, unsigned int dsp_id)
525 enum dsp_ids dsp_id)
526{ 525{
527 /* everything is at 100% until dsp_set_timestretch is called with 526 /* everything is at 100% until dsp_set_timestretch is called with
528 some other value and timestretch is enabled at the time */ 527 some other value and timestretch is enabled at the time */
@@ -543,7 +542,7 @@ static intptr_t tdspeed_configure(struct dsp_proc_entry *this,
543 switch (setting) 542 switch (setting)
544 { 543 {
545 case DSP_INIT: 544 case DSP_INIT:
546 tdspeed_dsp_init(st, (enum dsp_ids)value); 545 tdspeed_dsp_init(st, value);
547 break; 546 break;
548 547
549 case DSP_FLUSH: 548 case DSP_FLUSH: