V4L/DVB (13714): [MB86A16] FIX/Code simplification: use hwconfig->ts_size instead...
authorManu Abraham <abraham.manu@gmail.com>
Thu, 3 Dec 2009 08:44:38 +0000 (05:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:30 +0000 (11:55 -0200)
thanks to Marko Ristola for pointing it out

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_common.h
drivers/media/dvb/mantis/mantis_dma.c
drivers/media/dvb/mantis/mantis_dvb.c

index e354e7678a57b652e613be8d1a726236a3ade3b4..d4865e4f3468f677ef3b3481c34a2734e53c860d 100644 (file)
@@ -92,7 +92,6 @@ struct mantis_pci {
        u8                      revision;
 
        unsigned int            num;
-       u16                     ts_size;
 
        /*      RISC Core               */
        u32                     finished_block;
index e207870fb45d83b0e35cc745fc78775051f79657..ea23a89c03fe78c5ecbc40e7513e8f2a9204f475 100644 (file)
@@ -190,7 +190,6 @@ void mantis_dma_start(struct mantis_pci *mantis)
 
        mantis_risc_program(mantis);
        mmwrite(cpu_to_le32(mantis->risc_dma), MANTIS_RISC_START);
-//     mmwrite(MANTIS_GPIF_RDWRN, MANTIS_GPIF_ADDR);
        mmwrite(mmread(MANTIS_GPIF_ADDR) | MANTIS_GPIF_RDWRN, MANTIS_GPIF_ADDR);
 
        mmwrite(0, MANTIS_DMA_CTL);
@@ -227,12 +226,13 @@ void mantis_dma_stop(struct mantis_pci *mantis)
 void mantis_dma_xfer(unsigned long data)
 {
        struct mantis_pci *mantis = (struct mantis_pci *) data;
+       struct mantis_hwconfig *config = mantis->hwconfig;
 
        while (mantis->last_block != mantis->finished_block) {
                dprintk(verbose, MANTIS_DEBUG, 1, "last block=[%d] finished block=[%d]",
                        mantis->last_block, mantis->finished_block);
 
-               (mantis->ts_size ? dvb_dmx_swfilter_204: dvb_dmx_swfilter)
+               (config->ts_size ? dvb_dmx_swfilter_204: dvb_dmx_swfilter)
                (&mantis->demux, &mantis->buf_cpu[mantis->last_block * MANTIS_BLOCK_BYTES], MANTIS_BLOCK_BYTES);
                mantis->last_block = (mantis->last_block + 1) % MANTIS_BLOCK_COUNT;
        }
index 319bb8bef4e1eebfef441a6e76ba1b0e2439489b..7fe8541b1c51d2ab553ff48f3e0af901538cf195 100644 (file)
@@ -142,7 +142,6 @@ int __devinit mantis_dvb_init(struct mantis_pci *mantis)
        mantis->demux.start_feed = mantis_dvb_start_feed;
        mantis->demux.stop_feed = mantis_dvb_stop_feed;
        mantis->demux.write_to_decoder = NULL;
-       mantis->ts_size = 1; //188
        dprintk(verbose, MANTIS_DEBUG, 1, "dvb_dmx_init");
        if ((result = dvb_dmx_init(&mantis->demux)) < 0) {
                dprintk(verbose, MANTIS_ERROR, 1,