ctl_elems hooks with dmix plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
I was trying to use ctl_elems hooks with dmix plugin but figured that
this combination doesn't work. Is there any workaround for this.
I am trying the following.
There are two softvol devices s0 and s1 going through dmix plugins.
I wan't to mute s0 when any app opens s1 and unmute s0 when s1 is closed.
I am using the below asoundrc file which results in "No card for this PCM" .
Any workarounds or any minor change in libasound which will make this work?
Thanks
George


asoundrc:

pcm.softvol0 {
    type            softvol
    slave {
        pcm         "dmix:1"
    }
    control {
        name        "SoftControl0"
        card        1
    }
}
pcm.softvol1 {
    type            softvol
    slave {
        pcm         "dmix:1"
    }
    control {
        name        "SoftControl1"
        card        1
    }
}

pcm.s0 {
    type plug
    slave.pcm "softvol0"
}

pcm.s1 {
    type plug
    slave.pcm "softvol1"
}

pcm.s1hook {
        type hooks              # PCM with hooks
    slave.pcm "s1"
        hooks.0 {
                type ctl_elems
                hook_args [
                        {
                                name "SoftControl0"
                                preserve true
                                lock true
                                optional true
                                value [ 0 ]
                        }
            {
                                name "SoftControl1"
                                preserve true
                                lock true
                                optional true
                                value [ 100 ]
                        }
                ]
        }
}
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux