Rockbox Ports are now being developed for various digital audio players!
What about make it an option in the menu for now? Have it default to the current value, but make it an option for users to manually enable it without going through the trouble of compiling firmware. Add in the autodetect feature later.
I think the current "charging" mode is actually a runtime extension mode, which is used with external battery packs in order to reduce resistance losses in the batteries. (That is particularly a problem with alkaline batteries that have a high internal resistance.) I don't think overcurrent should be a problem since a properly designed power supply should protect itself from short circuits.
But isn't it really just a matter of reading the device ID resistor and interpreting its value? It looks like the code for that already exists based on what I've seen in the debug menu unless I got it confused with something else.
I guess it's Apple's fault for overcomplicating it. It should be designed so just apply voltage and it gets power. If the source cannot supply enough current, have it do the limiting. (I guess it's a good thing they did not do it with the 12v input!)
As a temporary solution, put it in the debug menu as an entry to temporarily enable charging. I think it is annoying to those who want to be able to use USB for charging. Then it would be unlikely for a novice to accidentally enable it (since it is in the debug menu) and it cannot be left on accidentally since it resets on reboot. But someone who understands what that does can use it without having to compile firmware. (I doubt the average user knows how to compile firmware.)
As a temporary solution, the releases boot to the OF on USB connection, which charges fine. The average user doesn't need to compile a patched build, because they are using the release.
Rockbox can already tell the difference between USB and a power supply.
It can't. It can detect the difference between a port with an active host and a port without. The lack of an active host does not imply a charger.
It detects that because active hosts enumerate the iPod and set up a USB connection. It's not detected by voltages.
That doesn't tell you the right thing either. You are assuming that anything which doesn't connect the data lines is a power supply. This is not acceptable as a default.I'm pretty sure it will work fine for your purposes once the charging rework is done.
Page created in 0.088 seconds with 14 queries.