Android phones and USB DACs
Oct 30, 2012 at 9:16 AM Post #676 of 9,526
Quote:
Add a cross against the iBasso DB2.
 
Tried different ROM,s and kernels but no luck at all. Waiting for a fix if possible.
 

danba is probably gonna ask you for some logs to see whats cooking.
 
Oct 30, 2012 at 10:01 AM Post #677 of 9,526
Quote:
Weird!
The Galaxy S3 can interwork with an ODAC using the same Tenor TE7022 USB controller and the same ESS Sabre ES9023 conversion chip.

Are you sure of your OTG USB cable? You could use a USB mouse to test it.
Does the HifiMeDiy Sabre USB DAC require too much power? You could use a powered USB hub to provide the required power for the HifiMeDiy Sabre USB DAC.
Could you replace the modded software by the stock software just for HifiMeDiy Sabre USB DAC interworking test purpose?
Could you provide a dmesg output? It should be interesting for Samsung developers to know what is going on between the Galaxy S3 and the HifiMeDiy Sabre USB DAC at the Linux kernel level.


 

Promised DanBa to do some stuff
 
Otg cable works with usb-drive and usb-stick
Didnt try a powered hub yet    ( any ideas on where to buy a nice tiny powered hub?)
reverted back to stock rom and kernell
Still no sound :frowning2:
the dmesg output can be downloaded here : https://www.dropbox.com/s/o4jzevl1r9neo6k/d.txt
 
 
Steef
 
Oct 30, 2012 at 3:43 PM Post #678 of 9,526
The host, Galaxy S3, successfully reads the configuration information from the USB device, USB DAC:
 
<6>[ 1230.889332] c0 usb 2-1: New USB device found, idVendor=1852, idProduct=7022
<6>[ 1230.889369] c0 usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 1230.889406] c0 usb 2-1: Product: HiFimeDIY DAC
<6>[ 1230.889431] c0 usb 2-1: Manufacturer: HiFimeDIY Audio 
<7>[ 1230.890699] c0 usb 2-1: configuration #1 chosen from 1 choice
<6>[ 1230.908584] c0 input: HiFimeDIY Audio  HiFimeDIY DAC as /devices/platform/s5p-ohci/usb2/2-1/2-1:1.0/input/input11
 
"Based on the configuration information and how the USB device will be used, the host assigns a
configuration value to the device. The device is now in the Configured state and all of the endpoints in
this configuration have taken on their described characteristics. The USB device may now draw the
amount of VBUS power described in its descriptor for the selected configuration."
 
But likely, the USB DAC should not have the required power from the Galaxy S3 and have some problem:
 
<7>[ 1248.056855] c1 hub 2-0:1.0: state 7 ports 3 chg 0000 evt 0002
<7>[ 1248.057011] c1 s5p-ohci s5p-ohci: GetStatus roothub.portstatus [0] = 0x00030100 PESC CSC PPS
<7>[ 1248.057189] c1 hub 2-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
<6>[ 1248.057348] c1 usb 2-1: USB disconnect, device number 2 by hub_thread+0x428/0x1478
 
#define RH_PS_PPS            0x00000100  /* port power status */
#define RH_PS_CSC            0x00010000  /* connect status change */
#define RH_PS_PESC           0x00020000  /* port enable status change */
https://github.com/sgs3/GT-I9300_Kernel/blob/master/drivers/usb/host/ohci.h#L295
 
The full speed OHCI driver of the Galaxy S3 detects the USB DAC connect status change, and the Galaxy S3 decides to disconnect.
 
 
Possible workaround: use the high speed EHCI driver of the Galaxy S3 by using a powered USB 2.0 hub like the tiny Belkin 4-Port Hi-Speed USB 2.0 Mobile Hub
http://www.amazon.com/Belkin-4-Port-Hi-Speed-Mobile-F5U404-BLK/dp/B000SAB34O/ref=sr_1_2?ie=UTF8&qid=1351624578&sr=8-2&keywords=belkin+4+port+usb+hub
 
 

 

http://www.nuvoton.com/hq/enu/ProductAndSales/ProductLines/IndustrialIC/ARMMicrocontroller/ARMMicrocontroller/Documents/APP-201-0013-USB.pdf
 
1. we won’t have the same full speed OHCI driver error because the high speed EHCI driver is involved with the USB 2.0 hub.
 
2. the USB DAC won’t have the power issue because it drains power from the powered USB hub.
 
 
The Belkin 4-Port Hi-Speed USB 2.0 Mobile Hub can be powered by the mains, or by a tiny battery on the go.
In the latter case, it could improve the sound quality because it provides a clean 5V.
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/165#post_8540151
 
Oct 30, 2012 at 4:25 PM Post #679 of 9,526
Tnx Danba!
 
Hope your work will help make Google & Android device manufacturers to enable standard USB audio!
 
i'll try a usb hub.
You mention "or a tiny battery on the go" ....what kind and how do i connect that battery to the belkin hub?
 
 
Steef
 
 
Oct 30, 2012 at 7:05 PM Post #681 of 9,526
You could download the free Android Terminal Emulator from Google Play:
https://play.google.com/store/apps/details?id=jackpal.androidterm&feature=nav_result#?t=W251bGwsMSwxLDMsImphY2twYWwuYW5kcm9pZHRlcm0iXQ
 
then:
 
 . Open the Terminal Emulator and type
dmesg > /sdcard/f [do not click “Enter”]
 
. Connect your S3 to the iBasso DB2 via a USB OTG cable
 
. On the Terminal Emulator, click “Enter”
 
[that should get you a dmesg log file "f" in the sdcard folder.]
 
 
About dmesg:
http://en.wikipedia.org/wiki/Dmesg
 
A dmesg output:
http://pastebin.com/Jjq4xnT3
 
Oct 30, 2012 at 7:15 PM Post #682 of 9,526
Oct 30, 2012 at 8:18 PM Post #683 of 9,526
Received my OTG cable for my Samsung S3 today and was able to play music with the UD100 DAC on my first try :D and it sounded very good with the O2. I also tried my Centrance DACmini (desktop DAC/Amp) but could not get any sound out using Poweramp. I can hear the relay when I connect the S3 but no go. I also tried my DACport with a powered USB hub but again no sound.

I will download the emulator that Danba mentioned and will post the log back later. Cheers!

Edit:

Here the log output for DACmini
http://db.tt/BCvWD5lw
 
Oct 30, 2012 at 11:11 PM Post #685 of 9,526
To Quote The Wiki:
USB On-The-Go, often abbreviated USB OTG, is a specification that allows USB devices such as digital audio players or mobile phones to act as a host, allowing other USB devices like a USB flash drive, mouse, or keyboard to be attached to them. Unlike conventional USB systems, USB OTG systems can drop the hosting role and act as normal USB devices when attached to another host. This can be used to allow a mobile phone to act as host for a flash drive and read its contents, downloading music for instance, but then act as a flash drive when plugged into a host computer and allow the host to read off the new content.

beerchug.gif

 
Oct 30, 2012 at 11:55 PM Post #686 of 9,526
I have to give credit to everyone for trying and taking the time to post back and give danba the logs, 
 
It speaks wonders about us as a community.
 
Oct 31, 2012 at 4:52 AM Post #687 of 9,526
Sorry if this is a bit off-topic, but is there any fundamental reason why there is no [size=12.727272033691406px]third party software that could turn an iPhone (maybe jailbroken? maybe with a camera connector kit?) into a digital source for a USB DAC?[/size]
 
Oct 31, 2012 at 4:54 PM Post #690 of 9,526
Me too, will be using a Galaxy Tab 2 7" though. Keeping my Nokia music phone and iPod classic/Nano/Mini and ditching iOS completely.
 

Users who are viewing this thread

Back
Top