mdsimon2
Major Contributor
I feel like this is not well documented (at least I couldn't find a quick reference to link to!) but use (# of channels)^2 - 1. So 1023 for 10 channels and 4095 for 12 channels.
Michael
Michael
It could be somehow related as the player uses wasapi code with channel mask support in the sample format.Hmm...I wonder if it is a difference between 7.1 home theater and 7.1 wide -> https://learn.microsoft.com/en-us/windows-hardware/drivers/audio/channel-mask?
The gadget reports its channels mask (configured via the c_chmask parameter) and channel count (number of set bits in the configuration chmask) via UAC2 protocol to the host.Unfortunely if i play a source with less than 8 channels, the sound comes out completely distorted (that didn't happen with chmask 63 or 255)
Did linux host have issues with the channel mask previously? It would be surprising, as channel configuration is only optional in linux alsa. Unlike in windows WASAPI where the client must configure a channel mask which is accepted by the driver (which is likely accepting the channel mask sent by the USB device/gadget).It appears that you nailed the problem Michael when i tested with the mask 0x63F and inputing 8 channels it works flawlessely atleast on linux (coreelec)
i still have to try chmask 1599
I just got an email newsletter from Hifiberry which talked about two versions of their DAC8x. A single-ended output HAT and a balanced output one. The balanced output needs a breakout cable DB25, Tascam style. But I can't see the StudioDAC8x listed on their website. Any idea? Is it WIP?
View attachment 437070
To be honest, with 8ch DAC ICs available, I personally prefer to build my own single IC board. I am a bit surprised hifiberry go 4 stereo route, they must get those chips really cheap.I wonder if anyone has tested 4 x PCM5102 modules available e.g. from Aliexpress?
View attachment 437112
IIUC they have the same PCM5102a as Hifiberry DAC8x, each has its own linear regulator. Example e.g. https://diyelectromusic.com/2024/05/27/rpi-5-quad-stereo-sound-with-pcm5102a/ + https://diyelectromusic.com/2024/06/09/minidexed-quad-dac-pcb-design/
If complete boards can be sold for 2.5USD at single quantities, the chip itself at larger quantites must be probably lower than the 1.3USD@1k+ from TI eshop.I am a bit surprised hifiberry go 4 stereo route, they must get those chips really cheap.
Ah, thanks a lot. I was looking at their Products menu, and it doesn't seem to have the StudioDAC: I missed clicking on "More..."89.9 + shipping + vat?HiFiBerry Studio DAC8x | HiFiBerry
www.hifiberry.com
Hi,89.9 + shipping + vat?HiFiBerry Studio DAC8x | HiFiBerry
www.hifiberry.com
I have no idea, sorryHi,
Would you know which chips are used in that hifiberry-studio-dac8x board?
That's because none of the chips use any control from RPi (via I2C or GPIO), and the driver is just configuration of the RPi I2S interface in master mode. The only custom part is a GPIO sensing the ADC hat which enables the capture alsa device automatically if the hat is installed. That's why a standalone ADC requires a different overlay which just tells the driver to disable the playback alsa device.The new studiodac8x is working with the old dtoverlay from the old dac8x.