'Twas brillig, and Ben C at 03/03/11 19:39 did gyre and gimble: >> On Wed, 2011-03-02 at 18:16 -0800, Ben C wrote: >>> Hello, I'm trying to configure PulseAudio to use an ALSA PCM plugin in the >>> audio >>> >>> chain. >>> >>> PulseAudio as been configured with: >>> load-module module-alsa-sink device=my_sink >>> >>> And ALSA has been configured with: >>> >>> pcm.my_sink { >>> type my_pcm_plugin >>> slave.pcm "hw:0,0" >>> } >>> >>> However, my_sink seems to get hogged, and be considered "busy". I had to >>> configure dmix in order for this setup to work. Is that normal? Am I >>> configuring >>> something incorrectly? I would assume that to PulseAudio, these ALSA output >>> devices are the same, whether it's a physical device or a virtual one. But when >>> using the default configuration (and my_pcm_plugin is not in the chain), dmix >>> isn't necessary. FWIW, the fact that my_sink is hogged is perfectly normal. Unless the h/w itself supports h/w mixing (not many do), then you will need to use a software mixer. PA is one such software mixer - just route all your audio through PA and you wont have to worry. Dmix is the other software mixer. It's rather clever but it is nowhere near as featureful on it's own as a PA based system. >>> Thanks for your help. >> >> Do you have another line in your default.pa loading >> module-alsa-card/sink before the line above? module-udev-detect or >> similar? > > The modules that are loaded before the line are: > module-device-restore > module-stream-restore > module-card-restore > module-augment-properties > > After the alsa sink, module-udev-detect is loaded. Module-alsa-card isn't loaded > by the configuration file, but it's there, maybe it's loaded by > module-udev-detect. Yes this is basically what module-udev-detect is designed to do: it detects all the alsa cards on the system and loads the appropriate module-alsa-card for them. This includes hotplug events for e.g. USB devices etc. I'm not really sure what more to tell you. I'm not sure you discussed the reasons for setting up PA manually like this, so if you elaborate on why you think this is a requirement of your setup, we can perhaps give alternative suggestions for a more natural and simpler setup? 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/]