]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (5420): Initialize the inputs before registering the devices.
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 11 Mar 2007 17:16:42 +0000 (14:16 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:44:35 +0000 (15:44 -0300)
commit12f438d936b4c48eb2812054fad8b02ea8db4627
tree2228c47e5540cd3b362a6ae4a40712a5573d9fe2
parent1123a31da093371a2775cfe3c0ae7b215d9de3ee
V4L/DVB (5420): Initialize the inputs before registering the devices.

Once the devices have been registered anyone can start changing the inputs or
TV standard before they have been initialized by the driver. This leads to
cases were the input is changed in an udev rule, but after that rule is
triggered the tail-end of the ivtv driver initialization can override
that by selecting the tuner input.
The correct sequence is to first setup the input, initial frequency and TV
standard before finally registering the video devices. This prevents any
udev rules from being triggered prematurely.

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