From: Takashi Iwai Subject: Re: Changed ens1370.c to enable Suspend ens1371 Date: Fri, 11 Nov 2005 19:06:19 +0100 Message-ID: References: <4374DBBC.9040100@gmx.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <4374DBBC.9040100@gmx.de> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: "Kurt J. Bosch" Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 11 Nov 2005 18:58:20 +0100, Kurt J. Bosch wrote: > > Hi, > > I changed driver ens1371 to enable suspend to disk > only using some other drivers as kind of templates. > (No special handling of any registers added.) > > BTW - this is my second post. The first is holded back since Nov. 6th > because it was too big. - I'm sorry about that, but i'm a newbe here :-) > > I did some testing on Ubuntu Breezy > Linux version 2.6.12-9-686 (buildd@rothera) (gcc version 3.4.5 20050809 > (prerelease) (Ubuntu 3.4.4-6ubuntu8)) #1 Mon Oct 10 13:25:32 BST 2005 > alsa 1.0.9b > and it seems to work fine for me. > > I am using swsusp not swsusp2 > but with script hibernate 1.07 > and removed snd-ens1371 from /etc/hibernate/blacklisted-modules > thus it is not longer unloaded. > > To avoid problems with dmix I changed /etc/hibernate/hibernate.conf : > --8<-- > ### misclaunch > # OnSuspend 20 echo "Good night!" > # OnResume 20 echo "Good morning!" > # > # kjb - workaround for > # ALSA Bug 0001249: dmix doesn't survive suspend to RAM > # this restores the socket /tmp/alsa-dmix-... (!) > OnSuspend 20 sudo -H -u kurt /usr/bin/esdctl standby > OnResume 20 sudo -H -u kurt /usr/bin/esdctl resume > --8<-- > (I use gnome, so esd is running all the time.) > > > patch for ens1370.c CVS revision 1.90 > > is appended > > Any comments ? Thanks for the patch. But, please make a patch with diff -u. The pcm info flag SNDRV_PCM_INFO_RESUME can't be set in your case. This INFO_RESUME flag means that the full suspend/resume is supported. That is, the PCM stream is resumed fully only by calling snd_pcm_trigger(RESUME) without snd_pcm_prepare(), etc. In your case, it's a partial suspend/resume support. That is, the resume is done by explicitly calling snd_pcm_prepare() snd restart from the app. Also, add a proper changelog with signed-off-by line. It's like below: Summary: Fix blah ... This patch fixes blah blah... ... Signed-off-by: Foo Bar Thanks, Takashi ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php