Commit 0e071c98f6b1f1c49bc3c45350a68e1f6c10e4f4

Con Kolivas 2013-05-25T15:07:10

Sleep in avalon_write_ready.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 0875ca5..1196702 100644
--- a/driver-avalon.c
+++ b/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;