Skip to contentSkip to conversation

Ctl events problem

DISCUSSION Giuliano Pochini 2 participants 2 messages Mar 6, 2005 – Mar 7, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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