Browse Source

Sleep in avalon_write_ready.

Con Kolivas 13 years ago
parent
commit
0e071c98f6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-avalon.c

+ 2 - 0
driver-avalon.c

@@ -388,6 +388,8 @@ static bool avalon_wait_write(int fd)
 
 	do {
 		ret = avalon_buffer_full(fd);
+		if (ret)
+			nmsleep(50);
 	} while (ret == true && i++ < 40);
 
 	return !ret;