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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Digital out via USB?
« previous next »
  • Print
Pages: [1]

Author Topic: Digital out via USB?  (Read 2398 times)

Offline ThoseThingsEverybodyHates

  • Member
  • *
  • Posts: 2
Digital out via USB?
« on: November 19, 2016, 10:40:56 PM »
Is it currently possible to use any Rockbox platform to send digital data down the USB to be used by an external DAC, such as a Chord Mojo? As far as I've found, this kind of "digital transport" is hardly ever seen except on ridiculously expensive players ($500+) and I can't th!ink of any technical roadblocks.

If not in existence already, is there any reason why its not feasable? Is asynchronous data transfer proprietary in any way?

If this could be done, I see it as nothing short of a game-changer. Imagine if every clip zip or nano, paired with Mojo or GOV2+ became a complete world-class portable hifi system. That's the future I want to live in!

P.s. I will volunteer myself and my Mojo to help in any way we can! Plus my GOV2+ if I can ever vet it fixed...
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9140
Re: Digital out via USB?
« Reply #1 on: November 20, 2016, 01:01:09 AM »
No digital out is not supported. There is no technical reason it can't be done.
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Digital out via USB?
« Reply #2 on: November 20, 2016, 05:26:48 PM »
There are actually a couple of technical reasons why this isn't deployed.

This was kinda approached in FS#11108 and further expanded upon in /pamaury/rockbox/tree/usb-api.

This lays the groundwork for isochronous transfer over USB and attempts to overcome some timing/queuing issues but much work remains. It is not exactly what you want to achieve, but it definitely lays the groundwork to achieving it. In the current state it "only" (quoted because this is a huge achievement) deploys a test driver for isochronous transfer and the ability for a Rockbox device to enumerate as a USB soundcard. It is limited to *nix based distributions that support the usbaudio driver.

If you were wanting to resume this work and expand upon it (much has changed in usb.c and various target USb drivers), this is where you would start. I make the distinction that this is where you would start, because there is no work ongoing on this from any active developer.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline ThoseThingsEverybodyHates

  • Member
  • *
  • Posts: 2
Re: Digital out via USB?
« Reply #3 on: November 21, 2016, 05:16:01 PM »
Thanks Saint, exactly what I was looking for!
Logged

Offline pamaury

  • Developer
  • Member
  • *
  • Posts: 508
Re: Digital out via USB?
« Reply #4 on: November 21, 2016, 05:55:33 PM »
Hi,
adding my two cents. The latest version of the usb audio experiment is here:
http://gerrit.rockbox.org/r/#/c/1009/
It is not actually linux specific, it enumerates fine with windows, but does not work when sending audio data (actually it does not work really work linux either). The reason why I think it does not work is because a proper usb audio interface has to proper timing information via a isochronous IN pipe, which is not trivial to do and not done by the driver. Windows doesn't like it, and linux go along without and but it craps out quickly. Also the work only changes one particular driver (ARC) but it shouldn't be (too) hard to add support for others.
Logged
Please don't PM me, use our IRC channel instead.

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Digital out via USB?
« Reply #5 on: November 21, 2016, 06:23:17 PM »
Quote from: pamaury on November 21, 2016, 05:55:33 PM
It is not actually linux specific, it enumerates fine with windows

Thank you for this correction, I was not aware of this, and I appreciate it.

Has this always been the case? I have not played with this since its inception, shortly before it was deployed as FS#11108.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline pamaury

  • Developer
  • Member
  • *
  • Posts: 508
Re: Digital out via USB?
« Reply #6 on: November 24, 2016, 04:53:15 AM »
Yes it was the case from the beginning, since, as far as I know, Windows has had support for USB Audio 1.0 for a long time now (not sure sure about USB Audio 2.0).
At least that's what I remember but it was a long time ago. Then again, there is a long way between enumerating and reliably playing sound ;)
Logged
Please don't PM me, use our IRC channel instead.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Digital out via USB?
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.094 seconds with 22 queries.