Closed GoogleCodeExporter closed 9 years ago
Assuming its the same freescale driver as used in the wandboard kernel, then I
think turning off mmap resolves. We have several users who have reported this
(and that the corruption starts after a specific number of bytes transferred -
so that it depends on the sample rate how long this is)
Try your aplay test with mmap enabled to make this a valid comparison.
Original comment by trio...@btinternet.com
on 31 Jan 2014 at 10:07
I was able to reproduce the problem using - "cat /dev/urandom | aplay -D
hw:2,0 -f S16_LE -c 2 -r 44100 --mmap"
obviously, the simplest solution will be to run squeezelite with mmap disabled.
Trying to run the squeezelite mmap disabled - brakes the ALSA after several
minutes/ seconds.
starting with /usr/local/bin/squeezelite-armv7l-hdmi -s 127.0.0.1 -o
default:CARD=imxhdmisoc -a ::16:0 -d all=sdebug -f
/var/log/squeezelite_hdmi.log -m $main_mac_2 -n $name_2 -z
starting with -a :::0 is the same.
Is is also able to recover after some time - just to die again seconds after
-----------------------------------------------------------------------
[10:08:06.200804] _output_frames:111 avail: 768 frames: 768 silence: 1
[10:08:06.200990] _output_frames:261 wrote 768 frames
[10:08:06.201042] ALSA snd_pcm_hw_delay:514 SNDRV_PCM_IOCTL_DELAY failed (-32)
[10:08:06.201079] output_thread:488 XRUN
[10:08:06.201155] _output_frames:111 avail: 768 frames: 768 silence: 1
[10:08:06.201338] _output_frames:261 wrote 768 frames
[10:08:06.201388] ALSA snd_pcm_hw_delay:514 SNDRV_PCM_IOCTL_DELAY failed (-32)
[10:08:06.201424] output_thread:488 XRUN
[10:08:06.201578] _output_frames:111 avail: 768 frames: 768 silence: 1
[10:08:06.201760] _output_frames:261 wrote 768 frames
[10:08:06.201810] ALSA snd_pcm_hw_delay:514 SNDRV_PCM_IOCTL_DELAY failed (-32)
[10:08:06.201847] output_thread:488 XRUN
[10:08:06.201924] _output_frames:111 avail: 768 frames: 768 silence: 1
[10:08:06.202099] _output_frames:261 wrote 768 frames
[10:08:06.202148] ALSA snd_pcm_hw_delay:514 SNDRV_PCM_IOCTL_DELAY failed (-32)
[10:08:06.202184] output_thread:488 XRUN
[10:08:06.202275] _output_frames:111 avail: 768 frames: 768 silence: 1
[10:08:06.202449] _output_frames:261 wrote 768 frames
[10:08:06.202499] ALSA snd_pcm_hw_delay:514 SNDRV_PCM_IOCTL_DELAY failed (-32)
[10:08:06.202535] output_thread:488 XRUN
[10:08:06.202623] _output_frames:111 avail: 768 frames: 768 silence: 1
[10:08:06.202798] _output_frames:261 wrote 768 frames
-----------------------------------------------------------------------------
Any advice?
Original comment by ginzburg...@gmail.com
on 2 Feb 2014 at 10:37
[deleted comment]
error -32 is caused on XRUN so this suggests the output device is underrunning
- but the messages suggest it is recovering ok. Other than these errors what
is the symptom?
Original comment by trio...@btinternet.com
on 10 Feb 2014 at 9:15
no audio.
there are playback gaps. it is going than stops(showing the ALSA log entries)
then recovers for several seconds ( log is normal ) and stops again ( with the
same errors in the log)
Original comment by ginzburg...@gmail.com
on 10 Feb 2014 at 9:19
Running pulseaudio is not crashing the ALSA while running mmap 0.
So the workaround for this issue will be running squeezelite with mmap 0
and using the pulseaudio
I think you can close this for now
Original comment by ginzburg...@gmail.com
on 20 Feb 2014 at 9:40
closing as workaround found
Original comment by trio...@btinternet.com
on 21 Feb 2014 at 10:25
Original issue reported on code.google.com by
ginzburg...@gmail.com
on 31 Jan 2014 at 1:33Attachments: