From: Liam Girdwood Subject: Re: [PATCH] ASoC: Allow DAPM pin operations to match any context Date: Fri, 08 Apr 2011 18:31:55 +0100 Message-ID: <1302283915.3315.117.camel@odin> References: <1302223560-27371-1-git-send-email-broonie@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ww0-f51.google.com (mail-ww0-f51.google.com [74.125.82.51]) by alsa0.perex.cz (Postfix) with ESMTP id 57E871038DA for ; Fri, 8 Apr 2011 19:31:59 +0200 (CEST) Received: by wwf26 with SMTP id 26so3601818wwf.20 for ; Fri, 08 Apr 2011 10:31:59 -0700 (PDT) In-Reply-To: <1302223560-27371-1-git-send-email-broonie@opensource.wolfsonmicro.com> 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: Mark Brown Cc: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com List-Id: alsa-devel@alsa-project.org On Fri, 2011-04-08 at 09:46 +0900, Mark Brown wrote: > The DAPM pin operations currently require that the specific DAPM context > that the pin being operated in is contained in be specified. With multi > component and especially with the addition of a per-card DAPM context > this isn't ideal as it means that things like disabling unused pins on > CODECs require looking up the CODEC DAPM context. > > Fix this by falling back to matching a widget in any context if there isn't > a match in the current context. The code isn't ideal currently but will do > the job. > > Signed-off-by: Mark Brown Acked-by: Liam Girdwood