Hello;

I am developing a car-radio app in C++ (open source) for raspberry pi; https://github.com/vinthewrench/carradio

I am having some success with the ALSA api and the Signstek USB DAC, but I would like some advice on how to solve a problem related to using 4 speakers.

My code only know about left and right channels at the moment and does snd_pcm_writei calls to the “default” device.

I believe I can just add another USB DAC to give me 4 channels (front and back) but I am unclear on how to write code to talk to all 4. What I suspect is the answer is to create some form of virtual device that mixes the front and back channels and do the snd_pcm_open and calls to that device.

So the question is? What is the proper way to configure ALSA to integrate the front and back channels and let ALSA do all the mixing work.

I am still a bit clueless about how to setup ALSA and it has been a bit of trial and error.

Many thanks.