Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#8747 - Show an "USB Audio" device on plugin instead of an unknown "charging only" device

Attached to Project: Rockbox
Opened by Frank Gevaerts (fg) - Sunday, 16 March 2008, 23:13 GMT+2
Last edited by Frank Gevaerts (fg) - Thursday, 03 July 2008, 21:50 GMT+2
Task Type Patches
Category Drivers
Status Unconfirmed
Assigned To No-one
Player type PortalPlayer-based
Severity Low
Priority Normal
Reported Version current build
Due in Version Version 3.0
Due Date Undecided
Percent Complete 0%
Private No

Details

This patch changes the way rockbox presents itself to the host OS on plugin when connecting in "charging only" mode (i.e. when holding the correct button while pluging in).

The old way was to present a "vendor specific" interface, which causes at least Windows to prompt for drivers (which confuses users despite it being mentioned in the manual).

The new way is to present a USB audio device without any host-controllable parts. On linux (at least without gnome or HAL or similar running) it doesn't change much. On Windows XP, the OS doesn't ask for a driver any more, and the only way the user can see it's a USB audio device (and thus maybe get confused) is during one or two seconds while it's shown in the "new hardware found" popup near the taskbar, or using the device manager.

I think it is a clean way to achieve a non-interacting device while only charging, but it needs testing on more platforms.
This task depends upon

Comment by harry tu (bookshare) - Tuesday, 18 March 2008, 04:57 GMT+2
I know from experience, on my ds40 when it is set that way the sound output goes through it's speaker on connect; windows xp detects it as such and makes it's sound go that way. Does the patch handle this problem?
Comment by Frank Gevaerts (fg) - Tuesday, 18 March 2008, 10:30 GMT+2
It doesn't create the problem in the first place. The current patch does not implement speaker functionality at all, so windows doesn't see a speaker. If and when we have "real" usb audio support (i.e. support for using the mic and headphones from the PC) it will be possible to switch it on and off.
Comment by Phil Light (phillight) - Thursday, 20 March 2008, 21:29 GMT+2
Audio device appears as expected in linux and WinXP. Vista initially failed to find a driver, but one was available on Windows Update.

One problem though: when using this patch, the SD slot (e200) no longer appears on either linux or windows.
Comment by MichaelGiacomelli (saratoga) - Thursday, 27 March 2008, 20:19 GMT+2
Phil Light: It doesn't show up in the current builds either because its not enabled yet.
Comment by Phil Light (phillight) - Thursday, 27 March 2008, 21:24 GMT+2
saratoga: I meant that the SD slot no longer appears when compiled with #define USE_ROCKBOX_USB, as it does with svn with that defined.
Comment by Frank Gevaerts (fg) - Wednesday, 07 May 2008, 22:27 GMT+2
The basic infrastructure part of this is merged by now. This new patch only adds the actual usb audio class driver.
I haven't tested this since a while, just synced with trunk (r17404), but it should still work.
Comment by Frank Gevaerts (fg) - Tuesday, 08 July 2008, 22:27 GMT+2
This has a pretty big delta, and there is a very real chance that a dummy HID implementation would be a lot more compatible, so it's probably best not to be too hasty with this

Loading...