Skip to contentSkip to conversation

Access dummy mixer control through filesystem

DISCUSSION Muffinman 1 participant 1 message Oct 26, 2012

lore
Share & tools
lore

Muffinman

author
#0 lore raw

Hello all,

I want to write an application that tracks in realtime changes in a 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. Is there some other location I can find this control?

If this is not possible for this type of control, can someone advise me on what language to use for this project?

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'
                }
        }

}