[media] v4l2-core: do not enable the buffer ioctls for radio devices
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Tue, 22 Jan 2013 18:51:55 +0000 (15:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 6 Feb 2013 15:15:59 +0000 (13:15 -0200)
commit5815d0c4d55a80310138698c9dc516c759b6be87
tree4a91fc9fdde7531bd02af9da85f517028c7580f1
parent248ac368ce4b3cd36515122d888403909d7a2500
[media] v4l2-core: do not enable the buffer ioctls for radio devices

The buffer ioctls (VIDIOC_REQBUFS, VIDIOC_QUERYBUF, VIDIOC_QBUF, VIDIOC_DQBUF,
VIDIOC_EXPBUF, VIDIOC_CREATE_BUFS, VIDIOC_PREPARE_BUF) are not applicable for
radio devices. Hence, they should be set valid only for non-radio devices in
determine_valid_ioctls().

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-dev.c