]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: Add a new ERROR flag for DQBUF after recoverable streaming errors
authorPawel Osciak <p.osciak@samsung.com>
Wed, 28 Apr 2010 07:05:21 +0000 (04:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:37 +0000 (12:58 -0300)
commit56765f20531557ea11786d9e74b2330c9b2207a1
treed574a05efcfa88bc4ee1a5f066a656acfee2faf8
parentbaf00533d4af0bb6ab5c61cabcfd7f1a2740ba10
V4L/DVB: Add a new ERROR flag for DQBUF after recoverable streaming errors

This flag is intended to indicate streaming errors, which might have
resulted in corrupted video data in the buffer, but the buffer can still
be reused and streaming may continue.

Setting this flag and returning 0 is different from returning EIO. The
latter should now indicate more serious (unrecoverable) errors.

This patch also solves a problem with the ioctl handling code in
vl42-ioctl.c, which does not copy buffer identification data back to the
userspace when EIO is returned, so there is no way for applications
to discover on which buffer the operation failed in such cases.

Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/linux/videodev2.h