Unify 32mb and 64mb ipod video builds - FS#11580

Since memory on 32mb ipod videos is mapped twice, a 64mb build still has codecs and plugins mapped in a usable area. This means that all that needs to be done to support 32mb and 64mb boards with the same build is to adjust audiobufend to avoid using more than the actually present RAM.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27960 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2010-08-31 19:06:04 +00:00
parent b9201e3c6f
commit a1cf4ced83
7 changed files with 30 additions and 16 deletions

View file

@ -1601,12 +1601,10 @@ static bool view_battery(void)
lcd_putsf(0, 7, "Headphone: %s",
headphone ? "connected" : "disconnected");
#ifdef IPOD_VIDEO
x = (adc_read(ADC_4066_ISTAT) * 2400) /
#if MEM == 64
(1024 * 2);
#else
(1024 * 3);
#endif
if(probed_ramsize == 64)
x = (adc_read(ADC_4066_ISTAT) * 2400) / (1024 * 2);
else
x = (adc_read(ADC_4066_ISTAT) * 2400) / (1024 * 3);
lcd_putsf(0, 8, "Ibat: %d mA", x);
lcd_putsf(0, 9, "Vbat * Ibat: %d mW", x * y / 1000);
#endif