USB ON hook event is coming when USB is disconnected from the device
Hi,
We are building an android phone with USB capability, when an USB headset is connected to the device and in the OFF hook(KEY_MEDIA->down) state (USB headset selected state), when we remove the USB, along with USB disconnection event we are also receiving ON hook (KEY_MEDIA->up) event. Due to which call is getting disconnected, so can you please point out where KEY_MEDIA event is sending when USB is disconnecting in the linux. Thanks in advance for the support |
Quote:
This ties in nicely with your other threads: https://www.linuxquestions.org/quest...el-4175651115/ https://www.linuxquestions.org/quest...et-4175648755/ |
Hi,
Linux source code is not customized, we are seeing the events from the kernel itself, not from Android stack. When USB headset is detached then we are getting a KEY event (KEY_MEDIA) from HID interface along with USB detached event from the USB core. We are using linux 4.16 |
Quote:
We aren't going to guess as to everything. Short answer: your code is broken, go fix it. You say it's not from Android...yet you have an Android phone that is SENDING that message, and you don't say how the two are working together. Are you using the Linux system as a speaker-phone, then trying to disconnect? What's the function of the Linux system while the phone is in operation?? |
Hi,
We are using torvalds 4-16 linux kernel running on NXP board which has ARM processor in it. We connected a plantronics USB headset, and we are using Skype call on the device. When USB is unplugged from the device as said above we received KEY_MEDIA due to which call is getting disconnected, after that we are receiving USB disconnect event |
Quote:
Quote:
|
All times are GMT -5. The time now is 01:58 AM. |