[media] ivtv: fix v4l2-compliance errors for the radio device
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 1 Oct 2012 09:23:53 +0000 (06:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 20:14:27 +0000 (17:14 -0300)
commit7eaf49667e23a11a1f6ec88dad51ad0e93b1445d
tree5991c6f693139ba344b54c0b6869134c8bab57e9
parentf659f0e7a66245295e1930ad21dfabf80c1403bf
[media] ivtv: fix v4l2-compliance errors for the radio device

- fix error code when attempting to read from write-only streams.
- fix error code when attempting to write to read-only streams.
- don't start capturing when polling on a radio node.
- give the radio node its own file operations struct.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/ivtv/ivtv-fileops.c
drivers/media/pci/ivtv/ivtv-streams.c