diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 7739915162..79e7c8f4e3 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1492,11 +1492,17 @@ static bool dbg_sound(void) | |||
1492 | lcd_setmargins(0, 0); | 1492 | lcd_setmargins(0, 0); |
1493 | #endif | 1493 | #endif |
1494 | 1494 | ||
1495 | /* Narrow stereo */ | 1495 | /* Normal stereo */ |
1496 | ll = 0xa0000; | 1496 | ll = 0x80000; |
1497 | lr = 0xe0000; | 1497 | lr = 0x00000; |
1498 | rr = 0xa0000; | 1498 | rr = 0x80000; |
1499 | rl = 0xe0000; | 1499 | rl = 0x00000; |
1500 | |||
1501 | /* Set the MDB to the Archos "flat" setting, but not activated */ | ||
1502 | mas_codec_writereg(MAS_REG_KMDB_STR, 0); | ||
1503 | mas_codec_writereg(MAS_REG_KMDB_HAR, 0x3000); | ||
1504 | mas_codec_writereg(MAS_REG_KMDB_FC, 0x0600); | ||
1505 | mas_codec_writereg(MAS_REG_KMDB_SWITCH, 0); | ||
1500 | 1506 | ||
1501 | while(!done) | 1507 | while(!done) |
1502 | { | 1508 | { |
@@ -1512,9 +1518,10 @@ static bool dbg_sound(void) | |||
1512 | snprintf(buf, sizeof buf, "LL: -%d.%02d (%05x)", i, d % 100, ll); | 1518 | snprintf(buf, sizeof buf, "LL: -%d.%02d (%05x)", i, d % 100, ll); |
1513 | lcd_puts(0, 0, buf); | 1519 | lcd_puts(0, 0, buf); |
1514 | 1520 | ||
1515 | d = 200 - lr * 100 / 0x80000; | 1521 | d = - lr * 100 / 0x80000; |
1516 | i = d / 100; | 1522 | i = d / 100; |
1517 | snprintf(buf, sizeof buf, "LR: -%d.%02d (%05x)", i, d % 100, lr); | 1523 | snprintf(buf, sizeof buf, "LR: -%d.%02d (%05x)", i, d % 100, |
1524 | lr & 0x000fffff); | ||
1518 | lcd_puts(0, 1, buf); | 1525 | lcd_puts(0, 1, buf); |
1519 | 1526 | ||
1520 | #ifdef HAVE_MAS3587F | 1527 | #ifdef HAVE_MAS3587F |
@@ -1571,6 +1578,10 @@ static bool dbg_sound(void) | |||
1571 | val = mas_codec_readreg(MAS_REG_KLOUDNESS); | 1578 | val = mas_codec_readreg(MAS_REG_KLOUDNESS); |
1572 | val ^= 0x0004; | 1579 | val ^= 0x0004; |
1573 | mas_codec_writereg(MAS_REG_KLOUDNESS, val); | 1580 | mas_codec_writereg(MAS_REG_KLOUDNESS, val); |
1581 | if(val) | ||
1582 | mas_codec_writereg(MAS_REG_KMDB_SWITCH, 0x0902); | ||
1583 | else | ||
1584 | mas_codec_writereg(MAS_REG_KMDB_SWITCH, 0); | ||
1574 | break; | 1585 | break; |
1575 | #endif | 1586 | #endif |
1576 | } | 1587 | } |