usbb2k-api-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Usbb2k-api-dev] Kernel Panic On Device Disconnect


From: Dan Conlon
Subject: RE: [Usbb2k-api-dev] Kernel Panic On Device Disconnect
Date: Sun, 3 Sep 2006 19:34:38 +0100

I hadn't noticed that most recent commit, it does indeed solve the
problem, many thanks!

-----Original Message-----
From: address@hidden [mailto:address@hidden 
Sent: 03 September 2006 01:03
To: Dan Conlon
Cc: address@hidden
Subject: Re: [Usbb2k-api-dev] Kernel Panic On Device Disconnect

On Thu, Aug 31, 2006 at 01:42:04PM +0100, Dan Conlon wrote:
> I am using the 20060503 module with a P4K on Ubuntu Linux.
> 
> I can confirm that all functions work through the /sys/ interface,
with
> the exception of RINGTONE which when activated via show_icon does not
> result in any ring tone being emitted. I am not sure whether I have
> misunderstood the use of this and I should be playing a ringtone PCM
> through the sound device to achieve ring functionality?
Yes, RINGTONE is a P1K feature, for the P4K you should activate SPEAKER
and send PCM data via the audio channel.

> 
> I am now in the process of writing a wrapper for linphonec to allow
the
> P4K to control it. I am opening the /dev/input/eventX device, issuing
> the EVIOCGRAB ioctl and my thread is then in a blocking read() to wait
> for key input. However the effect of this is that when the device is
> disconnected, a kernel panic occurs, presumably because the eventX
> device cannot be removed or is removed whilst a process has it open.
> 
> How should I deal with this or is my approach of using the eventX
devide
> incorrect in general?

There's an updated version available on:
http://cvs.savannah.nongnu.org/viewcvs/yealink-module/?root=usbb2k-api

Hopefully this fixes the problem, if not, can you please include a
trace?

-Henk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]