signalwareltd / AndroidDvbDriver

Android driver framework for USB TV tuners
GNU General Public License v2.0
204 stars 71 forks source link

HanfTek crash #25

Open bademux opened 5 years ago

bademux commented 5 years ago

Hello, I had a problem with 15f4:0131 HanfTek. Tested on Xiaomi Mi8 and Xiaomi mibox S (android 8.1) Looks like it is the problem with new hardware rev based on Sony CXD2837ER. Please let me know if you need additional information.

 Stack trace and exception (DO NOT EDIT): Cannot send USB control message. Error code -1

info.martinmarinov.drivers.DvbException: Cannot send USB control message. Error code -1
    at info.martinmarinov.drivers.usb.rtl28xx.Rtl28xxDvbDevice.ctrlMsg(Rtl28xxDvbDevice.java:89)
    at info.martinmarinov.drivers.usb.rtl28xx.Rtl28xxTunerType$14.getSlave(Rtl28xxTunerType.java:155)
    at info.martinmarinov.drivers.usb.rtl28xx.Rtl28xxTunerType.detectSlave(Rtl28xxTunerType.java:198)
    at info.martinmarinov.drivers.usb.rtl28xx.Rtl2832DvbDevice$1.run(Rtl2832DvbDevice.java:94)
    at info.martinmarinov.drivers.tools.I2cAdapter$I2GateControl.runInOpenGate(I2cAdapter.java:107)
    at info.martinmarinov.drivers.usb.rtl28xx.Rtl2832DvbDevice.readConfig(Rtl2832DvbDevice.java:90)
    at info.martinmarinov.drivers.usb.DvbUsbDevice$1.run(DvbUsbDevice.java:106)
    at info.martinmarinov.drivers.tools.Retry$1.call(Retry.java:32)
    at info.martinmarinov.drivers.tools.Retry$1.call(Retry.java:29)
    at info.martinmarinov.drivers.tools.Retry.retry(Retry.java:42)
    at info.martinmarinov.drivers.tools.Retry.retry(Retry.java:29)
    at info.martinmarinov.drivers.usb.DvbUsbDevice.open(DvbUsbDevice.java:102)
    at info.martinmarinov.dvbdriver.DeviceController.run(DeviceController.java:67)

Last Device: No device open Build.MANUFACTURER: Xiaomi Build.MODEL: Mi 8 Build.PRODUCT: dipper Build.VERSION.SDK_INT: 28 Build.VERSION.RELEASE: 9 Driver versionName: 1.36 Driver versionCode: 17 gvbusb Looks like 2018 revision https://www.linuxtv.org/wiki/index.php/Astrometa_DVB-T2 Can be related: https://github.com/torvalds/linux/pull/567

bademux commented 5 years ago

@ValZapod thanks for info. Are you saing that all mobile phones incude DVB drivers for several devices? I thought that AndroidDvbDriver reiplements it.

bademux commented 5 years ago

@ValZapod I believe there is misunderstanding. This project Readme stays "The driver is a simplified user space port of a subset of the V4L2 Linux kernel drivers." My understanding is that we don't need linux kernel drivers - AndroidDvbDriver reimplements it. Fix me if I'm wrong.

bademux commented 5 years ago

@ValZapod can you kindly reread my message? I bold main part for you From AndroidDvbDriver Readme: "The driver is a simplified user space port of a subset of the V4L2 Linux kernel drivers." From my understanding AndroidDvbDriver is USERSPACE port of linux V4L2 drivers

bademux commented 5 years ago

@ValZapod Thanks