From: Takashi Iwai Subject: Re: alsa-lib Virtual Volume control Date: Mon, 17 Oct 2005 15:17:36 +0200 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII 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: Giuliano Pochini Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi, seems that I overlooked this post. At Thu, 22 Sep 2005 17:36:52 +0200 (CEST), Giuliano Pochini wrote: > > > I'm trying to create a virtual volume control that acts as > a Line Playback Volume (or master, if you prefer). I modified > control_hw.c in order to intercept r/w operations on the > following controls: > > PCM out volume > Monitor mixer > Virtual volume > > On writes to PCM-out it has to write the values modified by vvol. > That's ok, but how can I make alsa-lib to not deliver the events > about PCM out when they are generated by a write to vvol ? I don't understand the question well, especially the relation among the controls above. Which controls are "real" controls and which are virtual? What kind of behavior is expected by each? > I also need to keep the settings of the virtual mixer and PCM > out controls somewhere and system-wide. Is it fine to add two > fake controls to store them ? I've been thinking of other ways, but concluded that creating user-defined controls is the easiest way, so far. Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl