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().
The driver could save the value and apply it when a stream is opened. > Is there any flag in kcontrol which enable/disable the put/get from > mixer application ? Controls can be locked. > How do the alsa mixer application get notification when a PCM stream is > play by another alsa application ? There are notifications when the control status changes, or when controls are added/deleted. (But I don't think these controls should be added dynamically; it would be useful to know that they exist before a PCM substream is opened.) > There is no need for alsactl to store/restore the values of these kind > of volume controls. Indeed. Most applications just get the first free substream. Allowing the user to change 16 (or 32) different volume controls just doesn't make sense in this context. Regards, Clemens _______________________________________________ Openvortex-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/openvortex-dev
