Commit a3e5f4f7 authored by Tristan Matthews's avatar Tristan Matthews

* #30143: alsa: call snd_pcm_recover after write error

parent 26d1e199
...@@ -418,6 +418,9 @@ AlsaLayer::write(void* buffer, int length, snd_pcm_t * handle) ...@@ -418,6 +418,9 @@ AlsaLayer::write(void* buffer, int length, snd_pcm_t * handle)
int err = snd_pcm_writei(handle, buffer , frames); int err = snd_pcm_writei(handle, buffer , frames);
if (err < 0)
snd_pcm_recover(handle, err, 0);
if (err >= 0) if (err >= 0)
return; return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment