[LAD] Monitor Alsa dummy mixer control in realtime

From: Muffinman <news@email-addr-hidden>
Date: Wed Oct 31 2012 - 19:30:54 EET

Hello all,

I want to write an application that monitors in realtime changes in an Alsa dummy mixer control (though not sure which language yet). I think its best to try to track those changes through the filesystem. For non-dummy mixer controls I can access them through: /proc/asound/cardx/codecxxx/xxxx+regs. However, it seems that this does not work for this dummy mixer control. Can someone point me a bit in a direction where I should for a solution (language/library)?

Whichever language I use I still have quite a bit to learn. However, I do would like to find out whether it is even possible in a certain language before I invest a lot of effort in it (without result). I've tried Python, but getting it working in realtime is likely going to be very hard (if possible at all).

Kind regards, Maarten

ps. I've defined the dummy mixer control in /var/lib/alsa/asound.state
as shown below:

state.DAC {
        control.12345 {
                iface MIXER
                name 'Fake Playback Volume'
                value 100
                comment {
                        access 'read write user'
                        type INTEGER
                        count 1
                        range '0 - 100'
                }
        }

}

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Oct 31 20:15:04 2012

This archive was generated by hypermail 2.1.8 : Wed Oct 31 2012 - 20:15:05 EET