]> git.karo-electronics.de Git - karo-tx-linux.git/commit
V4L: saa7134: Copy tuner data earlier to avoid overwriting manual tuner type
authorSimon Arlott <simon@fire.lp0.eu>
Tue, 29 Jul 2008 02:01:31 +0000 (22:01 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 19:43:09 +0000 (12:43 -0700)
commitb0c31e8936d72641893663c1f16a49d9a34c6d06
tree5f477b50e2b016472579ee3a4232798f2af17307
parentaed3f31c8c19d66ccc0fc91561a170cb95fc7d19
V4L: saa7134: Copy tuner data earlier to avoid overwriting manual tuner type

V4L: saa7134: Copy tuner data earlier to avoid overwriting manual tuner type

(cherry picked from commit d53687d1d22c3204394658a31654de2f1efb0e8f)

Copy tuner data earlier in init to avoid overwriting manual tuner type

When saa7134_board_init2 runs, it immediately overwrites the
current value (set earlier from module parameter) of tuner_type
with the static values, and then does autodetection. This patch
moves the tuner_addr copy to earlier in saa7134_initdev and
removes the tuner_type copy from saa7134_board_init2.

Autodetection could still potentially change to the wrong tuner
type, but it is now possible to override the default type for
the card again.

My card's tuner is configured with autodetection from eeprom,
so I don't need to manually set the tuner. I've checked that
the autodetection still works for my card.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Reviewed-by: Hermann Pitton <hermann-pitton@arcor.de>
Cc: Brian Marete <bgmarete@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/saa7134/saa7134-cards.c
drivers/media/video/saa7134/saa7134-core.c