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_misc.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_misc.c')
-rw-r--r-- | lib/rbcodec/dsp/dsp_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbcodec/dsp/dsp_misc.c b/lib/rbcodec/dsp/dsp_misc.c index 83e577935b..8687abc06a 100644 --- a/lib/rbcodec/dsp/dsp_misc.c +++ b/lib/rbcodec/dsp/dsp_misc.c | |||
@@ -149,7 +149,7 @@ unsigned int dsp_get_output_frequency(struct dsp_config *dsp) | |||
149 | return dsp_configure(dsp, DSP_GET_OUT_FREQUENCY, 0); | 149 | return dsp_configure(dsp, DSP_GET_OUT_FREQUENCY, 0); |
150 | } | 150 | } |
151 | 151 | ||
152 | static void misc_dsp_init(struct dsp_config *dsp, enum dsp_ids dsp_id) | 152 | static void misc_dsp_init(struct dsp_config *dsp, unsigned int dsp_id) |
153 | { | 153 | { |
154 | /* Enable us for the audio DSP at startup */ | 154 | /* Enable us for the audio DSP at startup */ |
155 | if (dsp_id == CODEC_IDX_AUDIO) | 155 | if (dsp_id == CODEC_IDX_AUDIO) |
@@ -168,7 +168,7 @@ static intptr_t misc_handler_configure(struct dsp_proc_entry *this, | |||
168 | switch (setting) | 168 | switch (setting) |
169 | { | 169 | { |
170 | case DSP_INIT: | 170 | case DSP_INIT: |
171 | misc_dsp_init(dsp, (enum dsp_ids)value); | 171 | misc_dsp_init(dsp, value); |
172 | break; | 172 | break; |
173 | 173 | ||
174 | case DSP_PROC_CLOSE: | 174 | case DSP_PROC_CLOSE: |