Re: 2.6.36: Sound stop working

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Takashi Iwai
Date: Thursday, August 12, 2010 - 2:45 pm

At Thu, 12 Aug 2010 23:24:43 +0200,
Jiri Slaby wrote:

And the below is a minimal test case to simulate the situation
PulseAudio does.


Takashi

===

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/inotify.h>
#include <unistd.h>

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;
}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.36: Sound stop working, Thomas Meyer, (Thu Aug 12, 1:00 pm)
Re: 2.6.36: Sound stop working, Pekka Enberg, (Thu Aug 12, 1:10 pm)
Re: 2.6.36: Sound stop working, Linus Torvalds, (Thu Aug 12, 1:20 pm)
Re: 2.6.36: Sound stop working, Takashi Iwai, (Thu Aug 12, 1:26 pm)
Re: 2.6.36: Sound stop working, Jiri Slaby, (Thu Aug 12, 2:01 pm)
Re: 2.6.36: Sound stop working, Linus Torvalds, (Thu Aug 12, 2:01 pm)
Re: 2.6.36: Sound stop working, Maxim Levitsky, (Thu Aug 12, 2:14 pm)
Re: 2.6.36: Sound stop working, Takashi Iwai, (Thu Aug 12, 2:17 pm)
Re: 2.6.36: Sound stop working, Linus Torvalds, (Thu Aug 12, 2:18 pm)
Re: 2.6.36: Sound stop working, Jiri Slaby, (Thu Aug 12, 2:24 pm)
Re: 2.6.36: Sound stop working, Linus Torvalds, (Thu Aug 12, 2:41 pm)
Re: 2.6.36: Sound stop working, Takashi Iwai, (Thu Aug 12, 2:45 pm)
Re: 2.6.36: Sound stop working, Linus Torvalds, (Thu Aug 12, 2:50 pm)
Re: 2.6.36: Sound stop working, Al Viro, (Thu Aug 12, 2:52 pm)
Re: 2.6.36: Sound stop working, Takashi Iwai, (Thu Aug 12, 3:07 pm)
Re: 2.6.36: Sound stop working, Linus Torvalds, (Thu Aug 12, 3:19 pm)
Re: 2.6.36: Sound stop working, Eric Paris, (Thu Aug 12, 6:53 pm)
Re: 2.6.36: Sound stop working, Jiri Slaby, (Fri Aug 13, 12:50 am)