From: Takashi Iwai Subject: Re: Volume per voices [Feature Request] Date: Wed, 27 Jul 2005 10:30: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: Jaroslav Kysela Cc: Clemens Ladisch , Giuliano Pochini , Dino Puller , Alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 27 Jul 2005 10:23:42 +0200 (CEST), Jaroslav wrote: > > On Wed, 27 Jul 2005, Clemens Ladisch wrote: > > > Giuliano Pochini wrote: > > > On 26-Jul-2005 Dino Puller wrote: > > > > It's should be very useful to have a standard way/function to map volume > > > > per PCM stream. For now seems that only emu10k1 and via82xxx has a > > > > volume control for each PCM streams, probably because a lack on the > > > > others drivers. Where the HW/driver doesn't support this control, it's > > > > should be emulated via software. > > > > > > Most cards have hw volume, but ALSA cannot answer this simple question: > > > given this PCM handle, what numid:index control controls the gain of its > > > Nth channel ? > > > > But it would be very easy for the driver to answer this question, and > > to extend ALSA accordingly. > > It's not necessary. The alsa-lib can do it, but having consistent control > names in driver is not a bad idea, too. The problem is that it's not clearly defined how to find the bound control for the currently opened pcm. We may assume that the index number corresponds to the substream index, but this may be different on drivers. Takashi ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click