From b9cd19d4eca8dac90da1724311b50a428d88487e Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Sat, 25 Aug 2007 18:08:45 -0400 Subject: Move all tda8275/8275a tuning code from tda8290 module into tda827x module From: Michael Krufky Add analog tuning support to tda827x dvb_frontend tuner module. Convert tda8290 module back to native tuner interface. The tda8290 analog demodulator will be handled the same way as tda9887. The tuner.ko module (tuner-core) will pass commands to tda8290 via the tuner_operations interface. tda8290 will communicate with tda827x via the dvb_frontend interface, while passing a pointer to a private data structure. Signed-off-by: Michael Krufky Reviewed-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/Kconfig | 1 linux/drivers/media/dvb/frontends/tda827x.c | 307 ++++++++++++++- linux/drivers/media/dvb/frontends/tda827x.h | 10 linux/drivers/media/video/tda8290.c | 566 +++++----------------------- linux/drivers/media/video/tda8290.h | 30 - linux/drivers/media/video/tuner-core.c | 16 6 files changed, 424 insertions(+), 506 deletions(-) --- linux/drivers/media/dvb/frontends/tda827x.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linux/drivers/media/dvb/frontends/tda827x.h') diff --git a/linux/drivers/media/dvb/frontends/tda827x.h b/linux/drivers/media/dvb/frontends/tda827x.h index 69e8263d6..06626f7af 100644 --- a/linux/drivers/media/dvb/frontends/tda827x.h +++ b/linux/drivers/media/dvb/frontends/tda827x.h @@ -29,9 +29,19 @@ struct tda827x_config { + /* saa7134 - provided callbacks */ void (*lna_gain) (struct dvb_frontend *fe, int high); int (*init) (struct dvb_frontend *fe); int (*sleep) (struct dvb_frontend *fe); + + /* interface to tda829x driver */ + unsigned char tda827x_lpsel; + unsigned int sgIF; + + unsigned int *config; + int (*tuner_callback) (void *dev, int command, int arg); + + void (*agcf)(struct dvb_frontend *fe); }; -- cgit v1.2.3