From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH 1/2] ASoC: uda134x: replace a macro with a value in platform struct. Date: Thu, 24 Jun 2010 17:05:58 +0100 Message-ID: <1277395558.3100.224.camel@odin> References: <1277386731-31160-1-git-send-email-vzapolskiy@gmail.com> <1277387370.3100.214.camel@odin> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wy0-f179.google.com (mail-wy0-f179.google.com [74.125.82.179]) by alsa0.perex.cz (Postfix) with ESMTP id E2CA8103965 for ; Thu, 24 Jun 2010 18:05:57 +0200 (CEST) Received: by wyb38 with SMTP id 38so2152439wyb.38 for ; Thu, 24 Jun 2010 09:05:56 -0700 (PDT) In-Reply-To: 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: Vladimir Zapolskiy Cc: alsa-devel@alsa-project.org, Mark Brown List-Id: alsa-devel@alsa-project.org On Thu, 2010-06-24 at 19:54 +0400, Vladimir Zapolskiy wrote: > Hi, > > On Thu, Jun 24, 2010 at 5:49 PM, Liam Girdwood wrote: > > On Thu, 2010-06-24 at 17:38 +0400, Vladimir Zapolskiy wrote: > >> @@ -559,9 +546,11 @@ static int uda134x_soc_probe(struct platform_device *pdev) > >> codec->num_dai = 1; > >> codec->read = uda134x_read_reg_cache; > >> codec->write = uda134x_write; > >> -#ifdef POWER_OFF_ON_STANDBY > >> - codec->set_bias_level = uda134x_set_bias_level; > >> -#endif > >> + > >> + if (!pd->is_powered_on_standby) { > >> + codec->set_bias_level = uda134x_set_bias_level; > > > > The codec ops pointers have moved in multi-component. Can you put this > > check in your uda134x_set_bias_level() instead. > > > Not sure I understand the problem, and I do not see a simple solution > for actual bugfix in patch 2/2, if this check is placed in > uda134x_set_bias_level(). Please could you provide me with a hint or > link to some codec source file? I was meaning something like :- uda134x_set_bias_level() { if (pd->is_powered_on_standby) return /* rest of func */ } The multi-component branch makes codec->set_bias_level a driver level operation (that can be shared amongst other uda134x codec devices so we cant change this at runtime) Thanks Liam -- Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk