I'm building a car stereo using a Raspberry Pi, a touch screen and half of an existing car radio. I've remove the front screen from the car radio and hooked the Raspberry Pi in to the correct circuits to mimic a user turning the volume control. That all works fine.
I'm running OpenAuto on the Pi which has an onscreen volume control UI. When you change the volume in OpenAuto it sets the master volume of the alsa audio device.
What I would like to do (if possible) is to create some virtual alsa device so that when I change the volume in OpenAuto, I can leave the Rasperry Pi's master volume to 100, but trigger a process which will toggle some GPIO pins and set the volume of the car radio circuitry.
Does anybody know if such a thing is possible?