Ctl events problem
I'm updating echomixer to make it take into account control events. It works well, but I have a problem with a "virtual" control. Some cards work this way:
Inputs ----> monitor mixer ----
\
>----> line-out volume ----> Outputs
/PCM -------> PCM volume -------
But some cards do not have the line-out volume control and since it's a very handy feature echomixer emulates it by changing both PCM playback volume and monitor mixers according to the setting of the virtual line-out control. The problem is ALSA does not deliver events of that non-existent control... because it doesn't exist. It delivers events of PCM vol and mmixer instead, which is exactly the opposite of what I need. One possible solution is to move all that emulation stuff into the driver :-6 Otherwise is it possible to write a plugin for alsa-lib that does the emulation for cards that require it ? (docs ?) Other ideas ?
--
Giuliano.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 10 lines · Giuliano Pochini
I'm updating echomixer to make it take into account control events. It works well, but I have a problem with a "virtual" control. Some cards work this way:
Inputs ----> monitor mixer ----
\ >----> line-out volume ----> Outputs /PCM -------> PCM volume -------
Quoted 9 lines
But some cards do not have the line-out volume control and since it's a very handy feature echomixer emulates it by changing both PCM playback volume and monitor mixers according to the setting of the virtual line-out control. The problem is ALSA does not deliver events of that non-existent control... because it doesn't exist. It delivers events of PCM vol and mmixer instead, which is exactly the opposite of what I need. One possible solution is to move all that emulation stuff into the driver :-6 Otherwise is it possible to write a plugin for alsa-lib that does the emulation for cards that require it ? (docs ?) Other ideas ?
You can create a new "user space" control in your application. Then the driver will notify about changes the other apps, too. See the pcm_softvol.c code for more details...
But yes, it's something to be resolved in alsa-lib, unfortunately, my work on alisp is slow due to various maintenance..
Jaroslav
-----
Jaroslav Kysela <[email protected]>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click