Skip to content
Snippets Groups Projects
Commit 14cca1c6 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #11278: alsa: increase sleep between calls to open

parent 543dc1b7
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ bool AlsaLayer::openDevice(snd_pcm_t **pcm, const std::string &dev, snd_pcm_stre ...@@ -160,7 +160,7 @@ bool AlsaLayer::openDevice(snd_pcm_t **pcm, const std::string &dev, snd_pcm_stre
// Retry if busy, since dmix plugin may not have released the device yet // Retry if busy, since dmix plugin may not have released the device yet
for (int tries = 0; tries < MAX_RETRIES and err == -EBUSY; ++tries) { for (int tries = 0; tries < MAX_RETRIES and err == -EBUSY; ++tries) {
const struct timespec req = {0, 10000000}; const struct timespec req = {0, 100000000L};
nanosleep(&req, 0); nanosleep(&req, 0);
err = snd_pcm_open(pcm, dev.c_str(), stream, 0); err = snd_pcm_open(pcm, dev.c_str(), stream, 0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment