This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB audio with DM8168: pcm_read() returns after 10 secs if USB headset is disconnected when read is in progress

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