On Sat, Jun 19, 2010 at 11:52:10PM -0700, Suresh Rajashekara wrote:
I have an application which calls the ioctl of the codec driver to
know the status of the headset.
The ioctl waits on a completion variable (using
wait_for_completion_interruptible).
There is standard support for headset
On Sun, Jun 20, 2010 at 8:52 AM, Alan Stern st...@rowland.harvard.edu wrote:
What happens if the variable is completed while nobody is waiting for
it? The next time somebody tries to wait, won't the wait terminate
immediately?
Haven't tested it but will reply with the answer once I get a
On Sat, 19 Jun 2010, Suresh Rajashekara wrote:
I have an application which calls the ioctl of the codec driver to
know the status of the headset.
The ioctl waits on a completion variable (using
wait_for_completion_interruptible).
The variable is completed in the interrupt handler, which