From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755343AbcCNKtu (ORCPT ); Mon, 14 Mar 2016 06:49:50 -0400 Received: from down.free-electrons.com ([37.187.137.238]:50414 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753943AbcCNKtm (ORCPT ); Mon, 14 Mar 2016 06:49:42 -0400 Date: Mon, 14 Mar 2016 11:49:39 +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: <20160314104939.GL8418@lukather> References: <20151221123148.1ab6480b@dayas> <20151221123416.51aa938e@dayas> <20151227182157.GI30359@lukather> <20151228040649.475a742f@dayas> <20160106220908.GE9631@lukather> <20160109164832.515d69b0@dayas> <20160312085222.226d89bf@scratchpost.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k8YaXj956qNxBs/V" Content-Disposition: inline In-Reply-To: <20160312085222.226d89bf@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 --k8YaXj956qNxBs/V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 12, 2016 at 08:52:22AM +0100, Danny Milosavljevic wrote: > Hi, >=20 > does anyone know the answer to the questions below? >=20 > > The other direction (making two controls which both do the same and upd= ate=20 > > each other's value) doesn't seem to be easily available.=20 >=20 > > Should I write a _put handler that does it manually? >=20 > > (Or should that be handled by alsa-lib mixer modules instead?) >=20 > > Is it possible to merge the "Left Mixer" control and respective=20 > > "Right Mixer" control into one selem in alsamixer? > >=20 > > Because alsamixer actually has support for one-sided muting. Mark, do you know how to do it? IIRC, in order to have shared controls, you just needed to share the controls structure. > If that's unknown, I can post v9 without doing the grouping-together > of mixer controls and we can use it like that - I don't want the > patch to stall indefinitely on mere usability issues... Unfortunately, that is exposed to the user-space. Once it's in, you cannot change it / fix it anymore. Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --k8YaXj956qNxBs/V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJW5pdDAAoJEBx+YmzsjxAgpxwP+wRKlPgNWG/uhacFV5+zIwEm ChYTY28kIjSgDxTtqhR4R2IjqEC0iVKHF+4D7CU3EC3gglG9edG+1mlIfaI6i37V hBExCzLRH4WbfyXr3VNBjc0sW4e5mCmCXG2eG+L4PNjmx5YVljRAMCwWk0cE8I+g 69nccMtD4ZI3r2iZ6K8pCaHYkOPxA5UcxYchiw7LpYuU5ZEAjMtqmzWnynkL1UB1 FmF6kXXhDn79jvrWkiEepd9mfZnN9+qvuwUTSR9JgoakWX+6bAffnANGbh3Z+yrW v+degPxRoPiZrPDluJnDo7IKFzsIj3e3nl/dJcpm0pD9EvXQS+qOCjK4qHTPa3y1 pPR7IwTzRBONH+HP4A3EYU4FM+WIsNeaFTRjVly2prF12k2SKIwMnMHU8GFt04qB Xx89P1vRjQ0OKdseBPaYtNXQkzztgdb/KNPSZyQjudX38Ejvtg2N1zC4xEmbDD6q U/uPqeVbjDOddBO9zi4m51rU+Z7rRx9Iyovmf8Se4BtIEXrkMMe5QVlCc+ZwD7Cs Pj84ChUsRTfLT8SrDxFTzgti+mRJ3Gkg6bf6kO0BhfsMmiHRg2vmjW4mSJqB0adC u7KdJXh/dVkaiG5AsFC6aCct+Egq8Nfa+5+CcW57SWWIuIFIe2dXWKvzbk0Bxe/O DW3USv8KXJwSG6ZKSqhV =AkLC -----END PGP SIGNATURE----- --k8YaXj956qNxBs/V-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs Date: Mon, 14 Mar 2016 11:49:39 +0100 Message-ID: <20160314104939.GL8418@lukather> References: <20151221123148.1ab6480b@dayas> <20151221123416.51aa938e@dayas> <20151227182157.GI30359@lukather> <20151228040649.475a742f@dayas> <20160106220908.GE9631@lukather> <20160109164832.515d69b0@dayas> <20160312085222.226d89bf@scratchpost.org> Reply-To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k8YaXj956qNxBs/V" Return-path: Content-Disposition: inline In-Reply-To: <20160312085222.226d89bf-bxPqe3T81XXwRsdMLXbzog@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Danny Milosavljevic Cc: Mark Brown , Chen-Yu Tsai , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, Jaroslav Kysela , Takashi Iwai , Liam Girdwood , linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Id: alsa-devel@alsa-project.org --k8YaXj956qNxBs/V Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline On Sat, Mar 12, 2016 at 08:52:22AM +0100, Danny Milosavljevic wrote: > Hi, > > does anyone know the answer to the questions below? > > > The other direction (making two controls which both do the same and update > > each other's value) doesn't seem to be easily available. > > > Should I write a _put handler that does it manually? > > > (Or should that be handled by alsa-lib mixer modules instead?) > > > Is it possible to merge the "Left Mixer" control and respective > > "Right Mixer" control into one selem in alsamixer? > > > > Because alsamixer actually has support for one-sided muting. Mark, do you know how to do it? IIRC, in order to have shared controls, you just needed to share the controls structure. > If that's unknown, I can post v9 without doing the grouping-together > of mixer controls and we can use it like that - I don't want the > patch to stall indefinitely on mere usability issues... Unfortunately, that is exposed to the user-space. Once it's in, you cannot change it / fix it anymore. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --k8YaXj956qNxBs/V-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: maxime.ripard@free-electrons.com (Maxime Ripard) Date: Mon, 14 Mar 2016 11:49:39 +0100 Subject: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs In-Reply-To: <20160312085222.226d89bf@scratchpost.org> References: <20151221123148.1ab6480b@dayas> <20151221123416.51aa938e@dayas> <20151227182157.GI30359@lukather> <20151228040649.475a742f@dayas> <20160106220908.GE9631@lukather> <20160109164832.515d69b0@dayas> <20160312085222.226d89bf@scratchpost.org> Message-ID: <20160314104939.GL8418@lukather> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, Mar 12, 2016 at 08:52:22AM +0100, Danny Milosavljevic wrote: > Hi, > > does anyone know the answer to the questions below? > > > The other direction (making two controls which both do the same and update > > each other's value) doesn't seem to be easily available. > > > Should I write a _put handler that does it manually? > > > (Or should that be handled by alsa-lib mixer modules instead?) > > > Is it possible to merge the "Left Mixer" control and respective > > "Right Mixer" control into one selem in alsamixer? > > > > Because alsamixer actually has support for one-sided muting. Mark, do you know how to do it? IIRC, in order to have shared controls, you just needed to share the controls structure. > If that's unknown, I can post v9 without doing the grouping-together > of mixer controls and we can use it like that - I don't want the > patch to stall indefinitely on mere usability issues... Unfortunately, that is exposed to the user-space. Once it's in, you cannot change it / fix it anymore. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: