yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] lob3s:
USB DAC compatibility with Android 6.0.1

Hey everyone,

I just got my Joying head unit installed in my car, the JY-UM128N2 - the 7" model with the capacitive buttons running Android 6.0.1, and paired it with a DAC recommended on the first page, the Muse DAC with the PCM2704. On first boot, I installed Neutron Player and was able to get music to play back from the DAC, but was unable to control the volume. After that, I rooted my unit and performed the audio_policy.conf mod on the first page, which routed all audio to the DAC successfully. However, I still did not have volume control of the DAC; volume still seems to be stuck at max. I performed the SofiaServer 4-27-17 USBDAC mod (which should work even though my unit has capacitive buttons and not physical buttons, right?) at this point, but still do not have volume control of the DAC. Audio is also being output in mono rather than stereo, which seems to be a common issue with many USB DACs on Android 6.0. Had I known this prior, I would've gone for a 5.1.1 unit.

Can anyone make a recommendation for a USB DAC that is confirmed working with volume control and stereo output in Joying sofia units running Android 6.0.1? I'm running the September 1st release, and my MCU version is May 25th- 5009. I'm considering one of the HifiMeDIY Sabre DACs at this point, but am unsure which revision to go with.

A huge thank you to everyone in this thread that contributed!

___________________________________________________

EDIT: If my MCU version is May 25th 5009 and my firmware is the September 1st version, is it possible to downgrade to the April 27th firmware? It seems that was the last release a USBDAC mod was made.

EDIT 2: Okay, downgraded from the September 1st release to the April 27th release, success. My MCU version is still at the May 25th release however. Performed the audio_policy.conf mod and 4-27 USBDAC mod by [MENTION=503463]AssassinsLament[/MENTION] and my DAC still doesn't have volume control. Any ideas? Could this be because I'm running the May 25th MCU? Or is this just an issue with my DAC in particular? I'm running the Muse PCM2704 based DAC, and running the RCA outputs on the DAC to my stock bose amplifier (if that makes a difference).
[Android Head-Units] arshish1612:
Hi,

My current setup is as follows:

Oneplus5 -> OTG Cable -> Behringer UCA202 -> Spidf Cable -> Helix DSP.2-> Amplifier.

This works perfectly but I need to control everything via the phone. Also, my HU RCA cables also go to the Helix so when I get a phone call the Helix switches over to RCA.

I am about to purchase the Sofia HU with the volume soft keys (no knob) and have some questions:

1. I DO NOT have the Helix remote volume controller, so with the mods mentioned in this thread will I be able to controller the volume? Page 1 mentions the Helix as compatible but does not mention Volume control compatibility.

2. What would be better for quality? Getting the Helix USB module and connecting USB or my current path of using the UCA 202 to convert from USB to SPIDF?

Thanks!

Arshish
[Android Head-Units] arshish1612:
Just found this: http://superpowered.com/ Thought it might be usefulf for some of the DEVS out here trying to get the best USB digital audio from these devices
[Android Head-Units] RoNeReR:
i use the hifimediy sabre u2, with the dacmod. work great. ( the only problem is the quietest volume step still little loud.)

for get the volume working, u must create file on root of your internal storage with the name USBDAC.
[Android Head-Units] aplusmiami:
I have the GM version of the radio with android 6.0.1. I am getting choppy Audio on Bluetooth connection using either my LG V20 or Samsung note 8. Can anyone provide some helpful tips to correct this
[Android Head-Units] Scarecrow1982:
Hello,

deos anyone know if usb dac/ddc is working with the new px5 models?

Thanx
[Android Head-Units] aplusmiami:
Did a factory reset. Erased everything. Back to normal.
[Android Head-Units] gsk_1905:
Hello everybody , i connected to behringer uca202 to my Android 5.1.1. Problem is no voice from speaker. But when i use usb audio player it shows connected usb dac. Another programs (like deezer) also without voice. If i remove usb All sound coming from speakers with any program. What can be wrong ? From behringer output i should connect rca jack to head unit ? When i put headphone to behringer i hear sound from all program. But i can not hear any voice from car speakers.
[Android Head-Units] lob3s:
I never gave an update on this Muse DAC in Android 6.0, but to anyone reading this, do NOT order the Muse DAC if your unit is not running Android 5.1. I managed to get volume control working (screwed up with the SofiaServer USBDAC mod), except the volume bar didn't seem linear. I.e., from about 0 to 1/4 up the volume bar, the sound is mute, and from 1/4 to 1 up to volume bar, the sound was increasing in volume, but the lowest level at 1/4 was still too loud. I never got stereo output working on that DAC, and only managed to get stereo sound in USB player pro. The sound was decent in USB player pro.

So I ordered a ES9023 based DAC (this one https://www.ebay.com/itm/New-SA9027...e=STRK:MEBIDX:IT&_trksid=p2060353.m1438.l2649) a few weeks ago, based on feedback in other Android 6.0 USBDAC threads, and it finally came in the mail today. I'm now getting stereo sound output in all apps. Furthermore, volume control is actually linear now, and it sounds a hell of a lot better than my PCM2704 based DAC.

Overall, I'd say this is a great budget DAC for our head units. I'm happy with my purchase.
[Android Head-Units] aplusmiami:
Has anyone used a usb to video adaptor with a external camera. I wanted to be able to record via the video input but apparently the DVR app only works with certain webcams. What webcams are you guys using?
[Android Head-Units] Scarecrow1982:
Hello,

if I have applied the mod and it will output an audio signal via USB, is still output via the RCA outputs in parallel an analog signal?

I'm wondering if the mod is still needed, as in this update the audio_policy.conf already supports USB DAC.

Many thanks for the answer!
[Android Head-Units] kampfschachtel:
No mod is not needed. But you still have the volume regulation problem. I used the master volume of my external DSP.

No there is no parallel output but there is still analog output from the sources that don't go via joying internal DSP like the FM radio.

That means you need to connect via RCA analog (for eg FM radio) and digital (eg Spotify) in parallel so you get sound from all sources. Again my external DSP is sorting this out and switches between digital/analog Input sources depending on input signal.

If you have a unit with the 6021 (newer ones, search on XDA 6021 + joying for more details) I recommend to skip the digital out and connect everything via RCA analog. Prerequisite for that is you are running viper4joying as 6021+viper creates a better RCA signal out the you get after your external DSP as viper is able to use internal DSP in 32bit mode versus 16bit/48 via USB digital out. Running joying via USB out creates so much downsides that it's not worth the additional efforts. To run viper properly you need Android 5.1 or the first realease of 6 which is the one from 25may.

I know some people working on this issue but it is not sorted yet.

I do this and run may25 release as my exchange unit came with 6 preinstalled. With 6 and this release the eq in the viper doesn't work properly but I don't care as I use the much better eq of my DSP Audision bit one for this anyhow.
[Android Head-Units] Scarecrow1982:
Happy New Year!

Thank you for your detailed feedback. That's not good, it did not come across on the first page so not all sources are output via USB.

I thought that this way I finally got digital sound in the car.

After all, my Mosconi 6to8 has a digital input.

But if you write that it makes no sense and I prefer to put on the combo analog + Viper, then the question arises for me after the sound quality.

So how is the sound quality Joying with analog output + Viper compared to my Dynavin N6 or the new N7 with analog output. But you probably can not answer that, right?

I also do not understand that the market is literally flooded with DSPs with digital input, but there are hardly any head units with a digital output.
[Android Head-Units] DylanHarper:
Hi Scarecrow1982,

Can you advise on what APPS are playing through USB Audio,

Regards
[Android Head-Units] Scarecrow1982:
Hi Dylan!

since I have neither a joying nor a usb dac, I can not tell you unfortunately.

All I know is, that the phone and radio probably not run on the dac.
[Android Head-Units] DylanHarper:
Thanks Scarecrow

I finally managed to get USB Audio out with the Dragon Fly Black DAC, however it's only playing music saved on the device through the following apps.

1. HiBy Music

2. Onkyo HF Player

3. USB Audio Player Pro

With that being said, I don't notice a vast improvement on the sound, i may throw the towel in and buy a tablet or a clarion head unit which can support optical out.

Cheers
[Android Head-Units] gsk_1905:
I have problem about getting sound from speaker. When i connect usb dac behringer uca202 , i can listen music with headphone but from car speaker there is no voice. What can be problem ?
[Android Head-Units] surfer63:
For those with a USB DAC and who follow the developments of Xposed on our Sofia 3GR units.

Please take a look here: https://xdaforums.com/showpost.php?p=75627232&postcount=434
[Android Head-Units] surfer63:
User [MENTION=2362256]RoNeReR[/MENTION] managed to make the usb dac functionality working inside the XSofiaTweaker (general thread; specific post)
[Android Head-Units] a_ahmed:
So are you saying that using something like neutron player which can do high resolution and 64bit, you cannot output to USB DAC at anything BUT 16bit? not even 24bit 96khz?

I ordered this DAC with the intention of getting higher quality output with Viper4Android, Dolby Atmos, the usual audio mods and then the DAC...

https://www.amazon.ca/gp/product/B00FEDHHKE/ref=oh_aui_detailpage_o04_s00?ie=UTF8&psc=1

Signstek HIFI USB to Coaxial S/PDIF Converter Decoder Convert Digital to Analogue Signal Mini USB DAC PCM 2704 Chipset with USB Cable

---------- Post added at 07:59 PM ---------- Previous post was at 07:57 PM ----------

It uses PCM2704, similar to MUSE USB DAC unit but a bit better. I intend to replace all the capacitors and internal components with hifi spec components, etc... for even better quality sound. Someone in fact did that already on the amazon reviews with pix which was cool :)
[Android Head-Units] lotte67890:
I would need some advice. I have a Joying JY-UMS01N2 running the GTX ROM from here and use a USB DAC which works brilliant (RCA is not connected!)

But I have some issues:

1. Like mentioned somewhere in this thread I can´t control the volume by the Joying Headunit when streaming Bluetooth. This I solved by putting the alarm volume of the Android Volume Settings to an acceptable max level and control the Volume by my phone.

2. When I receive a call the HU rings through the DAC, but after picking up the call I can not hear the conversation participant. (Funny thing is that I even hear the notification sounds when I receive a sms or whatever).

What is the difference between a call and the ringing or notification sounds, since they all come from the same device? Sure the ringtone is different (I assume Joying has it´s own one in their phone app), but the notification sound played through the USB DAC is the same as on my phone, I tested it when switching the notification sound on my phone, they are played twice, one on the phone and the second time on the HU through the DAC.

Can someone clarify why I hear no voice from the conversation participant? Can I somehow control the Bluetooth Volume e.g. as media instead of alarm (routing)? Can I somehow stop the notification sounds passed to the HU?

Thanks a lot!

Lotte
[Android Head-Units] smaIlz:
So I have an Intel SoFia based Joying with an FYT6021, and the sound quality is poor. I already have a custom ROM with viper4android and it improved some quality issues.

Now it goes:

Joying HU Chinch Pre-Out's> Focal FPX4.400SQ > Eton POW160.2 (front)

But I want to do it like this:

Joying USB out > Behringer UCA 202 > Focal FPX4.400SQ > Eton POW160.2 (front) for Music and listening quality

But if I do this.... I am only able to control the Loudness for the "Quality-Setup" from the Behringer UCA 202 and not from the Volume buttons from the HU? or is there another recommended DCA which support to adjust the loudness from the HU buttons? I don't mind that some App's doesnt work with a USB DCA. I always listen to music with an USB Stick, and with the Launcher I use, the BT Audio App doesn't work anyways, so no Problem. But I do want that the Buttons from the HU does work.

Thanks for any help.
[Android Head-Units] surfer63:
For a USB-DAC this only works with Xposed and XSofiaTweaker/XFYtTweaker. If you have the gtxaspec custom rom you have xposed. Install XSofiaTweaker (seems to work better on Sofia especially with regard to volume settings). See my signature for further explanation and this thread.
[Android Head-Units] smaIlz:
Thanks, this worked for me, and the sound quality is much better!! In near future I want to put a Subwoofer in my car, is there a way that I can connect it, without buying a DSP? The UCA202 only has 2 Cinch Outs, and I really want to use a DAC, the sound is much better. Maybe buying an other DAC? what options do I have?

Thanks for your help.
[Android Head-Units] kampfschachtel:
I have the same, just 2 DIN mount one. Did you try in poweramp or music player pro if the volume control works there too? If not could you test this please as I won't use kodi? Just tested this on my android phone (Huawai P8) and both apps work as overall volume control when volume set to direct out in the settings. And I have more max Volume on my phone too.

My suggestion is that we all request from Joying a USB sound out firmware version, the more people ask the higher up this requirement will move. And it is in thier favour too as sound quality will improve to a another universe with external DAC.
[Android Head-Units] WILD9:
The 3 EQ sliders are controlling the hardware EQ on the built in DAC which only has 3 bands so there is no equivalent solution with more bands. Viper4android will do this in software though.
[Android Head-Units] kampfschachtel:
Thank you, Not what I wanted to hear but I expected that answer:(

as I need to route my joying for the external DAC mod, I will also install V4A which I didn't do till now due to unrooted at the mo as everything works like charm till now. Never change a running system.....
[Android Head-Units] WILD9:
Which software/APK did you disable?
[Android Head-Units] AssassinsLament:
Sofia-1-C9-Server-V1.0.apk

That is the file that controls almost everything on the Joying.
[Android Head-Units] WILD9:
Yeah I guessed that's what you meant, might be worth unpacking it and taking a look. the solution would seem to be disabling the auto volume maxing and then capturing input from the volume control via the MCU and directing the "button presses" to control the system volume. The second half of that would seem to be fairly straightforward thanks to the work in the other thread.
[Android Head-Units] kampfschachtel:
or requesting it from joying directly, if we all ask to make this priority they most probably will. Will do, please do the same.

I am no developer, so I cannot help here. I installed poweramp pro and music player pro, they both taking over the volume control of the joying but everytime you start them the volume is max. level and you need to put volume down.

Alternative solution, get an car audio DSP with USB/SPdif input and own preamp with remote volume control which also gives you min 5 channel output with a gain controlled sub out eg. Mosconi 4to6 DSP sdpif or Helix P8 both are 350-400Euro which can be remotly controlled via an Android App. Advantage you have 5 RCA outputs and not one 3,5 Klinke plug.
[Android Head-Units] AssassinsLament:
Yep, already traced through the code and have an idea of what to do. Smali just isn't very forgiving.
[Android Head-Units] AssassinsLament:
Usbdac mod 1.1

After a few days of tracing code and hacking code, I came up with a solution I think is acceptable. So here it is!

Basically, if the mod finds the file /sdcard/usbdac then it stops Joying's software from changing any of the volumes, then it also allows Joying's physical volume knob/buttons to change Android's media volume which in turn should allow usb dacs to work as intended.

Sofia-1-C9-Server-V1.0.apk gustden's custom keys mod, with my usbdac mod

audio_policy.conf has been modded to include usb audio support

Make sure you have adb installed and working properly.

The install is in dos/windwos batch format, but you can take each

command in the install.bat and run them individually in linux.

!!IMPORTANT!!

To enable usbdac volume control, you must create a file "usbdac" on the root of your sdcard. Example:

/sdcard/usbdac

You can do that with either an android file manager or the adb command:

adb shell touch /sdcard/usbdac

To disable usbdac volume control and set it back to normal, just remove the /sdcard/usbdac file.

adb shell rm /sdcard/usbdac

When usbdac is enabled, the physical mute button triggers [MENTION=3076686]gustden[/MENTION]'s custom keys mod:

164)
$anycommandhere
;;

So just add that to /data/launcher.sh, or just leave it, just know the button won't do anything.

I tried to set it to mute the audio, but sadly Joying didn't enable android system's mute keyevent.

Let me know of any side-effects of the mod! Make sure you guys have a supported Joying!

Unzip attached file, use a command prompt and do:

install.bat <ipaddress>

Linux users, just adapt the commands or run each adb command on it's on.

Enjoy!

EDIT:

USBDAC Mod v1.1

Sorry guys, had a typo in my install script so it installed Sofia-1-C9-Server-V1.0.apk into /system/priv-app instead of /system/app where it should have been.

So please remove the /system/priv-app/Sofia-1-C9-Server-V1.0 folder and re-install.

Thanks to a tip from gustden, updated the mute button to work as intended, but removed the option to map it in [MENTION=3076686]gustden[/MENTION]'s custom key mod.

Also updated so that the volume toast pops up to show the current volume level.
[Android Head-Units] dongali:
To my understanding, I connect the USB DAC to the usb port of the Joying Intel Sofia Headunit, then what do I connect to the USB DAC? I am very new to car stereo so a quick diagram of how everything is connected together with USB DAC would help greatly, thanks!
[Android Head-Units] AssassinsLament:
A dac basically handles the audio signal and outputs it to your speakers/amp. Basically, Dac connected by usb, the dac will have either RCA outputs or a stereo output (headphones jack), so you just connect that to your amp.
[Android Head-Units] dongali:
Is it possible to connect the wires going out from the Amp back to the Joying Head unit? Or I will need to connect to each individual speaker in the car?
[Android Head-Units] AssassinsLament:
Since the dac only outputs low level signals, you would need to be able to amplify those signals to drive a speaker. Sadly, there is no way to send it back into the head unit to use as an amp.
[Android Head-Units] kampfschachtel:
Thank you so much for this:victory::victory::victory:

I am only able to try it out in 3 weeks:( cannot wait to do that.

Still not sure which DAC I get, I need 4 RCA Outputs (Front&Back) with min. 2V max output as Inputs for my B&O DSP Amp of the Audi R8. The only two I found is the MiniDSP 2to4 HD for 250Euro or directly the Audison Bit ten D for 385 Euro....

If I use dragonfly red with 2V output as originaly planned and get an adapter Klinke to 4RCA, each channel gets 1V and not 2V:( so NoGo.

question regarding mod & mute:

If you set mute in the settings e.g. when a call comes in or resversing when back camera goes on does the joying mute in this cases or not? Or i just the physical mute button disabled/not functional, which the 10.1 doesn't have anyway?
[Android Head-Units] kampfschachtel:
not sadly, thanks god not as you won't need a DAC then.

If you don't have an external amp yet, it maybe makes sense to get an DSP Amp= DAC+Amp in one. Mosconi has good ones, also value for money.
[Android Head-Units] dongali:
I was not able to find any amplifer on Amazon with DAC support. No USB inputs for sound only RCA. Could you link me an example of this DAC/DSP Amplifier?
[Android Head-Units] AssassinsLament:
I haven't tested or tried yet so I'm not sure. Hopefully people who test it will let us know.
[Android Head-Units] HVB83:
http://mosconi-system.it/product/gladen-one-130-4-dsp/

---------- Post added at 07:26 AM ---------- Previous post was at 06:48 AM ----------

The two you mention do not work in this situation, since we need a usbdac and the two units you're referring to aren't able to do that.

What you need is a device like the Behringer ACA222 (but in 4-channels) or Asus Xonar U5. Please be aware though that not all devices are compatible with our headunits. Some don't work at all, some will lack volume control, so until you try, nobody can tell for sure.
[Android Head-Units] kampfschachtel:
I am aware that it is try and error, thats why I search on forums if they work with andriod 5 phones and both confirmed working with android 5.

Did you test both DAC i mentioned with the joying?

- The MIniDSP 2to4 HD has Spdif (which can decode PCM signal the Joying delivers) and USB input, dedects automatically the sample rate and works with android 5 phones due to the MINi DSP forum, So same chanche it could work like every other USB DAC proven to work on an android 5 phone... Good thing it has already an DAC (with up to 384/56bit and DSD/i2)+DSP build in too with e.g. a 30 band parametric equalizer, limiter and an analog premap which can be steered via an external remote (would install it like the BMW Idrive in the center console), so I can use this too for the master volume issue instead of modding the joying...

- the audison bit ten D has an Spidf input (which can decode PCM the joying delivers via USB) so you need an adapter USB to Spdif to connect it. Due to the hifi forum it also works with android 5 phones via the OTG cable and USB to Spdif adapter. So same chanche it could work like every other USB DAC (that is why i created the DAC work/partly/not work list in Post 1 of this thread). It also has an analog premap too which can be steered via an external remote (would install it like the BMW Idrive in the center console), so I can use this too for the master volume issue instead of modding the joying...

Do you have different experiences?

The Behringer UAC 202 has too less output level (less then 2V, which results in less then 1V when using an y-spliter) and only one pair of output so I cannot change the fader front/back as the B&O amp has no input gain controller. Same dragonfly red or Fifo 10, non of usb dacs with one Klinike output has more then 2V...
[Android Head-Units] kampfschachtel:
all the DSP amps have an SPDIF digital input (sometimes you need to buy an add on plug in modul with the SPDIF input), so you need an USB to SPDIF adapter.

Google Mosconi DSP amp (cheaper series is one, the pro is upper class) or Helix DSP amp (upper price class), both work with andoid 5 phones. HBV83 posted already a link. As you are a newbie to this I suggest to take mosconi ones as user interface and setup is very easy and well done.

[MENTION=273616]HVB83[/MENTION]: the Mosconi DSP 4to6 Spdif looks like it has also potential to work, due to mosconi it works with Android 5 phone and has even an android app to steer it, which could be installed on the joying. you also need an USB to SPDIF adapter to connect.
[Android Head-Units] HVB83:
Regarding the minidsp you are right, that is indeed an usb-dac. The other two only accept spdif afaik. Going the spdif route, I think your usb/spdif converter (I assume Joying doesn't have an spdif output on board?) should communicate with the headunit regarding volume changes etc. To me it seems in that case you need to verify compatibility with the usb-spdif converter.