This is something that android needs. USB DAC support.
I've been doing research and have compiled my own kernel for testing. There is something called the Advanced Linux Sound Architecture which has USB sound card support. However, when enabling this on a kernel I compiled, it seems Android totally ignores it. Once more, when I try to activate the module using the command modprobe snd-usb-audio it just completely fails.
When I plug my device in, I can see that the system is recognizing the device in proc/asound and sys/bus/USB/devices/2-1 and also dev/snd
The wiki https://wiki.archlinux.org/index.php/Alsa#Making_sure_the_sound_modules_are_loaded also tells me that everything is OK in dev/snd
The only chance to get this working is to use asoundconf somehow. I have no idea how to do this.
In my opinion, Android totally needs USB sound card support standardized on all Stock kernels and ROMS so that its users can use USB sound card's (USB DAC'S) as they wish.
There are other sites which have mentioned USB DAC support on Android and they may be useful for further research:
http://www.head-fi.org/t/595071/and...w-to-increase-the-issues-priority-with-google - Page 6 onwards seems interesting
http://www.slatedroid.com/topic/29289-usb-audio-cards-support-drivers-and-libs/
http://code.google.com/p/android/is...&colspec=ID Type Status Owner Summary Sta rs - Please star this issue
I have to say, USB Audio support for Jelly Bean was a massive dissapointment since the DAC has to support the ADK. When I tried my standard DAC with Jelly bean, it did not work.
I just wish more custom kernels could support this and wish Google would support it too.
Sent from my Xoom using xda premium
USB audio works on my Allwinner A10 tablet witn "Unofficial CyanogenMod 9 for many AllWinner A10 tablets" firmware from Christian Troy
Proof that USB audio can work on android.
Sent from my Xoom using xda app-developers app
i need usb audio in ics
ntm12 said:
USB audio works on my Allwinner A10 tablet witn "Unofficial CyanogenMod 9 for many AllWinner A10 tablets" firmware from Christian Troy
Click to expand...
Click to collapse
I,m happy to know that i's go right in your tab. So i ask if u can help to make my tab fuctioning in usb-audio mode.
I have a chinese comp rk29 model.
Cheers thnk u
External USB DAC use from Android GT-i9250?
Hi There,
I am interested if you had any developments here with external USB DAC?
I have the Galaxy GT-i9250 and I would love to play music (44/16 or 96/24) files through an external USB DAC such that I bypass the phones internal DAC. Are there any advancements?
If so, how do I do it and what external DAC's do you recomend?
Thanks,
Asif.
asifmajid said:
Hi There,
I am interested if you had any developments here with external USB DAC?
I have the Galaxy GT-i9250 and I would love to play music (44/16 or 96/24) files through an external USB DAC such that I bypass the phones internal DAC. Are there any advancements?
If so, how do I do it and what external DAC's do you recomend?
Thanks,
Asif.
Click to expand...
Click to collapse
Unfortuantly, USB DAC functionality still seems to be severely limited despite support in Linux.
Many Developers focus on optimising a kernel for a specific ROM rather than adding features to the kernel to add functionality such as USB DAC's. I too would like support from developers to bring this forward as there are just a few devices out of hundreds of Android devices with some sort of USB DAC functionality as mentioned in previous posts. I also know that the Samsung Galaxy S3 has limited but native support for some USB DAC's.
I would recommend getting a popular USB DAC device because it would probably be a higher priority to developers to support. (because it would have more users).
From what I understand, USB DAC isn't a hard feature to implement. The problem lies in the fact that not enough people are asking for this functionality at the moment to develop it, beta test it and subsequently implement it.
Maybe, some time in the future (near future, I hope) we can enjoy this as a feature on our Android devices.
Sent from my Xoom using xda app-developers app
Hi !
Any news about it ?
We are sooo much to wait for this !!
Please devs, add it in your kernels !!
Very interesting. I have tried to enable CONFIG_SND_USB_AUDIO=y and CONFIG_USB_AUDIO=y, But it does not work.
Waiting for other Idea.
Few updates
I have a few updates here.
It appears that my HTC One X running Android Revolution HD 13.0 (Jelly Bean) has the drivers and loaded modules for snd_usb_audio. And when I plug my USB DAC into it. It recognizes it and automatically directs sound to it. This is good.
I've dived into why it works on the HTC One X and not on my Xoom and come across a folder called /proc/asound
This folder is to do with the ALSA (Advanced Linux Sound Architecture) and when I plug my USB DAC into my One X, it creates a folder called 'Headset' (since my USB DAC is a headset).
I've found folders named "snd_usb_audio" (or similar) in the following folder locations:
/sys/bus/usb/drivers/snd-usb-audio
/sys/module/snd_usb_audio
I just don't know how to add this gory stuff into another android device. This is what Im trying to do.
Im going to compile a kernel in the next few days to see if I get anywhere.
I have SGS3 and i tried to connect my old M-Audio Duo USB sound card via USB. The phone plays music thru it, but Inputs of the sound card is not recognized, phone still records by build in mics.
What i really need is portable stereo mic attached by USB for my phone so i can make studio quality recordings with it. Something like tascam did for iPhone:
http://tascam.com/product/im2/
If anybody knows some solution please post it here!
Same here, output works on my One X but not input. That's another key barrier to overcome.
Sent from my HTC One X using xda app-developers app
jamjame said:
Same here, output works on my One X but not input. That's another key barrier to overcome.
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
If you'll figure out a way to make inputs work via usb that would be revolutionary development for android. I wounder why major companies didn't develop some device like that so far. There's demand for it obviously.
I badly want to see this feature figured out and added to CM10. I flashed drewgaren.com's JB TouchWiz rom last night just to get this feature, and I'm already sorely missing CM10.
I would be positively thrilled to see movement towards implementing this feature outside TouchWiz, would be delighted to help test it, and would even throw money at someone who could get it done for us.
djthread said:
I badly want to see this feature figured out and added to CM10. I flashed drewgaren.com's JB TouchWiz rom last night just to get this feature, and I'm already sorely missing CM10.
I would be positively thrilled to see movement towards implementing this feature outside TouchWiz, would be delighted to help test it, and would even throw money at someone who could get it done for us.
Click to expand...
Click to collapse
If anyone knows the ROM on which both Input and output (or at least input) from the soundcart works thru USB, please let me know.
"eXtream Software Development has released their app USB Audio Recorder PRO to the Play Store. It allows recording and playback using many standards compliant USB audio devices, a first for Android. By writing custom USB audio code, pro audio is now finally possible on millions of Android devices."
"The Android app USB Audio Recorder PRO allows you to record and playback audio using class-compliant USB audio devices on your Android phone or tablet! eXtream Software Development has written a custom USB audio driver from scratch...
Supported are mono and stereo streams, 16-bit and 24-bit and any sample rate (up to 192kHz) that the device provides..."
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/1020#post_8954935
http://www.extreamsd.com/USBAudioRecorderPRO/
https://play.google.com/store/search?q=usb+audio+recorder+pro
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A USB audio source code:
http://www.alsa-project.org/main/index.php/Main_Page
https://github.com/sgs3/GT-I9300_Kernel/blob/master/sound/usb/card.c#L2
https://github.com/sgs3/GT-I9300_Kernel/tree/master/sound/usb
USB audio & Android
USB standard (audio, mass storage, etc.) driver supported on stock Galaxy S3 / Note2
"As long as the kernel on the Android device supported the USB standard driver of the hardware (mass storage, input, etc.), Android would be able to use it and therefore open up a new range of extra devices compatible with the system."
USB standard (audio, mass storage, etc.) driver not supported:
* Developing your USB standard (audio, etc.) driver at the kernel space
"However, there are many devices that have not been "compatible" from the beginning. For instance, let's say your common RFID reader. It most likely uses a USB-serial port and probably comes with a Linux or Windows driver as well as some software. Most Android tablets will come without the USB-serial driver for your RFID reader however.
Therefore, if you want to load your driver you will need to root your tablet, determine the version of your current kernel, find the kernel sources online, hope that everything compiles to have your driver ready and then load it onto your tablet. In the end, when you finally have your kernel driver running, you will be required to write C code as well as some JNI glue to communicate with your Activity or Service in Android.
All in all, this approach is not very straightforward.
* Writing your own USB "soft driver" at the user space
There is a very elegant solution to aforementioned problem.
It requires far less skills in hacking and porting than the mentioned approach. However, you will require some advanced knowledge in Android programming as well as some USB know-how.
You can write your own "soft driver" in Android. Since the USB Host API has been released, it is now possible to communicate with any USB device using the most commonly seen USB transfers (control, interrupt, bulk).
In the end, your result will be portable across all Android devices that have USB host enabled and have Android version 3.1+. Moreover, this solution does NOT require root access to the tablet or phone. It is currently the only viable solution that does not require the user to have any know-how of rooting/hacking the device and risk losing warranty in the process."
http://android.serverbox.ch/?p=549
I see that both the Android compatible DACs (V-MODA VAMP VERZA, XDUOO XP-1) and the USB Audio Recorder PRO app supports nearly the same devices.
Other than that I hear that the requirements are:
USB Host (Basically almost every newer device can do this)
USB OTG Cable (Who worries about a cable?)
1. Is this because of simply the CONFIG_USB_AUDIO parameter set to false? Shouldn't a mod like CyanogenMod enable this?
2. Or because V-MODA VAMP VERZA, XDUOO XP-1 are the only USB DACs to support the ADK interface in Jelly Bean ?
3. What exactly is the difference between the Verza, XDUOO and the other DACs? Why wouldn't any DAC be compatible through USB Audio in the linux kernel ?
I really wish to lift my Samsung Galaxy S2 sound quality, and I am ready to spend the money to make it sound good. But the Verza is too expensive for me and has few other outputs and inputs so I doubt the reuse for the crazy price. I simply can't trust XDUOO before they make an english website, god knows what will happen on warranty issues!
dezzadk said:
I see that both the Android compatible DACs (V-MODA VAMP VERZA, XDUOO XP-1) and the USB Audio Recorder PRO app supports nearly the same devices.
Other than that I hear that the requirements are:
USB Host (Basically almost every newer device can do this)
USB OTG Cable (Who worries about a cable?)
1. Is this because of simply the CONFIG_USB_AUDIO parameter set to false? Shouldn't a mod like CyanogenMod enable this?
2. Or because V-MODA VAMP VERZA, XDUOO XP-1 are the only USB DACs to support the ADK interface in Jelly Bean ?
3. What exactly is the difference between the Verza, XDUOO and the other DACs? Why wouldn't any DAC be compatible through USB Audio in the linux kernel ?
I really wish to lift my Samsung Galaxy S2 sound quality, and I am ready to spend the money to make it sound good. But the Verza is too expensive for me and has few other outputs and inputs so I doubt the reuse for the crazy price. I simply can't trust XDUOO before they make an english website, god knows what will happen on warranty issues!
Click to expand...
Click to collapse
Somehow, My Vamp Verza does not work with my New S4, but it worked with S3 and Note2 on Jelly bean.
lmk said:
Somehow, My Vamp Verza does not work with my New S4, but it worked with S3 and Note2 on Jelly bean.
Click to expand...
Click to collapse
I didn't expect that. However, someone has got it working with their FiiO E17 --http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/2415#post_9485365 ..
Do you have i9505 or i9500 ?
And what ROM? latest stock?
lmk said:
Somehow, My Vamp Verza does not work with my New S4, but it worked with S3 and Note2 on Jelly bean.
Click to expand...
Click to collapse
Does your Vamp Verza work with your Galaxy S4 using USB Audio Recorder PRO?
There is a free trial version of USB Audio Recorder PRO?
https://play.google.com/store/apps/details?id=com.extreamsd.usbaudiorecorderpro
"From what I understand, USB Audio Recorder Pro app allows higher quality recordings to be played in their true hi-res quality because it bypasses a 16-bit/48kHz limitation in Android kernel. (The DX100 also does that with the iBasso software.) All other apps downsample to 16/48 before passing the signal to the external DAC like the Apex Glacier.
Besides that, I also find the app to output very natural sound. So I used the app quite a bit when I am in the mood for the best quality."
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/2475#post_9511194
Tried with audio pro, it does not work too. S4 shv300S 8 core exynos latest 4.2.2 updated last week in Seoul.
I’ve been looking a various solutions to stream music to a Hi-Fi such as Squeeze Box and Sonos, and am wondering if I could use my trusty old SGSI i9000 to stream from a NAS or other DLNA enabled device? I believe to Wolfson DAC is quite good for a phone, so I could connect the phone to the amp with a phono lead, but I also wonder if I could attached an external DAC via a USB adaptor to improve the sound output. I know this can be done on the S3 and some tablets, but not sure of the situation with other phones. I am ok with routing and custom ROM’s if that helps. Please note I do not want to play music stored on the phone, as my library is already 200gb and rising, but use it as a conduit to get the music from storage to the Hi-Fi
paddyb said:
I’ve been looking a various solutions to stream music to a Hi-Fi such as Squeeze Box and Sonos, and am wondering if I could use my trusty old SGSI i9000 to stream from a NAS or other DLNA enabled device? I believe to Wolfson DAC is quite good for a phone, so I could connect the phone to the amp with a phono lead, but I also wonder if I could attached an external DAC via a USB adaptor to improve the sound output. I know this can be done on the S3 and some tablets, but not sure of the situation with other phones. I am ok with routing and custom ROM’s if that helps. Please note I do not want to play music stored on the phone, as my library is already 200gb and rising, but use it as a conduit to get the music from storage to the Hi-Fi
Click to expand...
Click to collapse
Hi,
You could try ArkMC app on Google play , it's streaming video by DLNA , it's well done
Regards
Hi Brya, thanks for making this your first post! The ArkMC app looks good. There are many DLNA streaming apps and this looks like one of the better ones.
My situation though is that if my Hi-Fi isn’t a DLNA device and only has phono input, can the phone stream a file from a NAS etc, play the file on the phone and output it through the headphone or micro USB socket to an amp. I think now that I’ve typed this out that the answer to this is yes.
So next question, how good is the audio quality going to be from such as set up? I think this depends on the DAC in the phone, which is quite good for a phone but probably not great compared to £300-£500 mini system. I’d welcome feedback on this.
Then the question is, can I connect an external DAC via the micro USB port?
For info, I haven’t actually got a Hi-Fi at the moment. I’m weighing up buying a mini system that includes a network streamer against more expensive and better sounding separates that do not (though they may have a USB input) and seeing if this would be a viable option for playing digital music.
hi guys
iv got myself a hifime dac so i could run my audio out of my usb on my ZU into a car stereo but im not getting audio thru the dac, i thought maybe it was the firmware so set about flashing a custom rom (which ive not done in a long time) managed to get the hybrid concept rom installed and tried again but with the same results
basically the power light on the dac lights up and the 3.5mm jack port lights up read but when i plug in either headphones or my home stereo no audio is coming out
am i missing something silly?
and i just plugged the dac into my s7 edge and it works just fine
s7 is on android 7.0
zu is on 5.1.1
there are two options you can play with in developer options.
Scroll down to "Media". Then there's "Use AwesomePlayer (deprecated) and "Disable USB audio routing"
You can also force media server to output to a specific speaker with this app:
https://play.google.com/store/apps/details?id=com.woodslink.android.wiredheadphoneroutingfix&hl
If output to usb isn't allowed in the free app. The paid app can be found at mobilism..schhh warez is not allowed here.
I found some sort of test tool: https://play.google.com/store/apps/details?id=de.sobe.usbaudioroot
Help very appreciated but still no joy
I have tried so many varieties of settings within the developer options and the settings within that app! I have also tried this on a couple of roms
For a while I was stuck on resurrection rom with cynageon recovery but I have no got onto dirty unicorn rom running Android 7.1.1 but still no audio comes out the usb
Hello,
My question is quite specific, but I am currently running RR 5.8.4 (20170914) and I noticed that OTG has never worked for me (although it works when in TWRP)
I never minded so forgot about it, but I recently got hold of the Hi-Fi Plus cheaply only (£35) and wanted to try it out. As it turns out, it doesn't work and I was wondering whether;
Is this a kernel issue - can I flash an appropriate kernel to get OTG (and hopefully Hi-Fi plus support)
Or, is this just due to the Rom - should I flash a stock rom (e.g fulmics?)
Thanks!
*I have edited the Title as some of the information has changed based on my research, see my replies below*
Just as a follow up to this - I just flashed Fulmics and it still doens't work. I wonder if they only work on completely stock Rom. I will flash back to stock and update accordingly.
I also will try out OTG to see if that works.
OTG on Fulmics also doesn't work (if anyone is interested).
I hope I am doing something wrong here because it would be great to get this going
chalima said:
OTG on Fulmics also doesn't work (if anyone is interested).
I hope I am doing something wrong here because it would be great to get this going
Click to expand...
Click to collapse
Can confirm the Hi-Fi module works on Fulmics, both internally and as an OTG device. If you're using it via OTG, I recommend USB Audio Player PRO. Their custom USB device stack works a lot better than Android's default USB audio device support. Arguably works better than using the Hi-Fi module connected directly to the phone via LG's own apps.
-edited to add: If you're using the Hi-Fi module via OTG or even connected to a PC, make sure you have headphones plugged in. For some reason, the device shuts off entirely and is not recognised unless this is the case.
epithetic said:
Can confirm the Hi-Fi module works on Fulmics, both internally and as an OTG device. If you're using it via OTG, I recommend USB Audio Player PRO. Their custom USB device stack works a lot better than Android's default USB audio device support. Arguably works better than using the Hi-Fi module connected directly to the phone via LG's own apps.
-edited to add: If you're using the Hi-Fi module via OTG or even connected to a PC, make sure you have headphones plugged in. For some reason, the device shuts off entirely and is not recognised unless this is the case.
Click to expand...
Click to collapse
Thanks. I am surprised by this - I went right back to stock (20K) and it still doesn't work for me (even with headphones plugged in). I wonder if there is something I have missed - I have no OTG support on any of the ROMs I have tried (Fulmics, RR and Stock (20K)
I thought the process would be easier - I expected to be able to listen to Spotify with the DAC - is this the case?
I have taken my phone completely back to stock, (H85020g_00_VMC_GB_OP_0703) and plugged in the Hi-Fi plus and it still doesnt work:
The "Friends" app detects the the Hi-Fi Plus
the 32 Bit DAC settings item is greyed out
I plugged in two different types of headphones
I am now at a bit of a loss as I still don't understand why OTG doesn't seem to be working either (obviously related), so the wider question is, why?
I tested out OTG on TWRP and it works, and I tested the cable I purchased on a Huawei P9 and it also works so I dont think it is the cable.
For reference, the OTG cable I have is this:
https://www.amazon.co.uk/gp/product/B01COOQIKU/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1
Any assistance would be greatly appreciated! Should I just return the phone and get a new one?
chalima said:
Any assistance would be greatly appreciated! Should I just return the phone and get a new one?
Click to expand...
Click to collapse
Does it play music through the Hi-Fi module at all when you plug in earphones? The stock ROM specific things (like the little Hi-Fi symbol in the notification bar) don't work with it attached as a USB device, it is just picked up as an Android USB audio device.
The cable might also be a factor (although yours looks like it should work); I've found the module to be picky with what will and won't work. Attempting to use the short USB C -> micro USB cable included with the Hi-Fi module (with a micro USB -> USB C OTG adapter, of course) for instance did not work for me.
epithetic said:
Does it play music through the Hi-Fi module at all when you plug in earphones? The stock ROM specific things (like the little Hi-Fi symbol in the notification bar) don't work with it attached as a USB device, it is just picked up as an Android USB audio device.
The cable might also be a factor (although yours looks like it should work); I've found the module to be picky with what will and won't work. Attempting to use the short USB C -> micro USB cable included with the Hi-Fi module (with a micro USB -> USB C OTG adapter, of course) for instance did not work for me.
Click to expand...
Click to collapse
Hi,
No it doesn't play music through the module, it just plays out of the speaker. If I put the headphones in the top of the phone, then it plays from there, but not from the bottom.
I think there is some issue with OTG, rather than the Hi-Fi module as it works fine when I plug it into a computer. I don't really know how I can diagnose it further. I have verified that OTG works in TWRP (and with other devices) so the cable seems fine. I'm not really sure how to proceed from there.
Thanks,
Charlie
The same thing happens to me in my g5 h860n. I have tried different firmware versions and the problem remains the same. Does anyone have an idea that I should try?
Hello! I have the same trouble. Lg G5 H850 GBR, V20v-EUR-XX, unlocked bootloader, root Magisk, stock ROM and kernel. HiFi plus recognized when direct plug into the phone (not tested with OTG-cable) , but, as was writed by Chalima, it doesn't play music through the module, it just plays out of the speaker. If I put the headphones in the top of the phone, then it plays from there, but not from the bottom. Does anybody know, this trouble of hardware, software, or a HiFi plus?
You probably checked this, but I say it anyway:
Developer options/media/USB audio routing ??
Don't disable this.....
Yes, I try with enable and disable this - not working. Also in prog Device Info HW in USB tab I see nothing.