From: Takashi Iwai Subject: Re: pm, hello ?? Date: Tue, 31 Jan 2006 15:06:35 +0100 Message-ID: References: <20060130225511.5958e72c.pochini@shiny.it> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20060130225511.5958e72c.pochini@shiny.it> 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: Giuliano Pochini Cc: Alsa-devel List-Id: alsa-devel@alsa-project.org At Mon, 30 Jan 2006 22:55:11 +0100, Giuliano Pochini wrote: > > > I'm trying to add suspend/resume capability to the echoaudio driver. I wrote > susp/res functions, I attached them to struct pci_driver, I added > SNDRV_PCM_INFO_RESUME in struct snd_pcm_hardware.info, I added the two > cases in the trigger callback and the kernel has CONFIG_PM enabled. None of > the new code is called when I write in > /sys/devices/pci0001:10/0001:10:15.0/power/state . What am I missing ? No idea. I bet something wrong in your kernel configuration or a simple mistake like wrongly installed kernel image, etc. BTW, SNDRV_PCM_INFO_RESUME should be added only if your driver really supports the "full resume" mode. i.e. the stream restarts at the very same position where suspended. Otherwise, dont' set that flag. Still the driver works as "partial resume". Then the prepare is called after resume to reset to a sane state. Takashi ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642