forked from len0rd/rockbox
Sound settings rework: * Put all fixed parameters (unit, decimals, step, min, max, default, set function) for the individual settings into one structure array. * Use the new individual sound setting functions where appropriate. * Added dummy sound setting functions and defined the codec type for the sims. Fixes wrong sound settings ranges in the simulators. * Code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7770 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4d9be96a81
commit
8051a0b724
21 changed files with 250 additions and 333 deletions
|
|
@ -44,7 +44,7 @@ enum
|
|||
} mpeg_mode;
|
||||
#endif /* #ifdef MAS3587F */
|
||||
|
||||
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
||||
#if ((CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)) && !defined(SIMULATOR)
|
||||
extern unsigned long shadow_io_control_main;
|
||||
extern unsigned shadow_codec_reg0;
|
||||
#endif
|
||||
|
|
@ -258,7 +258,6 @@ static void setup_sci0(void)
|
|||
/* Enable Tx (only!) */
|
||||
SCR0 |= 0x20;
|
||||
}
|
||||
#endif /* SIMULATOR */
|
||||
|
||||
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
|
||||
static void init_playback(void)
|
||||
|
|
@ -323,6 +322,7 @@ static void init_playback(void)
|
|||
DEBUGF("MAS Decoding application started\n");
|
||||
}
|
||||
#endif /* #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) */
|
||||
#endif /* SIMULATOR */
|
||||
|
||||
void mp3_init(int volume, int bass, int treble, int balance, int loudness,
|
||||
int avc, int channel_config, int stereo_width,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue