summaryrefslogtreecommitdiff
path: root/package/alsa-lib/patches/patch-src_pcm_pcm_shm_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-05-23 18:47:06 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-05-23 19:32:08 +0200
commit9d07d2abb446d1dbbe701aac002e99fd98b658c2 (patch)
tree620381a662b05960ff1c3f7c5f6097c0c5bab644 /package/alsa-lib/patches/patch-src_pcm_pcm_shm_c
parentb266877a008800c5dbc48a313be879356ac8f18d (diff)
alsa-lib: update to 1.1.4
Diffstat (limited to 'package/alsa-lib/patches/patch-src_pcm_pcm_shm_c')
-rw-r--r--package/alsa-lib/patches/patch-src_pcm_pcm_shm_c23
1 files changed, 0 insertions, 23 deletions
diff --git a/package/alsa-lib/patches/patch-src_pcm_pcm_shm_c b/package/alsa-lib/patches/patch-src_pcm_pcm_shm_c
deleted file mode 100644
index decd44bc8..000000000
--- a/package/alsa-lib/patches/patch-src_pcm_pcm_shm_c
+++ /dev/null
@@ -1,23 +0,0 @@
---- alsa-lib-1.0.22.orig/src/pcm/pcm_shm.c 2009-12-16 16:18:51.000000000 +0100
-+++ alsa-lib-1.0.22/src/pcm/pcm_shm.c 2010-04-04 10:53:44.000000000 +0200
-@@ -482,15 +482,19 @@ static int snd_pcm_shm_drop(snd_pcm_t *p
-
- static int snd_pcm_shm_drain(snd_pcm_t *pcm)
- {
-+ struct timespec ts;
- snd_pcm_shm_t *shm = pcm->private_data;
- volatile snd_pcm_shm_ctrl_t *ctrl = shm->ctrl;
- int err;
-+ ts.tv_sec = 0;
-+ ts.tv_nsec = 10000000;
-+
- do {
- ctrl->cmd = SNDRV_PCM_IOCTL_DRAIN;
- err = snd_pcm_shm_action(pcm);
- if (err != -EAGAIN)
- break;
-- usleep(10000);
-+ nanosleep(&ts, NULL);
- } while (1);
- if (err < 0)
- return err;