From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giuliano Pochini Subject: [PATCH 0/5] Echoaudio - add suspend/resume support Date: Sun, 14 Feb 2010 18:15:17 +0100 Message-ID: <20100214181517.2e687849@Jay> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out108.alice.it (smtp-out108.alice.it [85.37.17.108]) by alsa0.perex.cz (Postfix) with ESMTP id 532FE24386 for ; Sun, 14 Feb 2010 18:16:11 +0100 (CET) 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: alsa-devel@alsa-project.org Cc: Takashi Iwai List-Id: alsa-devel@alsa-project.org The following patch set adds suspend/resume support to all echoaudio drivers. It has been tested on an IndigoIOx and a Gina3G. Rawmidi device has been tested partially. PCM and controls interfaces have been tested more and I think it's reasonably safe. I also have a Gina24 and a Gina3G, but I didn't test suspend/resume with them because I couldn't manage to make PM test system work on my pmac. Echoaudio soundcards do not support power management and Dx PCI states. Anyway, the card can enter a "comatose" state by sending a command to the DSP that is supposed to turn parts of the hardware off and reduce power consumption. Doing that causes the loss of the card's internal state, thus it is impossible, upon resume, to make the card continue from the exact point where it was suspended. The driver restores all controls and PCM settings and the applications have to call prepare() to restart the substreams. Rawmidi is restarted automatically, but some data in the i/o buffers may be lost. -- Giuliano.