From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] ASoC: soc-io: Only force use regmap if the codec have it implemented Date: Wed, 1 Aug 2012 13:40:21 +0100 Message-ID: <20120801124021.GQ11892@opensource.wolfsonmicro.com> References: <1343822505-6331-1-git-send-email-peter.ujfalusi@ti.com> <20120801121630.GP11892@opensource.wolfsonmicro.com> <50191F0D.6090807@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id C056D26526E for ; Wed, 1 Aug 2012 14:46:24 +0200 (CEST) Content-Disposition: inline In-Reply-To: <50191F0D.6090807@ti.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Peter Ujfalusi Cc: alsa-devel@alsa-project.org, Liam Girdwood List-Id: alsa-devel@alsa-project.org On Wed, Aug 01, 2012 at 03:20:29PM +0300, Peter Ujfalusi wrote: > On 08/01/2012 03:16 PM, Mark Brown wrote: > > On Wed, Aug 01, 2012 at 03:01:45PM +0300, Peter Ujfalusi wrote: > >> case SND_SOC_REGMAP: > >> /* Device has made its own regmap arrangements */ > >> - codec->using_regmap = true; > > No, this is crazy. > Why? > We set it when we have confirmed that the codec actually have regmap of it's own. You're changing the function setting up register I/O to ignore what's being set. This is silly - the soc-io code is doing exactly the right thing here. Abstraction, folks.