Fixed bytes_per_sample to return correct value in lsampl_t case, was
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 16 Aug 2006 15:21:20 +0000 (15:21 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 16 Aug 2006 15:21:20 +0000 (15:21 +0000)
broken due to confusion between subdev->flags and subdev->subdev_flags.

include/linux/comedidev.h

index 848a352619db3a34499a46767504e603a9a025f1..0d1c21389563638cb6400d7e5e7f777f40f106d4 100644 (file)
@@ -345,7 +345,7 @@ static inline int alloc_private(comedi_device *dev,int size)
 
 static inline unsigned int bytes_per_sample( const comedi_subdevice *subd )
 {
-       if( subd->flags & SDF_LSAMPL )
+       if( subd->subdev_flags & SDF_LSAMPL )
                return sizeof( lsampl_t );
        else
                return sizeof( sampl_t );