]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: tvp7002: fix query_dv_preset
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 1 May 2010 11:23:07 +0000 (08:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:54 +0000 (12:58 -0300)
commitd778ad1af4cb8e0da412ab08282b60e14c1aea7f
tree41f417e27660c29cd823e5bc3c0cd39753985f82
parent77757d171f9cd30a1fdb53425099342565a5f214
V4L/DVB: tvp7002: fix query_dv_preset

If no signal or valid format is detected, then VIDIOC_QUERY_DV_PRESET must
return 0 and set the preset to V4L2_DV_INVALID.

This driver returned an error instead.

Also simplified the kernel messages a bit: change v4l2_err to v4l2_dbg (not
detecting a signal/valid format is not an error, so only print this info when
debug == 1) and do not call v4l_fill_dv_preset_info: it's overkill to do this
just for a debug message.

Thanks to Mats Randgaard for bringing this to my attention.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tvp7002.c