Rockbox

Tasklist

FS#7502 - Playing music while device is USB-plugged

Attached to Project: Rockbox
Opened by Nicolas Martyanoff (galdor) - Sunday, 29 July 2007, 11:22 GMT
Last edited by Marc Guay (Marc_Guay) - Monday, 31 March 2008, 20:10 GMT
Task Type Feature Requests
Category Battery/Charging
Status Closed
Assigned To No-one
Operating System iAudio X5
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

On iPod and HP3xx, you can play music while the device is USB-plugged to a computer, which allow not to empty out the battery. You activate this mode holding a button (Menu) while you plug the device.

But on iAudio X5, the is no USBPOWER_BTN_IGNORE defined, so you can't do this. It would be really useful to add this feature: why use battery when you have your laptop near ? (yes, laptop sound is terribly bad)
This task depends upon

Closed by  Bj√∂rn Stenberg (zagor)
Monday, 31 March 2008, 20:10 GMT
Reason for closing:  Duplicate
Additional comments about closing:  Closing all feature requests.
Comment by Nicolas Martyanoff (galdor) - Sunday, 29 July 2007, 14:03 GMT
I've looked at the source code of RockBox, and saw this:

#if CONFIG_KEYPAD == RECORDER_PAD
#define USBPOWER_BUTTON BUTTON_F1
#define USBPOWER_BTN_IGNORE BUTTON_ON
#elif CONFIG_KEYPAD == ONDIO_PAD
#define USBPOWER_BUTTON BUTTON_MENU
#define USBPOWER_BTN_IGNORE BUTTON_OFF
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
#define USBPOWER_BUTTON BUTTON_MENU
#define USBPOWER_BTN_IGNORE BUTTON_PLAY
#elif CONFIG_KEYPAD == IRIVER_H300_PAD
#define USBPOWER_BUTTON BUTTON_REC
#define USBPOWER_BTN_IGNORE BUTTON_ON
#elif CONFIG_KEYPAD == GIGABEAT_PAD
#define USBPOWER_BUTTON BUTTON_MENU
#define USBPOWER_BTN_IGNORE BUTTON_POWER
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
#define USBPOWER_BUTTON BUTTON_NONE
#define USBPOWER_BTN_IGNORE BUTTON_POWER
#elif CONFIG_KEYPAD == SANSA_E200_PAD
#define USBPOWER_BUTTON BUTTON_SELECT
#define USBPOWER_BTN_IGNORE BUTTON_POWER
#endif

Is it right to just add for example:

#elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD
# define USBPOWER_BTN_IGNORE BUTTON_PLAY

And after that, holding button play while plugging USB allow to play music during USB battery loading, isn't it ?

I'm not able to build a test for the moment (Gentoo's crossdev fails to build the cross-compilation chain you indicate on the wiki), but if it's just this, it's not a big deal to add to the CVS.
Comment by Linus Nielsen Feltzing (linusnielsen) - Monday, 30 July 2007, 08:26 GMT
The X5 charging is partly software controlled, and we haven't yet written the code necessary to handle the X5 battery charging in Rockbox. It is therefore not enough to edit the keymap to make it work properly.
Comment by Daniel (dogo) - Wednesday, 01 August 2007, 13:38 GMT
--Tracker Cleanup Week--
would be very nice if USB-Connection could work with rockbox on.

Comment by Jose Celestino (japc) - Tuesday, 04 September 2007, 20:18 GMT
Interesting and useful. Would this work on iriver HP1x0 ?
Comment by Diel Benjamin (Nordrassil) - Friday, 12 October 2007, 16:17 GMT
Realy interesting function, there's some possibilities that the development of this one succeeds?

Loading...