0

All channels on DAC 8x ending up on first minijack

Hi

My DAC 8x is detected just fine and I've tried using it both when removing the suggested lines from /boot/config.txt and setting noaudio on the vc4-kms and also leaving those in.  neither has an effect, but I actually would like the HDMI to still be accessible for what I'm doing, as I wish to switch between different devices.

I am then using SDL2, SDL_Audio API in C++ to send sample data to the DAC, and again this works fine (apart from the problem I will describe shortly) and I can switch between HDMI and the DAC 8x and everything.

The problem is that when I define an AudioSpec with 8 channels, I get back that it is fine to use 8 channels and through my callback function I fill 8 channels and they sound excellent, only all the sound gets mixed together and sent through the first audio mini-jack port and nothing ever comes out of the other three.  So rather than 8 different channels I get 4 sounds mixed into each of the two first L/R channels.

Is there a setting I can use to make sure the 8 channels will actually be routed to the 4 different L/R channels of the DAC 8x?

I have made ~/.asoundrc and /etc/asound.conf files and defined both simple and more complex versions of pcm.!default, etc.

I'm not sure exactly how pulseaudio is coming between my program and ALSA and whether the ALSA configuration changes that I make are actually ever happening or overwritten by other configurations from ALSA or PulseAudio, etc.

This post seemed promising: https://support.hifiberry.com/hc/en-us/community/posts/18621370377501-DAC-8X-4x-stereo-ALSA-config
But it didn't work yet.  Also whenever I put something in ~/.asoundrc that file simply disappears on reboot, but putting it in /etc/asound.conf also didn't work, whether or not I disables the HDMI source and the original driver.

All the best,
Kári Halldórsson
LOVE Synthesizers

3 comments

Please sign in to leave a comment.