Diff for /margi2/spu.c between versions 1.1 and 1.2

version 1.1, 2000/12/03 22:41:08 version 1.2, 2001/04/25 15:31:09
Line 29  int DecoderHighlight(struct cvdv_cards * Line 29  int DecoderHighlight(struct cvdv_cards *
         int i;          int i;
         if ((coli == NULL) || (btn_posi == NULL))          if ((coli == NULL) || (btn_posi == NULL))
                 return 1;                  return 1;
         printk(KERN_ERR LOGNAME          MDEBUG(0,": -- DecoderHighlight: col 0x%02X%02X, contr 0x%02X%02X, act %d, %d,%d - %d,%d\n",
                ": -- DecoderHighlight: col 0x%02X%02X, contr 0x%02X%02X, act %d, %d,%d - %d,%d\n",  
                coli[0], coli[1], coli[2], coli[3], active,                 coli[0], coli[1], coli[2], coli[3], active,
                (((int) btn_posi[0] & 0x3F) << 4) | (btn_posi[1] >> 4),                 (((int) btn_posi[0] & 0x3F) << 4) | (btn_posi[1] >> 4),
                (((int) btn_posi[3] & 0x3F) << 4) | (btn_posi[4] >> 4),                 (((int) btn_posi[3] & 0x3F) << 4) | (btn_posi[4] >> 4),
Line 66  int DecoderHighlight(struct cvdv_cards * Line 65  int DecoderHighlight(struct cvdv_cards *
 int DecoderSPUPalette(struct cvdv_cards *card, int length, u8 * palette)  int DecoderSPUPalette(struct cvdv_cards *card, int length, u8 * palette)
 {  {
         int i;          int i;
         printk(KERN_DEBUG LOGNAME          MDEBUG(1,": -- DecoderSPUPalette: setting up %d bytes of SPU palette(Y,Cr,Cb):", length);
                ": -- DecoderSPUPalette: setting up %d bytes of SPU palette(Y,Cr,Cb):",  
                length);  
         for (i = 0; i < (length / 3); i++)          for (i = 0; i < (length / 3); i++)
                 printk(" %d=(%d,%d,%d)", i, palette[i * 3],                  MDEBUG(1," %d=(%d,%d,%d)", i, palette[i * 3],palette[i * 3 + 1], 
                        palette[i * 3 + 1], palette[i * 3 + 2]);                         palette[i * 3 + 2]);
         printk("\n");          MDEBUG(1,"\n");
         DecoderDelByte(card, 0x1A0, 0x01);      // SPU decode stop          DecoderDelByte(card, 0x1A0, 0x01);      // SPU decode stop
         DecoderSetByte(card, 0x1A0, 0x10);          DecoderSetByte(card, 0x1A0, 0x10);
         for (i = 0; i < length; i++)          for (i = 0; i < length; i++)
Line 83  int DecoderSPUPalette(struct cvdv_cards Line 80  int DecoderSPUPalette(struct cvdv_cards
   
 int DecoderSPUStream(struct cvdv_cards *card, int stream, int active)  int DecoderSPUStream(struct cvdv_cards *card, int stream, int active)
 {  {
         printk(KERN_DEBUG LOGNAME          MDEBUG(1,": -- DecoderSPUStream: stream %d, active %d\n", stream,
                ": -- DecoderSPUStream: stream %d, active %d\n", stream,  
                active);                 active);
         if (stream < 32) {          if (stream < 32) {
                 card->reg092 |= (0x20 | (stream & 0x1F));       // stream ID and select                  card->reg092 |= (0x20 | (stream & 0x1F));       // stream ID and select

Removed from v.1.1  
changed lines
  Added in v.1.2


LinuxTV legacy CVS <linuxtv.org/cvs>