[media] drx-j: Fix compilation and un-comment it
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Mar 2012 03:09:53 +0000 (00:09 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Mar 2014 17:21:00 +0000 (14:21 -0300)
There were some DVB internal API changes, since this driver were
written. Change it to work with the new API.

Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/drx39xyj/Kconfig
drivers/media/dvb-frontends/drx39xyj/Makefile
drivers/media/dvb-frontends/drx39xyj/drx39xxj.c
drivers/media/usb/em28xx/Kconfig

index 5bcf6b4cb74a92d63cc6de7a5060d9b74a0da643..15628eb5cf0c04bc561b923071523960b719de11 100644 (file)
@@ -2,7 +2,6 @@ config DVB_DRX39XYJ
        tristate "Micronas DRX-J demodulator"
        depends on DVB_CORE && I2C
        default m if DVB_FE_CUSTOMISE
-       depends on BROKEN
        help
          An ATSC 8VSB and QAM64/256 tuner module. Say Y when you want
          to support this frontend.
index b44dc3710229cb778098f14d649f3b595bf68650..f84c5d87d7719b2c4079e85a53ca69e40c2be80c 100644 (file)
@@ -1,3 +1,6 @@
 drx39xyj-objs := drx39xxj.o drx_driver.o drx39xxj_dummy.o drxj.o drx_dap_fasi.o
 
 obj-$(CONFIG_DVB_DRX39XYJ) += drx39xyj.o
+
+ccflags-y += -I$(srctree)/drivers/media/dvb-core/
+ccflags-y += -I$(srctree)/drivers/media/tuners/
index 6c8c8456cb05429be1954f20e333f0cd63cf4945..7f9cff1d841395346f32d1f509fa3db80809452d 100644 (file)
@@ -175,18 +175,12 @@ static int drx39xxj_read_ucblocks(struct dvb_frontend *fe, u32 * ucblocks)
        return 0;
 }
 
-static int drx39xxj_get_frontend(struct dvb_frontend *fe,
-                                struct dvb_frontend_parameters *p)
-{
-       return 0;
-}
-
-static int drx39xxj_set_frontend(struct dvb_frontend *fe,
-                                struct dvb_frontend_parameters *p)
+static int drx39xxj_set_frontend(struct dvb_frontend *fe)
 {
 #ifdef DJH_DEBUG
        int i;
 #endif
+       struct dtv_frontend_properties *p = &fe->dtv_property_cache;
        struct drx39xxj_state *state = fe->demodulator_priv;
        DRXDemodInstance_t *demod = state->demod;
        DRXStandard_t standard = DRX_STANDARD_8VSB;
@@ -217,7 +211,7 @@ static int drx39xxj_set_frontend(struct dvb_frontend *fe,
        if (fe->ops.tuner_ops.set_params) {
                if (fe->ops.i2c_gate_ctrl)
                        fe->ops.i2c_gate_ctrl(fe, 1);
-               fe->ops.tuner_ops.set_params(fe, p);
+               fe->ops.tuner_ops.set_params(fe);
                if (fe->ops.i2c_gate_ctrl)
                        fe->ops.i2c_gate_ctrl(fe, 0);
        }
@@ -426,10 +420,9 @@ error:
 }
 
 static struct dvb_frontend_ops drx39xxj_ops = {
-
+       .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B },
        .info = {
                 .name = "Micronas DRX39xxj family Frontend",
-                .type = FE_ATSC | FE_QAM,
                 .frequency_stepsize = 62500,
                 .frequency_min = 51000000,
                 .frequency_max = 858000000,
@@ -439,7 +432,6 @@ static struct dvb_frontend_ops drx39xxj_ops = {
        .i2c_gate_ctrl = drx39xxj_i2c_gate_ctrl,
        .sleep = drx39xxj_sleep,
        .set_frontend = drx39xxj_set_frontend,
-       .get_frontend = drx39xxj_get_frontend,
        .get_tune_settings = drx39xxj_get_tune_settings,
        .read_status = drx39xxj_read_status,
        .read_ber = drx39xxj_read_ber,
index a1fccf3096de7825097383c427e5471e2ceb40b8..7fb02875a1e6675af59da6e2ff70b27e36a5e9ad 100644 (file)
@@ -55,6 +55,7 @@ config VIDEO_EM28XX_DVB
        select MEDIA_TUNER_TDA18271 if MEDIA_SUBDRV_AUTOSELECT
        select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT
        select MEDIA_TUNER_M88TS2022 if MEDIA_SUBDRV_AUTOSELECT
+       select DVB_DRX39XYJ if MEDIA_SUBDRV_AUTOSELECT
        ---help---
          This adds support for DVB cards based on the
          Empiatech em28xx chips.