]> err.no Git - linux-2.6/commit
V4L/DVB (4222): Always switch tuner mode when calling VIDIOC_S_FREQUENCY.
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 24 Jun 2006 12:47:56 +0000 (09:47 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 26 Jun 2006 12:21:35 +0000 (09:21 -0300)
commit4f725cb3fa46fabe7fd7c7175fa77e12616bfdb8
treec525f45faa57f52670e4dd348deb5f7acb8a7dc9
parent91a972910df042a0a308b2ffd3aa6fd42b0242e3
V4L/DVB (4222): Always switch tuner mode when calling VIDIOC_S_FREQUENCY.

Fixes the weird and incorrect condition in VIDIOC_S_FREQUENCY.
The tuner should always be switched to the mode specified in the
v4l2_frequency struct. Much simpler and also corresponding to the
v4l2 specification.
The old condition made it impossible to switch from radio to
analog tv mode using VIDIOC_S_FREQUENCY. Instead the (tv) frequency would
be given to the radio tuner.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-core.c