Skip to content

Commit aabf715

Browse files
committed
Extend MygicaT230C fix to MygicaT230
1 parent d8fe204 commit aabf715

File tree

1 file changed

+5
-9
lines changed
  • drivers/src/main/java/info/martinmarinov/drivers/usb/silabs

1 file changed

+5
-9
lines changed

drivers/src/main/java/info/martinmarinov/drivers/usb/silabs/Si2168.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import java.io.IOException;
2828
import java.io.InputStream;
29-
import java.util.HashSet;
3029
import java.util.Set;
3130

3231
import info.martinmarinov.drivers.DeliverySystem;
@@ -40,7 +39,6 @@
4039
import info.martinmarinov.drivers.usb.DvbTuner;
4140
import info.martinmarinov.drivers.usb.DvbUsbDevice;
4241
import info.martinmarinov.drivers.usb.cxusb.CxUsbDvbDevice;
43-
import info.martinmarinov.drivers.usb.cxusb.MygicaT230C;
4442

4543
import static info.martinmarinov.drivers.DvbException.ErrorCode.BAD_API_USAGE;
4644
import static info.martinmarinov.drivers.DvbException.ErrorCode.CANNOT_TUNE_TO_FREQ;
@@ -418,13 +416,11 @@ public synchronized Set<DvbStatus> getStatus() throws DvbException {
418416
return SetUtils.setOf();
419417
}
420418

421-
if (usbDevice instanceof MygicaT230C) {
422-
/* hook fe: need to resync the slave fifo when signal locks. */
423-
/* it need resync slave fifo when signal change from unlock to lock.*/
424-
if (!hasLockStatus && resultStatus.contains(FE_HAS_LOCK)) {
425-
((CxUsbDvbDevice)usbDevice).cxusb_streaming_ctrl(true);
426-
hasLockStatus = true;
427-
}
419+
/* hook fe: need to resync the slave fifo when signal locks. */
420+
/* it need resync slave fifo when signal change from unlock to lock.*/
421+
if (!hasLockStatus && resultStatus.contains(FE_HAS_LOCK)) {
422+
((CxUsbDvbDevice)usbDevice).cxusb_streaming_ctrl(true);
423+
hasLockStatus = true;
428424
}
429425

430426
return resultStatus;

0 commit comments

Comments
 (0)