From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Clemens Ladisch" Subject: Re: Where is simple mixer control "Surround" defined for ac97 or via82xx? I cant find it anywhere in ac97.... Date: Fri, 10 Aug 2007 09:33:46 +0200 Message-ID: <1186731226.23948.1204693671@webmail.messagingengine.com> References: <20070808150429.45d1abef@jutz-fc6.na.corp.dmxmusic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by alsa0.perex.cz (Postfix) with ESMTP id 03FAB10383B for ; Fri, 10 Aug 2007 09:33:48 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20070808150429.45d1abef@jutz-fc6.na.corp.dmxmusic.com> 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 L. Utz III" , ALSA devel List-Id: alsa-devel@alsa-project.org John L. Utz III wrote: > amixer controls | grep Surround > numid=20,iface=MIXER,name='Surround Playback Switch' > numid=21,iface=MIXER,name='Surround Playback Volume' > > But for the life of me, i cant find the code that implements it! Around line 1350 in ac97_codec.c: /* build surround controls */ if ((snd_ac97_try_volume_mix(ac97, AC97_SURROUND_MASTER)) && !(ac97->flags & AC97_AD_MULTI)) { /* Surround Master (0x38) is with stereo mutes */ if ((err = snd_ac97_cmix_new_stereo(card, "Surround Playback", AC97_SURROUND_MASTER, 1, 0, ac97)) < 0) return err; } HTH Clemens