summaryrefslogtreecommitdiff
path: root/v4l2-spec/fieldseq_bt.pdf
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-08-07 12:28:16 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2009-08-07 12:28:16 +0200
commitf4002f575cdc4c826c424b19d21b8979de737d64 (patch)
tree7833f15aa255f71bf8c3e121b3965dba16390863 /v4l2-spec/fieldseq_bt.pdf
parent84ca12cecb8b0b28efb9403b9ea6da6a9589caec (diff)
downloadmediapointer-dvb-s2-f4002f575cdc4c826c424b19d21b8979de737d64.tar.gz
mediapointer-dvb-s2-f4002f575cdc4c826c424b19d21b8979de737d64.tar.bz2
v4l2-ioctl: fix G_STD and G_PARM default handlers
From: Hans Verkuil <hverkuil@xs4all.nl> The v4l core supplies default handlers for G_STD and G_PARM. However, both default handlers are buggy. This patch fixes the following: 1) If no g_std is supplied and current_norm == 0, then this driver does not support TV video standards (e.g. a radio or webcam driver). Return -EINVAL. This ensures that there is no bogus VIDIOC_G_STD support for such drivers. 2) The default VIDIOC_G_PARM handler used current_norm instead of first checking if the driver supported g_std and calling that to get the norm. It also didn't check if current_norm was 0, since in that case the driver does not support TV standards (or no standard was set at all) and the default handler should return -EINVAL. Note that I am very unhappy with these default handlers: I think they basically behave like some very strange and unexpected side-effect. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-spec/fieldseq_bt.pdf')
0 files changed, 0 insertions, 0 deletions