Takashi Sakamoto wrote: > + if (_IOC_DIR(handler->cmd) == IOC_IN) { > ... > + _IOC_DIR(handler->cmd) == IOC_OUT) _IOC_DIR() returns a bit mask in which both _IOC_READ and _IOC_WRITE can be set. IOC_IN, IOC_OUT, and IOC_INOUT are shifted values. (see include/uapi/asm-generic/ioctl.h) Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel