From: Takashi Iwai Subject: Re: cs46xx thinkpad resume fix - #bug1946 Date: Mon, 16 Jul 2007 11:24:45 +0200 Message-ID: References: <20070714155552.GA2896@prog3> 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 (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id C774E1038BB for ; Mon, 16 Jul 2007 11:24:55 +0200 (CEST) In-Reply-To: <20070714155552.GA2896@prog3> 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: Pavel Kysilka Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sat, 14 Jul 2007 17:55:52 +0200, Pavel Kysilka wrote: > > Hi, > > attached patch fix resume on thinkpad notebooks with cs46xx chip. > Tested with Thinkpad A21m. > > Patch is opposite latest linus git 2.6.22. > > Bug #1946 may be closed. > > Signed-off-by: Pavel Kysilka Oh, thanks for hunting this long-standing bug! I think, however, it cannot be applied as it is. First, snd_cs46xx_start_dsp() calls cs46xx_dsp_load_module(), and the latter function isn't designed for the PM resume. We'd need a special resume function just for clearing area & reloading the dsp images according to the already loaded DSP modules. Second, __devinit prefix for snd_cs46xx_start_dsp() has to be removed if it's called from the PM handler. Takashi