Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWQMK-0003hh-DD for qemu-devel@nongnu.org; Thu, 30 Jul 2009 03:47:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWQMF-0003h1-KM for qemu-devel@nongnu.org; Thu, 30 Jul 2009 03:47:27 -0400 Received: from [199.232.76.173] (port=55427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWQMF-0003gy-F5 for qemu-devel@nongnu.org; Thu, 30 Jul 2009 03:47:23 -0400 Received: from mx20.gnu.org ([199.232.41.8]:13279) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWQMF-0006Q7-0C for qemu-devel@nongnu.org; Thu, 30 Jul 2009 03:47:23 -0400 Received: from canardo.mork.no ([148.122.252.1]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWQMD-0007Ys-M4 for qemu-devel@nongnu.org; Thu, 30 Jul 2009 03:47:22 -0400 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Subject: Re: [Qemu-devel] [PATCH] alsa broken when the host is suspended (or hibernated) References: <1248864666-31387-1-git-send-email-bjorn@mork.no> <87fxcf64zy.fsf@nemi.mork.no> <87bpn361ra.fsf@nemi.mork.no> Date: Thu, 30 Jul 2009 09:47:12 +0200 In-Reply-To: (malc's message of "Wed, 29 Jul 2009 17:51:58 +0400 (MSD)") Message-ID: <877hxq629r.fsf@nemi.mork.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel@nongnu.org malc writes: > What does `snd_pcm_state (alsa->handle)' return in this case? snd_pcm_state (alsa->handle) =3D=3D 7 Which looks good. That should be SND_PCM_STATE_SUSPENDED unless I'm mistaken. So it's just a matter of extending the snd_pcm_state test which is already there. Yup, tested and verified. I now get=20 alsa: Resuming suspended input stream alsa: Resuming suspended output stream after resuming. Great! Thanks for the quick responses and helpful feedback. I'll send an updated patch, hopefully without the tab's this time... Bj=C3=B8rn