Diff for /margi2/margi.c between versions 1.3 and 1.4

version 1.3, 2000/12/14 12:17:44 version 1.4, 2001/01/22 05:01:52
Line 345  static int ringDMA (struct cvdv_cards *c Line 345  static int ringDMA (struct cvdv_cards *c
         u8 data;          u8 data;
                   
         count = ring_read_rest(&(card->rbuf));          count = ring_read_rest(&(card->rbuf));
         if (count < 4096) {          if (count < 2048) {
                 card->DMAABusy = 0;                  card->DMAABusy = 0;
                 wake_up_interruptible(&(card->wqA));                  wake_up_interruptible(&(card->wqA));
                 return 0;                  return 0;
         } else  if ( card->stream.sh.valid )          }
                 DecoderStartDecode(card);  
   
   
         stat = read_lsi_status(card);          stat = read_lsi_status(card);
         /*          /*
         printk(KERN_DEBUG LOGNAME           printk(KERN_DEBUG LOGNAME 
Line 376  static int ringDMA (struct cvdv_cards *c Line 373  static int ringDMA (struct cvdv_cards *c
                 if (count>=2048) count &=0xfffff800;                  if (count>=2048) count &=0xfffff800;
                 count &=0xfffffffc;                  count &=0xfffffffc;
                                   
                   if (!size &&
                       !card->DecoderOpen){
                           printk(KERN_DEBUG LOGNAME 
                                  ": -- PREPARE IT ALREADY\n");
                           Prepare(card);
                   }
   
                   if (count > size) count = size & 0xfffffffc;
                 /*                  /*
                 printk(KERN_DEBUG LOGNAME                   printk(KERN_DEBUG LOGNAME 
                        ": -- stat: %d  length: %d size: %d\n",                         ": -- stat: %d  length: %d size: %d startV: %d startA: %d\n",
                        stat,count,size);                         stat,count,size, card->startingV, card->startingA);
                 */                  */
                 if (count) {                  if (count) {
                         ring_read_direct(&(card->rbuf),                          ring_read_direct(&(card->rbuf),
Line 671  void CardDeInit(struct cvdv_cards *card) Line 676  void CardDeInit(struct cvdv_cards *card)
         MargiFlush(card);          MargiFlush(card);
         MargiFreeBuffers(card);          MargiFreeBuffers(card);
         L64014RemoveIntr(card);          L64014RemoveIntr(card);
           card_init(card, 0);
 }  }
   
   

Removed from v.1.3  
changed lines
  Added in v.1.4


LinuxTV legacy CVS <linuxtv.org/cvs>