From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raymond Subject: Re: Volume per voices [Feature Request] Date: Fri, 12 Aug 2005 22:57:40 +0800 Message-ID: <42FCB8E4.90702@netvigator.com> References: <42E889DD.2070808@netvigator.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net Cc: Manuel Jander List-Id: alsa-devel@alsa-project.org Clemens Ladisch wrote: > 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. > > What is the meaning of SNDRV_CTL_ELEM_ACCESS_INACTIVE ? Is it just a flag which the driver should check whether the value can be written to the hardware registers ? It seem to me that snd_vortex_pcm_adb_vol_put() are called even when kcontrol is inactive (e.g alsactl restore after the driver is loaded) What value (0 or 1) will be return by snd_vortex_pcm_adb_vol_put() when kcontrol is inactive/locked ? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf