Fixed decode of write post fifo depth.
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 2 Nov 2006 03:22:10 +0000 (03:22 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 2 Nov 2006 03:22:10 +0000 (03:22 +0000)
comedi/drivers/mite.h

index db7759a07b1a4598f93451d398df465477704956..ed996a9c4bf448ef4eb5cc095e3c3566a2789dc7 100644 (file)
@@ -222,7 +222,7 @@ static inline int mite_csigr_dmac(u32 csigr_bits)
 };
 static inline int mite_csigr_wpdep(u32 csigr_bits)
 {      // write post fifo depth
-       unsigned int wpdep_bits = (csigr_bits >> 16) & 0xf;
+       unsigned int wpdep_bits = (csigr_bits >> 20) & 0x7;
        if(wpdep_bits == 0) return 0;
        else return 1 << (wpdep_bits - 1);
 };