diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-03 15:24:41 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-22 18:00:37 -0500 |
commit | 34a092a99729dd4de014aa1f76c48660f28a9c97 (patch) | |
tree | 40bd89c62bb6b1b7da10ede5a744b83c9c29bee5 /lib/rbcodec/dsp/dsp_sample_input.c | |
parent | b96b7640de381757c5ceac182e01bc84f668e64a (diff) | |
download | rockbox-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/dsp_sample_input.c')
-rw-r--r-- | lib/rbcodec/dsp/dsp_sample_input.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rbcodec/dsp/dsp_sample_input.c b/lib/rbcodec/dsp/dsp_sample_input.c index 8068ce5097..06ce11fab7 100644 --- a/lib/rbcodec/dsp/dsp_sample_input.c +++ b/lib/rbcodec/dsp/dsp_sample_input.c | |||
@@ -242,8 +242,7 @@ void dsp_sample_input_flush(struct sample_io_data *this) | |||
242 | this->sample_buf.remcount = 0; | 242 | this->sample_buf.remcount = 0; |
243 | } | 243 | } |
244 | 244 | ||
245 | void dsp_sample_input_init(struct sample_io_data *this, | 245 | void dsp_sample_input_init(struct sample_io_data *this, unsigned int dsp_id) |
246 | enum dsp_ids dsp_id) | ||
247 | { | 246 | { |
248 | int32_t *lbuf, *rbuf; | 247 | int32_t *lbuf, *rbuf; |
249 | 248 | ||
@@ -260,7 +259,7 @@ void dsp_sample_input_init(struct sample_io_data *this, | |||
260 | 259 | ||
261 | default: | 260 | default: |
262 | /* orly */ | 261 | /* orly */ |
263 | DEBUGF("DSP Input- unknown dsp %d\n", (int)dsp_id); | 262 | DEBUGF("DSP Input- unknown dsp %u\n", dsp_id); |
264 | return; | 263 | return; |
265 | } | 264 | } |
266 | 265 | ||