From: Takashi Iwai Subject: Re: Volume per voices [Feature Request] Date: Tue, 02 Aug 2005 17:51:26 +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: Clemens Ladisch Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 2 Aug 2005 16:13:08 +0200 (METDST), Clemens Ladisch wrote: > > Takashi Iwai wrote: > > Clemens Ladisch wrote: > > > Takashi Iwai wrote: > > > > BTW, I found your changes around IEC958 controls. Shall we handle > > > > "IEC958 Playback Default" as PCM or mixer? > > > > > > I made those controls PCM where the SPDIF output can be directly > > > accessed as a separate stream, i.e., where the control affects the > > > data (and _only_ the data) sent through this stream. > > > > IMO, the type should be consistent. "IEC958 Playback Default" and > > "IEC958 Playback PCM Stream" should belong definitely to IFACE_PCM. > > (So "* Mask", too.) They don't need to be accessed through "mixer". > > It's purpose is just for the PCM. So, converting them all to > > IFACE_PCM would be better. > > But what device should those controls use when there is more than one > stream that can send data to the SPDIF output, or when there is none? Good point. I still believe they should belong to PCM iface. Think the purpose of these controls. The problem is that the binding rule between a control and a PCM stream using device/subdevice seems inssuficient for such cases. For solving this kind of problem, I'm considering to add a extended attribute to each control. It can contain atribtrary additional information, for example, dB range of a volume control, or a list of corresponding PCM streams. The kernel API should be as simple as possible (just get/set via ioctl), the rest parse will be done in user-space. But, even before this addition (if we really do), I think it's worthy to move iface to PCM since it will clean up the mixer mess a bit. 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