Author: titmuss
Date: Fri Oct 31 16:26:32 2008
New Revision: 3251
URL: http://svn.slimdevices.com?rev=3251&root=Jive&view=rev
Log:
Bug: N/A
Description:
Fix crasher. It would appear with a very low latency buffer when cpu power
saving was enabled alsa would
trip up and cause a spontaneous reboot.
Modified:
7.3/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_alsa.c
Modified: 7.3/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_alsa.c
URL:
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_alsa.c?rev=3251&root=Jive&r1=3250&r2=3251&view=diff
==============================================================================
--- 7.3/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_alsa.c
(original)
+++ 7.3/trunk/squeezeplay/src/squeezeplay/src/audio/decode/decode_alsa.c Fri
Oct 31 16:26:32 2008
@@ -30,7 +30,7 @@
//static char *device = "plughw:0,0";
static snd_output_t *output;
-static snd_pcm_t *handle;
+static snd_pcm_t *handle = NULL;
static snd_pcm_hw_params_t *hwparams;
static snd_pcm_sframes_t period_size;
@@ -173,8 +173,8 @@
static int pcm_open() {
int err, dir;
snd_pcm_uframes_t size;
-#define BUFFER_SIZE (8291 / 4)
-#define PERIOD_SIZE (BUFFER_SIZE / 8)
+#define BUFFER_SIZE 8192 /*(8291 / 4)*/
+#define PERIOD_SIZE (BUFFER_SIZE / 4) /*(BUFFER_SIZE / 8)*/
/* Close existing pcm (if any) */
if (handle) {
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins