media/libsydneyaudio/bug526411_latency.patch
author Shawn Wilsher <sdwilsh@shawnwilsher.com>
Fri, 27 Aug 2010 12:42:55 -0700
changeset 51597 88be5af389ed77a857a3ad338fed7fcbaaadd628
parent 37972 8c84037f3ad92ad28785e63211077161c9ba2732
permissions -rw-r--r--
Bug 519769 - Open shared/unshared connection with options instead of setting shared state always Use the flags SQLite provides on sqlite3_open_v2 instead of using a mutex to protect the shared cache state. r=asuth a=gavin

diff --git a/media/libsydneyaudio/src/sydney_audio_alsa.c b/media/libsydneyaudio/src/sydney_audio_alsa.c
--- a/media/libsydneyaudio/src/sydney_audio_alsa.c
+++ b/media/libsydneyaudio/src/sydney_audio_alsa.c
@@ -138,17 +138,17 @@ sa_stream_open(sa_stream_t *s) {
                          SND_PCM_FORMAT_S16_LE,
 #else
                          SND_PCM_FORMAT_S16_BE,
 #endif
                          SND_PCM_ACCESS_RW_INTERLEAVED,
                          s->n_channels,
                          s->rate,
                          1,
-                         500000) < 0) {
+                         250000) < 0) {
     snd_pcm_close(s->output_unit);
     s->output_unit = NULL;
     return SA_ERROR_NOT_SUPPORTED;
   }
   
   return SA_SUCCESS;
 }