tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
174 stars 80 forks source link

TBS 5281 not working in new kernels #155

Open iwikus opened 5 years ago

iwikus commented 5 years ago

Hi, I have TBS 5281 and it seem not working in 4.20 (also tested libreelec 9.0.1 with crazycat drivers model, same issue). What cx231xx 3-2:1.1: cx231xx_send_usb_command: failed with status --32 mean? What is wrong?

[  260.972217] cx25840 9-0044: loaded v4l-cx231xx-avcore-01.fw firmware (16382 bytes)
[  261.006997] cx231xx 3-2:1.1: v4l2 driver version 0.0.3
[  261.079846] cx231xx 3-2:1.1: Unknown tuner type configuring SIF
[  261.109515] cx231xx 3-2:1.1: Registered video device video2 [v4l2]
[  261.109676] cx231xx 3-2:1.1: Registered VBI device vbi0
[  261.109730] cx231xx 3-2:1.1: video EndPoint Addr 0x84, Alternate settings: 5
[  261.109745] cx231xx 3-2:1.1: VBI EndPoint Addr 0x85, Alternate settings: 2
[  261.109755] cx231xx 3-2:1.1: sliced CC EndPoint Addr 0x86, Alternate settings: 2
[  261.109764] cx231xx 3-2:1.1: TS EndPoint Addr 0x81, Alternate settings: 6
[  261.109772] cx231xx 3-2:1.1: TS EndPoint Addr 0x82, Alternate settings: 6
[  261.111034] usbcore: registered new interface driver cx231xx
[  261.117903] WARNING: You are using an experimental version of the media stack.
                As the driver is backported to an older kernel, it doesn't offer
                enough quality for its usage in production.
                Use it with care.
               Latest git patches (needed if you report a bug to linux-media@vger.kernel.org):
                f539dd63c402b8354a37f4c164f5ddd4d589bf9c stid135-fe: Set Gold code.
[  261.182147] i2c i2c-13: Added multiplexed i2c bus 14
[  261.182150] si2168 13-0064: Silicon Labs Si2168-A20 successfully identified
[  261.182152] si2168 13-0064: firmware version: A 2.0.3
[  261.183825] cx231xx 3-2:1.1: cx231xx_send_usb_command: failed with status --32
[  261.183992] cx231xx 3-2:1.1: cx231xx_send_usb_command: failed with status --32
[  261.184161] cx231xx 3-2:1.1: cx231xx_send_usb_command: failed with status --32
[  261.184327] cx231xx 3-2:1.1: cx231xx_send_usb_command: failed with status --32
[  261.184334] si2157: probe of 11-0060 failed with error -32
[  261.184544] cx231xx 3-2:1.1: Cx231xx dvb Extension initialized

dmesg.txt

crazycat69 commented 5 years ago

Updated for 4.20.x-5.0.x compatibility (media_build also). Support for kernels <3.10 dropped.

Please check.

iwikus commented 5 years ago

Hi, thanks for reply. Still same issue, even with 4.19. (Linux TVBOX.iwik.org 4.19.0-0.bpo.2-amd64 #1 SMP Debian 4.19.16-1~bpo9+1 (2019-02-07) x86_64 GNU/Linux) TBS support asked for access but then just replied "please make sure the insert port is usb 2.0 ." Right now I have only USB 3.0 ports available in my testing virtual machine and I'm not sure if it is really usb version related. First time I have hit this issue was after upgrading libreelec from 8 to version 9 and usb port was same, it was lenovo X230 notebook. I can provide remote access to this box, if you would like to check.

dmesg.txt

iwikus commented 5 years ago

@crazycat69 can this issue be related to problem like this patch fixes? https://patchwork.kernel.org/patch/10763655/ There is comment "v4l2-mc: switch it to use the new approach to setup pipelines" and error which we have is -32 which is EPIPE

crazycat69 commented 5 years ago

i not cx231xx expert :) have one astrometa T2 hybrid and this work with 4.18 kernel (kubuntu 18.04.02) look like some usb related regression in latest kernels.

feroxy commented 5 years ago

Any further updates on this? I have hit this issue myself and my 5281 is no longer usable unfortunately

iwikus commented 5 years ago

Please write to support@tbsdtv.com to push them to fix it. I'm still waiting....

On 2019-04-07 23:08, feroxy wrote:

Any further updates on this? I have hit this issue myself and my 5281 is no longer usable unfortunately

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

Links:

[1] https://github.com/tbsdtv/linux_media/issues/155#issuecomment-480629863 [2] https://github.com/notifications/unsubscribe-auth/Acx8GiP3K-_83S73_TzgiDaRtOicouEuks5vel5egaJpZM4bWxsr

feroxy commented 5 years ago

Well, I have fired an email off to them, for whatever its worth...

btw I am on ubuntu server 18.04, kernel 4.15; on a machine with usb2 ports only so I don't think usb3.0 is the issue.

Please write to support@tbsdtv.com to push them to fix it. I'm still waiting.... On 2019-04-07 23:08, feroxy wrote: Any further updates on this? I have hit this issue myself and my 5281 is no longer usable unfortunately -- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. Links: ------ [1] #155 (comment) [2] https://github.com/notifications/unsubscribe-auth/Acx8GiP3K-_83S73_TzgiDaRtOicouEuks5vel5egaJpZM4bWxsr

iwikus commented 5 years ago

TBS requested remote access (again) at Monday, but I had no available machine for them to play with. I have prepared it yesterday and sent them access. But no reply from them and no login to that host yet.

feroxy commented 5 years ago

No reply to me as yet. Best I can think of is to revert to an earlier commit that was still working. Unfortunately I cannot remember when that was (!)

iwikus commented 5 years ago

i not cx231xx expert :) have one astrometa T2 hybrid and this work with 4.18 kernel (kubuntu 18.04.02) look like some usb related regression in latest kernels.

That CX231XX_BOARD_ASTROMETA_T2HYBRID which is using this cx231xx? Can you give a try if it works with this TBS opensource tree? I bet it wont. It seem they have done some hacks to support two tuners (.adap_cnt = 2,) and .demod_i2c_master is changed to array.

They probably won't fix this...

I have found on amazon WinTV-dualHD in some "sports-edition" www.amazon.de/gp/product/B07C7YNWJ1/ for a good price. So I have ordered it.

feroxy commented 5 years ago

The wintv looks like something I might try. Let me know how it works out for you iwikus? I also have a pair of tbs5220 which also seem to be having (separate) issues too (all inputs start reporting bad after they have been on for a while)

iwikus commented 5 years ago

I already have one WinTV-dualHD (www.amazon.de/dp/B011Z7I0JY), it is working well since kernel 4.17. I just need two dongles because of two independent signal sources. I'm disappointed of TBS drivers :( Few years ago I had positive experience with their DVB-S2 PCIE cards, but times had changed.

On 2019-04-28 02:24, feroxy wrote:

The wintv looks like something I might try. Let me know how it works out for you iwikus? I also have a pair of tbs5220 which also seem to be having (separate) issues too (all inputs start reporting bad after they have been on for a while)

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

Links:

[1] https://github.com/tbsdtv/linux_media/issues/155#issuecomment-487329688 [2] https://github.com/notifications/unsubscribe-auth/AHGHYGUHBI4C5BXEECM6ZJDPSTVDLANCNFSM4G23DMVQ

feroxy commented 5 years ago

Thanks iwikus, I think I'll go for that as an alternative to the 5281. I feel the same way about tbs, its working out to be too much bother to keep them running under linux...