upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:55:45 +0000 (11:55 +0900)
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 5bcf6b4..15628eb 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 b44dc37..f84c5d8 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 6c8c845..7f9cff1 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 a1fccf3..7fb0287 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.