Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933922Ab0HLVpf (ORCPT ); Thu, 12 Aug 2010 17:45:35 -0400 Received: from cantor.suse.de ([195.135.220.2]:38579 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753970Ab0HLVpe (ORCPT ); Thu, 12 Aug 2010 17:45:34 -0400 Date: Thu, 12 Aug 2010 23:45:33 +0200 Message-ID: From: Takashi Iwai To: Jiri Slaby Cc: Linus Torvalds , Eric Paris , Pekka Enberg , Thomas Meyer , Linux Kernel Mailing List Subject: Re: 2.6.36: Sound stop working In-Reply-To: <4C64669B.1020605@gmail.com> References: <201008122200.05598.thomas@m3y3r.de> <4C646110.1040104@gmail.com> <4C64669B.1020605@gmail.com> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1290 Lines: 50 At Thu, 12 Aug 2010 23:24:43 +0200, Jiri Slaby wrote: > > On 08/12/2010 11:18 PM, Linus Torvalds wrote: > > On Thu, Aug 12, 2010 at 2:01 PM, Jiri Slaby wrote: > >> Probably I got into this problem yesterday. Found out that PA fails to > >> open /dev/snd/pcmC0D0p _second_ time. It opens it, then closes, then > >> opens it again and gets EBUSY. aplay is OK. > > Perfectly reproducible in qemu-kvm with ac97 soundhw, i.e. intel8x0 > driver. Just in case you want to debug that easily. And the below is a minimal test case to simulate the situation PulseAudio does. Takashi === #include #include #include #include #include #include int main() { int fd; inotify_add_watch(inotify_init(), "/dev/snd", IN_CLOSE_WRITE); fd = open("/dev/snd/pcmC0D0p", O_RDWR | O_NONBLOCK); if (fd < 0) perror("open1"); else close(fd); fd = open("/dev/snd/pcmC0D0p", O_RDWR | O_NONBLOCK); if (fd < 0) perror("open2"); else close(fd); return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/