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)
commitfee73165ee0ff7cfbffad4233a70f56b821f434e
tree2228c47e5540cd3b362a6ae4a40712a5573d9fe2
parent6816b1991fd4bcb457c9534e8136476e45bfee0a
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