31 Aug
2012
31 Aug
'12
12:48 p.m.
Date 31.8.2012 03:14, Vinod Koul wrote:
if (avail >= runtime->stop_threshold) {
snd_pcm_uframes_t actual_avail;if (avail < runtime->device_buffer)actual_avail = avail;elseactual_avail = avail - runtime->device_buffer;if (actual_avail >= runtime->stop_threshold) {
Perhaps this may be simplified to: if (avail >= runtime->stop_threshold + runtime->device_buffer)
snd_printd(KERN_ERR "avail > stop_threshold!!\n");snd_printd(KERN_ERR "actual_avail %ld, avail %ld, device_buffer %ld!!\n",actual_avail, avail, runtime->device_buffer);
I would propose to enhance xrun_log() to show something about device_buffer and remove these printd calls from this location.
Jaroslav
--
Jaroslav Kysela perex@perex.cz
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.