make maintainer-clean removes these, and we want a clean orig.tar.gz
[debian/gnuradio] / usrp2 / firmware / lib / dbsm.c
index cfe911538fe77dd6c0596efdffbfef6bad127f4c..96484d577bd36a901dfb8a5a1a08d7e6dfc26c0b 100644 (file)
 #include "buffer_pool.h"
 #include "bool.h"
 #include "nonstdio.h"
-#include "buffer_state.h"
 #include <stdlib.h>
 
+typedef enum {
+  BS_EMPTY,
+  BS_FILLING,
+  BS_FULL,
+  BS_EMPTYING,
+} buffer_state_t;
+
+static buffer_state_t buffer_state[NBUFFERS];
+
 bool
 dbsm_nop_inspector(dbsm_t *sm, int buf_this)
 {
@@ -54,7 +62,8 @@ dbsm_init(dbsm_t *sm, int buf0,
 
   // How much to adjust the last_line register.
   // It's 1 for everything but the ethernet.
-  sm->last_line_adj = recv->port == PORT_ETH ? 3 : 1;
+  //sm->last_line_adj = recv->port == PORT_ETH ? 3 : 1;
+  sm->last_line_adj = 1;
 
   buffer_state[sm->buf0] = BS_EMPTY;
   buffer_state[sm->buf0 ^ 1] = BS_EMPTY;