Bluetooth codecs - Samsung Galaxy S20 / S20+ / S20 Ultra Questions &

Can someone post the supported codec types of the S20+? Either typed or screenshot.
I Googled but everyone is talking about Bluetooth share, and the official Samsung page only says the version number and marketing speak about "high quality".
Thank you.

According to Developer Options > SBC, AAC, aptX, LDAC, Scalable Codec

Related

Dolby Digital 5.1 not working - XBMC 13.2 & 13.1 w/ passthrough enabled

I was unaware that the Fire TV XBMC did not play certain MP4 and MKV files with Dobly Digital.
I came across three different files one was a 2 were Mp4's and one was an Mkv that XBMC recognized as 5.1 files.
1 - I made sure that passthrough was enable to goto my receiver along with DTS enabled
2 - I was unable to find an updated media analyzer software to figure out what how the audio was encoded so I know what doesn't play on this system
3 - I then took the same files and I played them on my Midnight Mx2 w/ xbmc 13.1 and they both were identified and played properly in 5.1 on my receiver.
4 - I have used my Firetv with a ton of DTS and Dolby Digital files however these three for some reason do not work.
Does anyone know a good media analyzer software that will give me the correct information?
Also I'm assuming I have to wait for an updated Firetv firmware to fix this issue ?
I am running xbmc 13.2 not rooted but side loaded. Passtrhough is enabled correctly in the audio settings. XBMC recognizes the files as 5.1 but will not play that one my receiver.
Please let me know
thanks
I use MediaInfo which is updated regularly.
rrussell50 said:
I was unaware that the Fire TV XBMC did not play certain MP4 and MKV files with Dobly Digital.
I came across three different files one was a 2 were Mp4's and one was an Mkv that XBMC recognized as 5.1 files.
1 - I made sure that passthrough was enable to goto my receiver along with DTS enabled
2 - I was unable to find an updated media analyzer software to figure out what how the audio was encoded so I know what doesn't play on this system
3 - I then took the same files and I played them on my Midnight Mx2 w/ xbmc 13.1 and they both were identified and played properly in 5.1 on my receiver.
4 - I have used my Firetv with a ton of DTS and Dolby Digital files however these three for some reason do not work.
Does anyone know a good media analyzer software that will give me the correct information?
Also I'm assuming I have to wait for an updated Firetv firmware to fix this issue ?
I am running xbmc 13.2 not rooted but side loaded. Passtrhough is enabled correctly in the audio settings. XBMC recognizes the files as 5.1 but will not play that one my receiver.
Please let me know
thanks
Click to expand...
Click to collapse
That's an interesting find. Do you happen to have a download link or torrent to one of those videos? I'd love to do some testing of my own.
Use MediaInfo as stated above by @bruce7373,
AFTVnews.com said:
That's an interesting find. Do you happen to have a download link or torrent to one of those videos? I'd love to do some testing of my own.
Click to expand...
Click to collapse
Thanks for the media info, I will post the findings from that audio after I use Mediainfo tonight for all three files
[U[/U]
rrussell50 said:
Thanks for the media info, I will post the findings from that audio after I use Mediainfo tonight for all three files
Click to expand...
Click to collapse
FILE 1
D : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 2h 42mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 9ms
Stream size : 447 MiB (15%)
Default : Yes
Forced : No
FILE 2
D : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2h 16mn
Bit rate mode : Variable
Bit rate : 317 Kbps
Maximum bit rate : 430 Kbps
Channel(s) : 2 channels
Channel(s)_Original : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 309 MiB (14%)
Title : English - Xitz (StyLish Release)
Language : English
Encoded date : UTC 2012-10-29 17:33:06
Tagged date : UTC 2012-10-29 17:33:27
FILE 3
: 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1h 30mn
Bit rate mode : Variable
Bit rate : 384 Kbps
Maximum bit rate : 426 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 244 MiB (16%)
Language : English
Encoded date : UTC 2013-03-25 11:23:22
Tagged date : UTC 2013-03-25 13:33:06
FILE 4
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : A_AAC
Duration : 2h 21mn
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Delay relative to video : 31ms
Language : English
Default : No
Forced : No
All files play properly on my Midnight Mx2 running xbmc 13.1...... however the dolby digital does not work on the amazon fire tv running 13.1 or 13.2
Passthrough is enabled, and I am running a DTS receiver, I would love to hear some insight
thanks
I thought MP4 only supported 2 channel AAC, or am I misinformed?
bruce7373 said:
I thought MP4 only supported 2 channel AAC, or am I misinformed?
Click to expand...
Click to collapse
any one have recommendations on what I should re-encode the tiles as? to get the right audio for the fire tv?
Try Handbrake. You can change the container from MP4 to MKV and transcode AAC to AC3.
I'm totally unable to play anything with Dolby Digital, DTS, etc. formats in XBMC 13.2 or 13.1. I am hooking up to an Onkyo receiver using HDMI and through that to a Sony TV via HDMI. Receiver shows 2 channel stereo only and never switches to DD or DTS (let alone HD formats).
If I start using just the Amazon interface, I can stream content from Amazon in DD mode just fine, so I know the basic connections work. Once I start XBMC, it works fine except all output is in 2 channel stereo.
Not only that, once I start XBMC, and then exit and go back to the Amazon interface, all programs that stream from Amazon fail.
Can anyone confirm this behavior?
Thanks in advance
pilotbob3 said:
I'm totally unable to play anything with Dolby Digital, DTS, etc. formats in XBMC 13.2 or 13.1. I am hooking up to an Onkyo receiver using HDMI and through that to a Sony TV via HDMI. Receiver shows 2 channel stereo only and never switches to DD or DTS (let alone HD formats).
If I start using just the Amazon interface, I can stream content from Amazon in DD mode just fine, so I know the basic connections work. Once I start XBMC, it works fine except all output is in 2 channel stereo.
Not only that, once I start XBMC, and then exit and go back to the Amazon interface, all programs that stream from Amazon fail.
Can anyone confirm this behavior?
Thanks in advance
Click to expand...
Click to collapse
What are your settings under Audio output? please confirm this, and make sure audio passthrough is enabled along with dts capable receiver.
I have had a lot of success with the fire tv with a lot of different files, but I found some that had an issue.
To get XBMC to transcode AAC 5.1 to AC3 5.1, in the Audio Setting under System, ensure you have Passthrough enabled, and the number of speakers set to 2.0. (This doesnt affect your ability to pass 5.1 audio on the passthrough, as it essentially does nothing for a passthrough device, but the setting does enable the next option). Now under the passthrough section, where you select the capabilities of your receiver, under the AC3 capable reciever, there will be an option to enable Dolby Digital Transcoding. Enable that, and your AAC 5.1 will be transcoded to AC3 5.1 and passed through to your receiver as such.
credit give to :http://forum.xbmc.org/showthread.php?tid=191109&page=210
by: Colin15150
snowf0x said:
To get XBMC to transcode AAC 5.1 to AC3 5.1, in the Audio Setting under System, ensure you have Passthrough enabled, and the number of speakers set to 2.0. (This doesnt affect your ability to pass 5.1 audio on the passthrough, as it essentially does nothing for a passthrough device, but the setting does enable the next option). Now under the passthrough section, where you select the capabilities of your receiver, under the AC3 capable reciever, there will be an option to enable Dolby Digital Transcoding. Enable that, and your AAC 5.1 will be transcoded to AC3 5.1 and passed through to your receiver as such.
credit give to :http://forum.xbmc.org/showthread.php?tid=191109&page=210
by: Colin15150
Click to expand...
Click to collapse
Thank you so much! Did not see in XBMC that there was an advanced settings selection. Once I selected the advanced settings and chose the options as you specified, DD and DTS worked fine.:good:
rrussell50, did this work for you? It did not work for me, and I am having the same issue. DTS works great, but DD 5.1 passthrough is not working. I am running Gotham 13.2 sideloaded. The FireTV has not been rooted.
pilotbob3 said:
Thank you so much! Did not see in XBMC that there was an advanced settings selection. Once I selected the advanced settings and chose the options as you specified, DD and DTS worked fine.:good:
Click to expand...
Click to collapse
Could anyone confirm that they have DD 5.1 working on a FireTV with Gotham 13.2? Thanks.
SamuraiAlex said:
rrussell50, did this work for you? It did not work for me, and I am having the same issue. DTS works great, but DD 5.1 passthrough is not working. I am running Gotham 13.2 sideloaded. The FireTV has not been rooted.
Click to expand...
Click to collapse
No it did not I was replying back finally to ask for instructions, even though I am familiar with handbrake and have used it for years I could use a refresher on changing audio streams and containers. I'm used to just converting everything to an apple approved codec to make it work across all devices
So I tried using the universal preset and changing some of the options in the audio to ac3 but that did not work
could really use some help
thanks
13.2 does work with DTS audio and Dolby 5.1 please read my first post and my reply to the person who previously had trouble with getting it work.
SamuraiAlex said:
Could anyone confirm that they have DD 5.1 working on a FireTV with Gotham 13.2? Thanks.
Click to expand...
Click to collapse
I have it with 13.1. Haven't tried 13.2, sorry .
bruce7373 said:
I have it with 13.1. Haven't tried 13.2, sorry .
Click to expand...
Click to collapse
it works
Im not sure if this is of any help but I have DTS,AC3 and AAC 5.1 working with the fire TV. All I had to was basically what snowf0x wrote, and I also had the setting at "best match".
Could you post a screenshot of your audio settings? and maybe the title of your file so I could try it on my Fire TV?
Have not found any files which doesn't work yet. I also have mediacodec disabled with libstagefright enabled. The ONLY issue I have is LQ AVI files being a little choppy but that is a known issue with the fire TV.
ars_92 said:
Im not sure if this is of any help but I have DTS,AC3 and AAC 5.1 working with the fire TV. All I had to was basically what snowf0x wrote, and I also had the setting at "best match".
Could you post a screenshot of your audio settings? and maybe the title of your file so I could try it on my Fire TV?
Have not found any files which doesn't work yet. I also have mediacodec disabled with libstagefright enabled. The ONLY issue I have is LQ AVI files being a little choppy but that is a known issue with the fire TV.
Click to expand...
Click to collapse
Thanks for help, I want to be clear it is not all files it is just a small handful of files (the ones I posted on the previous page) that are giving me this problem. I have the exact same settings on my other XBMC boxes (Midnight Mx2, Apple TV 2) and it plays perfectly with Dolby Digital and DTS. Just for some reasons those 4 files out of the 100 I have play incorrectly.
If someone could just give me the settings in Handbrake to get them to play correctly that would solve my issue. If you PM I can tell you the files that I am using and you can test for yourself

AC3 & DTS Codecs

Hi Guys,
I've got some movies that have AC3 or DTS and as I understand it, these are not supported by any of the VR media players (yet?).
According to this, I need to ROOT my phone and then install a CODEC that will support these formats, at which point Gear VR (for example) will then play the audio as well.
I'm sure I can find the instructions for rooting on here but, I've been unable to find a CODEC pack that isn't specialised to a particular app. For example, this pack is aimed at MX Player.
Question is, will this CODEC work with Gear VR or, does anyone know where I can download a standalone CODEC pack?
(Gear VR arrives on Saturday so can't "just try it"... yet. I'm also not going to re-encode everything.)
Thank you!
Try mx player and download the ac3 codec somewhere on xda
dsedapr said:
Try mx player and download the ac3 codec somewhere on xda
Click to expand...
Click to collapse
Thanks, but is MX Player a VR app? If not, it will VERY quickly make me dizzy - I used VLC and this is also not a VR app so, whilst it played the audio perfectly, I *almost* instantly became dizzy as it did not track head movements.
edit:
Awesome... MAY have just stumbled across the answer!
http://forum.xda-developers.com/mobile-vr/gear-vr/how-to-ac3-sound-gear-vr-t2992397
Edit 2: Nope. That doesn't work with Android 6. Back to square 1.

Cheap AptX Bluetooth Headphones Not Really AptX???

Anybody who cares about audio quality will know the difference Aptx codec makes to bluetooth audio quality. The developer settings in android 8 allow you to verify the codec being used over bluetooth without root and logcat. (Enable developer settings by tapping several times on build number in device settings) This is how I discovered that the Nokia 8 does not have support apt x. Some roms give you a clear notification when Aptx is being used which is very helpful but the rest of us have to dig deeply into developer settings. Getting a new device (Mi Mix 2s) showed that my cheap headphones;
AUKEY LATITUDE EP-B40 APT X BLUETOOTH HEADPHONES DO NOT SUPPORT APT X
https://www.amazon.co.uk/Aukey-Bluetooth-Headphones-Earphones-Sweat-Resistant-black/dp/B06XWSXGDK
There is one other 1 star reviewer on amazon who has come to the same conclusion and prompted in me a deep scepticism of the whole market, a suspicion that there are lots of companies who are mis-selling these products. I thought it might bring this mis-selling practice to heel a little if there is enough information out there. Maybe XDA community can help compile a list of dishonest manufacturers/products, and also the good ones, by verifying your bluetooth codec and reporting back here.
Maybe XDA community can help compile a list of dishonest manufacturers/products, and also the good ones, by verifying your bluetooth codec and reporting back here.
Click to expand...
Click to collapse
I'm planning to do such project. Please make a dump and upload it to https://btcodecs.valdikss.org.ru/
It will show which codecs are supported by the headphones.

Avoiding Android Mixer/48Khz upsampling of 44.1/16 audio

Is anybody aware of a system-wide solution to avoid the upsampling of 44.1KHz / 16-bit music to 48KHz?
With system-wide, I mean a solution that does not rely on certain player apps such as UAPP or Neutron, which we know can do it, but only when playing from inside that app. A solution which works with all (or most) audio sources and apps, modifying the default system behavior of upsampling 44/16 to 48KHz when playing to the Quad DAC.
Personally, I am looking for solutions to work with Tidal offline tracks. Others are looking for solutions to Qobuz, Spotify, Google Play Music or other apps.
Do some of the custom ROMs have fixes for this? Are there policy file or build.prop changes that are proven to fix it?
Googling and searching on XDA finds many references to Android's infamous 48KHz upsampling/re-sampling (SRC) but none that look to be actual, working solutions for our phones. I hope I am wrong and that there is a simple fix which I overlooked.
Background
The LG V series and G series (most models) are appreciated by audiophiles for their excellent ESS Sabre DAC (ES9218P, branded Quad DAC by LG). It can deliver amazing sound quality when paired with good headphones or IEMs (In-Ear-Monitors, earphones). (And no, that doesn't necessarily mean High-Impedance headphones/IEMs, but that's a whole other discussion.)
V30 in particular has gained a rather large following among audiophiles, many of whom congregate on head-fi.org, where you will find a huge V30 thread, a growing V40 thread and a dedicated V30 Music apps, tricks and tips thread.
When it comes to HiRes music (anything higher than 48KHz sample rate and anything 24-bit) most music apps play it correctly: Bit-perfect, without any processing or re-sampling, directly to the DAC -- exactly as audiophiles want it. A few apps are known to downsample HiRes music to Android's default sample rate of 48KHz, but those are the exception.
However 44.1KHz / 16-bit music is always routed through Android's Mixer, which upsamples it to 48Khz. This causes artifacts that are audible to good ears, particularly when played on sensitive IEMs. Since 44/16 includes anything CD quality (whether compressed or uncompressed) that means most music in the world gets molested before it reaches the DAC.
For whatever reason, LGs implementation of the ESS DAC throughout the V and G series have suffered from this inability to play 44/16 music without upsampling. It is the one thing that truly hampers their reputation among audiophiles (arguably even more so than the inability to select between gain modes, which is annoying, but not a deal breaker for most).
This can be verified by inspecting the Output Thread of audio_flinger dumps, showing whether an output stream is played through the DIRECT path (not the MIXER path) and with the offloadable flag (sent straight to the DAC for decoding and rendering). Of course it can also be verified by listening for those artifacts.
The last 1.5 years, audiophile V30 users have relied on UAPP or Neutron as music players because they are able to work around this upsampling. They do so by converting 44/16 format music to 44/24 on the fly, adding zero bits to convert 16-bit to 24-bit. Different from the 48KHz upsampling, this is a harmless conversion which doesn't affect audio quality. (Of course it's also much faster, requiring no interpolation.) And once music is in 44/24 format, it is no problem sending it directly to the DAC, as described above.
We recently confirmed that PowerAmp also is able to do this correctly now (which wasn't always the case). But only if you configure it to convert all music to 44/24, which obviously isn’t desirable for HiRes.
UAPP is my personal favorite, as it also supports streaming services Tidal, Qobuz and Google Play Music, in addition to network services and any PCM or DSD file you can throw at it. All of it pristinely bit-perfect. But it cannot support Tidal or Qobuz offline, which means when playing offline you are limited to HiRes music (only a small part of their catalog) unless you can tolerate the 48KHz upsampling of CD quality tracks in the Tidal/Qobuz apps.
Head-Fi titan @csglinux and I have set out looking for a solution to this, along with other interested head-fi members. csglinux has been testing various policy and build.prop edits (so far no cigar), while I have been digging through the ESS driver source code from the kernel (but I am not set up to actually build the kernel).
More background and discussion can be found in csglinux' V30 Music apps, tricks and tips thread on head-fi. I also recently had a brief (and more technical) discussion with @ctheanh about this over in the XDA V40 forum, starting here. Arguably those posts would be more suited here.
We have several ideas, but it is a steep hill to climb, as none of us are Android developers. But before posting pages of what we have already tried, or dozens of audio_flinger dumps from various setups, we wanted to throw the topic out there for input. Again, maybe there is already a solution we have overlooked.
Any input is much appreciated!
TL;DR
I personally recommend UAPP as the best $8 anybody can spend if they care about sound quality on their V30. This is not about avoiding that. But UAPP doesn't cover all scenarios, in particular offline Tidal and Qobuz.
That's why we're looking for a system-wide fix (mod or custom ROM) that avoids the upsampling.
Reserved (more technical background and evidence to come)
TheDannemand said:
Is anybody aware of a system-wide solution to avoid the upsampling of 44.1KHz / 16-bit music to 48KHz?
With system-wide, I mean a solution that does not rely on certain player apps such as UAPP or Neutron, which we know can do it. A solution which works with all (or most) audio sources and apps, changing the default behavior of upsampling 44/16 to 48KHz (when playing to the Quad DAC).
Personally, I am looking for solutions to work with Tidal offline tracks. Others are looking for solutions to Qobuz, Spotify, Google Play Music or other apps.
Do some of the custom ROMs have fixes for this? Are there policy file or build.prop changes that are proven to fix it?
Googling and searching on XDA finds many references to Android's infamous 48KHz upsampling/re-sampling (SRC) but none that look to be actual, working solutions for our phones. I hope I am wrong and that there is a simple fix which I overlooked.
Background
The LG V series and G series (most models) are appreciated by audiophiles for their excellent ESS Sabre DAC (ES9218P, branded Quad DAC by LG). It can deliver amazing sound quality when paired with good headphones or IEMs (In-Ear-Monitors, earphones). (And no, that doesn't necessarily mean High-Impedance headphones/IEMs, but that's a whole other discussion.)
V30 in particular has gained a rather large following among audiophiles, many of whom congregate on head-fi.org, where you will find a huge V30 thread, a growing V40 thread and a dedicated V30 Music apps, tricks and tips thread.
When it comes to HiRes music (anything higher than 48KHz sample rate and anything 24-bit) most music apps play it correctly: Bit-perfect, without any processing or re-sampling, directly to the DAC -- exactly as audiophiles want it. A few apps are known to downsample HiRes music to Android's default sample rate of 48KHz, but those are the exception.
However 44.1KHz / 16-bit music is always routed through Android's Mixer, which upsamples it to 48Khz. This causes artifacts that are audible to good ears, particularly when played on sensitive IEMs. Since 44/16 includes anything CD quality (whether compressed or uncompressed) that means most music in the world gets molested before it reaches the DAC.
For whatever reason, LGs implementation of the ESS DAC throughout the V and G series have suffered from this inability to play 44/16 music without upsampling. It is the one thing that truly hampers their reputation among audiophiles (arguably even more so than the inability to select between gain modes, which is annoying, but not a deal breaker for most).
This can be verified by inspecting the Output Thread of audio_flinger dumps, showing whether an output stream is played through the DIRECT path (not the MIXER path) and with the offloadable flag (sent straight to the DAC for decoding and rendering). Of course it can also be verified by listening for those artifacts.
The last 1.5 years, audiophile V30 users have relied on UAPP or Neutron as music players because they are able to work around this upsampling. They do so by converting 44/16 format music to 44/24 on the fly, adding zero bits to convert 16-bit to 24-bit. Different from the 48KHz upsampling, this is a harmless conversion which doesn't affect audio quality. (Of course it's also much faster, requiring no interpolation.) And once music is in 44/24 format, it is no problem sending it directly to the DAC, as described above.
We recently confirmed that PowerAmp also is able to do this correctly now (which wasn't always the case). But only if you configure it to convert all music to 44/24, which obviously isn’t desirable for HiRes.
UAPP is my personal favorite, as it also supports streaming services Tidal, Qobuz and Google Play Music, in addition to network services and any HiRes PCM or DSD file you can throw at it. All of it pristinely bit-perfect. But it cannot support Tidal or Qobuz offline, which means when playing offline you are limited to HiRes music (only a small part of their catalog) unless you can tolerate the 48KHz upsampling of CD quality tracks in the Tidal/Qobuz apps.
Head-Fi titan @csglinux and I have set out looking for a solution to this, along with other interested head-fi members. csglinux has been testing various policy and build.prop edits (so far no cigar), while I have been digging through the ESS driver source code from the kernel (but I am not set up to actually build the kernel).
More background and discussion can be found in csglinux' V30 Music apps, tricks and tips thread on head-fi. I also recently had a brief (and more technical) discussion with @ctheanh about this over in the XDA V40 forum, starting here. Arguably those posts would be more suited here.
We have several ideas, but it is a steep hill to climb, as none of us are Android developers. But before posting pages of what we have already tried, or dozens of audio_flinger dumps from various setups, we wanted to throw the topic out there for input. Again, maybe there is already a solution we have overlooked.
Any input is much appreciated!
Click to expand...
Click to collapse
Erm i suggest bit perfect mode on USB audio player pro
Mrxyzl said:
Erm i suggest bit perfect mode on USB audio player pro
Click to expand...
Click to collapse
Thank you. Again, I already use that, and have for the last 1.5 years. But UAPP doesn't cover all scenarios, in particular offline Tidal and Qobuz, nor Spotify and other popular streaming services.
That's why I'm asking if anybody knows of a system-wide fix (mod or custom ROM) that avoids the upsampling.
I seem to recall that you did some work into this in a custom ROM, right?
Edit: It's a long opening post, so maybe I should state this briefly:
1) This is about a system-wide fix to avoid the Mixer and upsampling of 44/16 audio when playing through the Quad DAC.
2) This is not about avoiding UAPP or Neutron. I personally recommend UAPP as the best $8 anybody can spend if they care about sound quality on the V30.
So my settings sucks?
TheDannemand said:
snip.
Click to expand...
Click to collapse
Sent from my LG-H932 using XDA Labs
BROKEN1981 said:
So my settings sucks?
Click to expand...
Click to collapse
Well, yes and no
Personally I wouldn't do it. I would set PowerAmp to output at 44.1KHz and 24-bit, which should avoid any re-sampling and just convert to 24-bit. Make sure you disable Dither (somewhere else in those Settings) so that it just adds zero bits in that 16-to-24-bit conversion. That way your 44/16 music should be sent unchanged to the DAC in 44/24 format.
But then you need to change your settings when you play HiRes music in PowerAmp, since otherwise it will be downsampled to 44.1KHz.
That said, as a fixed setting you are much better off letting PowerAmp upsample to 352Khz than letting the Android Mixer upsample to 48Khz. 44-to-352KHz is a harmonic upsampling (8x44=352) so it can be done perfectly, whereas 44-to-48KHz is just ugly. And when playing HiRes 88KHz and 176KHz music, it will be harmonically upsampled to 352Khz as well.
Ideally, PowerAmp would have had a way to only convert 44/16 to 44/24 and pass everything else through untouched. That's what UAPP does when it detects that it's running on a V30.
Another benefit of UAPP is it understands MQA and knows how to set a flag to enable the V30's hardware unfolding and rendering. (Note that you don't have to buy UAPP's optional MQA decoder for this.) With PowerAmp, the MQA will either be lost (if you re-sample or process the stream in any way) or ignored because the flag to enable MQA decoding won't be set.
Disclaimer: I don't use PowerAmp myself, so I cannot say if it it does something other than what those settings imply. I am completely open to corrections if any of my assumptions about it are wrong.
The DAC itself will upsample internally as part of so-called "noise shaping" to minimize the rounding errors that occur when trying to fit a digital sample into an analog sine wave. But we want to leave this process just to the DAC, and not add another step of upsampling (or any other digital modification) before sending music to the DAC. And particularly not an ugly upsampling like 44-to-48KHz, which simply cannot be done in a pretty way.
TheDannemand said:
snip.
Click to expand...
Click to collapse
Thanks for that detailed answer man, I appreciate it!
I tried neutron, hated the UI. I'll try out USB audio pro. Looks like it's a bit updated to MD. It's not as nice looking as PA, but that's ok lol.
Sent from my LG-H932 using XDA Labs
BROKEN1981 said:
Thanks for that detailed answer man, I appreciate it!
I tried neutron, hated the UI. I'll try out USB audio pro. Looks like it's a bit updated to MD. It's not as nice looking as PA, but that's ok lol.
Click to expand...
Click to collapse
I am the same: I tried Neutron and absolutely could not stand that UI. But I know some who love it. And they deserve credit for being first to crack the 48KHz upsampling on V30 (as I understand).
With UAPP I was instantly comfortable with its UI, features, and of course the sound quality -- the latter being as good as it can get, since it plays everything bit perfect and even supports MQA. If it could handle Tidal offline, I wouldn't even need a solution to bypass the Android Mixer, as that is the only big thing missing for me. Again, with others it's Qobuz offline or Spotify or some other music service.
TheDannemand said:
I am the same: I tried Neutron and absolutely could not stand that UI. But I know some who love it. And they deserve credit for being first to crack the 48KHz upsampling on V30 (as I understand).
With UAPP I was instantly comfortable with its UI, features, and of course the sound quality -- the latter being as good as it can get, since it plays everything bit perfect and even supports MQA. If it could handle Tidal offline, I wouldn't even need a solution to bypass the Android Mixer, as that is the only big thing missing for me. Again, with others it's Qobuz offline or Spotify or some other music service.
Click to expand...
Click to collapse
Trying it out, I like it but have a few issues that are getting on my nerves.
1) no cross fade into the new track.
2) It separates my albums for whatever reason. PowerAmp will not do this. My tags are the way I want them. I did my own edits.
Edit, the EM album that's solo is also in the EM album collection. Just chose to list it 2 times.
Sent from my LG-H932 using XDA Labs
BROKEN1981 said:
Trying it out, I like it but have a few issues that are getting on my nerves.
1) no cross fade into the new track.
2) It separates my albums for whatever reason. PowerAmp will not do this. My tags are the way I want them. I did my own edits.
Edit, the EM album that's solo is also in the EM album collection. Just chose to list it 2 times.
Click to expand...
Click to collapse
I apologize for the tardy response. Swamped these days.
1) Ahh. I don't use cross fading myself, but I see what you mean, it's a valid request.
2) My entire music collection is carefully curated as well (manually edited tags) and I've never seen any problems with UAPP handling albums correctly. You could try Clearing the database and Scan again. But you probably already did...
I suggest you write to the Dev about both issues. You can either email [email protected] or post in their support thread on Head-Fi. I've found them very response to user requests and issues.
BTW, also check this recent Head-Fi post by @csglinux: It appears LG really screwed up the Quad DAC in Pie, so it now re-samples even some HiRes files (which all play perfectly on Oreo from most apps). It also sabotages UAPP in the process.
I don't know why LG is so hellbent on messing up music playback, when they spend good money putting a high-end audiophile grade DAC in their phones
TheDannemand said:
I apologize for the tardy response. Swamped these days.
1) Ahh. I don't use cross fading myself, but I see what you mean, it's a valid request.
2) My entire music collection is carefully curated as well (manually edited tags) and I've never seen any problems with UAPP handling albums correctly. You could try Clearing the database and Scan again. But you probably already did...
I suggest you write to the Dev about both issues. You can either email [email protected] or post in their support thread on Head-Fi. I've found them very response to user requests and issues.
BTW, also check this recent Head-Fi post by @csglinux: It appears LG really screwed up the Quad DAC in Pie, so it now re-samples even some HiRes files (which all play perfectly on Oreo from most apps). It also sabotages UAPP in the process.
I don't know why LG is so hellbent on messing up music playback, when they spend good money putting a high-end audiophile grade DAC in their phones
Click to expand...
Click to collapse
I did send an email to the Dev. We tested a few things and then I guess he quickly made a newer version of the app and gave me a download link. It's a beta but he seen what the issue was and fixed it. Total time with emails and download link took about 30 minutes. I never expected the guy to reply so fast that a few minutes would go by with me not seeing his new email.
Awesome support! Just wish the UI would be gesture-based. Having to back out of a current playing album is a pain in the butt. PowerAmp definitely did this correctly.
Sent from my LG-H932 using XDA Labs
I've edited three config files from US998 30b which I attached to this post. With this mod I always get 24bit and 44.1kHz output through Mixer. Now I can't hear the noise, but I'm curious if anyone can so please test it after making a system backup in TWRP. The mod contains the files without any script.
@TheDannemand and everyone who is interested.
I was trying to get direct output, but it's maybe impossible. I tried to have direct output instead of deep_buffer, but only UAPP wanted to use direct and other apps "moved" to primary output. Also the primary output does not tolerate any messing cause it's a p...y. So I'm not able to do what even @csglinux couldn't.
Solutions:
1) It's not possible due to most apps just don't support direct output even if we convert it to 24bit on the fly. Apps can use primary output instead of deep buffer but direct is like an isolated thing lol. I did enough tests with policy files to get bored of it.
2) Maybe I can try replacing or somewhat in mixer_paths_tavil.xml in vendor/etc to get the direct output. (?)
3) We need to do hard modifications in source codes and codec driver. Or just accept this Mixer and use it with some mod. So sad.
DooMLoRD77 said:
I've edited three config files from US998 30b which I attached to this post. With this mod I always get 24bit and 44.1kHz output through Mixer. Now I can't hear the noise, but I'm curious if anyone can so please test it after making a system backup in TWRP. The mod contains the files without any script.
@TheDannemand and everyone who is interested.
I was trying to get direct output, but it's maybe impossible. I tried to have direct output instead of deep_buffer, but only UAPP wanted to use direct and other apps "moved" to primary output. Also the primary output does not tolerate any messing cause it's a p...y. So I'm not able to do what even @csglinux couldn't.
Solutions:
1) It's not possible due to most apps just don't support direct output even if we convert it to 24bit on the fly. Apps can use primary output instead of deep buffer but direct is like an isolated thing lol. I did enough tests with policy files to get bored of it.
2) Maybe I can try replacing or somewhat in mixer_paths_tavil.xml in vendor/etc to get the direct output. (?)
3) We need to do hard modifications in source codes and codec driver. Or just accept this Mixer and use it with some mod. So sad.
Click to expand...
Click to collapse
Huge thanks to you, DoomLoRD77, for your efforts on this. Major props also to TheDanemmand, who has been relentlessly pursuing this little problem with LG's phones.
So, I took your config files, and voila, they work as promised, at least according to audio_flinger:
Output thread 0xeb1034c0, name AudioOut_15, tid 1804, type 0 (MIXER):
I/O handle: 21
Standby: no
Sample rate: 44100 Hz
HAL frame count: 1792
HAL format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)
HAL buffer size: 10752 bytes
Channel count: 2
Channel mask: 0x00000003 (front-left, front-right)
Processing format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)
That's the good news. The bad news... for reasons I don't completely understand, all the exact same re-sampling artifacts are there, just as audible as before. (I think most of us are using the same test track here - Speak to Me, from The Dark Side Of The Moon.) Either audio_flinger is misreporting, or being fooled, or there's something else going on here that I don't understand.
I'd mentioned to some of the other headfi folks that Amazon's new lossless streaming service doesn't display these digital artifacts (it still doesn't sound quite as good as Tidal to my ears, but the SQ gap is much closer). Amazon re-samples everything on Android to 48 kHz using 32-bit float. I would have thought doing no resampling at all and shifting to 24-bit for the digital volume control would be enough, but apparently not. My best guess is those extra zeros we're packing into those remaining 8 bits aren't actually being used by the digital volume control.
DooMLoRD77 said:
I've edited three config files from US998 30b which I attached to this post. With this mod I always get 24bit and 44.1kHz output through Mixer. Now I can't hear the noise, but I'm curious if anyone can so please test it after making a system backup in TWRP. The mod contains the files without any script.
@TheDannemand and everyone who is interested.
I was trying to get direct output, but it's maybe impossible. I tried to have direct output instead of deep_buffer, but only UAPP wanted to use direct and other apps "moved" to primary output. Also the primary output does not tolerate any messing cause it's a p...y. So I'm not able to do what even @csglinux couldn't.
Solutions:
1) It's not possible due to most apps just don't support direct output even if we convert it to 24bit on the fly. Apps can use primary output instead of deep buffer but direct is like an isolated thing lol. I did enough tests with policy files to get bored of it.
2) Maybe I can try replacing or somewhat in mixer_paths_tavil.xml in vendor/etc to get the direct output. (?)
3) We need to do hard modifications in source codes and codec driver. Or just accept this Mixer and use it with some mod. So sad.
Click to expand...
Click to collapse
Thanks a ton for your efforts here and for sharing these modified files!
Unfortunately I won't be able to test them myself, both because my V30 is still on Oreo (and I have no plans to update it yet) and because I am currently unrooted, waiting for LG to approve a warranty claim (at which they're dragging their feet).
I think with your work and @csglinux' feedback we have established that there is something going on beyond just the re-sampling of the Mixer. The fact your changes eliminated the noise you were hearing, but NOT the artifacts csglinux has reported, would indicate that maybe we have two different problems going on. And so far only playing DIRECT (bypassing the Mixer) solves both problems.
Re your point (3) I did actually spent quite a bit of time studying the source code for the ESS codec driver for the various LG models (es9218p.c and es9218p.h in the kernel source code). Interestingly, 44100 is NOT one of the sample rates listed in there as being supported. The rates and formats listed below are references in the snd_soc_dai_driver structure towards the end of the driver, with which the codec driver declares its capabilities. I've been puzzled how DIRECT play of 24/44 is even possible given this fact. But audio_flinger claims to do it -- and it sounds great when it does.
Code:
#define ES9218_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 | \
SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 | \
SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 | \
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000 | SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_384000 ) //|SNDRV_PCM_RATE_352800 TODO for dop128
#define ES9218_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE | \
SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_S20_3BE | \
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S24_BE | \
SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S32_BE)
I am completely swamped with work at the moment, so I have no time at all to play (neither play music NOR tinker with my phone). I promise I will contribute more actively again once I have more time AND once I have a phone I can root.
Once again thanks a lot for your contribution! :good::good::good:
csglinux said:
*
Click to expand...
Click to collapse
You're welcome. Yes, I played the Speak To Me song at the volume level of 10/75 from about 0:14 to 0:40. It can be possible that it's just misreporting, but it's weird that you hear the same artifacts and I hear just very very little noise instead of big. So we hear 2 different thing separately. From my experience it seems that the extra 8 bits are used for volume control. Or 24bit is more accurate for interpolating as you wrote something on head-fi. I will see more results later with GR09.
Also, thank you for the efforts and for this test!
I can mention an app for 16/44.1 lossless it's called D**zl#ad*r (replace "*" with "e" and "#" with "o"). I know it's not great to get files for free but I can play it offline through direct. It's for Android too and there are some funny facts how it can work.
TheDannemand said:
*
Click to expand...
Click to collapse
You're welcome, too. Something is really weird about the Mixer as there is 2 kind of issue, indeed. I will just probably give up this soon for now, but I'm thankful for the support as I could achieve a small improvement.
If it's really a declaration as you said and I looked a bit into it then it's also weird how it can support 44.1 without resampling.
To replace Tidal offline there is an app above but it requires re-downloading everything. I solved it by automation. Life is just short to be always a good boy:silly:
Looks like deep-buffer is used for high latency low power output and this is ok for music. As I'm new I can't post proper link here, but googling "android audio deep buffer" gives answer.
To enable deep-buffer for music we need:
adb shell setprop audio.deep_buffer.media 1
So it looks like without it android is still using 48kHz from primary output and still resamples internally or I'm missing something. I own V30 but I'm not rooted yet so can't test this.
In the meantime I've looked into policy and there's additional MQA policy available. Maybe UAPP is using it to play MQA on LG?
I've also tried to use 16bit direct output from UAPP and there's noise on all recordings when V30 volume is low and I set my amplifier to almost full. This is unrealistic scenario but easily shows 16bit limitation. @DooMLoRD77, @TheDannemand could you check this UAPP setting if it plays through mixer or directly: MQA enabled and 16 bit hi-res driver audio format. Could tou also check if setting mixer into 32bit float mode works? This setting works for UAPP.
Eneen said:
*
Click to expand...
Click to collapse
You are right that mixer is using 48khz upsampling either through deep buffer or primary output or call it whatever. Deep buffer for music is by default. Where did you found that MQA policy?
I can't help you now as my V30's motherboard is dying and it will take some time to replace it, but I can tell you that modifying the mixer to give 32bit output gives nothing just mute sound and lagging youtube playback maybe because of buffer size or idk.
You can have 32bit with direct, of course. Anyway, what recordings are giving noise? Vinyl? 16 bit does not have limitations like that. I guess you hear the noise generated by AVC in the Quad DAC. It has a high SNR but not enough if you amplify it with don't know what at max volume. I just assume that. I appreciate your interest.
DooMLoRD77 said:
You are right that mixer is using 48khz upsampling either through deep buffer or primary output or call it whatever. Deep buffer for music is by default. Where did you found that MQA policy?
I can't help you now as my V30's motherboard is dying and it will take some time to replace it, but I can tell you that modifying the mixer to give 32bit output gives nothing just mute sound and lagging youtube playback maybe because of buffer size or idk.
You can have 32bit with direct, of course. Anyway, what recordings are giving noise? Vinyl? 16 bit does not have limitations like that. I guess you hear the noise generated by AVC in the Quad DAC. It has a high SNR but not enough if you amplify it with don't know what at max volume. I just assume that. I appreciate your interest.
Click to expand...
Click to collapse
Recordings from Tidal app (except MQAa) and when UAPP is set into 16bit mode inside "HiRes driver audio format" give noise. When I change this option to "Auto" then noise is gone. To hear it I just set sound level to 1/70 (lowest possible) and amplify rest on my amp. I'm not sure it's due to digital volume control or something else, but noise is there and I'm still above my NAD C372 noise level (100dB). How to check output path? I can do it myself but haven't found how...
If music is using deep buffer then your solution is very elegant IHMO and should work. Is youtube also using deep_buffer? Is deep_buffer always used or only when phone is sleeping?
MQA policies are inside /vendor/audio_output_policy.conf: direct_pcm_16_mqa and direct_pcm_24_mqa. As I see /etc/audio_policy.conf is depreciated but looks like /vendor/etc/audio_output_policy.conf is used and there are two different audio_policy_configuration.xml files. Is there documentation for android audio available?
Eneen said:
*
Click to expand...
Click to collapse
I think direct does not support 16bit. It can be DVC or just the not really perfect mixer makes noise or what kind of interpolation error. You should have SDK platform tools to check it. Start inside an adb connection in cmd. Command: "adb shell" or "./adb shell" then "dumpsys media.audio_flinger" and it should read much thing about path and so on.
YouTube uses deep_buffer if it's available. It's used when music is played not only when sleeping. Primary is more like for notifications maybe some games. Sorry, what solution? LoL. 24bit modification?
I will check that policies again, thanks.

What Bluetooth audio codecs does this phone support?

The official listing has no details about the audio codecs supported, so I was wondering whether LDAC, AptX HD, and the likes are supported with this phone.
Thanks
Hope it is what you mean by supported codecs.

Categories

Resources