msleep(50);
reg0 = m88rs2000_demod_read(state, 0xb1);
reg1 = m88rs2000_demod_read(state, 0xb2);
- if (burst == SEC_MINI_B)
- reg1 |= 0x1;
+ /* TODO complete this section */
m88rs2000_demod_write(state, 0xb2, reg1);
m88rs2000_demod_write(state, 0xb1, reg0);
m88rs2000_demod_write(state, 0x9a, 0xb0);
case SEC_TONE_ON:
reg0 |= 0x4;
reg0 &= 0xbc;
- break;
+ break;
case SEC_TONE_OFF:
reg1 |= 0x80;
- break;
-
+ break;
default:
- return -EINVAL;
+ break;
}
m88rs2000_demod_write(state, 0xb2, reg1);
m88rs2000_demod_write(state, 0xb1, reg0);
{DEMOD_WRITE, 0xf0, 0x22},
{DEMOD_WRITE, 0xf1, 0xbf},
{DEMOD_WRITE, 0xb0, 0x45},
+ {DEMOD_WRITE, 0xb2, 0x01}, /* set voltage pin always set 1*/
{DEMOD_WRITE, 0x9a, 0xb0},
{0xff, 0xaa, 0xff}
};
int reg;
reg = m88rs2000_tuner_read(state, 0x3d);
reg &= 0x7f;
- if (reg < 0x17)
+ if (reg < 0x16)
reg = 0xa1;
- else if (reg < 0x16)
+ else if (reg == 0x16)
reg = 0x99;
else
reg = 0xf9;
MODULE_DESCRIPTION("M88RS2000 DVB-S Demodulator driver");
MODULE_AUTHOR("Malcolm Priestley tvboxspy@gmail.com");
MODULE_LICENSE("GPL");
-MODULE_VERSION("1.12");
+MODULE_VERSION("1.13");