move defines for VOLUME_MIN and VOLUME_MAX to their correct place (mas35xx.h)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17214 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7510335fc4
commit
365c3b90b8
2 changed files with 12 additions and 7 deletions
|
@ -24,7 +24,16 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#if CONFIG_CODEC == MAS3507D
|
||||
#if CONFIG_CODEC != MAS3507D
|
||||
|
||||
#define VOLUME_MIN -400
|
||||
#define VOLUME_MAX 600
|
||||
|
||||
#else /* CONFIG_CODEC == MAS3507D */
|
||||
|
||||
#define VOLUME_MIN -780
|
||||
#define VOLUME_MAX 180
|
||||
|
||||
static const unsigned int bass_table[] =
|
||||
{
|
||||
0x9e400, /* -15dB */
|
||||
|
|
|
@ -35,12 +35,8 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if CONFIG_CODEC == MAS3507D /* volume/balance/treble/bass interdependency */
|
||||
#define VOLUME_MIN -780
|
||||
#define VOLUME_MAX 180
|
||||
#elif !defined(VOLUME_MIN) && !defined(VOLUME_MAX)
|
||||
#define VOLUME_MIN -400
|
||||
#define VOLUME_MAX 600
|
||||
#if !defined(VOLUME_MIN) && !defined(VOLUME_MAX)
|
||||
#error define for VOLUME_MIN and VOLUME_MAX is missing
|
||||
#endif
|
||||
|
||||
/* volume/balance/treble/bass interdependency main part */
|
||||
|
|
Loading…
Reference in a new issue