forked from len0rd/rockbox
Added Super Bass switch to the sound test debug screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4434 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f95e03bc58
commit
3a7d397f20
1 changed files with 21 additions and 0 deletions
|
|
@ -1478,6 +1478,10 @@ static bool dbg_sound(void)
|
||||||
bool set = true;
|
bool set = true;
|
||||||
long ll, lr, rr, rl;
|
long ll, lr, rr, rl;
|
||||||
int d, i;
|
int d, i;
|
||||||
|
#ifdef HAVE_MAS3587F
|
||||||
|
long superbass;
|
||||||
|
long val;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
lcd_setmargins(0, 0);
|
lcd_setmargins(0, 0);
|
||||||
|
|
@ -1492,6 +1496,11 @@ static bool dbg_sound(void)
|
||||||
while(!done)
|
while(!done)
|
||||||
{
|
{
|
||||||
int button;
|
int button;
|
||||||
|
|
||||||
|
#ifdef HAVE_MAS3587F
|
||||||
|
superbass = mas_codec_readreg(MAS_REG_KLOUDNESS) & 0x0004;
|
||||||
|
#endif
|
||||||
|
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
d = 200 - ll * 100 / 0x80000;
|
d = 200 - ll * 100 / 0x80000;
|
||||||
i = d / 100;
|
i = d / 100;
|
||||||
|
|
@ -1503,6 +1512,10 @@ static bool dbg_sound(void)
|
||||||
snprintf(buf, sizeof buf, "LR: -%d.%02d (%05x)", i, d % 100, lr);
|
snprintf(buf, sizeof buf, "LR: -%d.%02d (%05x)", i, d % 100, lr);
|
||||||
lcd_puts(0, 1, buf);
|
lcd_puts(0, 1, buf);
|
||||||
|
|
||||||
|
#ifdef HAVE_MAS3587F
|
||||||
|
if(superbass)
|
||||||
|
lcd_puts(0, 2, "Super Bass");
|
||||||
|
#endif
|
||||||
lcd_update();
|
lcd_update();
|
||||||
|
|
||||||
/* Wait for a key to be pushed */
|
/* Wait for a key to be pushed */
|
||||||
|
|
@ -1547,6 +1560,14 @@ static bool dbg_sound(void)
|
||||||
|
|
||||||
set = !set;
|
set = !set;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef HAVE_MAS3587F
|
||||||
|
case BUTTON_ON:
|
||||||
|
val = mas_codec_readreg(MAS_REG_KLOUDNESS);
|
||||||
|
val ^= 0x0004;
|
||||||
|
mas_codec_writereg(MAS_REG_KLOUDNESS, val);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if(set)
|
if(set)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue