Hi,
I'm using tinyalsa's pcm_read() API (ioctl SNDRV_PCM_IOCTL_READI_FRAMES in ALSA) to capture PCM audio data from a USB headset connected to USB 2.0 port of DM8168 SoC. musb is the host controller driver.
If the USB headset is disconnected while the pcm_read() is in progress, then the pcm_read() function does not return for 10 secs. I believe this is a problem with musb as I do not face this issue when USB headset is connected to a USB 3.0 port (xhci host controller driver). Please let me know if anyone has any information about this issue.
Soc: DM8168
Linux kernel: 2.6.37
Thanks,
Goutham B G