Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Fuze and Griffin Dock line out
« previous next »
  • Print
Pages: 1 ... 3 4 [5]

Author Topic: Fuze and Griffin Dock line out  (Read 33771 times)

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Fuze and Griffin Dock line out
« Reply #60 on: December 03, 2011, 04:22:39 PM »
Quote from: esm on December 03, 2011, 02:21:38 PM
Quote from: saratoga on December 03, 2011, 01:30:18 PM
Booting into the original firmware is actually by design since USB is very unstable in rockbox on your player.

Understood. To clarify my earlier post, I don't necessarily want to boot in USB mass storage mode. I want Rockbox to detect the car adapter.

I don't think its possible to detect if its a charger or USB at that point. We're basically just patching the sandisk bootloader, so we have no hope of getting the USB controller working and checking if anything is listening on the wire.   Once USB is working, this won't matter though, since we'll always boot into rockbox.  On the Fuze v1 car adapter mode works fine for this reason.

Quote from: esm on December 03, 2011, 02:21:38 PM
Quote
Regarding line out, I always thought it was detected by one of the dbop in pins

Will check those as soon as I have time. Thanks for the suggestion.

FWIW I don't remember if we have the fuzev2 setup to read from DBOP, but the fuze v1 does, so you could probably look at that.  ITs not the same processor, but fairly similar. 
Logged

Offline esm

  • Member
  • *
  • Posts: 11
Re: Fuze and Griffin Dock line out
« Reply #61 on: December 03, 2011, 04:49:43 PM »
Quote from: saratoga on December 03, 2011, 04:22:39 PM
I don't think its possible to detect if its a charger or USB at that point. [...] we have no hope of getting the USB controller working and checking if anything is listening on the wire.

Oh. I interpret that as: the difference between the car adapter plug and the Fuze-to-computer plug is a protocol one, not a difference in the connectors themselves. Is that the case?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Fuze and Griffin Dock line out
« Reply #62 on: December 03, 2011, 05:05:24 PM »
Quote from: esm on December 03, 2011, 04:49:43 PM
Quote from: saratoga on December 03, 2011, 04:22:39 PM
I don't think its possible to detect if its a charger or USB at that point. [...] we have no hope of getting the USB controller working and checking if anything is listening on the wire.

Oh. I interpret that as: the difference between the car adapter plug and the Fuze-to-computer plug is a protocol one, not a difference in the connectors themselves. Is that the case?

I think all you have is a GPIO pin on the power supply line, and the USB controller.  So short of powering up the USB controller and checking to see if its errored out while connecting, theres no good way to figure out if a voltage on the power line is from a charger or an actual USB host.

(At least I'm pretty sure.  Its possible theres some way to get the usb controller or PMU ADC to measure an impedance or something across the USB data lines, but I don't recall seeing anything about that.  Even if there is you probably can't safely access them from within the sandisk bootloader)
Logged

Offline esm

  • Member
  • *
  • Posts: 11
Re: Fuze and Griffin Dock line out
« Reply #63 on: December 03, 2011, 05:28:32 PM »
Quote from: saratoga on December 03, 2011, 05:05:24 PM
[...] So short of powering up the USB controller and checking to see if its errored out while connecting, theres no good way to figure out if a voltage on the power line is from a charger or an actual USB host.

Foo. Okay... sounds like I was on a wild-goose chase. Thank you for setting me straight. I'll read up on the USB patch thread, see if there's something I can test or help with there.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Fuze and Griffin Dock line out
« Reply #64 on: December 03, 2011, 05:31:10 PM »
Quote from: esm on December 03, 2011, 05:28:32 PM
Quote from: saratoga on December 03, 2011, 05:05:24 PM
[...] So short of powering up the USB controller and checking to see if its errored out while connecting, theres no good way to figure out if a voltage on the power line is from a charger or an actual USB host.

Foo. Okay... sounds like I was on a wild-goose chase. Thank you for setting me straight. I'll read up on the USB patch thread, see if there's something I can test or help with there.

If you just want to use that adapter, its probably enough to disable booting to the OF on USB insertion (you can still do it manually with the button key), and then apply that patch to force line out on all the time. 

That said if you're interested in figuring out how to autodetect line out, that would be great too.
Logged

Offline esm

  • Member
  • *
  • Posts: 11
Re: Fuze and Griffin Dock line out
« Reply #65 on: December 07, 2011, 09:14:51 PM »
New datapoint. I built r31159 + USB enabled (manually in sansafuzev2.h) + lineout patch. Here is the promising behavior I notice:

  • USB to computer: works as expected (giant USB plug on Fuze screen, Gentoo recognizes internal + MicroSD cards as sdb and sdc)
  • Plugging in Griffin iTrip car adapter: a small hollow USB plug appears in the top left of the screen but Rockbox is otherwise unaffected, i.e. the giant full-screen USB plug does not appear and all menus respond.

tenfoot's wonderful lineout patch works, sort of: it does not seem to survive a restart (the Yes setting does, but actual lineout functionality does not) so there's no actual sound until I navigate to Settings > General Settings > System > Line Out and then press Select ("Yes" is already highlighted). I think it should be possible to enable/disable Line Out by sensing USB. I hope to look into that this weekend as time allows.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Fuze and Griffin Dock line out
« Reply #66 on: December 07, 2011, 09:31:51 PM »
Just checking for external power will mess up charging during playback (i.e with an AC adapter).

Edit:  I guess that might be good enough for you though if you just want to hack together car mode.
« Last Edit: December 07, 2011, 09:35:46 PM by saratoga »
Logged

Offline esm

  • Member
  • *
  • Posts: 11
Re: Fuze and Griffin Dock line out
« Reply #67 on: December 22, 2011, 10:45:27 AM »
Quote from: saratoga on December 07, 2011, 09:31:51 PM
Just checking for external power will mess up charging during playback [...] I guess that might be good enough for you though.

For my purposes, it is. But it obviously isn't acceptable for production code.

I'm still willing and able to fiddle with this thing, build/test custom images, to try to get this working properly. It's just that I'm out of ideas on what to check for.
Logged

Offline chyron8472

  • Member
  • *
  • Posts: 2
Re: Fuze and Griffin Dock line out
« Reply #68 on: May 11, 2012, 07:50:02 PM »
sorry to necro, but is there a recent update on this?

I purchased iTrip Auto for my Fuze, and it works fine with OF but there is no sound with Rockbox.


I have Rockbox v.3.11.2 with a Fuze v2; OF v.2.03.33a

EDIT: oddly enough, my wife's rockboxed Fuze works fine and it's a v1 (OF v.1.02.31a) with Rockbox 3.9.1



Why doesn't my rockboxed v2 work?
« Last Edit: May 11, 2012, 08:11:16 PM by chyron8472 »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8966
Re: Fuze and Griffin Dock line out
« Reply #69 on: May 11, 2012, 09:55:45 PM »
Quote from: chyron8472 on May 11, 2012, 07:50:02 PM
sorry to necro, but is there a recent update on this?

I purchased iTrip Auto for my Fuze, and it works fine with OF but there is no sound with Rockbox.


I have Rockbox v.3.11.2 with a Fuze v2; OF v.2.03.33a

EDIT: oddly enough, my wife's rockboxed Fuze works fine and it's a v1 (OF v.1.02.31a) with Rockbox 3.9.1



Why doesn't my rockboxed v2 work?

The thing being discussed in this thread is how to make it work on the fuze v2.
Logged

  • Print
Pages: 1 ... 3 4 [5]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Fuze and Griffin Dock line out
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.125 seconds with 23 queries.