RE: Player Thread is not woken after period elapsed

From: Nallasellan, Singaravelan
Date: Mon Sep 05 2011 - 14:09:30 EST


Sorry, I have not provided the kernel version. Kernel version is 2.6.35.
However, wait_for_avail() does not have the code similar to the one provided in the patch below. I will give a try.

-----Original Message-----
From: Arjan van de Ven [mailto:arjan@xxxxxxxxxxxxx]
Sent: Monday, September 05, 2011 11:23 PM
To: Nallasellan, Singaravelan
Cc: alsa-devel@xxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: Player Thread is not woken after period elapsed

On Mon, 5 Sep 2011 23:08:53 +0530
"Nallasellan, Singaravelan" <singaravelan.nallasellan@xxxxxxxxx> wrote:

> Hi,
>
> When I tried to root cause a glitch in the audio playback, I found a
> weird behavior.
>
> User thread which invokes the writei function which in turn invokes a
> kernel function which waits for the free buffer to write the audio
> data. This kernel function adds this thread to a wake(sleep) queue
> and calls a schedule_timeout (msecs_to_jiffies(10000)).

actually it doesn't... you must be on some really really old kernel or something.


>
> Will you provide some hint on how to go about identifying the root
> cause?

https://lkml.org/lkml/2011/9/5/201



--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings, visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/