From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: SoC pxa2xx-ac97 + wm9705 + touchscreen suspend/resume Date: Thu, 2 Apr 2009 12:55:41 +0100 Message-ID: <20090402115541.GB9522@n2100.arm.linux.org.uk> References: <20090330223720.GC31396@n2100.arm.linux.org.uk> <20090331103048.GC11800@sirena.org.uk> <20090331183755.GA27451@n2100.arm.linux.org.uk> <20090331191539.GA10854@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from caramon.arm.linux.org.uk (caramon.arm.linux.org.uk [78.32.30.218]) by alsa0.perex.cz (Postfix) with ESMTP id 312F1103848 for ; Thu, 2 Apr 2009 13:55:56 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20090331191539.GA10854@sirena.org.uk> 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, eric miao , linux-arm-kernel@lists.arm.linux.org.uk, Liam Girdwood List-Id: alsa-devel@alsa-project.org On Tue, Mar 31, 2009 at 08:15:40PM +0100, Mark Brown wrote: > On Tue, Mar 31, 2009 at 07:37:55PM +0100, Russell King - ARM Linux wrote: > > > I don't think this is the complete story. Sometime between 2.6.27 and > > 2.6.29, the structure below /sys/devices/platform/soc-audio changed > > (the ac97 codec moved to the top level.) > > Oh, are you using the ac97.c codec driver? No, I'm using the wm9705 driver. > With a normal ASoC codec > driver the AC97 codec is not visible as a separate device in the device > tree - if you could point me to your machine driver that'd be helpful. Not true - the codec appears as /sys/devices/0-0:WM9705 rather than a sub-device of the AC97 controller. Below this there are two sub-devices: /sys/devices/0-0:WM9705/wm97xx-battery /sys/devices/0-0:WM9705/wm97xx-touch The wm97xx-ts touchscreen driver binds to the 0-0:WM9705 device, so clearly unless 0-0:WM9705 is a child of the AC97 controller, things aren't going to be guaranteed to be resumed in the right order.