forked from len0rd/rockbox
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
This commit is contained in:
parent
b96b7640de
commit
34a092a997
9 changed files with 19 additions and 27 deletions
|
@ -262,8 +262,7 @@ static intptr_t resample_new_format(struct dsp_proc_entry *this,
|
|||
return PROC_NEW_FORMAT_DEACTIVATED;
|
||||
}
|
||||
|
||||
static void resample_dsp_init(struct dsp_config *dsp,
|
||||
enum dsp_ids dsp_id)
|
||||
static void resample_dsp_init(struct dsp_config *dsp, unsigned int dsp_id)
|
||||
{
|
||||
int32_t *lbuf, *rbuf;
|
||||
|
||||
|
@ -280,7 +279,7 @@ static void resample_dsp_init(struct dsp_config *dsp,
|
|||
|
||||
default:
|
||||
/* huh? */
|
||||
DEBUGF("DSP_PROC_RESAMPLE- unknown DSP %d\n", (int)dsp_id);
|
||||
DEBUGF("DSP_PROC_RESAMPLE- unknown DSP %u\n", dsp_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -312,7 +311,7 @@ static intptr_t resample_configure(struct dsp_proc_entry *this,
|
|||
switch (setting)
|
||||
{
|
||||
case DSP_INIT:
|
||||
resample_dsp_init(dsp, (enum dsp_ids)value);
|
||||
resample_dsp_init(dsp, value);
|
||||
break;
|
||||
|
||||
case DSP_FLUSH:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue