Skip to content
Snippets Groups Projects
Commit f9369893 authored by Sam Thursfield's avatar Sam Thursfield
Browse files

s_audio_alsa: Only call alsa_checkiosync() if input and output are open

As the comment above the alsa_checkiosync() function suggests, there's
no sync to be done if we only have an input or an output.
parent f4ab5daf
No related branches found
No related tags found
1 merge request!443Bugfix for ALSA audio backend
......@@ -421,7 +421,8 @@ int alsa_send_dacs(void)
callno++;
#endif
alsa_checkiosync(); /* check I/O are in sync and data not late */
if (alsa_nindev > 0 && alsa_noutdev > 0)
alsa_checkiosync(); /* check I/O are in sync and data not late */
for (iodev = 0; iodev < alsa_nindev; iodev++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment