mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
Optimized tbs6704 drivers
This commit is contained in:
@@ -2799,7 +2799,7 @@ DMD_ERROR_t DMD_scan_vq(struct dvb_frontend* fe, DMD_PARAMETER_t *param )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i=0;i<160;i++)
|
for(i=0;i<230;i++)
|
||||||
{
|
{
|
||||||
DMD_I2C_Read(fe, DMD_BANK_MAIN(param->devid) ,DMD_MAIN_STSMON1 , &rd );
|
DMD_I2C_Read(fe, DMD_BANK_MAIN(param->devid) ,DMD_MAIN_STSMON1 , &rd );
|
||||||
//VQ LOCK
|
//VQ LOCK
|
||||||
@@ -2973,14 +2973,14 @@ static int DMD_set_parameters(struct dvb_frontend* fe)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
DMD_set_system(fe,¶m);
|
DMD_set_system(fe,¶m);
|
||||||
|
msleep(20);
|
||||||
Mxl603SetFreqBw(fe, c->frequency);
|
Mxl603SetFreqBw(fe, c->frequency);
|
||||||
msleep(2);
|
msleep(20);
|
||||||
DMD_device_post_tune(fe, ¶m );
|
DMD_device_post_tune(fe, ¶m );
|
||||||
|
msleep(100);
|
||||||
/* Call Lock/SYNC Status Judgement */
|
/* Call Lock/SYNC Status Judgement */
|
||||||
DMD_device_scan(fe, ¶m );
|
DMD_device_scan(fe, ¶m );
|
||||||
|
msleep(100);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3013,7 +3013,7 @@ static int DMD_read_status(struct dvb_frontend *fe, enum fe_status *status)
|
|||||||
|
|
||||||
MxLWare603_API_ReqTunerRxPower(fe,&rfpower);
|
MxLWare603_API_ReqTunerRxPower(fe,&rfpower);
|
||||||
|
|
||||||
|
msleep(2);
|
||||||
c->strength.len = 2;
|
c->strength.len = 2;
|
||||||
c->strength.stat[0].scale = FE_SCALE_DECIBEL;
|
c->strength.stat[0].scale = FE_SCALE_DECIBEL;
|
||||||
c->strength.stat[0].svalue = rfpower*10;
|
c->strength.stat[0].svalue = rfpower*10;
|
||||||
|
Reference in New Issue
Block a user