USB Audio - Nexus 7 Q&A, Help & Troubleshooting

Hi there,
Sorry if this has been answered before, but I did a search an couldn't find anything.
Could anyone with the tablet tell me if USB audio out works with the nexus 7 into a USB DAC?
Thanks,
Paul

No, standard USB audio is currently not supported. A USB DAC made specifically for Android will be required as they use a non-standard implementation of USB audio.

Michael_W_L said:
No, standard USB audio is currently not supported. A USB DAC made specifically for Android will be required as they use a non-standard implementation of USB audio.
Click to expand...
Click to collapse
*sigh*
Thanks for the info. Hopefully the device will be popular enough that iBasso or some other company can come up with a solution.

NikonUser said:
*sigh*
Thanks for the info. Hopefully the device will be popular enough that iBasso or some other company can come up with a solution.
Click to expand...
Click to collapse
Super annoying huh. I tried my E7 and E17 since I seemed to be the first user of USB DACs to have a Nexus 7 in my hands and neither worked...

Maybe someone can pull the functionality from the GS3 and port it to CM10 for us to use. I can't imagine it would be too hard

Poitee has made a kernel which enables usb audio
http://rootzwiki.com/topic/30129-kernel-nexus-7-cifsnfsusb-otg-gpu-oc-cpu-oc-072912/
I have used it with my G930 headset. Unfortunately, its very picky about which roms it will work with.
I could get it working with aokp but not CM10, Jellybro, baked or glazed. You also have to have the headset plugged in when you boot.
So it is possible, all we have to do is get the kernel developers to include it.
For the moment i've gone back to Jellybro with trinity kernel, i like the speed
---------- Post added at 11:03 PM ---------- Previous post was at 10:29 PM ----------
I just found that usb audio works on my current config, all i had to do is reboot with the usb headset plugged in. The only problem is that the standard speaker doesn't work when you unplug your headset.
Running euroshank/jellybro rom with trinity kernel.

Yes, the kernel level functionality isn't actually that hard, and many kernels have it baked in even if the kernel dev doesn't realize it.
What really separates the GS3 from AOSP/CM10 is the OS level code that Samsung has added to allow hot plugging. Someone with knowledge of java could probably steal the changes from touchwhiz and incorporate them into CM10 with minimal effort.
sassafras

Related

USB Mic and Bluetooth Mic

Hey guys, new to the Rooting community, but I would first off like to thank each and every person that has put time into these projects. The possibilities that have been unlocked on different devices has been enormous and its all thanks to the dev community.
I do however have a question, I recently took my NC and installed Ginger Bread and then Ice Cream Sandwich onto it with no troubles. However upon reading everything that has to do with Bluetooth Audio Input and USB Hosting, theres something that doesn't quite add up.
I can successfully connect to my Bluetooth headset with both the built in Bluetooth and a Rocket Fish dongle that I used through USB Hosting. However I get no audio input, I know that this is a known problem and it has to do with a possible lack of audio codecs and some other ideas that I have seen thrown around.
What doesn't add up though, is that when I connect my Logitech USB Microphone using USB Hosting it works perfect and gets picked up by every app. So my question is, what is the difference between the USB built in drivers and the Bluetooth driver that was unlocked?
From my understanding the Audio input file, driver or whatever it may be sits as a separate file. So with that in mind wouldn't that mean that the file exists, because the USB Microphone is using, so why exactly doesnt the Bluetooth connection pick up the Bluetooth ear piece as a microphone and refer it to the same audio input file?
Once again this is basically me spit balling and asking some questions. I was looking through the source code for the Nook Tablet (Trying to find its internal mic driver) and noticed that there was an audio C file and was wondering if that is what is being used by the USB devices to recognize Audio Input.
Anyways, any response would be great, one of the last tweaks that I would love to help get worked out as I planned on making myself a lovely Voice Control app to run on my Nook Color, and a Huge USB headset is rather illogical.
vadlak said:
--SNIP--
the source code for the Nook Tablet (Trying to find its internal mic driver) and noticed that there was an audio C file and was wondering if that is what is being used by the USB devices to recognize Audio Input.
--SNIP--
Click to expand...
Click to collapse
Since you're apparently asking a question about a Nook Tablet, not a Nook Color, you should probably redirect it to that forum.
Audio on Linux and therefore Android is a huge can of worms that even most developers can't figure out. Bluetooth is yet another very difficult library and has its own way of dealing with audio in and out. A2DP media audio out protocol has no audio in capability. As far as I know, no one has ever sorted out or enabled hands-free protocol for the NC, which is what it would take to do a headset with mic.

[Q] OTG USB Audio possible without reboot?

Does anyone know of a kernel allowing users to "hot plug" a USB DAC to get audio out?
Poitee and Trinity seems to support at least USB audio after a reboot, but so far I have had no luck identifying something that will simply allow me to place my Nexus 7 in my dock (with OTG USB DAC connected) and have the audio automatically routed through the external USB DAC.
Therefore, does anyone know of a rom/kernel allowing this (since my Samsung Galaxy S3 can do this)?
No one out there who knows? :crying:
I'll second this. I am installing my Nexus 7 semi-permanent in my Car, and i'd like to take it out and use internal sound without rebooting it every single time.
// Per.
Yeah, I was keen on making a car install too, but this is for a dock I am building.
I can tell you it involves B&O design and pure awesomeness, guess I cannot post images or give links until I reach 10 posts though.
Hotplug USB audio is indeed possible on the Nexus 7, it seems that a few of us all have similar plans for our Nexus's
Give this a try -> http://forum.xda-developers.com/showthread.php?t=2029728
If you have any issues try and reply in that thread so we keep them all in the same place.

[Q] Phone not recognized, music not playable, in vehicle using USB

My vehicle has a USB input which I can plug media devices into. My last android phone was immediately recognized and I was able to scroll through and play music stored on the phone.
I get an "Unsupported" error message when plugging in my Nexus4, so I cant play music stored on it. I tested before and after rooting and bootloader-unlocking and factory reset. Also tested with usb debugging turned on and off. The vehicle is a 2010 Honda Pilot (touring model) with stock audio system.
Anyone else having this issue? Anyone have any ideas?
edit: I'd also simply be interested to know if you're successfully using your Nexus4 in your vehicle.
Have the same issue in my 2012 MINI Cooper Countryman.
Sent from my Nexus 4 using xda app-developers app
I don't think it'll work as most car USB audio systems (in general, that I know off) would need the phone to be in USB drive mode for it to be able to read the mp3 files. The nexus4 uses MTP mode, which I don't think will work, unless the car audio system supports MTP.
Mine is only recognizing 3 songs, I am currently using aux in quality is sacrificed though
Sent from my Nexus 4 using xda premium
endlesstrail said:
I don't think it'll work as most car USB audio systems (in general, that I know off) would need the phone to be in USB drive mode for it to be able to read the mp3 files. The nexus4 uses MTP mode, which I don't think will work, unless the car audio system supports MTP.
Click to expand...
Click to collapse
This is correct, based on what I learned since posting the question. Thanks.
http://memegenerator.net/instance/30836647
It'll only work on Ford SYNC systems since it supports MTP.
Although I have a Ford car and I get stuck at Indexing...
I'm hoping a custom ROM will alleviate the issue but doubtful..
jayluke said:
My vehicle has a USB input which I can plug media devices into. My last android phone was immediately recognized and I was able to scroll through and play music stored on the phone.
I get an "Unsupported" error message when plugging in my Nexus4, so I cant play music stored on it. I tested before and after rooting and bootloader-unlocking and factory reset. Also tested with usb debugging turned on and off. The vehicle is a 2010 Honda Pilot (touring model) with stock audio system.
Anyone else having this issue? Anyone have any ideas?
edit: I'd also simply be interested to know if you're successfully using your Nexus4 in your vehicle.
Click to expand...
Click to collapse
Dang... Still no solution?? There has got to be a hack out there somewhere that will allow audio transfer over MTP! Somebody help! Please?
---------- Post added at 01:42 PM ---------- Previous post was at 12:46 PM ----------
collin5022 said:
Dang... Still no solution?? There has got to be a hack out there somewhere that will allow audio transfer over MTP! Somebody help! Please?
Click to expand...
Click to collapse
How is this not a bigger issue for people? I would much rather have one cord attached to my Nexus 4 in the car than two.
collin5022 said:
Dang... Still no solution?? There has got to be a hack out there somewhere that will allow audio transfer over MTP! Somebody help! Please?
---------- Post added at 01:42 PM ---------- Previous post was at 12:46 PM ----------
How is this not a bigger issue for people? I would much rather have one cord attached to my Nexus 4 in the car than two.
Click to expand...
Click to collapse
Not really a problem solved, but a way around:
http://www.amazon.com/GOgroove-BlueGate-Wireless-Bluetooth-Headphones/dp/B00727FE5U/
Just use the USB port for charging (like it should be used for), and stream your Audio over bluetooth. You won't even have to have an AUX cord coming from your Nexus 4. Perfect solution for a Nexus 4 mounted on the dash.

[Q] Audio over USB with Android 5.0

I know there have been threads in the past about the Nexus 4 not being able to support outputting audio over USB, but now that stock Android 5.0 supports it, can the Nexus 4 do it?
I'm using the factory 5.0 images and I have an external DAC/amp that I want to use (Fiio e18) that's made for Android, but nothing seems to happen when I hook it up. I've read posts that the Nexus 4 physically can't output power over it's USB, which is fine because the DAC has it's own battery source... but can it at least output the audio?
I started with the stock kernel, but also tried the latest Franco kernel (r214) with no luck. Also, I verified the DAC itself works by using it with my laptop. I'm hoping there's just some hidden setting or patch I need to apply to get it to work... Has anyone else tried this yet?
kerb12 said:
I know there have been threads in the past about the Nexus 4 not being able to support outputting audio over USB, but now that stock Android 5.0 supports it, can the Nexus 4 do it?
I'm using the factory 5.0 images and I have an external DAC/amp that I want to use (Fiio e18) that's made for Android, but nothing seems to happen when I hook it up. I've read posts that the Nexus 4 physically can't output power over it's USB, which is fine because the DAC has it's own battery source... but can it at least output the audio?
I started with the stock kernel, but also tried the latest Franco kernel (r214) with no luck. Also, I verified the DAC itself works by using it with my laptop. I'm hoping there's just some hidden setting or patch I need to apply to get it to work... Has anyone else tried this yet?
Click to expand...
Click to collapse
pls report your findings if you can make it happened!!
i can not help you with your problem but it is something that interest me too. i only can suggest to use a more feature enabled kernel like unleashed or hells core
pls report your findings if you make it work mate!
That's a good idea... unfortunately no dice with the latest unleashed kernel either (98u). It claims it supports USB OTG, so I was hoping that would be enough, but maybe there's more that needs to be done.
kerb12 said:
That's a good idea... unfortunately no dice with the latest unleashed kernel either (98u). It claims it supports USB OTG, so I was hoping that would be enough, but maybe there's more that needs to be done.
Click to expand...
Click to collapse
one thing that you might not know. nexus 4 does support usb otg BUT cannot provide electricity via usb. you must use a y cable and provide external power so you it might not be possible to use your DAC!
Thanks, I did know that, but I figured that since my DAC is self-powered (it has its own battery) that I wouldn't need to do the y-cable trick.
Worth a try though, I'm going to order one and see if I can at least get regular USB OTG to work. Maybe once that's working it'll be easier to troubleshoot the audio.
Just wanted to update, I got the Y OTG cable so I could have external power at the same time... but still doesn't work. This is with stock 5.0.1 and unleashed 98u kernel. I went into Synapse and enabled the OTG setting as well. DAC doesn't get recognized, and I tried a few free apps that are supposed to do OTG checks, but they all came back that nothing is attached.
Usb otg is one thing and uab audio out is another. USB otg means that you can connect an USB stick or external hdd to your phone ( with or without external power) USB AUDIO OUT need special circuits from your internal Dac to the USB. If those are not implemented you will never have USB audio out. This is something witch depends on the manufacturer ( S4 mini with snapdragon 400 don't work with USB otg or USB audio out, htc mini 2 M8 works perfectly with fiio E18 as a audio surce for external DAC). So if you really need USB audio out please next time do your homework and read before buying a phone. P.S. Htc mini 2 M8 has the best audio ever and really you don't need an external dac. If you need more power just use your fiio as an amplifier with your phone.
Maybe you could find for your phone a apecial kernel modified for better audio experience. Flash that and use your headphones.
Good luck!
Thanks, yeah I don't need usb audio out... I've had the phone for over 2 years and I still really like it, so no plans on getting a new one just for this.
I believe it's physically possible to do audio out on the N4... I've seen random posts about people getting it to work, but they've all been on custom ROM's based on 4.4.x stuff. I'd really rather not try to reproduce that since 5.0 is running so much better on my phone, and I was just hoping with the new native Android support it might work out of the box. But alas, it looks like google locked down 5.0 on the N4 - even USB OTG storage doesn't work unless you put a custom kernel like unleashed on.
In the meantime, I've just been using it as a headphone amp like you suggest and it's a big improvement.

[Q] Charging in USB-C OTG-host mode

Hi guys,
I am using a pass through-powered USB-C hub through which I am using external USB devices (keyboard and mouse), as well as a larger monitor for screen mirroring. This works reasonably well. However, the USB-C hub, while powering the external devices, does not charge the phone while it is in OTG host mode (which is needs to be in order for the external devices to work). This leads to the problem that the phone is slowly draining when external devices are used to play games, work on spreadsheets, or whatever. So, I was wondering why this is and found that OTG host mode charging seems to be restricted by the kernel. Very annoying!
Looking around I found that there are custom kernels for other phones that tackle this problem (examples here (OnePlus One) or here (for Xperia Z5 compact)). Which leads me tot he question: is there any known solution for this problem for the OnePlus5? Is there a custom kernel supporting charging in OTG host mode? Is there any other work-around that would allow me to power my device while using OTG?
Thanks!
PS: My device is rooted but is otherwise running on stock kernel and ROM.
Froschface said:
Hi guys,
I am using a pass through-powered USB-C hub through which I am using external USB devices (keyboard and mouse), as well as a larger monitor for screen mirroring. This works reasonably well. However, the USB-C hub, while powering the external devices, does not charge the phone while it is in OTG host mode (which is needs to be in order for the external devices to work). This leads to the problem that the phone is slowly draining when external devices are used to play games, work on spreadsheets, or whatever. So, I was wondering why this is and found that OTG host mode charging seems to be restricted by the kernel. Very annoying!
Looking around I found that there are custom kernels for other phones that tackle this problem (examples here (OnePlus One) or here (for Xperia Z5 compact)). Which leads me tot he question: is there any known solution for this problem for the OnePlus5? Is there a custom kernel supporting charging in OTG host mode? Is there any other work-around that would allow me to power my device while using OTG?
Thanks!
PS: My device is rooted but is otherwise running on stock kernel and ROM.
Click to expand...
Click to collapse
Nope and it won't, I have a thread in the themes and apps section about targus display docks as after much research I found that it is the only way to reliably mirror your screen in real time with no latency issues, with that being said there is no charging whilst this is in use, I wish there was but there isn't.
It's possible I suppose that power could flow both ways but after all the time that I've spent looking, I'm yet to find it.
I've tried over 10 docks, splitters, dual output cables. Devices with power input, none have charged the device.
I think the nature of the way display link works it just doesn't allow it.
dladz said:
Nope and it won't, I have a thread in the themes and apps section about targus display docks as after much research I found that it is the only way to reliably mirror your screen in real time with no latency issues, with that being said there is no charging whilst this is in use, I wish there was but there isn't.
Click to expand...
Click to collapse
Yeah, I saw your thread. In fact, I was just about to post in there another - much cheaper - device I'm using for reliable mirroring.
Edit: actually I posted it in the 'usb-c to HDMI adapter'-thread, in which you were also quite active.
dladz said:
It's possible I suppose that power could flow both ways but after all the time that I've spent looking, I'm yet to find it.
I've tried over 10 docks, splitters, dual output cables. Devices with power input, none have charged the device.
I think the nature of the way display link works it just doesn't allow it.
Click to expand...
Click to collapse
Yeah, it is definitely possible (see the threads I've linked). But it depends the kernel allowing it, from what I understand. Anyways, if nobody has come up with a kernel allowing for it, then it won't happen I guess.
Froschface said:
Yeah, I saw your thread. In fact, I was just about to post in there another - much cheaper - device I'm using for reliable mirroring.
Edit: actually I posted it in the 'usb-c to HDMI adapter'-thread, in which you were also quite active.
Yeah, it is definitely possible (see the threads I've linked). But it depends the kernel allowing it, from what I understand. Anyways, if nobody has come up with a kernel allowing for it, then it won't happen I guess.
Click to expand...
Click to collapse
With displaylink technology it's not possible.. with previous hardware ie the HTC 10 it was but only with standard usb to hdmi converters, displaylink doesn't allow it.
In regards to usb OTG cables, I've never tried.
dladz said:
With displaylink technology it's not possible.. with previous hardware ie the HTC 10 it was but only with standard usb to hdmi converters, displaylink doesn't allow it.
In regards to usb OTG cables, I've never tried.
Click to expand...
Click to collapse
Oh.. so then there is a second limitation based on DisplayLink. Aside of the kernel.
Well. Luckily the OP5 has great battery life. A few hours of activity is no problem. Especially since I run everything through a USB-hub with its own power source anyway.
Froschface said:
Oh.. so then there is a second limitation based on DisplayLink. Aside of the kernel.
Well. Luckily the OP5 has great battery life. A few hours of activity is no problem. Especially since I run everything through a USB-hub with its own power source anyway.
Click to expand...
Click to collapse
From my tests I've found the hub being powered makes no difference to the drain of the battery on the phone..
The OnePlus has got amazing battery life, definitely something I need in my life for my next device..
In regards to charging whilst using a displaylink honestly my comment is based on the testing of around 20 different devices and none of them allow charging, if it exists I personally haven't come across it.
A shame but not the end of the world..
Lava - Simulcharge
For what it's worth, I had a difficult time finding a device which supports simultaneous host charging as well. As it turns out, there is a device called the Simulcharge from Lava Computer that works quite well on Samsung tablets. I'm not sure if it will work with other Android devices: (unable to post link - search amazon).
It's a bit expensive but it works great!
Is there a cheap displaylink that works with the OP5 that also has a USB port for peripherals?
Sorry to revive this thread from the dead, but I'm also looking for a way to connect both charger + USB-OTG at the same time. I have a USB C hub that's capable of that, it works perfectly fine on my Oneplus 7. However on the OP5 it's either OTG or charging.
Did you ever found a way?
XlAfbk said:
Sorry to revive this thread from the dead, but I'm also looking for a way to connect both charger + USB-OTG at the same time. I have a USB C hub that's capable of that, it works perfectly fine on my Oneplus 7. However on the OP5 it's either OTG or charging.
Did you ever found a way?
Click to expand...
Click to collapse
Hi ! I have a custom app specifically developped for OP6 and have the issue you have on OP5 : otg OR charching. I have seen Krieg Kernel enables it on OP5. Have you tried it ?
I'm looking for some Kernel for OP6 but nothing seems to answer my need....
romanarteefact said:
Hi ! I have a custom app specifically developped for OP6 and have the issue you have on OP5 : otg OR charching. I have seen Krieg Kernel enables it on OP5. Have you tried it ?
I'm looking for some Kernel for OP6 but nothing seems to answer my need....
Click to expand...
Click to collapse
Hi! I am looking for exactly the same thing for OP6. Hope there's something now
Froschface said:
Hi guys,
I am using a pass through-powered USB-C hub through which I am using external USB devices (keyboard and mouse), as well as a larger monitor for screen mirroring. This works reasonably well. However, the USB-C hub, while powering the external devices, does not charge the phone while it is in OTG host mode (which is needs to be in order for the external devices to work). This leads to the problem that the phone is slowly draining when external devices are used to play games, work on spreadsheets, or whatever. So, I was wondering why this is and found that OTG host mode charging seems to be restricted by the kernel. Very annoying!
Looking around I found that there are custom kernels for other phones that tackle this problem (examples here (OnePlus One) or here (for Xperia Z5 compact)). Which leads me tot he question: is there any known solution for this problem for the OnePlus5? Is there a custom kernel supporting charging in OTG host mode? Is there any other work-around that would allow me to power my device while using OTG?
Thanks!
PS: My device is rooted but is otherwise running on stock kernel and ROM.
Click to expand...
Click to collapse
Did you ever find a solution to OTG plus charge, perhaps via a different ROM? Thanks.

Categories

Resources