USB Audio out to DAC works with Trinity Kernel - Nexus 7 General

It took about two weeks for me to figure out the Trinity Kernel supports USB audio out to my E17 DAC/headphone amp. Works great and is slicker than the previously working Poitee kernel which was getting stale.
Just root and install the Trinity kernel and make the change in your audio config as discussed in his thread and reboot while connected to a DAC and it will work.
Hopefully this will spare people the pain of trying to get DAC working.

neoblood3d said:
It took about two weeks for me to figure out the Trinity Kernel supports USB audio out to my E17 DAC/headphone amp. Works great and is slicker than the previously working Poitee kernel which was getting stale.
Just root and install the Trinity kernel and make the change in your audio config as discussed in his thread and reboot while connected to a DAC and it will work.
Hopefully this will spare people the pain of trying to get DAC working.
Click to expand...
Click to collapse
It appears that the newest kernel does not support USB DAC?
Also, did you get it to accept "hotplugging" the DAC or is it required to do a reboot with the DAC connected (my Samsung Galaxy SIII allows me to hotplug an external DAC)?
If hotplugging is "doable" that would really help my project of building a dock.

Related

[Q] Micro USB to HDMI solution?

The possibility of the micro USB to HDMI capabilities have been discussed to some extent on these forums but this seems to have slipped through the cracks. I don't know if this has actually been tested yet but I'd figure it should be an easy thing to test for our custom kernel modders.
zulu99 said:
Inspecting the source code froyo 2.2 of galaxy s, the sii9234 driver for hdmi output is not compiled.
This driver is compiled and work in the galaxy tab. the probe of this is the fact that if you see the dmesg log you can see the sii9234 loaded and work.
Can our developer see the dmesg of galaxy s and confirm that sii9234 is not loaded ?
If it is not loaded can our developers compile this driver inside the kernel of galaxy s.
i don't know how to compile the kernel but for a developer is simple to include this driver, you can copy the line relative to SiI9234 from config of galaxy tab and past in the source code of galaxy s.
both source code have the file MHD_SiI9234.c relative to the sii9234 transmitter for the hdmi output produced by silicon image
Click to expand...
Click to collapse
As we actually have some people on these forums with the micro USB-HDMI cable, I think this should be explored unless it's already been tested or in some other way proven that it's simply not possible.
It's been proven to be impossible already. There's no wire connecting the usb to the display port (I think I worded this incorrectly, but essentially I am trying to say that it's physically impossible without welding an extra wire or two).
Edit: Wait. Re-reading the usb to HDMI thread in accessories again. Was the previous information false?
Thread moved to Q&A.
Is there anyone who can do one of the following???
- Point me to a HOWTO on how to check out and build an android kernel? I can build linux kernels no problem, in fact I have built my own distribution from scratch. But finding and building the SGS source is a nightmare, I have spent way too many hours on it already.
- Get a kernel developer to build SiI9234.c?

USB DAC and Nexus 7 2012 wifi only

Hi there just joined this wonderful forum and basically i am an Andriod noob :victory: I am very late to the party and never owned a smartphone or andriod device but with people going for the 2013 Nexus 7 and offloading their 2012 models at a basement bargain price i finally decided to jump on the Andriod bandwagon
Ok here's the thing : i bought a 2012 wifi only Nexus 7 and the seller stated that it has been rooted. I have a Fiio E7 USD DAC that i am using at home with my desktop and with the laptop @ the office. From what i read with some tweaks a Nexus 7 works fine with this particular USB DAC. Thing is i have downloaded apps like games, ebook reader, FLAC player, etc and more importantly files. From what i understand i have to "flash" to a new kernel that is USB DAC friendly? Could someone dumb it down so i could understand what exactly i should do to achieve this? Would all my files be lost if i flash to a new kernel? Thanks in advance ya
Edit : additional details
OS : Andriod 4.2.2
hodak said:
Hi there just joined this wonderful forum and basically i am an Andriod noob :victory: I am very late to the party and never owned a smartphone or andriod device but with people going for the 2013 Nexus 7 and offloading their 2012 models at a basement bargain price i finally decided to jump on the Andriod bandwagon
Ok here's the thing : i bought a 2012 wifi only Nexus 7 and the seller stated that it has been rooted. I have a Fiio E7 USD DAC that i am using at home with my desktop and with the laptop @ the office. From what i read with some tweaks a Nexus 7 works fine with this particular USB DAC. Thing is i have downloaded apps like games, ebook reader, FLAC player, etc and more importantly files. From what i understand i have to "flash" to a new kernel that is USB DAC friendly? Could someone dumb it down so i could understand what exactly i should do to achieve this? Would all my files be lost if i flash to a new kernel? Thanks in advance ya
Edit : additional details
OS : Andriod 4.2.2
Click to expand...
Click to collapse
Hi, hodak...
Much of your post doesn't mean much to me I afraid... although I do remember reading years ago, that DAC stands for Digital-to-Analog Converter and FLAC stands for Full Lossless Audio Codec (I think)... but that's about the limit of my knowledge concerning technical digital audio related stuff.
With regard to "flash to a new kernel that is USB DAC friendly". I have no idea if such a kernel exists. But if one does exist, it will almost certainly be in .ZIP format (which, by the way, you don't unzip), and would be flashed via a Custom Recovery.
There are two such Custom Recoveries available; ClockWorkMod Recovery (CWM) and The Windows Recovery Project (TWRP). They both do pretty much the same thing... with such a Recovery, you can flash Custom Kernels, Custom ROMs, root your device, and perform Nandroid backups (which are 'carbon copies' of your Nexus 7's state at the time the backup was made... even right down to the last app icon or widget you last dropped onto one of the home screens). Nandroid backups are extremely useful for returning your device back to it's last working state, in the event of a ROM (or kernel) flash gone wrong.
If you've never used a Custom Recovery before, you're probably wondering which one is 'best'. Well, the answer is a rather unhelpful 'neither' . Like most things Android related, it's very much a matter of personal taste. CWM has been around for years, and is favoured (mostly) by Android old timers. TWRP is the new-kid-on-the block, so to speak, and has a more intuitive interface than CWM, so I guess I would recommend TWRP as this is your first foray into Custom Recovery related stuff. Anyway here are the download links...
(It's important you get the right version for your device, so if you have a WiFi only Nexus 7 (as you do), you're going to need the 'grouper' Custom Recovery...and 'tilapia' Custom Recovery, if your Nexus 7 is both WiFi and 3G capable. Download the correct one to your PC.
TWRP for 'grouper'
CWM for both 'grouper' and 'tilapia'
But before you can fastboot flash a Custom Recovery, you must first unlock the bootloader on your Nexus 7 (and this is the bit you're not going to like so much)... unlocking the bootloader, performs a full wipe akin to a factory reset. So before proceeding you must first back up everything that is important to you on your Nexus 7 to your PC or some other external location.
However, none of this might be necessary!.
In your post you say "...and the seller stated that it has been rooted.".
Unless the seller rooted the device via the motochopper 'exploit' then there's a very good chance the bootloader is already unlocked... which means you won't loose your stuff. If there is an unlocked padlock symbol at the bottom of the screen, underneath the Google logo at boot... it means the bootloader is already unlocked.
So, to summarize...
* Backup your Nexus 7. (Might not be necessary if the bootloader is already unlocked).
* Unlock the bootloader with fastboot oem unlock (Might not be necessary...).
* Fastboot flash a Custom Recovery with fastboot flash recovery custom_recovery_filename.img
* Using that Recovery, flash your Custom Kernel.
* Restore your stuff back to your Nexus 7. (Might not be necessary...).
To reiterate... if the bootloader is already unlocked, then only the third and fourth steps listed above are necessary.
The full details of how to use fastboot and a link to the necessary drivers are available here. It looks more complicated than it actually is... but that's only because Comminus (the OP of the thread) is thorough in his explanation, and covers a lot of ground.
--------------------------------------------------
One other possibility occurs to me... If you're already rooted, you can use either one of these two apps...
Flash Image GUI or Flashify.
...you can use one of these two apps, to flash a Custom Recovery DIRECTLY FROM THE NEXUS 7 itself, without recourse to a PC or the need for fastboot. Just download the Custom Recovery .img file from one of the links above, directly to your Nexus 7... and then use either Flash Image GUI or Flashify to flash it.
Once you have CWM or TWRP installed, you can then download, directly your Nexus 7, the Custom Kernel of your choice... boot into CWM or TWRP and flash it.
How to boot into your Custom Recovery
Shut down the Nexus 7 completely. Press and hold VOL-DOWN... whilst holding, press POWER ON (hold both for about 5 seconds). This will boot the device into the bootloader. Using the VOL-BUTTONS, navigate to the RECOVERY MODE option, and press POWER ON to select. Your Nexus 7 should now boot into your previously installed Custom Recovery... CWM or TWRP.
--------------------------------------------------
And that's the Cliff Notes/Reader Digest version of how to flash a Custom Kernel. All you have to do now is find one that fits your digital audio requirements... and that, I'm afraid, I can't help you with... unfortunately.
Hope this helps... and good luck.
Rgrds,
Ged.
I think this rom might work for you
"USB audio kernel driver enabled
USB audio plug&play patches for DAC plugged at boot"
"USB audio plug&play handler for DAC plugged post boot"
"Supported USB audio devices
These are just some of the supported USB DAC's: CM106-F, FiiO E07 + E10 + E17......."
http://mehrvarz.github.io/img/usbhost-settings3.jpg
Click to expand...
Click to collapse
Dont know if its possible use this kernel in another rom.
link here
hodak said:
Hi there just joined this wonderful forum and basically i am an Andriod noob :victory: I am very late to the party and never owned a smartphone or andriod device but with people going for the 2013 Nexus 7 and offloading their 2012 models at a basement bargain price i finally decided to jump on the Andriod bandwagon
Ok here's the thing : i bought a 2012 wifi only Nexus 7 and the seller stated that it has been rooted. I have a Fiio E7 USD DAC that i am using at home with my desktop and with the laptop @ the office. From what i read with some tweaks a Nexus 7 works fine with this particular USB DAC. Thing is i have downloaded apps like games, ebook reader, FLAC player, etc and more importantly files. From what i understand i have to "flash" to a new kernel that is USB DAC friendly? Could someone dumb it down so i could understand what exactly i should do to achieve this? Would all my files be lost if i flash to a new kernel? Thanks in advance ya
Edit : additional details
OS : Andriod 4.2.2
Click to expand...
Click to collapse
I won't iterate what's been said, just add a few things you may find useful.
In addition to a kernel that support USB Audio (here's the one I use), you'll also need an OTG cable (On The Go). I just got this one to replace a POS cheapo cable. The StarTech is rock solid and, for my $$$, worth the price. I'm pretty sure most FiiOs work with the N7, but you can always google to be sure.
If you any high resolution FLACs (24-bit, 96 or 192 kHz), I'm pretty sure this is the only player that will play them at their native bit depth and samplerate. I'm just getting into USB audio on my Nexus 7 2012, but I tested the trial version of USB Audio Recorder Pro (UARP) with my HiFimeDIY Sabre U2 Asynchronous DAC, and it played a 24/96 FLAC perfectly. I haven't had a chance to test USB audio with any other players, but UARP is unique in that it has its own USB audio driver that bypasses (or attempts to; no problem w/the N7) the Android audio chain.
There's this USB-centric ROM available, if you're inclined to explore. Seems quite popular and has some nice features.
If you have a lot of apps installed, Titanium Backup Pro might be worth buying. It can be handy for restoring apps if you decide to try other ROMs. There's a free version, too.
Lastly, as a noob, you might appreciate WugFresh's Nexus Root Toolkit (NRT). Handy if you don't want to use the commandline and Android SDK. I started with it, learned the principles behind what it does, and now use the SDK for most things, but sometimes his NRT comes in handy.
Hope that helps! Good luck
ThurstonX said:
I won't iterate what's been said, just add a few things you may find useful.
In addition to a kernel that support USB Audio (here's the one I use), you'll also need an OTG cable (On The Go). I just got this one to replace a POS cheapo cable. The StarTech is rock solid and, for my $$$, worth the price. I'm pretty sure most FiiOs work with the N7, but you can always google to be sure.
If you any high resolution FLACs (24-bit, 96 or 192 kHz), I'm pretty sure this is the only player that will play them at their native bit depth and samplerate. I'm just getting into USB audio on my Nexus 7 2012, but I tested the trial version of USB Audio Recorder Pro (UARP) with my HiFimeDIY Sabre U2 Asynchronous DAC, and it played a 24/96 FLAC perfectly. I haven't had a chance to test USB audio with any other players, but UARP is unique in that it has its own USB audio driver that bypasses (or attempts to; no problem w/the N7) the Android audio chain.
There's this USB-centric ROM available, if you're inclined to explore. Seems quite popular and has some nice features.
Hope that helps! Good luck
Click to expand...
Click to collapse
ThurstonX, I'm actually thinking about buying the Hifimediy Sabre U2 but had a question. Say if I was playing 16bit mp3 songs or using Google Navigation...would you actually hear sound through the Sabre or does audio only work through UARP?
machmanx said:
ThurstonX, I'm actually thinking about buying the Hifimediy Sabre U2 but had a question. Say if I was playing 16bit mp3 songs or using Google Navigation...would you actually hear sound through the Sabre or does audio only work through UARP?
Click to expand...
Click to collapse
Wish I could answer your question. I never got the DAC to work with any other player. I use the stock 4.3 ROM and vorcers' V7 kernel. I have Timur's USB ROM (which uses his kernel) downloaded, but haven't had any time to test it. Hopefully tomorrow, but whenever, I'll post another reply to let you know.
My understanding is that if you get the DAC working, it handles all audio out, if you have a player that will do it. Maybe that's why people love USB ROM. I mean if guys are using it for their Nexus 7 car installs, with Bluetooth and other audio apps, and are using USB DACs, I would assume all audio will go that route.
Sorry for being so vague.

USB DAC

I moved to CWM 10.1 so could attach various USB devices like thumb drives and keyboards to my HD plus. I've been very pleased with how well it works, but I find it simply won't recognize my USB dac. Has anyone had any success or even tried getting the Nook to recognize a USB DAC? The tablet would be a terrific front end for my audio system if I didn't have to go through the earphone jack.
Unfortunately, this is not a common request. I remember trying to get it working on my Nook Simple Touch (never did, though). I believe that support has to be added in the kernel, so unless we can convince someone to hack up a custom kernel I bet it will never work.
Thanks, Tsunami.
you will need to compile the necessary linux kernel modules for your specific DAC.
just look what modules it uses on an ubuntu or debian installation and compile them für your device.
Thanks, Jann. I'll probably need the idiot's versin of that before I give it a shot.
What DAC are we talking about?
I've got a Fiio e7
The hifimediy sabre android dac
http://hifimediy.com/index.php?route=product/product&path=62&product_id=124

[Q] SPDIF audio passthrough possibilities for RPi?

Have no HDMI in my house. I can convert HDMI to DVI and run it into monitors, but that leaves me with no digital audio. The RPI is weak enough that I would rather offload the audio rendering to a receiver. What inexpensive and cpu efficient ways have you found to get optical or coax spdif / toslink passthrough?
You could check out the HiFI Berry:
http://www.hifiberry.com/
There are USB DACs as well.
oribunokiyuusou said:
You could check out the HiFI Berry:
http://www.hifiberry.com/
There are USB DACs as well.
Click to expand...
Click to collapse
More than I was expecting to pay, but it's an option that I did not know was available. I've used DACs for audio recordings. Does anyone know if there is considerably less cpu overhead for those vs the onboard analog out and some that have been tested with XBMC Rpi distros?
fields_g said:
More than I was expecting to pay, but it's an option that I did not know was available. I've used DACs for audio recordings. Does anyone know if there is considerably less cpu overhead for those vs the onboard analog out and some that have been tested with XBMC Rpi distros?
Click to expand...
Click to collapse
The HiFiBerry Digi is an S/PDIF output (can be found on the same web site). The HiFiBerry DAC has been tested with Raspbmc. The support in the current version still does not work, but the january release of Raspbmc should fix this. I would expect that the HiFiBerry Digi will also be supported in Raspbmc soon (but not in the january release).
I don't have did any tests with the onboard sound, but with the HiFiBerry DAC there is only a minimal CPU load, as data transfer to the sound card is mostly done via DMA.
Best regards
Daniel
I'd probably go with the hifiberry AS it just fits and isn't too expensive. There are pretty cheap bay China USB China sound cards, they work ootb with raspbian. Or you go full high end with the Buffalo DAC which is what i did. I know, it's just Voodoo...
D802 @ AOSPA 4.4
Hi, I just stumbled upon this old post. Anyway, here's how I resolved the same problem:
Buy HDMI to HDMI + SPDIF + Analog converter from eBay, plug it in and you're good to go.
I'm not allowed to post links so: search for "hdmi spdif", select order by price+P&P: lowest first. It' the one like on the image.
It's true passthrough (Dolby, DTS), and you don't need any kernel modules, and you get to keep it or use it elsewhere, unlike with HiFiBerry.
...and you get a free set of knives :laugh:
here are the flags from config.txt:
config_hdmi_boost=4
hdmi_drive=2 (I think this one is important)

External DAC

Does someone tried an external dac on the G2? Does it work? Every DAC is compatible? I ask this because I have to buy an USB DAC for other purposes and, before buying, I want to choose one (if exist) that can be compatible with g2
You'll need to provide more details. Are you trying to OTG connect a DAC? If so, it probably won't work. Those not intended for Android use will not contain drivers for Android phones.
If you're looking to buy a NuForce Icon or FiiO E18, those will work because the G2 supports OTG, and the majority of custom ROMs retain that functionality as well.
So just post what DAC you're looking to buy. You're got every reason to be forthcoming. There's no way to tell without knowing the specific model DAC. If it's intended for Android use (i.e. the manufacturer advertised it as compatible) then it should work.
There quite a few that work with both nexus 7 ...so i wouldnt thinkg it being g2 would matter as long as its comptatible with other android over otg should work for g2 ..... Im getting a fiio e17 or e18 soon.
Sent from my LG-D803 using XDA Free mobile app
I don't have a dac but I need to buy one to be used with my hifi. I don't have choose a specific one and I ask here if there is someone that tried and get a dac working on g2.
Edit:
I have a usb headset, the corsair vengeance. That is not a dac but act like an external sound card. I connected it with usb otg cable and get the sound, but only the music played throught 'usb audio player pro' trial version. Is possible to get all the system soud directed to the external sound card/dac?
Edit2:
Found this thread
http://forum.xda-developers.com/showthread.php?t=867274
That means that we need modified kernel?
I have an fiio E17. It works with the G2 but i have clicks sometimes. For more than 16/48 I need USB Audio Player.
Hifimediy Sabre Asynchronous here, on CloudyG3 with the included kernel. Works fine, clicks sometimes when I start playback.
Got rid of clicks with the following additions to build.prop, normally used for Viper4Audio:
lpa.decode=false
lpa.releaselock=false
lpa.use-stagefright=false
tunnel.decode=false
Edit: False alarm unfortunately. But I have much less of them.
although this is a G2 FOrum I have a G3...
was looking for some answer to find out how to get rid of all the clicking or pops with an Asynchronous DAC/AMP. I have a HRT Microstreamer.
Anyway to fix or we all waiting for L?
Here dorimanx dev made a kernel that supports audio out to every usb device, so now every dac or usb soundcard are supported.
http://forum.xda-developers.com/showthread.php?t=2725023
And here no lags or microshutters.
NuForce uDac 2 works well. Tested also cheap Beyerdynamic's USB soundcard and played too.
PorkOne said:
NuForce uDac 2 works well. Tested also cheap Beyerdynamic's USB soundcard and played too.
Click to expand...
Click to collapse
On stock kernel or dorimanx?
siggey said:
On stock kernel or dorimanx?
Click to expand...
Click to collapse
Stock kernel, no mods at all, stock player, flac 24bit 96KHz
siggey said:
Here dorimanx dev made a kernel that supports audio out to every usb device, so now every dac or usb soundcard are supported.
http://forum.xda-developers.com/showthread.php?t=2725023
And here no lags or microshutters.
Click to expand...
Click to collapse
I can confirm the newest dorimanx kernels support precise streaming, limited to 16/48 by Android of course.

Categories

Resources