On Thu, 28 Jul 2005, Raymond wrote:

> In theory, and sound cards with hardware mixing can support this kind of
> volume control.
> 
> au88x0 driver may provide this kind of volume control on playing PCM
> streams by using hardware mixers.
> 
> However the hardware mixers are dynamically allocated in routine
> snd_vortex_pcm_hw_params(), this means that the kcontrol can be put/get
> only between snd_pcm_hw_params() (return no error) and
> snd_pcm_hw_free()/snd_pcm_close().

Nope. Please, define the controls at the driver initialization phase and 
make them inactive when the stream is not open. See emu10k1 or trident 
driver for hints. You must also map the voice volume with substream 
number.

Creating controls dymanically has only sense when hardware changes (like a 
new DSP is loaded for emu10k1).

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs


_______________________________________________
Openvortex-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/openvortex-dev

Reply via email to