yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL Themes, Apps, and Mods] Pawer8:
Thanks a lot. This worked for the apple dongle (from the uk so I imagine the lower power version?) on a oneplus 5t playing from qobuz.

You just saved my office audio setup. So thanks a lot.
[Google Pixel 2 XL Themes, Apps, and Mods] roiikka:
Thank you! Works a'charm on Android 12 Stock, OnePlus N200 to turn up this audiojack. Goes loud af now! 😎
[Google Pixel 2 XL Themes, Apps, and Mods] Hemant Dhillan:
Hello @bjrmd

Can we use this with any other x64-based phone?

I'm using a Xiaomi device with custom rom
[Google Pixel 2 XL Themes, Apps, and Mods] Hemant Dhillan:
getting this error
[Google Pixel 2 XL Themes, Apps, and Mods] roiikka:
https://www.reddit.com/r/headphones/comments/s8an4h
[Google Pixel 2 XL Themes, Apps, and Mods] roiikka:
I have a Note 8 it worked on here and it worked on my OnePlus N200 5G also (see link above)
[Google Pixel 2 XL Themes, Apps, and Mods] Lossyx:
It's been a few years, but are there any plans on updating this to support Android 13 (and Pixel 7 Pro).

or if anyone knows another way to achieve this result.
[Google Pixel 2 XL Themes, Apps, and Mods] srippon:
It's strange that no one here has figured out how to do this volume fix without root because UAPP (USB Audio Player Pro) does the same thing - i.e., hardware Volume Control for USB DAC, etc, system wide - tested working on my Pixel 6a with Apple dongle, Android 13 - yet UAPP doesn't need root! Wish there was a simple free alternative though without having to root. :)
[Google Pixel 2 XL Themes, Apps, and Mods] roiikka:
True. I need root, personally, since my bass equalizer curve is so steep. With that much bass it limits (limits/compresses) the bass to get a kind of muffled sound and the volume lowers each time it hits. In the root system/vendor/etc and all that mixer_paths files raise that ceiling so that frequency-wide limiting is not an issue. It's why I tested it on things like this (I tried the Mac one, the Google one, the Samsung one) and mini USB sound cards via mini OTG cable (to keep it pocketable). Root on some devices causes the system to lack sometimes. Also understood. My Note 8 I currently am using now, root is only obtainable on Android 7.1 .. No custom notifications, Discord chat notifications do not show unless on VPN sometimes.

It's just a matter of perception, it seems ..

But ya, not everybody wants to root their phone. That's why banking apps not allow opening on ooted phones. Security.

I just root for music related reasons. Half in the same boat as you, half not. Why need root to modify audio files ?? 😂
[Google Pixel 2 XL Themes, Apps, and Mods] LameMonster82:
If you want to increase the volume for headphones 3 rings plug the command is.

su -c tinymix -D 1 3 150
[Google Pixel 2 XL Themes, Apps, and Mods] jormil1:
Hey, guys! A little late to the party but anyways, I made a step by step tutorial on Instructables on how to bypass the power limit. Here you go => https://www.instructables.com/Apple-USB-C-35mm-DAC-on-Android/

Enjoy!
[Google Pixel 2 XL Themes, Apps, and Mods] mixces star:
Excellent guide, worked perfectly for me 👍 (Pixel 2xl - Pixelbuilds Android 14)
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Thanks, I know what the issue was.

For some reason your Dragonfly reads slightly different than mine.

Try this, it should be good.
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
Works perfect! Thank you very much!
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Updated app as above to work with some variations of Dragonfly red

Spl accuracy improved.
[Google Pixel 2 XL Themes, Apps, and Mods] Nathan-K:
Great work [MENTION=281070]bjrmd[/MENTION]. I'm really curious about this issue too. I poked around a little bit with Nexus 6P audio in the past, but this USB-C dongle has me fascinated. I had a Pixel 2 XL for a short bit, and played with the dongle on my Nexus 6P, but had to send it back. :( So I no longer have access to one to test.

I signed in just to let you know the Google dongle enumerating as a USB audio device dynamically is a

feature

, not a bug. It's intended to work this way. Benson confirmed this in a Google Plus post.

Basically, it's intended to prevent you from "accidentally" null-routing notification sounds (or muting the mic) merely by plugging in an unconnected dongle. It will first probe the TRRS of the attached device. If it detects TRS stereo headphones, it will dynamically enumerate as stereo output ONLY. If it detects TRRS stereo headset, it will dynamically enumerate as a mono microphone input AND stereo output. This can be verified by enabling System UI tuner, and toggling the "headset connection" display icon in the taskbar. (Boom mic icon = headset, headphones icon = stereo. Very useful for troubleshooting CTIA/OMTP autodetection errors.)

(I suspect, but have not tested) If you connect a TS, TRS microphone, it will enumerate a mono, stereo mic input device (respectively). Again, I haven't tested this, but I suspect it's true. (I could be wrong. :confused:)

Your Dragonfly always enumerates as a stereo out, so won't encounter this. Just thought I'd highlight a bit of Google's fancy engineering.

I wish I had the hardware to investigate the rest of your data and pass it on to the engineers at Google, but unfortunately I don't have access or funding of that sort. The most I can do as a volunteer is spectate and pass it on. And give you massive props for the amazing work you are doing. :good: :)
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
[MENTION=281070]bjrmd[/MENTION] one little question. Do you think it would be possible to support the u11?? I mainly ask because your work is working alongside spotify.

Or could you guide me on what needs to be done?
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Do you want support for the HTC adapter on the Pixel, or the app to work on the U11 phone itself.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Thanks for the info.

I realized the complexity of the Google dongle when I figured out it actually has 3 voltage out limits depending on impedance.

They did a superb job on the hardware but there must have been a disconnect in the software design of gain mixing.

The below 1 ohm impedance, potential 1.8 V output and outstanding crosstalk are unmatched.
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
ah crap. I wanted to write something earlier and forgot it. I also own a u11 and the htc adapter from the 11 isn’t recognized on my pixel xl 2 as well. And I did all software updates for the dongle on the htc phone.

But the request was about getting the app to work on the u11 at best with htc, google and especially the dragonfly red dac. As the dragonfly is only fully usable with usb audio player pro on the 11.

So no spotify with proper gain support. Would be great to have. ;)
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Ok, let's look at each issue.

Could you post a logcat of the HTC adapter getting plugged into the Pixel, with a query of 'usb' so we can see why it's not working. I have the same issue and just ordered a new one from HTC.

Next, is your U11 rooted with Magisk?

If so, try my app (latest version)with the Dragonfly and see what happens. You will need the tinymix file as before.
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
Sorry for the late reply I’m really busy lastly.

I don’t know what happened, but now the htc dongle works on the pixel xl 2. I did a factory reset in the meantime. Other than that I’m running nothing different as before.

u11 is rooted with magisk and I’m running my own EAS kernel.

I installed the app and can access the slider screen. Android volume can be tuned only to step 15 but that is expected as the pixel 2 has extra steps.

Dac gain isn’t working at all. Log is attached.

I tried to use the dac slider three times. I think you’ll see the error.

Sorry for the power Hal error that is cluttering everything.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
No problem.

Can you make sure that tinymix runs?

Just open a command window (su first) and type "tinymix" - no quotes.

Several pages of data should follow.

The U11 should(hopefully) have a file called "soundcard.txt" on the root of storage. If so can you post it. It will have the Dac description for us to look at.

If you want to also do that with the Pixel running the HTC dongle, I can use that description to begin to add it to the database.
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
so this is the file using the htc dongle on the Google pixel 2 xl.

See attached
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
This is the file on U11 with the dragonfly red plugged in.

And the output of the terminal when typing “tinymix” with su first on U11
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Lets start with this first, since it's easier.

It appears tinymix is not in /sbin.

Did you put the tinymix file in the download folder?

My app copies it to the sbin folder on startup (but it does not stick, so it recopies on each reboot).
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
/storage/emulated/0/Download

There I got the tinymix file

And it’s in sbin too.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Great!

Now we just need the Dac gain parameters.

Again in a terminal window(with the dongle in and headset in the dongle as well):

su

tinymix -D 1

please post the output and I'll be able to work on it.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
did you enable "su" before running the tinymix command?

was the adapter in at the time?
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
Yes

See the new screenshot.
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
Okay here you go! :)
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Thanks.

Lastly, there should be a file /proc/asound/card1/usbmixer.

We need the contents of that file, again with everything plugged in(using any root explorer type app) to get the units of gain and the max value.

Notice that your PCM playback vol is at 14. If the max is 64, you are not going to get much output (but it may be 32 or less).

FYI, the Dragonfly is 64 and the google adapter is 175 (which it defaults to creating significant distortion)
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
here is the file. :)
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
I spoke with the knowledgeable [MENTION=2760454]chdloc[/MENTION]. It's possible that a library file is missing on the U11, or in a different place than usual.

We are looking for tinyalsa.so.

This is what my Pixel 2 XL looks like:

Could you take a peek
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
It seems I got the lib.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Let me work on that a bit and see if we need some alias pointers.

Try this version on your Pixel and see if the HTC dongle will work now.

The gain range is only 0 to 14, very weird. So it seems that default is at max (again). If the app picks it up, you may want to run at 50%, or 7 to minimize any distortion. I ordered another adapter from HTC and hopefully this one will work and I will spec it out completely (impedance, max volt, distortion, crosstalk etc) .
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
So the app says reading device. And afterwards HTC which seems correct. However I cannot open the slider window.

Attached is a screenshot that shows the error in a logcat and the usual command in terminal.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Could you try this in a terminal window after su command on the U11 with the Dragonfly plugged in (ignoring my app for now, but we do need the tinymix present)

export LD_LIBRARY_PATH=/system/lib64*:/system/lib* && export LD_LIBRARY_PATH=/vendor/lib*:/system/lib* && tinymix

Thanks

Will also do some more work on the HTC dongle. The problem is the unexpected low gain spread (0 to 14) that I was not expecting.

Can you try this on the Pixel with the HTC adapter and see if I made any progress
[Google Pixel 2 XL Themes, Apps, and Mods] Ashray_Vk:
On the HTC, I think there was a way to update firmware of the USB C dongle ( to audio converter )

So, that makes me wonder, would it be possible for us to probably do some hacks and tweaks for the USB C dongle from Google ? I was thinking of probably modifying the analog output gain of the DAC inside that, which may result in a more bass boosted and beautiful music

Can we try that somehow ?
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
I don't think so. You would need to adjust very low level chip parameters. In fact, I have not come across any USB Dacs that provide analog gain change. On the other hand, it seems that the Dac digital gain makes a huge impact in distortion, and we can alter that easily.

As far as changing the tonality, none of this should do that. I will go out on a limb and say that all modern Dac's will have a flat freq response curve.

But the net output frequency can change depending on the impedance of the Dac/Amp and your headphones. The impedance is not altered by anything we can do, as well as the crosstalk.
[Google Pixel 2 XL Themes, Apps, and Mods] Ashray_Vk:
Thanks !

The reason why I thoguht this could be feasible, is that previously , we had the DACs inbuilt inside our phones ( if I'm not wrong ) and we had mods like fauxsoud and others ( boeffla sound control, vodoo , etc ) which I think were modifying the analog gains.

Yes, I understand the increasing digital gain will bring a lot of distortion to the music and hence, was thinking of analog modifications

Thanks again for your time to read this !
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
No problem, and yes you are correct, the old phone Dac/Codec solutions did benefit from analog gain optimization. I was a bit surprised when I transitioned to the Usb route, that the parallel situation was not the case.

After the initial disgruntlement about the abandonment of the headphone jack, I think that we are in a better position. No longer do you need to upgrade a phone to improve your audio--just get a new adapter!
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
still the Same Error on u11.

See screenshot

https://photos.app.goo.gl/AGPpTRhxhkTCZjJ13
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
Edit
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
sliders still not working on pixel 2 xl with usb adapter.

Says reading device and “HTC” just fine.

https://photos.app.goo.gl/9bpHhFMDipTz1wd23
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Please try this one for the HTC dongle on the Pixel.

I need to get tinymix working on the U11 somehow.

When that happens we will be in good shape.
[Google Pixel 2 XL Themes, Apps, and Mods] Freak07:
#29 works on the pixel with htc dongle :svetius:

Cool :)

If you need anything tested just shoot me a message!
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Great, thanks.

Now I just need to explore tinymix usage on the U11. Once that is done we should be good to go. I will send you a pm when I have a testing app.
[Google Pixel 2 XL Themes, Apps, and Mods] Galactus:
Hey, I had no idea this sort of audio testing was going on.

Me & [MENTION=3606732]Digitalkarma[/MENTION] went through this stage previously to try and see if the HTC dongle on the U11 had more volume steps to increase loudness directly or via digital gain instead. The dongle is indeed already at 14/14 and we could not find any digital gain settings on the U11 that affect headphones (Exynos devices, specifically, Samsung phones have analog and digital gain mixer settings that you can play with directly).

The U11 does come with the USonic headphones that have a mild ANC. There are different volume paths for the USonic headphones with ANC on and ANC off. The USonic loudness can be modified by editing mixer path tasha. I believe stock setting is 77. An idea if you decide to support USonics control.

Since you're working on something potentially for the U11, I would be up for some testing if need be. I recently tried the Google dongle on my U11 and it is quieter than my U11 dongle. I am going to assume that it is running in Low Impedance mode. Would be nice if the .9 volt mode could be forced on the U11.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
I would be happy to try to get this working on the U11.

The problem so far is getting tinymix to run properly.

If you are interested, I can send some instructions on troubleshooting this.

The Google Dac voltage out doesn't seem to be controlled by any software parameters we can adjust.

But, we also don't know what the default digital gain is on the U11, so it may be less than on the Pixel.
[Google Pixel 2 XL Themes, Apps, and Mods] Galactus:
Yeah sure I can do that, let me know what you need.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Thanks, will send pm.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Update:

Bug fixes

Accurate Spl for the HTC dongle

Possible support for HTC U11- untested so far

Note, the version of tinymix for the U11 must be the 32 bit one.

Unzip the tinymix32, rename it to tinymix and place in the Download folder, then reboot the phone.
[Google Pixel 2 XL Themes, Apps, and Mods] Galactus:
Changing DAC volume and Android Volume works.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Pixel 2 XL users- make sure you do not use the tinymix 32 bit file. The 8.1 Oreo update requires the 64 bit version on the first post.
[Google Pixel 2 XL Themes, Apps, and Mods] k4r70ng:
Hi bjrmd, Will the included DAC be able to drive a pair of Sennheiser HD 660s? They are 150 Ω and 104 dB at 1V.

If not, Do you know of any similar headphones that can be used with the included DAC?

Regards
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
I am not sure at what point the Dac impedance sensor switches from .35 to .9 V but let's look at both scenarios.

If you do get near 1 V, max volume will be over 100 dB.

That can damage your hearing.

Let's say you want to listen at 86 dB. For each 6 dB, the voltage drop s in half. So at 1 V, you have the 104dB, then at .5V 98dB, .25 V 92 dB, .125 V 86 dB etc.

The conclusion is that you can have plenty of sound without extreme amplification.

Some users would say that having a higher voltage out capability will result in a cleaner signal at the lower gains(less distortion). But depending on how the gain settings are handled that is not necessarily true.

Bottom line, your headphones will be driven just fine with the supplied Dac.
[Google Pixel 2 XL Themes, Apps, and Mods] k4r70ng:
Ok, so it´s the dB/V i should look at? Maybe i should go with higher impedance in order to be sure that the sensor puts out the highest voltage? The Sennheiser HD650 are 300 Ohms.

Is there anyway i can see how much the sensor puts out?

I have no local store with the 660s so i guess i will have to by a pair of 650 and test at home, first time buying a pair of Hifi headphone so its all new to me but i got really hyped up when you posted the capabilities of the included DAC :)

Thanks you so much for the response and informative threads.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
I also have a set of the Sennheiser 650s.

For the price (IMO), there is nothing better.

In fact the frequency response is close to reference standards.

It will pair nicely with the Google Dac and trigger close to 1 V output which is 103 dB max.
[Google Pixel 2 XL Themes, Apps, and Mods] Burninh2o:
Question, would you know if this app is different than the SOUND settings in https://play.google.com/store/apps/details?id=flar2.exkernelmanager&hl=en (Image # 7 - Sound)?
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Unfortunately the EX sound settings are only for the on board Qualcomm codec as we had in the original Pixel.
[Google Pixel 2 XL Themes, Apps, and Mods] jasenko:
Hi guys... Thanks for the app. Finally decided to bite the bullet and root the phone at the expense of some other functionality and nasty messages about breaking my phone and stuff :)

Anyway, the app works fine for the most part with my Pixel 2 (non XL). I am able to adjust the settings but I can't seem to be able to open SPL graph. I can move all the sliders and seems like the app works as intended. Any chance you can recommend settings for USB dongle for DAC gain? I will also be testing the app with Dragonfly Black.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
My recommendation is to set the Android volume at 22 of 25, then gradually raise the DAC gain to what is comfortable. Then, if you need a bit of a volume boost, just use the volume rocker. Each tick on the rocker is 2.3 dB. Once you have found a good setting for Dac gain, you may want to make a headphone profile for it.

The Spl graph depends on Google charts API and needs to use the internet to retrieve the chart. If it isn't working despite a good connection, I will need to troubleshoot that.

To get the Dragonfly black working properly, find the 'Soundcard.txt' file on the root of SD storage and post the contents.
[Google Pixel 2 XL Themes, Apps, and Mods] jasenko:
Thanks...

Dragonfly Black Soundcard.txt content

AudioQuest AudioQuest DragonFly Black v1.5 at usb-xhci-hcd.0.auto-1, full speed : USB Audio

Playback:
Status: Stop
Interface 1
Altset 1
Format: S24_3LE
Channels: 2
Endpoint: 1 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000
[Google Pixel 2 XL Themes, Apps, and Mods] BaronInkjet:
[MENTION=281070]bjrmd[/MENTION]

Regarding our earlier exchange about why .37 v is insufficient.

https://www.sweetwater.com/insync/why-are-bass-amps-so-high-wattage-compared-to-guitar-amps/
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Great, try this and let's see how it does. Let me know about the Spl too. I did correct for the voltage difference between the black and red for the calculations.
[Google Pixel 2 XL Themes, Apps, and Mods] jasenko:
Sweet sound of Dragonfly Black in its full glory system wide :)

I reduced DAC gain to 1 and it's still plenty loud.

SPL works fine. It was me...

I noticed you used Now Playing area on the lock screen to display the settings. Would that be an issue with the Now Playing feature?
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
The Now Playing will get over written by whatever else is using that feature. I did it to let me know my current settings.

Glad you got it working.
[Google Pixel 2 XL Themes, Apps, and Mods] jasenko:
OK, something weird is happening. The sound is now worse than default Google driver. Google dongle is very low volume now and Dragonfly Black sounds the same, and changing DAC gain does nothing. Seems like the app works perfectly for me only once, when I reinstall it. I tried deleting cache and data and that didn't help. I think it started when I added headphones, I deleted it, it doesn't show in the app, but seems like the setting is stuck somewhere. Any idea what to do, what to delete to get things back to normal. Reboot does nothing. I can see that tinymix file is where it is supposed to be (copied to /sbin).
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
That is strange.

Why don't you try uninstalling, reboot, install the older version that we know works with the stock Google Dac, reboot again. Also make sure you are using the 64 bit tinymix.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
Also try downloading a fresh copy of tinymix into your download folder in case the file became corrupted. The app will copy this from download to sbin on each reboot.
[Google Pixel 2 XL Themes, Apps, and Mods] Telperion:
What's the maximum digital gain on the Google dongle before distortion occurs? I'm connected via AUX to my car radio, want digital gain to be distortion free and max out the Android volume at 25, then use my car's volume from there.

Also is it possible to get this in the form of a Magisk module? Flash and go. No major need, but would be nice if possible.
[Google Pixel 2 XL Themes, Apps, and Mods] bjrmd:
This may help a bit, https://xdaforums.com/pixel-2-xl/how-to/pixel-usb-c-audio-measurements-t3691535

You should be fine using max Android volume and Dac at 80% or so. Next time I make some measurements I'll take a better look.

Although this isn't a Magisk module, it was designed with it in mind. Either way you would need an install app/module.