Sansa Clip+: detect AMSv2 variant (just like was already done for fuze v2), this makes SD transfers work for newer clip+ players ("COMBO4E" type). Variable fuzev2_variant has been renamed to amsv2_variant.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27520 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-07-22 13:47:09 +00:00
parent 1ebdb8988f
commit 4d6c816721
6 changed files with 25 additions and 25 deletions

View file

@ -39,7 +39,7 @@ bool _backlight_init(void)
ascodec_write_pmu(AS3543_BACKLIGHT, 2, backlight_brightness * 10);
/* needed for button light */
if (fuzev2_variant == 1)
if (amsv2_variant == 1)
ascodec_write_pmu(0x1a, 1, 0x30); /* MUX_PWGD = PWM */
return true;
@ -63,7 +63,7 @@ void _backlight_off(void)
void _buttonlight_on(void)
{
if (fuzev2_variant == 0)
if (amsv2_variant == 0)
{
GPIOB_DIR |= 1<<5;
GPIOB_PIN(5) = (1<<5);
@ -77,7 +77,7 @@ void _buttonlight_on(void)
void _buttonlight_off(void)
{
if (fuzev2_variant == 0)
if (amsv2_variant == 0)
{
GPIOB_PIN(5) = 0;
GPIOB_DIR &= ~(1<<5);

View file

@ -257,7 +257,7 @@ int button_read_device(void)
btn |= BUTTON_RIGHT;
if (GPIOB_PIN(1) & 1<<1)
btn |= BUTTON_HOME;
if (fuzev2_variant == 1)
if (amsv2_variant == 1)
btn ^= BUTTON_HOME;
if (gpiod6 & 1<<6)