alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* question about ctl.pulse ?
@ 2011-02-02  3:47 Raymond Yau
  2011-02-02 16:09 ` Colin Guthrie
  0 siblings, 1 reply; 2+ messages in thread
From: Raymond Yau @ 2011-02-02  3:47 UTC (permalink / raw)
  To: ALSA Development Mailing List

Refer to
http://git.alsa-project.org/?p=alsa-plugins.git;a=blob;f=doc/README-pulse;h=d5431b481c84d6f6d093a0da0710de699e9cd585;hb=HEAD

The mixer control plugin also accepts the parameters "source" and "sink" for
when you need to specify a sink/source combination with different names. If
you need to do this with PCM:s then specify two PCM:s with different "device".


Does it mean that the application only get playback controls from
sink0, sink1 and capture controls from source0, source1, source2


ctl.sink0 {
    type pulse
    sink "0"
}



ctl.source0 {
    type pulse
    source "0"
}


ctl.sink1 {
    type pulse
    sink "1"
}

ctl.source1 {
    type pulse
    source "1"
}

ctl.sink2 {
    type pulse
    sink "2"
}

ctl.source2 {
    type pulse
    source "2"
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question about ctl.pulse ?
  2011-02-02  3:47 question about ctl.pulse ? Raymond Yau
@ 2011-02-02 16:09 ` Colin Guthrie
  0 siblings, 0 replies; 2+ messages in thread
From: Colin Guthrie @ 2011-02-02 16:09 UTC (permalink / raw)
  To: alsa-devel

'Twas brillig, and Raymond Yau at 02/02/11 03:47 did gyre and gimble:
> Refer to
> http://git.alsa-project.org/?p=alsa-plugins.git;a=blob;f=doc/README-pulse;h=d5431b481c84d6f6d093a0da0710de699e9cd585;hb=HEAD
> 
> The mixer control plugin also accepts the parameters "source" and "sink" for
> when you need to specify a sink/source combination with different names. If
> you need to do this with PCM:s then specify two PCM:s with different "device".
> 
> 
> Does it mean that the application only get playback controls from
> sink0, sink1 and capture controls from source0, source1, source2

That's what it appears but it still seems to pick the default for the
thing you don't specify...

e.g. if you only give a source, then it will also use the default sink.
and vice versa.

You can tell it not to do that with this:

ctl.sink5 {
    type pulse
    sink "5"
    source "-1"
}

but the source still shows up but manages to some kind of dummy thing.

I guess the plugin code could be tweaked to not have the control if -1
is passed?

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-02 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-02  3:47 question about ctl.pulse ? Raymond Yau
2011-02-02 16:09 ` Colin Guthrie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).