From: Takashi Iwai Subject: Re: [PATCH 3/3] asoc tlv320aic3x: add more routing controls Date: Fri, 25 Apr 2008 11:42:26 +0200 Message-ID: References: <20080425091809.GA18518@buzzloop.caiaq.de> <20080425093040.GB18558@buzzloop.caiaq.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 mx1.suse.de (ns1.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id A758124755 for ; Fri, 25 Apr 2008 11:42:26 +0200 (CEST) In-Reply-To: <20080425093040.GB18558@buzzloop.caiaq.de> 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: Daniel Mack Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Fri, 25 Apr 2008 11:30:40 +0200, Daniel Mack wrote: > > On Fri, Apr 25, 2008 at 11:22:10AM +0200, Takashi Iwai wrote: > > > Add more routing controls to AIC3x chips to allow things like routing > > > the left PGA input to right line out. > > > > > > Signed-off-by: Daniel Mack > > > > It should be implemented rather with stereo mixer switches in > > general... > > Not necessarily as left and right inputs of let's say the line input can > be used for entierly different things. Same is counts for the outputs. > This is the case in my setup and I guess for mobile phone (what the chip > is made for) there will be more cases. > > Controlling them with stereo mixers would just cause more confusion in > the already over-engineered chip, I fear. Well, for such a complex system, switches don't suite well as the end point representation. A switch is the easiest way to implement in a driver, but you'll have a mess in the end if there are too many switches. We can hide these in an higher abstraction layer (e.g. alsa-lib mixer interface) if it were implemented. Otherwise, think about a more reasonable (can be less-flexible though) setup, e.g. using enum controls to represent the hardware configuration intead of combination of lots of switches. Honestly, in the case of existing asoc drivers, I don't care much, and likely I'll let it be. But, this is an issue we need to reconsider for the future development. thanks, Takashi