From: Takashi Iwai Subject: Re: CMI8788/AV200/Oxygen Volume Controls in alsamixer (oxygen_mixer.c:dac_volume_get()) Date: Sat, 24 Jan 2009 11:01:26 +0100 Message-ID: References: <49790314.10607@dmx.com> <4979CB63.9030205@ladisch.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 5521824134 for ; Sat, 24 Jan 2009 11:01:27 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: John Utz Cc: ALSA Developers , Clemens Ladisch List-Id: alsa-devel@alsa-project.org At Fri, 23 Jan 2009 11:08:23 -0800, John Utz wrote: > > using exchange webmail today, sorry. > > -----Original Message----- > From: Takashi Iwai [mailto:tiwai@suse.de] > Sent: Fri 1/23/2009 5:56 AM > To: Clemens Ladisch > Cc: John Utz; ALSA Developers > Subject: Re: [alsa-devel] CMI8788/AV200/Oxygen Volume Controls in alsamixer > (oxygen_mixer.c:dac_volume_get()) > > At Fri, 23 Jan 2009 14:51:31 +0100, > Clemens Ladisch wrote: > > > > John L. Utz III wrote: > > > It appears to me that these functions are attempting to work on all of > > > the channels at once instead of just choosing Master, Front, Rear, > > > Surround, or what have you: > > > > Yes, the "Master" control is one control with eight channels. > > > > > this leads to a rather awkward result in alsamixer where there are 5 > > > volume controls called "Master": > > > > > > < Master > Master Master Master Master > > > > > > IMHO, it would be more desirable for them to say: > > > > > > < Master > Front C/LFE Surround Rear Surr > > > > Yes. > > > > Alsamixer chooses to display an eight-channel control this way. This > > can be considered a bug in alsamixer. > > The current ALSA mixer abstraction splits the multi-channels into > separate paired channels. But alsamixer can't show the channel name > due to its UI design. And I guess other mixer apps don't handle them > properly, too (who would care?). > > A solution would be make individual control like "Front", and create a > virtual master control. > > JU a virtual control in the conf file or in the driver? In the driver. See sound/core/vmaster.c. Takashi