Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757519AbcCUSGY (ORCPT ); Mon, 21 Mar 2016 14:06:24 -0400 Received: from down.free-electrons.com ([37.187.137.238]:41191 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756377AbcCUSGX (ORCPT ); Mon, 21 Mar 2016 14:06:23 -0400 Date: Mon, 21 Mar 2016 19:06:05 +0100 From: Maxime Ripard To: Danny Milosavljevic Cc: Mark Brown , Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, Jaroslav Kysela , Takashi Iwai , Liam Girdwood , linux-sunxi@googlegroups.com Subject: Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs Message-ID: <20160321180605.GE30977@lukather> References: <20151221123148.1ab6480b@dayas> <20151221123416.51aa938e@dayas> <20151227182157.GI30359@lukather> <20151228040649.475a742f@dayas> <20160106220908.GE9631@lukather> <20160109164832.515d69b0@dayas> <20160312085222.226d89bf@scratchpost.org> <20160314104939.GL8418@lukather> <20160319175124.6bfe3617@scratchpost.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TBDBusIORirWKjWQ" Content-Disposition: inline In-Reply-To: <20160319175124.6bfe3617@scratchpost.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4345 Lines: 138 --TBDBusIORirWKjWQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 19, 2016 at 05:51:24PM +0100, Danny Milosavljevic wrote: > Hi Maxime, >=20 > > IIRC, in order to have shared controls, you just needed to share the > > controls structure. >=20 > Yeah. I did this and it actually works in a way, but in doesn't do all th= at I want. >=20 > There are two different kinds of sharing I mean: >=20 > The one kind with the controls structure causes the control to rename its= elf > to not state its mixer but there's still just one slider in the end.=20 > So instead of "Left Mixer Left XXX" it will just say "Left XXX" if you pu= t it=20 > inside Left Mixer and Right Mixer and share the entry - for this hardware= ,=20 > that's of doubtful use. >=20 > But what I would like to have is that the same Mic Playback Volume (the v= ery=20 > same bits) be used for different sliders > (1) Mic1 Left Channel Playback Volume > (2) Mic1 Right Channel Playback Volume > (3) Mic2 Left Channel Playback Volume (!!) > (4) Mic2 Right Channel Playback Volume >=20 > Additionally, Mic1 Playback and Mic2 Playback have two mutes each in the= =20 > hardware (all separately switchable). >=20 > Now if we could make the alsamixer selems look like the following,=20 > that would be nice: >=20 > Mic1_Playback Mic2_Playback >=20 > MM MM > ii ii > cc cc >=20 > PP PP > ll ll > aa aa > yy yy > bb bb > aa aa > cc cc > kk kk >=20 > VV VV > oo oo > ll ll > uu uu > mm mm > ee ee >=20 > [Mm] [Nn] > ^ ^^-- so are those, separately > +-- this one is a different muter :-) >=20 > Where the text is the same, it's supposed to signify the same bits=20 > in the hardware. >=20 > Right now in v8 it's (and that's going to take a lot of horizontal space,= =20 > sorry - I know E-Mails like this aren't so nice to read): >=20 > Mic_Playback_Volume Left_Mic1_Playback_Switch Right_Mic1_Playback_Switch = Left_Mic2_Playback_Switch Right_Mic2_Playback_Switch >=20 > MM =20 > ii =20 > cc =20 >=20 > PP =20 > ll =20 > aa =20 > yy =20 > bb =20 > aa =20 > cc =20 > kk =20 >=20 > VV =20 > oo =20 > ll =20 > uu =20 > mm =20 > ee =20 >=20 > [MM] [NN] = [OO] [PP] > ^- WTF ^- WTF = ^- WTF ^- WTF >=20 > (Actually, it's worse - believe it or not, that's how the simplified expl= anation looks) I don't think you should focus too much on alsamixer, there's other tools to modify the configuration. Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --TBDBusIORirWKjWQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJW8DgNAAoJEBx+YmzsjxAgFaAQALLK03dNQm7+e91mmRMO0t/p dD/DQguqHphXrm73e+xJ328SzrU+oe522hpHt0dNtwWVBNev/pb5lNgLuH1IlrvX 92OtX/M3bSZyVG8U8Q7hUoYcMBFh4X8SyOFBXOpCoK/TXDJseX45SzTuw/T1yWza l4E2INNZ1Lib66D03Xh35xgvRsoYIn5xLBER7ja9I5e7jkVTCkT7xGgDKaUeDQpZ FjmjHH5mdwCeVKUDg+2YlovvS1EEBaGDpKA9rOHg4Wv4PWMPhoRMphdI5x2M+0nX KBUGOxknD2B/mD1siic7Sqa9Eb3Nv2eiX3lt18fmvkSdo98NHT7ytImsfUePrIHR Z58dRuF3aRkoJazP8prg0oUzpqgDyG1gjV8yG3DGut1Ca9h+3EOgNCZ51KbpjGEo fHHbkhaqvHCvT/IViPeYB/NZz6qjXD8lyBK6CnKaj8Lk2dW0GPxkBBEMpv3yBVBq vbl31arDGNRqikOPx3f+NwkTlk1VMtBOSw4/3mq83WWMvdUS9txB8VP+GY2nyIsJ vhlqOnam5sMlde8rOxAnVDhVNYdk/ulhDf90CdlK7AgVyqsA73wwN88XNvT2aiUR R2dH1skXBQB50oauAU7akteukzx86RCyGVozihL2IV5pwW2KXnVxP1yunI5OQjWE WG+eCbMNkiusuF/AY9OX =ca6b -----END PGP SIGNATURE----- --TBDBusIORirWKjWQ--