Bugzilla – Attachment 46461 Details for
Bug 104884
sound does not work after suspend to disk
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
The official patch solving the resource server problem (it is also commited to ALSA CVS)
out.txt (text/plain), 939 bytes, created by
Jaroslav Kysela
on 2005-08-18 11:01:24 UTC
(
hide
)
Description:
The official patch solving the resource server problem (it is also commited to ALSA CVS)
Filename:
MIME Type:
Creator:
Jaroslav Kysela
Created:
2005-08-18 11:01:24 UTC
Size:
939 bytes
patch
obsolete
>Index: pcm_direct.c >=================================================================== >RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm_direct.c,v >retrieving revision 1.44 >retrieving revision 1.45 >diff -u -r1.44 -r1.45 >--- pcm_direct.c 17 Aug 2005 17:27:16 -0000 1.44 >+++ pcm_direct.c 18 Aug 2005 10:42:22 -0000 1.45 >@@ -288,9 +288,13 @@ > server_printf("DIRECT SERVER STARTED\n"); > while (1) { > ret = poll(pfds, current + 1, 500); >- server_printf("DIRECT SERVER: poll ret = %i, revents[0] = 0x%x\n", ret, pfds[0].revents); >- if (ret < 0) /* some error */ >+ server_printf("DIRECT SERVER: poll ret = %i, revents[0] = 0x%x, errno = %i\n", ret, pfds[0].revents, errno); >+ if (ret < 0) { >+ if (errno == EINTR) >+ continue; >+ /* some error */ > break; >+ } > if (ret == 0 || (pfds[0].revents & (POLLERR | POLLHUP))) { /* timeout or error? */ > struct shmid_ds buf; > snd_pcm_direct_semaphore_down(dmix, DIRECT_IPC_SEM_CLIENT);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 104884
:
46149
|
46406
|
46450
| 46461 |
46462