This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7502 - Playing music while device is USB-plugged
Attached to Project:
Rockbox
Opened by Nicolas Martyanoff (galdor) - Sunday, 29 July 2007, 13:22 GMT+2
Last edited by Marc Guay (Marc_Guay) - Monday, 31 March 2008, 22:10 GMT+2
Opened by Nicolas Martyanoff (galdor) - Sunday, 29 July 2007, 13:22 GMT+2
Last edited by Marc Guay (Marc_Guay) - Monday, 31 March 2008, 22:10 GMT+2
|
DetailsOn 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, 22:10 GMT+2
Reason for closing: Duplicate
Additional comments about closing: Closing all feature requests.
Monday, 31 March 2008, 22:10 GMT+2
Reason for closing: Duplicate
Additional comments about closing: Closing all feature requests.
#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.
would be very nice if USB-Connection could work with rockbox on.