]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (8866): Add dummy FE to the Kconfig-file and fix it
authorPatrick Boettcher <pb@linuxtv.org>
Sat, 30 Aug 2008 15:15:54 +0000 (12:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:56 +0000 (09:36 -0200)
Reactivated dummy frontend driver which is extremely useful for debugging.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/Kconfig
drivers/media/dvb/frontends/Makefile
drivers/media/dvb/frontends/dvb_dummy_fe.c

index 774f5c2a71e86b54e411fbe7981e514cf903d8bf..e2444f270f0acfe020b7deb1e4d81d928c6064de 100644 (file)
@@ -392,4 +392,10 @@ config DVB_LGS8GL5
        help
          A DMB-TH tuner module. Say Y when you want to support this frontend.
 
+comment "Tools to develop new frontends"
+
+config DVB_DUMMY_FE
+       tristate "Dummy frontend driver"
+       default n
+
 endmenu
index 262eaa429f5d415074d7c2b20caadec7070801ae..ca24618d5da8193414b4b3588063ef4a65a16cdb 100644 (file)
@@ -49,3 +49,4 @@ obj-$(CONFIG_DVB_AU8522) += au8522.o
 obj-$(CONFIG_DVB_TDA10048) += tda10048.o
 obj-$(CONFIG_DVB_S5H1411) += s5h1411.o
 obj-$(CONFIG_DVB_LGS8GL5) += lgs8gl5.o
+obj-$(CONFIG_DVB_DUMMY_FE) += dvb_dummy_fe.o
index fed09dfb2b7c64eb2c90b5ebd9ec64a913512b47..cb4d8a3b9d8bcfd003d29bbdf378d05db6a4f611 100644 (file)
@@ -75,9 +75,10 @@ static int dvb_dummy_fe_get_frontend(struct dvb_frontend* fe, struct dvb_fronten
 
 static int dvb_dummy_fe_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p)
 {
-       if (fe->ops->tuner_ops->set_params) {
-               fe->ops->tuner_ops->set_params(fe, p);
-               if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0);
+       if (fe->ops.tuner_ops.set_params) {
+               fe->ops.tuner_ops.set_params(fe, p);
+               if (fe->ops.i2c_gate_ctrl)
+                       fe->ops.i2c_gate_ctrl(fe, 0);
        }
 
        return 0;