Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: WinTV Nova-CI, DiSEqC and dvbtune




Perhaps this work better....

        case DVB_CARD_TT_BUDGET_CI:
          {
            u8 diseqc=demod_readreg(dvb,0x08)&0xfc;
            demod_writereg(dvb, 0x08, diseqc); 
            mdelay(16);
            if (len>0) {
              demod_writereg(dvb,0x08,(diseqc|0x06));
              for (i=0;i<len;i++) {
                while ((demod_readreg(dvb,0x0a)&0x1)==0x01);
                demod_writereg(dvb,0x09,msg[i]);
              }
              while ((demod_readreg(dvb,0x0a)&0x1)==0x01);
              mdelay(16);
            }
            if (burst!=-1) {
              demod_writereg(dvb,0x08,(diseqc|0x02));
              while ((demod_readreg(dvb,0x0a)&0x01)==0x01);
              if (burst) demod_writereg(dvb,0x09,0xff);
              else demod_writereg(dvb,0x09,0x00);
              while ((demod_readreg(dvb,0x0a)&0x03)==0x01);
              demod_writereg(dvb,0x08,diseqc);
              mdelay(16);
            }
            Set22K(dvb,dvb->sec.ttk);
          }
        break;

-Massimiliano


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index