Closed MHoyer12345678 closed 3 years ago
Playing sound using snd_pcm_writei in a dmix setup might result in an infinite loop when sound card is removed.
Setup:
Trigger:
Observation:
Expected:
Root Cause:
Potential Fix:
//disconnected HW is reported via a failed IOCTL return -ENODEV if (err == -ENODEV) return SND_PCM_STATE_DISCONNECTED;
Hope this helps ...
Thank you for the analysis. Fix is in the above commit.
Playing sound using snd_pcm_writei in a dmix setup might result in an infinite loop when sound card is removed.
Setup:
Trigger:
Observation:
Expected:
Root Cause:
Potential Fix:
Hope this helps ...