forked from len0rd/rockbox
Gigabeat S: Allow recording from FM. Give FM the same volume range as playback. NOTE: This bumps the si4700 output volume to -0dB so other players with that may need a minor adjustment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19619 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9ac7af749b
commit
2e99b3d931
10 changed files with 454 additions and 166 deletions
|
|
@ -47,7 +47,6 @@ extern int si4700_st(void);
|
|||
#endif
|
||||
|
||||
#define SEEK_THRESHOLD 0x16
|
||||
#define TUNER_VOLUME 0xC
|
||||
|
||||
#define I2C_ADR 0x20
|
||||
|
||||
|
|
@ -332,10 +331,9 @@ static void si4700_sleep(int snooze)
|
|||
SYSCONFIG1_GPIO1 | SYSCONFIG1_GPIO2 |
|
||||
SYSCONFIG1_GPIO3);
|
||||
#endif
|
||||
/* -6dB volume, seek threshold 12 */
|
||||
si4700_write_masked(SYSCONFIG2,
|
||||
SYSCONFIG2_SKEETHw(SEEK_THRESHOLD) |
|
||||
SYSCONFIG2_VOLUMEw(TUNER_VOLUME),
|
||||
SYSCONFIG2_VOLUMEw(0xF),
|
||||
SYSCONFIG2_VOLUME | SYSCONFIG2_SEEKTH);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue