FS#8305 - c200: support docking stations with audio

Attached to Project: Rockbox
Opened by Jerry (vanbargw) - Wednesday, 12 December 2007, 03:44 GMT
Task Type Patches
Category Operating System/Drivers
Status Unconfirmed
Assigned To No-one
Operating System Sansa c200
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


When the c200 is docked (as detected by the charger discrete being active), switch to line out. This was necessary for the Griffen "iTrip Auto for Sansa" adapter to produce output. I would assume this is necessary for other docking stations.

This is *NOT* a perfect patch, but it is a start and is necessary to make docking stations with audio output work.

* I mute the headphone output, so plugging in a non-docking charger will prevent listening via the headphones while charging. Both can be enabled... if the charger is plugged in, it probably isn't an issue but that is what the Sansa firmware does.

* The charger/headphones detection is done only on power up. This is suboptimal, but usually "correct." A better technique would be to hook into the charger status announcements, but I don't have time right now. :-(
This task depends upon

View Dependency Graph

This task blocks these from closing
FS#8618 - Sansa C240 Dock Line Level Audio disabled
Comment by Jerry (vanbargw) - Thursday, 13 December 2007, 21:57 GMT
Patch attached.
Comment by Jerry (vanbargw) - Friday, 14 December 2007, 11:07 GMT
Patch attached.
Comment by Nate Byers (n8byers) - Monday, 18 February 2008, 04:42 GMT
Can this be added to the Current build please?
Comment by Nate Byers (n8byers) - Monday, 18 February 2008, 14:33 GMT
Any chance you could send me a compiled current release with patch incorporated? I don't have a development environment setup?
Comment by Jerry (vanbargw) - Monday, 16 June 2008, 00:52 GMT
Updated to work with code as of 2008-06-15