Git Product home page Git Product logo

linux_media's Introduction

Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.

linux_media's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux_media's Issues

TBS6984: no signal issue

Hi,

first of all, thanks a lot for your work...

I have a signal issue with your drivers and TBS6984 card.
I've got UBUNTU based system with atom CPU TBS card and tvheadend(latest git version) server as backend. As I had several issues with freezing, interupted streaming or crashing tvheadend completely when using original TBS drivers, I compiled your drivers and extracted firmware following your wiki howtos...
Everything went well, seemed to be OK, modules loaded, adapters appeared, dmesg show firmware loaded, but I've got no signal and cannot tune any channel. As soon as I revert back to original drivers (v130318, v130506, v130318) signal is back, can tune, but "freezing" is back as well.

I have copied transponder settings from original adapters.
I tried autodetect muxes, monitor signal settings, etc - switching on and of,.. no success...
Dmesg doesn’t show any error, tvheadend neither.

Have you got an idea where could be an issue please?
Is there a way how to check, that everything is compiled and loaded/done correctly?
Which firmware should I use - windows/linux one? (tried both of them)
Would you need more information – which?

Anyway do you plan to implement support for TBS6985 as well?

Thanks a lot
Take care
jendik

Ubuntu 12.04 LTS
Linux jendaserver 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

TBS 6284 and Full-Featured TechnoTrend S2-6400?

Hi.

I bought a TBS 6284 card few years ago, and was disappointed that included closed source driver did not have any support for Full-Featured TT S2-6400 card (which is also a saa716x card).

Few days ago I found out about this open source project, and as source included saa716x_ff related files, I thought I give it a try.

Driver compiled fine, but after trying to load it, I get NULL pointer reference and Oops before registering last frontend of last device. I did not try to use the devices so can't tell if they are in working state.

[    3.734161] i2c i2c-3: tda18212: NXP TDA18212HN successfully identified
[    3.734167] SAA716x Budget 0000:03:00.0: DVB: registering adapter 1 frontend 0 (Sony CXD2820R)...
[    3.734331] DVB: registering new adapter (SAA716x dvb adapter)
[    3.736937] i2c i2c-3: tda18212: NXP TDA18212HN successfully identified
[    3.736942] SAA716x Budget 0000:03:00.0: DVB: registering adapter 4 frontend 0 (Sony CXD2820R)...
[    3.737099] DVB: registering new adapter (SAA716x dvb adapter)
[    4.341304] i2c i2c-4: tda18212: NXP TDA18212HN successfully identified
[    4.341310] SAA716x Budget 0000:03:00.0: DVB: registering adapter 5 frontend 0 (Sony CXD2820R)...
[    4.341473] DVB: registering new adapter (SAA716x dvb adapter)
[    4.347127] i2c i2c-4: tda18212: NXP TDA18212HN successfully identified
[    4.347131] SAA716x Budget 0000:03:00.0: DVB: registering adapter 6 frontend 0 (Sony CXD2820R)...
....
[    5.086953] DVB: registering new adapter (SAA716x dvb adapter)
[    5.190433] stv6110x_attach: Attaching STV6110x
[    5.199186] SAA716x FF 0000:01:00.0: DVB: registering adapter 7 frontend 0 (STV090x Multistandard)...
[    5.200169] BUG: unable to handle kernel NULL pointer dereference at 0000000000000014
[    5.200234] IP: [<ffffffffa0344bdd>] saa716x_dmabuf_sgfree+0xd/0x80 [saa716x_core]
[    5.200292] PGD 2138e2067 PUD 21381d067 PMD 0 
[    5.200334] Oops: 0000 [#1] SMP 
[    5.200366] Modules linked in: isl6423(O) stv6110x(O) tda18212(O) rc_pinnacle_pctv_hd(O) em28xx_rc(O) lnbp21(O) stb6100(O) tda18271(O) stb0899(O) em28xx_dvb(O) snd_hda_codec_hdmi snd_hda_codec_realtek rc_tt_1500(O) em28xx(O) tveeprom(O) v4l2_common(O) tda1004x(O) videodev(O) i915 media(O) fbcon coretemp cfbfillrect bitblit hwmon cfbimgblt softcursor i2c_algo_bit font x86_pkg_temp_thermal cfbcopyarea rc_hauppauge(O) intel_agp intel_gtt saa716x_budget(O) snd_hda_intel drm_kms_helper tas2101(O) snd_hda_codec cxd2820r(O) drm budget_ci(O) mb86a16(O) snd_pcm budget_core(O) stv090x(O) saa716x_ff(O+) agpgart ttpci_eeprom(O) snd_page_alloc e1000e saa7146(O) saa716x_core(O) fb snd_timer rc_core(O) dvb_core(O) fbdev snd i2c_i801 i2c_mux soundcore i2c_core ptp video pps_core thermal backlight fan button xts
[    5.201047]  gf128mul aes_x86_64 sha256_generic e1000 fuse multipath linear raid10 raid456 async_raid6_recov async_memcpy async_pq raid6_pq async_xor xor async_tx raid1 raid0 dm_snapshot dm_crypt dm_mirror dm_region_hash dm_log dm_mod firewire_core usbhid xhci_hcd ohci_hcd uhci_hcd usb_storage ehci_pci ehci_hcd usbcore usb_common sg ata_piix ahci libahci sata_sil24 sata_sil pata_jmicron libata
[    5.201403] CPU: 2 PID: 2526 Comm: systemd-udevd Tainted: G           O 3.12.13-gentoo #1
[    5.201457] Hardware name: System manufacturer System Product Name/P8Z77-V, BIOS 1908 03/14/2013
[    5.201513] task: ffff88021eb50660 ti: ffff880213a34000 task.ti: ffff880213a34000
[    5.201561] RIP: 0010:[<ffffffffa0344bdd>]  [<ffffffffa0344bdd>] saa716x_dmabuf_sgfree+0xd/0x80 [saa716x_core]
[    5.201631] RSP: 0018:ffff880213a35b68  EFLAGS: 00010286
[    5.201666] RAX: 0000000000000000 RBX: ffff8800c7862f50 RCX: 0000000000000002
[    5.201711] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8800c7862f50
[    5.201757] RBP: ffff8800c7860000 R08: 0000000000000000 R09: 0000000000000027
[    5.201805] R10: ffff88021f9f3fc0 R11: ffffffff81857c40 R12: 000000000000001b
[    5.201851] R13: ffff8800c7860000 R14: 000000000000260a R15: 00000000001fa400
[    5.201897] FS:  00007fc9a305b7c0(0000) GS:ffff88021fb00000(0000) knlGS:0000000000000000
[    5.201948] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    5.201986] CR2: 0000000000000014 CR3: 0000000213952000 CR4: 00000000001407e0
[    5.202031] Stack:
[    5.202048]  ffff8800c7862f50 ffffffffa034553c 0000000000000001 ffffffffa0346647
[    5.202109]  ffff8800c78617f8 0000000000000001 ffff8800c7861358 ffffffffa0346f4a
[    5.202170]  0000000000000087 ffff8800c7860000 00000000ffffffed ffff88021357b000
[    5.202231] Call Trace:
[    5.202255]  [<ffffffffa034553c>] ? saa716x_dmabuf_free+0x4c/0x70 [saa716x_core]
[    5.202307]  [<ffffffffa0346647>] ? saa716x_fgpi_exit+0x47/0x60 [saa716x_core]
[    5.202357]  [<ffffffffa0346f4a>] ? saa716x_dvb_exit+0x3a/0xf0 [saa716x_core]
[    5.202408]  [<ffffffffa03fa1fa>] ? saa716x_ff_pci_probe+0xaba/0xe20 [saa716x_ff]
[    5.202462]  [<ffffffff812ebb08>] ? pci_device_probe+0x98/0xe0
[    5.202505]  [<ffffffff8135e7b8>] ? driver_probe_device+0x68/0x220
[    5.202549]  [<ffffffff8135ea03>] ? __driver_attach+0x93/0xa0
[    5.202589]  [<ffffffff8135e970>] ? driver_probe_device+0x220/0x220
[    5.202632]  [<ffffffff8135c9dd>] ? bus_for_each_dev+0x4d/0x80
[    5.202673]  [<ffffffff8135de44>] ? bus_add_driver+0xf4/0x280
[    5.202715]  [<ffffffff8135effe>] ? driver_register+0x5e/0xf0
[    5.202757]  [<ffffffffa0400000>] ? 0xffffffffa03fffff
[    5.202796]  [<ffffffff810002f2>] ? do_one_initcall+0x102/0x150
[    5.202841]  [<ffffffff81097e75>] ? load_module+0x1815/0x20a0
[    5.202882]  [<ffffffff81095260>] ? mod_kobject_put+0x50/0x50
[    5.202925]  [<ffffffff81098875>] ? SyS_finit_module+0x95/0xa0
[    5.204872]  [<ffffffff814d6c62>] ? system_call_fastpath+0x16/0x1b
[    5.206839] Code: e8 4f b6 18 e1 41 0f b6 94 24 30 0b 00 00 e9 e6 fe ff ff 0f 0b 66 0f 1f 84 00 00 00 00 00 53 48 85 ff 48 89 fb 48 8b 47 30 74 4a <83> 78 14 03 7f 46 48 8b 7b 08 48 c7 43 10 00 00 00 00 48 85 ff 
[    5.209241] RIP  [<ffffffffa0344bdd>] saa716x_dmabuf_sgfree+0xd/0x80 [saa716x_core]
[    5.211472]  RSP <ffff880213a35b68>
[    5.213703] CR2: 0000000000000014
[    5.215978] ---[ end trace 1228cfa30ff9cb35 ]---

Oops always comes before registering LAST frontend/adapter/device or whatever. So here 4 tuners of TBS are ok, and first tuner of S2-6400.

I also tried to load S2-6400 first and TBS second, and here's the result:
(S2-6400 loaded already long before).

Jun  7 19:48:37 localhost kernel: [ 2849.821645] DVB: registering new adapter (SAA716x dvb adapter)
Jun  7 19:48:38 localhost kernel: [ 2850.429622] i2c i2c-15: tda18212: NXP TDA18212HN successfully identified
Jun  7 19:48:38 localhost kernel: [ 2850.429629] SAA716x Budget 0000:03:00.0: DVB: registering adapter 5 frontend 0 (Sony CXD2820R)...
Jun  7 19:48:38 localhost kernel: [ 2850.429895] DVB: registering new adapter (SAA716x dvb adapter)
Jun  7 19:48:38 localhost kernel: [ 2850.434918] i2c i2c-15: tda18212: NXP TDA18212HN successfully identified
Jun  7 19:48:38 localhost kernel: [ 2850.434925] SAA716x Budget 0000:03:00.0: DVB: registering adapter 6 frontend 0 (Sony CXD2820R)...
Jun  7 19:48:38 localhost kernel: [ 2850.435124] DVB: registering new adapter (SAA716x dvb adapter)
Jun  7 19:48:38 localhost kernel: [ 2851.040899] i2c i2c-16: tda18212: NXP TDA18212HN successfully identified
Jun  7 19:48:38 localhost kernel: [ 2851.040906] SAA716x Budget 0000:03:00.0: DVB: registering adapter 7 frontend 0 (Sony CXD2820R)...
Jun  7 19:48:38 localhost kernel: [ 2851.042077] BUG: unable to handle kernel NULL pointer dereference at 0000000000000014
Jun  7 19:48:38 localhost kernel: [ 2851.042132] IP: [<ffffffffa0327bdd>] saa716x_dmabuf_sgfree+0xd/0x80 [saa716x_core]
Jun  7 19:48:38 localhost kernel: [ 2851.042181] PGD c25e3067 PUD c27d6067 PMD 0 
Jun  7 19:48:38 localhost kernel: [ 2851.042209] Oops: 0000 [#1] SMP 
Jun  7 19:48:38 localhost kernel: [ 2851.042230] Modules linked in: tda18212(O) saa716x_budget(O+) tas2101(O) i2c_mux cx23885(O) altera_ci(O) altera_stapl(O) videobuf_dvb(O) btcx_risc(O) videobuf_dma_sg(O) cx2341x(O) videobuf_core(O) lirc_serial(O) lirc_dev(O) nfsd bonding xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables nvram loop_serpent(O) loop(O) isl6423(O) stv6110x(O) rc_pinnacle_pctv_hd(O) em28xx_rc(O) lnbp21(O) stb6100(O) tda18271(O) stb0899(O) em28xx_dvb(O) snd_hda_codec_hdmi snd_hda_codec_realtek rc_tt_1500(O) tda1004x(O) em28xx(O) tveeprom(O) v4l2_common(O) i915 videodev(O) media(O) coretemp fbcon cfbfillrect hwmon cfbimgblt rc_hauppauge(O) bitblit i2c_algo_bit x86_pkg_temp_thermal softcursor cfbcopyarea font intel_agp intel_gtt drm_kms_helper snd_hda_intel drm budget_ci(O) cxd2820r(O) snd_hda_codec budget_core(O) mb86a16(O) snd_pcm agpgart ttpci_eeprom(O) saa716x_ff(O) stv090x(O) e1000e saa7146(O) fb saa716x_core(O) snd_page_alloc rc_core(O) fbdev dvb_core(O) snd_timer snd i2c_i801 ptp video i2c_core soundcore pps_core backlight thermal fan button xts gf128mul aes_x86_64 sha256_generic e1000 fuse multipath linear raid10 raid456 async_raid6_recov async_memcpy async_pq raid6_pq async_xor xor async_tx raid1 raid0 dm_snapshot dm_crypt dm_mirror dm_region_hash dm_log dm_mod firewire_core usbhid xhci_hcd ohci_hcd uhci_hcd usb_storage ehci_pci ehci_hcd usbcore usb_common sg ata_piix ahci libahci sata_sil24 sata_sil pata_jmicron libata
Jun  7 19:48:38 localhost kernel: [ 2851.043146] CPU: 0 PID: 7790 Comm: modprobe Tainted: G           O 3.12.13-gentoo #1
Jun  7 19:48:38 localhost kernel: [ 2851.043187] Hardware name: System manufacturer System Product Name/P8Z77-V, BIOS 1908 03/14/2013
Jun  7 19:48:38 localhost kernel: [ 2851.043235] task: ffff8800c7f36000 ti: ffff8800c25ae000 task.ti: ffff8800c25ae000
Jun  7 19:48:38 localhost kernel: [ 2851.043275] RIP: 0010:[<ffffffffa0327bdd>]  [<ffffffffa0327bdd>] saa716x_dmabuf_sgfree+0xd/0x80 [saa716x_core]
Jun  7 19:48:38 localhost kernel: [ 2851.043339] RSP: 0018:ffff8800c25afbc8  EFLAGS: 00010286
Jun  7 19:48:38 localhost kernel: [ 2851.043368] RAX: 0000000000000000 RBX: ffff8802160ca890 RCX: 0000000000000002
Jun  7 19:48:38 localhost kernel: [ 2851.043407] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8802160ca890
Jun  7 19:48:38 localhost kernel: [ 2851.043444] RBP: ffff8802160c8000 R08: 0000000000000000 R09: 000000000000001b
Jun  7 19:48:38 localhost kernel: [ 2851.043479] R10: ffff88021f9f3d80 R11: ffffffff818576c0 R12: 0000000000000000
Jun  7 19:48:38 localhost kernel: [ 2851.043517] R13: ffff8802160c8000 R14: ffffffffa00b86c0 R15: ffff8800c62b6dc0
Jun  7 19:48:38 localhost kernel: [ 2851.043558] FS:  00007fdc19c4d700(0000) GS:ffff88021fa00000(0000) knlGS:0000000000000000
Jun  7 19:48:38 localhost kernel: [ 2851.043603] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun  7 19:48:38 localhost kernel: [ 2851.043637] CR2: 0000000000000014 CR3: 00000000378e8000 CR4: 00000000001407f0
Jun  7 19:48:38 localhost kernel: [ 2851.043674] Stack:
Jun  7 19:48:38 localhost kernel: [ 2851.043687]  ffff8802160ca890 ffffffffa032853c 0000000000000001 ffffffffa0329647
Jun  7 19:48:38 localhost kernel: [ 2851.043731]  ffff8802160ca258 0000000000000003 ffff8802160c9db8 ffffffffa0329f4a
Jun  7 19:48:38 localhost kernel: [ 2851.043778]  0000000000000000 ffff8802160c8000 00000000ffffffed ffffffffa00b86c0
Jun  7 19:48:38 localhost kernel: [ 2851.043826] Call Trace:
Jun  7 19:48:38 localhost kernel: [ 2851.043853]  [<ffffffffa032853c>] ? saa716x_dmabuf_free+0x4c/0x70 [saa716x_core]
Jun  7 19:48:38 localhost kernel: [ 2851.043899]  [<ffffffffa0329647>] ? saa716x_fgpi_exit+0x47/0x60 [saa716x_core]
Jun  7 19:48:38 localhost kernel: [ 2851.043941]  [<ffffffffa0329f4a>] ? saa716x_dvb_exit+0x3a/0xf0 [saa716x_core]
Jun  7 19:48:38 localhost kernel: [ 2851.043983]  [<ffffffffa00b78dc>] ? saa716x_budget_pci_probe+0x1cc/0x274 [saa716x_budget]
Jun  7 19:48:38 localhost kernel: [ 2851.044028]  [<ffffffff812ebb08>] ? pci_device_probe+0x98/0xe0
Jun  7 19:48:38 localhost kernel: [ 2851.044061]  [<ffffffff8135e7b8>] ? driver_probe_device+0x68/0x220
Jun  7 19:48:38 localhost kernel: [ 2851.044096]  [<ffffffff8135ea03>] ? __driver_attach+0x93/0xa0
Jun  7 19:48:38 localhost kernel: [ 2851.044128]  [<ffffffff8135e970>] ? driver_probe_device+0x220/0x220
Jun  7 19:48:38 localhost kernel: [ 2851.044165]  [<ffffffff8135c9dd>] ? bus_for_each_dev+0x4d/0x80
Jun  7 19:48:38 localhost kernel: [ 2851.044198]  [<ffffffff8135de44>] ? bus_add_driver+0xf4/0x280
Jun  7 19:48:38 localhost kernel: [ 2851.044233]  [<ffffffff8135effe>] ? driver_register+0x5e/0xf0
Jun  7 19:48:38 localhost kernel: [ 2851.044277]  [<ffffffffa00eb000>] ? 0xffffffffa00eafff
Jun  7 19:48:38 localhost kernel: [ 2851.044311]  [<ffffffff810002f2>] ? do_one_initcall+0x102/0x150
Jun  7 19:48:38 localhost kernel: [ 2851.044349]  [<ffffffff81097e75>] ? load_module+0x1815/0x20a0
Jun  7 19:48:38 localhost kernel: [ 2851.045912]  [<ffffffff81095260>] ? mod_kobject_put+0x50/0x50
Jun  7 19:48:38 localhost kernel: [ 2851.047491]  [<ffffffff81098875>] ? SyS_finit_module+0x95/0xa0
Jun  7 19:48:38 localhost kernel: [ 2851.048933]  [<ffffffff814d6c62>] ? system_call_fastpath+0x16/0x1b
Jun  7 19:48:38 localhost kernel: [ 2851.050126] Code: e8 4f 86 1a e1 41 0f b6 94 24 30 0b 00 00 e9 e6 fe ff ff 0f 0b 66 0f 1f 84 00 00 00 00 00 53 48 85 ff 48 89 fb 48 8b 47 30 74 4a <83> 78 14 03 7f 46 48 8b 7b 08 48 c7 43 10 00 00 00 00 48 85 ff 
Jun  7 19:48:38 localhost kernel: [ 2851.052652] RIP  [<ffffffffa0327bdd>] saa716x_dmabuf_sgfree+0xd/0x80 [saa716x_core]
Jun  7 19:48:38 localhost kernel: [ 2851.053870]  RSP <ffff8800c25afbc8>
Jun  7 19:48:38 localhost kernel: [ 2851.055043] CR2: 0000000000000014
Jun  7 19:48:38 localhost kernel: [ 2851.060047] ---[ end trace cb95511fbdfa65d5 ]---

And here only 3 tuners of TBS 6284 are registered before oopsing.

Please advice how can I give any futher assistance and/or do more debuging, in case more information is required.

TBS6983 support please

Hello LJalves

The tbs 6983 card is similar hardware wise to tbs6925 but with dual tuners.
Can you please add support for this card too?

Thank you

Hardware address errors when using 6984 and 6985 together, OK individually

Thanks for these drivers. Particularly the 6985 is buggy with official TBS drivers so your efforts are much appreciated. The 6984 is rev.14 I believe. By the way, I maintain 2 AUR packages using your drivers for Arch Linux:

https://aur.archlinux.org/packages/tbs-unofficial-dvb-drivers-git/
https://aur.archlinux.org/packages/ffdecsawrapper-git-tbs-unofficial/

As the title suggests, both cards work fine when installed alone. However when both cards are installed all 8 DVB tuners show up in /dev/dvb and all tuners on the card occupying /dev/dvb0 through /dev/dvb3 work fine. But all tuners on the card occupying /dev/dvb4 through /dev/dvb7 fail with hardware address errors. If the 6984 and 6985 PCI-E slots are switched, the problem follows the dvb address, not the actual card itself.

This behavior does not happen with the official TBS drivers and a cat of the hardware shows all the proper hardware including 2x SAA7160. However, when doing a cat of the hardware with your drivers, only one of the SAA7160 chips shows up. This must be where the problem lies.

I would be happy to offer debugging information if this helps. Let me know what I should run to help out.

Arch Linux - linux 3.16.1-1 (x86_64) (custom compiled for 16 DVB tuners)
Asus P8P67 with Intel i5 + 16mb RAM

modprobe gives invalid argument

after compiling and rebooting, there is no new card in tvheadend, so i tried moprobe my selfe and get this errors:

WARNING: Error inserting v4l2_common (/lib/modules/3.5.0-39-generic/kernel/drivers/media/v4l2-core/v4l2-common.ko): Invalid argument
WARNING: Error inserting cx2341x (/lib/modules/3.5.0-39-generic/kernel/drivers/media/common/cx2341x.ko): Invalid argument
WARNING: Error inserting snd_page_alloc (/lib/modules/3.5.0-39-generic/kernel/sound/core/snd-page-alloc.ko): Invalid argument
WARNING: Error inserting snd_timer (/lib/modules/3.5.0-39-generic/kernel/sound/core/snd-timer.ko): Invalid argument
WARNING: Error inserting snd_pcm (/lib/modules/3.5.0-39-generic/kernel/sound/core/snd-pcm.ko): Invalid argument
WARNING: Error inserting altera_stapl (/lib/modules/3.5.0-39-generic/kernel/drivers/misc/altera-stapl/altera-stapl.ko): Invalid argument
WARNING: Error inserting videobuf_dma_sg (/lib/modules/3.5.0-39-generic/kernel/drivers/media/v4l2-core/videobuf-dma-sg.ko): Invalid argument
WARNING: Error inserting rc_core (/lib/modules/3.5.0-39-generic/kernel/drivers/media/rc/rc-core.ko): Invalid argument
FATAL: Error inserting cx23885 (/lib/modules/3.5.0-39-generic/kernel/drivers/media/pci/cx23885/cx23885.ko): Invalid argument

what should i do?

thank you and best regards

WARNING: "i2c_add_mux_adapter" [/mnt/cache/dvb_drivers/media_build/v4l/tas2101.ko] undefined!

Well to keep the story short:
I'm on TBS6984 v14

I'm trying to compile the drivers.
I'm compiling vs media_build (REV:8f611b40331508dfe130dc3f644ba27b2344630f) as it fails with the latest changes

uname -a: Linux Tower 3.10.24p-unRAID #15 SMP Thu Feb 13 10:12:42 PST 2014 x86_64 Intel(R) Xeon(R) CPU E5-2420 0 @ 1.90GHz GenuineIntel GNU/Linux

The drivers compile with but i get this:
WARNING: "i2c_add_mux_adapter" [/mnt/cache/dvb_drivers/media_build/v4l/tas2101.ko] undefined!
WARNING: "i2c_del_mux_adapter" [/mnt/cache/dvb_drivers/media_build/v4l/tas2101.ko] undefined!
Full compile log: http://pastebin.com/R3qDsb8k

and after I load the module
root@Tower:~# modprobe saa716x_budget int_type=1
modprobe: ERROR: could not insert 'saa716x_budget': Unknown symbol in module, or unknown parameter (see dmesg)
tas2101: Unknown symbol i2c_del_mux_adapter (err 0)
tas2101: Unknown symbol i2c_add_mux_adapter (err 0)

Any hints what can be wrong ?

5922 CPU usage higher than normal. [Update: It's caused by the IR sensor!]

Many thanks for updating your media_tree to the latest, unfortunately there seems to be a bit of a problem with the 5922 (I knew I shouldn't have reinstalled, ha!).

It was working fine previously using your tree on Linux 3.10.38 but I've since reinstalled Debian and updated the kernel and all the ones I tried (3.14.23, 3.10.59 and 3.17.2) seem to be having this problem, whenever I plug in the 5922 the CPU usage hits 1.00 and stays there.

If you'd like access to the machine I can give you it (you know where to find me xD), but if there is any debug info you need just let me know.

Many thanks 👍

tbs6280 fails to tune

First time user so I might be at fault ... but wondering if this is related to your message about changes to tda18212 .....

Installed latest yesterday in a PC with both TBS6981 & TBS6280 running 3.17.2 kernel. The 6981 is working fine.
The 6280 fails both with Kaffeine and w_scan. I have included some basic info below ... no idea what else might be useful.

dmesg | grep -i frontend

[ 16.040038] SAA716x Budget 0000:03:00.0: DVB: registering adapter 0 frontend 0 (Sony CXD2820R)...
[ 16.043303] SAA716x Budget 0000:03:00.0: DVB: registering adapter 1 frontend 0 (Sony CXD2820R)...
[ 27.473236] cx23885_dvb_register() allocating 1 frontend(s)
[ 27.473251] i2c i2c-11: cx24117: Attaching frontend 0
[ 27.473254] cx23885 0000:01:00.0: DVB: registering adapter 2 frontend 0 (Conexant CX24117/CX24132)...
[ 27.473454] cx23885_dvb_register() allocating 1 frontend(s)
[ 27.473459] i2c i2c-11: cx24117: Attaching frontend 1
[ 27.473461] cx23885 0000:01:00.0: DVB: registering adapter 3 frontend 0 (Conexant CX24117/CX24132)...

Using w_scan:

Info: using DVB adapter auto detection.
/dev/dvb/adapter0/frontend0 -> DVB-T "Sony CXD2820R": very good :-))

Using DVB-T frontend (adapter /dev/dvb/adapter0/frontend0)
---- Getting frontend capabilities----
Using DVB API 3.2
frontend Sony CXD2820R supports
INVERSION_AUTO
QAM_AUTO
TRANSMISSION_MODE_AUTO
GUARD_INTERVAL_AUTO
HIERARCHY_AUTO
FEC_AUTO
-----------------------_
updating transponder list..
QAM_16 f = 690000 kHz I999B8C34D0T2G32Y0: (time: 00:00) (time: 00:06)

QAM_16 f = 746000 kHz I999B8C34D0T2G32Y0: (time: 00:10) (time: 00:14)

tune to: QAM_16 f = 690000 kHz I999B8C34D0T2G32Y0 (no signal)
(time: 00:17) ----------no signal----------
tune to: QAM_16 f = 690000 kHz I999B8C34D0T2G32Y0 (no signal)
(time: 00:21) ----------no signal----------
tune to: QAM_16 f = 746000 kHz I999B8C34D0T2G32Y0 (no signal)
(time: 00:25) ----------no signal----------
tune to: QAM_16 f = 746000 kHz I999B8C34D0T2G32Y0 (no signal)
(time: 00:29) ----------no signal----------

ERROR: Sorry - i couldn't get any working frequency/transponder
Nothing to scan!!

messages log

Nov 8 11:04:55 XPS klogd: DVB: registering new adapter (SAA716x dvb adapter)
Nov 8 11:04:56 XPS klogd: tda18212 9-0060: NXP TDA18212HN/M successfully identified
Nov 8 11:04:56 XPS klogd: SAA716x Budget 0000:03:00.0: DVB: registering adapter 0 frontend 0 (Sony CXD2820R)...
Nov 8 11:04:56 XPS klogd: DVB: registering new adapter (SAA716x dvb adapter)
Nov 8 11:04:56 XPS klogd: tda18212 9-0063: NXP TDA18212HN/M successfully identified
Nov 8 11:04:56 XPS klogd: SAA716x Budget 0000:03:00.0: DVB: registering adapter 1 frontend 0 (Sony CXD2820R)...
Nov 8 11:05:00 XPS service_harddrake[1670]: ### Program is starting ###
Nov 8 11:05:01 XPS klogd: WARNING: You are using an experimental version of the media stack.
Nov 8 11:05:01 XPS klogd: ^IAs the driver is backported to an older kernel, it doesn't offer
Nov 8 11:05:01 XPS klogd: ^Ienough quality for its usage in production.
Nov 8 11:05:01 XPS klogd: ^IUse it with care.
Nov 8 11:05:01 XPS klogd: Latest git patches (needed if you report a bug to [email protected]):
Nov 8 11:05:01 XPS klogd: ^I607c9aacee2a3391a7a3423a19cdb69efffb02f1 Merge latest official media tree

lsmod | grep -i tda18212

tda18212 2992 2
regmap_i2c 1808 1 tda18212
i2c_core 16688 24 tda18218,af9013,dvb_usb_v2,cx25840,cx23885,tda18271,v4l2_common,videodev,tveeprom,i2c_i801,tda18212,regmap_i2c,saa716x_budget,cx24117,saa716x_core,mb86a16,stv090x,cxd2820r,tas2101,i2c_mux,i915,drm_kms_helper,drm,i2c_algo_bit

Thank you for your work on this.

saa716x crashes with more than 8 tuners (four TBS 6985)

Compiled latest drivers for Linux amd64 3.16, drivers crash when enumerating the 9th tuner.

Dec 6 14:37:11 encoder27 kernel: [ 3.254876] SAA716x Budget 0000:02:00.0: DVB: registering adapter 5 frontend 0 (Tmax TAS2101)...
Dec 6 14:37:11 encoder27 kernel: [ 3.255117] DVB: registering new adapter (SAA716x dvb adapter)
Dec 6 14:37:11 encoder27 kernel: [ 3.255776] i2c i2c-19: Added multiplexed i2c bus 25
Dec 6 14:37:11 encoder27 kernel: [ 3.255801] i2c i2c-19: Added multiplexed i2c bus 26
Dec 6 14:37:11 encoder27 kernel: [ 3.547005] i2c i2c-26: av201x: Airoha Technology AV201x successfully attached
Dec 6 14:37:11 encoder27 kernel: [ 3.547011] SAA716x Budget 0000:02:00.0: DVB: registering adapter 6 frontend 0 (Tmax TAS2101)...
Dec 6 14:37:11 encoder27 kernel: [ 3.547239] DVB: registering new adapter (SAA716x dvb adapter)
Dec 6 14:37:11 encoder27 kernel: [ 3.547970] i2c i2c-19: Added multiplexed i2c bus 27
Dec 6 14:37:11 encoder27 kernel: [ 3.548007] i2c i2c-19: Added multiplexed i2c bus 28
Dec 6 14:37:11 encoder27 kernel: [ 3.839140] i2c i2c-28: av201x: Airoha Technology AV201x successfully attached
Dec 6 14:37:11 encoder27 kernel: [ 3.839146] SAA716x Budget 0000:02:00.0: DVB: registering adapter 7 frontend 0 (Tmax TAS2101)...
Dec 6 14:37:11 encoder27 kernel: [ 3.839516] SAA716x Budget 0000:06:00.0: irq 67 for MSI/MSI-X
Dec 6 14:37:11 encoder27 kernel: [ 3.859143] BUG: unable to handle kernel NULL pointer dereference at 000000000000001c
Dec 6 14:37:11 encoder27 kernel: [ 3.859197] IP: [] saa716x_dmabuf_sgfree+0x12/0x80 [saa716x_core]
Dec 6 14:37:11 encoder27 kernel: [ 3.859246] PGD 23534c067 PUD 23534d067 PMD 0
Dec 6 14:37:11 encoder27 kernel: [ 3.859285] Oops: 0000 [#1] SMP
Dec 6 14:37:11 encoder27 kernel: [ 3.859314] Modules linked in: hid_generic ftdi_sio usbhid hid usbserial av201x(O) snd_hda_codec_hdmi x86_pkg_temp_thermal intel_powerclamp intel_rapl coretemp snd_hda_codec_realtek kvm_intel snd_hda_codec_generic kvm crct10dif_pclmul crc32_pclmul i915 iTCO_wdt iTCO_vendor_support mxm_wmi ghash_clmulni_intel snd_hda_intel evdev saa716x_budget(O+) snd_hda_controller tas2101(O) aesni_intel snd_hda_codec cxd2820r(O) mb86a16(O) cx24117(O) aes_x86_64 video snd_hwdep saa716x_core(O) lrw i2c_mux drm_kms_helper stv090x(O) snd_pcm gf128mul psmouse glue_helper ablk_helper pcspkr serio_raw cryptd dvb_core(O) drm snd_timer i2c_i801 lpc_ich snd mfd_core mei_me i2c_algo_bit soundcore i2c_core mei tpm_infineon tpm_tis wmi tpm shpchp processor thermal_sys button ext4 crc16 mbcache jbd2 sg sr_mod cdrom sd_mod crc_t10dif crct10dif_common ahci libahci crc32c_intel libata firewire_ohci ehci_pci xhci_hcd ehci_hcd scsi_mod firewire_core crc_itu_t r8169 usbcore mii usb_common
Dec 6 14:37:11 encoder27 kernel: [ 3.860077] CPU: 0 PID: 381 Comm: udevd Tainted: G O 3.16-0.bpo.3-amd64 #1 Debian 3.16.5-1~bpo70+1
Dec 6 14:37:11 encoder27 kernel: [ 3.860129] Hardware name: MSI MS-7672/Z68A-GD80 (G3) (MS-7672), BIOS V18.5 09/08/2011
Dec 6 14:37:11 encoder27 kernel: [ 3.860172] task: ffff88023464cba0 ti: ffff88023570c000 task.ti: ffff88023570c000
Dec 6 14:37:11 encoder27 kernel: [ 3.860212] RIP: 0010:[] [] saa716x_dmabuf_sgfree+0x12/0x80 [saa716x_core]
Dec 6 14:37:11 encoder27 kernel: [ 3.860270] RSP: 0018:ffff88023570fb28 EFLAGS: 00010282
Dec 6 14:37:11 encoder27 kernel: [ 3.860301] RAX: 0000000000000000 RBX: ffff880235b6adf8 RCX: 0000000000000002
Dec 6 14:37:11 encoder27 kernel: [ 3.860339] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880235b6adf8
Dec 6 14:37:11 encoder27 kernel: [ 3.860378] RBP: ffff880235b68000 R08: 0000000000000000 R09: 0000000000000001
Dec 6 14:37:11 encoder27 kernel: [ 3.860415] R10: 0000000000000000 R11: 0000000000017198 R12: 0000000000000012
Dec 6 14:37:11 encoder27 kernel: [ 3.860453] R13: ffffffffa05a6280 R14: ffff880235351bc0 R15: 0000000000000000
Dec 6 14:37:11 encoder27 kernel: [ 3.860492] FS: 00007fe8f27c4800(0000) GS:ffff88023fa00000(0000) knlGS:0000000000000000
Dec 6 14:37:11 encoder27 kernel: [ 3.860535] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Dec 6 14:37:11 encoder27 kernel: [ 3.860567] CR2: 000000000000001c CR3: 000000023534a000 CR4: 00000000000407f0
Dec 6 14:37:11 encoder27 kernel: [ 3.860605] Stack:
Dec 6 14:37:11 encoder27 kernel: [ 3.860619] ffff880235b6adf8 ffffffffa03b2391 0000000000000001 ffffffffa03b362c
Dec 6 14:37:11 encoder27 kernel: [ 3.860672] ffff880235b69370 0000000000000000 ffff880235b68000 ffffffffa03b3f3f
Dec 6 14:37:11 encoder27 kernel: [ 3.860725] 0000000000000000 ffff880235b68000 00000000ffffffed ffff880236fbe000
Dec 6 14:37:11 encoder27 kernel: [ 3.860778] Call Trace:
Dec 6 14:37:11 encoder27 kernel: [ 3.860799] [] ? saa716x_dmabuf_free+0x51/0x70 [saa716x_core]
Dec 6 14:37:11 encoder27 kernel: [ 3.860842] [] ? saa716x_fgpi_exit+0x4c/0x60 [saa716x_core]
Dec 6 14:37:11 encoder27 kernel: [ 3.860884] [] ? saa716x_dvb_exit+0x3f/0x140 [saa716x_core]
Dec 6 14:37:11 encoder27 kernel: [ 3.860929] [] ? saa716x_budget_pci_probe+0x1ec/0x2a0 [saa716x_budget]
Dec 6 14:37:11 encoder27 kernel: [ 3.860974] [] ? local_pci_probe+0x4e/0xb0
Dec 6 14:37:11 encoder27 kernel: [ 3.861008] [] ? pci_device_probe+0xea/0x130
Dec 6 14:37:11 encoder27 kernel: [ 3.861043] [] ? driver_probe_device+0x155/0x400
Dec 6 14:37:11 encoder27 kernel: [ 3.861079] [] ? __driver_attach+0x9b/0xa0
Dec 6 14:37:11 encoder27 kernel: [ 3.861113] [] ? driver_probe_device+0x400/0x400
Dec 6 14:37:11 encoder27 kernel: [ 3.861148] [] ? bus_for_each_dev+0x5d/0x90
Dec 6 14:37:11 encoder27 kernel: [ 3.861182] [] ? bus_add_driver+0x124/0x260
Dec 6 14:37:11 encoder27 kernel: [ 3.861217] [] ? driver_register+0x63/0xf0
Dec 6 14:37:11 encoder27 kernel: [ 3.861252] [] ? 0xffffffffa032dfff
Dec 6 14:37:11 encoder27 kernel: [ 3.861284] [] ? do_one_initcall+0xd7/0x210
Dec 6 14:37:11 encoder27 kernel: [ 3.861320] [] ? load_module+0x1c43/0x25e0
Dec 6 14:37:11 encoder27 kernel: [ 3.861353] [] ? show_initstate+0x50/0x50
Dec 6 14:37:11 encoder27 kernel: [ 3.863559] [] ? alloc_vmap_area+0x26b/0x300
Dec 6 14:37:11 encoder27 kernel: [ 3.865768] [] ? SyS_init_module+0xd6/0x120
Dec 6 14:37:11 encoder27 kernel: [ 3.867974] [] ? system_call_fast_compare_end+0x10/0x15
Dec 6 14:37:11 encoder27 kernel: [ 3.870193] Code: e1 41 0f b6 95 38 0b 00 00 e9 fb fe ff ff 0f 0b 90 90 90 90 90 90 90 90 90 66 66 66 66 90 48 85 ff 53 48 89 fb 48 8b 47 30 74 45 <83> 78 1c 03 7f 41 48 8b 7b 08 48 c7 43 10 00 00 00 00 48 85 ff
Dec 6 14:37:11 encoder27 kernel: [ 3.872809] RIP [] saa716x_dmabuf_sgfree+0x12/0x80 [saa716x_core]
Dec 6 14:37:11 encoder27 kernel: [ 3.875213] RSP
Dec 6 14:37:11 encoder27 kernel: [ 3.877594] CR2: 000000000000001c
Dec 6 14:37:11 encoder27 kernel: [ 3.879969] ---[ end trace ee9863f94d836ef4 ]---

With only two TBS6985 (8 tuners) there is no problem.
TBS drivers work fine with 16 tuners.

TBS6982 Support

Hello,

Not an issue but feedback as I see the wiki says 'Added - testing needed'

I have compiled your driver and it is working perfectly. Here is the relevant info on the card. Many thanks for your effort.

TBS6982 DVB-S2 Dual Tuner PCIe Card

04:00.0 0480: 1131:7160 (rev 03)
    Subsystem: 6982:0002
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 47
    Region 0: Memory at f7c00000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [40] MSI: Enable+ Count=1/32 Maskable- 64bit+
        Address: 00000000fee0300c  Data: 4152
    Capabilities: [50] Express (v1) Endpoint, MSI 00
        DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <256ns, L1 <1us
            ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
        DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
            RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
            MaxPayload 128 bytes, MaxReadReq 128 bytes
        DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
        LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <4us, L1 <64us
            ClockPM- Surprise- LLActRep- BwNot-
        LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- CommClk-
            ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
        LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
    Capabilities: [74] Power Management version 2
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot-,D3cold-)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [80] Vendor Specific Information: Len=50 <?>
    Capabilities: [100 v1] Vendor Specific Information: ID=0000 Rev=0 Len=088 <?>
    Kernel driver in use: SAA716x Budget
    Kernel modules: saa716x_budget

Output from lsdvb

        lsdvb: Simple utility to list PCI/PCIe DVB devices
        Version: 0.0.4
        Copyright (C) Manu Abraham

SAA716x Budget (1131:7160 6982:2) on PCI Domain:0 Bus:4 Device:0 Function:0
    DEVICE:0 ADAPTER:0 FRONTEND:8 (Tmax TAS2101) 
         FE_QPSK Fmin=950MHz Fmax=2150MHz
    DEVICE:0 ADAPTER:1 FRONTEND:8 (Tmax TAS2101) 
         FE_QPSK Fmin=950MHz Fmax=2150MHz

and dmesg

[ 3520.543764] SAA716x Budget 0000:04:00.0: irq 47 for MSI/MSI-X
[ 3520.553605] DVB: registering new adapter (SAA716x dvb adapter)
[ 3520.841645] SAA716x Budget 0000:04:00.0: DVB: registering adapter 0 frontend 0 (Tmax TAS2101)...
[ 3520.841824] DVB: registering new adapter (SAA716x dvb adapter)
[ 3521.124484] SAA716x Budget 0000:04:00.0: DVB: registering adapter 1 frontend 0 (Tmax TAS2101)...

TBS6680 support possible?

Hello Luis,

I've currently switched to your driver for my TBS6981. I really appreciate your work on this! In the same pc I have an TBS6680 DVB-C card. This card has an SAA7160 chipset, just like the TBS6984 (which is in my production tv system at the moment, running the TBS drivers). At this moment I am unable to use the 6680 since I'm not using TBS's drivers anymore.
Is is possible to use your drivers for the TBS6680 too, since it uses the same chipset as the TBS6984? Or is there a lot of work needed to get this working? As this is beyond my level of expertise, I'm not sure how many work needs to be done for this.
Offcourse I will be more than happy to supply any information needed or to do some testing if needed.

Thanks in advance.

lspci output of the TBS6680
07:00.0 Multimedia controller: Philips Semiconductors SAA7160 (rev 03)
Subsystem: Device 6680:0001
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 16 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at fea00000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [40] MSI: Enable- Count=1/32 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [50] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <256ns, L1 <1us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 128 bytes
DevSta: CorrErr- UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <4us, L1 <64us
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
Capabilities: [74] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [80] Vendor Specific Information: Len=50 <?>
Capabilities: [100 v0] #41ed

Instructions when upgrade kernel

Firstly, I'd like to say thanks for supporting this card and helping the open source community.

Probably I'm being a noob but when I update the kernel of my linux server, the drivers for my TBS6280 which previously worked just fine (exceptionally well in fact) stop working.

I have tried following the instructions at
http://linuxtv.org/wiki/index.php/TBS6280#Making_it_Work_.28Open_source.29
and
https://github.com/ljalves/linux_media/wiki/Installating

but it does not build correctly.

Any advice?

Thanks

Conflict between TBS6281 and TBS6982

Hi,

I have both a 6281 (dvb-t2) and 6982 (dvb-s2) card in my machine. Both use the sa716x_budget module.. The 6281 appears to work ok (although is dvb-t only, but that's a different problem). The 6982 won't tune into anything and fills the logs with the messages below. It looks like the card is crashing and is resetting? Do you think they require different firmwares, or there is some other conflict between them?

Oct 26 00:09:34 tv kernel: [ 1617.452786] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in cold state
Oct 26 00:09:34 tv kernel: [ 1617.452817] si2168 13-0064: si2168: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Oct 26 00:09:34 tv kernel: [ 1617.597414] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in warm state
Oct 26 00:09:34 tv kernel: [ 1617.599947] si2157 14-0060: si2157: found a 'Silicon Labs Si2157/Si2158' in cold state
Oct 26 00:09:34 tv kernel: [ 1617.599967] si2157 14-0060: si2157: downloading firmware from file 'dvb-tuner-si2158-a20-01.fw'
Oct 26 00:09:34 tv kernel: [ 1617.822973] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in cold state
Oct 26 00:09:34 tv kernel: [ 1617.822984] si2168 13-0064: si2168: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Oct 26 00:09:34 tv kernel: [ 1617.967604] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in warm state
Oct 26 00:09:34 tv kernel: [ 1617.970144] si2157 14-0060: si2157: found a 'Silicon Labs Si2157/Si2158' in cold state
Oct 26 00:09:34 tv kernel: [ 1617.970151] si2157 14-0060: si2157: downloading firmware from file 'dvb-tuner-si2158-a20-01.fw'
Oct 26 00:09:44 tv kernel: [ 1627.233412] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in cold state
Oct 26 00:09:44 tv kernel: [ 1627.233438] si2168 13-0064: si2168: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Oct 26 00:09:44 tv kernel: [ 1627.378094] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in warm state
Oct 26 00:09:44 tv kernel: [ 1627.380607] si2157 14-0060: si2157: found a 'Silicon Labs Si2157/Si2158' in cold state
Oct 26 00:09:44 tv kernel: [ 1627.380626] si2157 14-0060: si2157: downloading firmware from file 'dvb-tuner-si2158-a20-01.fw'
Oct 26 00:09:44 tv kernel: [ 1627.603332] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in cold state
Oct 26 00:09:44 tv kernel: [ 1627.603345] si2168 13-0064: si2168: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Oct 26 00:09:44 tv kernel: [ 1627.747968] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in warm state
Oct 26 00:09:44 tv kernel: [ 1627.750484] si2157 14-0060: si2157: found a 'Silicon Labs Si2157/Si2158' in cold state
Oct 26 00:09:44 tv kernel: [ 1627.750502] si2157 14-0060: si2157: downloading firmware from file 'dvb-tuner-si2158-a20-01.fw'
Oct 26 00:09:44 tv kernel: [ 1627.973225] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in cold state
Oct 26 00:09:44 tv kernel: [ 1627.973237] si2168 13-0064: si2168: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
Oct 26 00:09:44 tv kernel: [ 1628.117947] si2168 13-0064: si2168: found a 'Silicon Labs Si2168' in warm state
Oct 26 00:09:44 tv kernel: [ 1628.120456] si2157 14-0060: si2157: found a 'Silicon Labs Si2157/Si2158' in cold state
Oct 26 00:09:44 tv kernel: [ 1628.120473] si2157 14-0060: si2157: downloading firmware from file 'dvb-tuner-si2158-a20-01.fw'

Many thanks for your work on these drivers,
Andrew

TBS5281

Hey

I have a TBS 5281 usb tuner, and I'm having problems with the tbs official drivers which basically seem to stop working after roughly a week of uptime, the symptom being that the device just wont tune, requiring a reboot to resume functioning (the device shows up as "bad" status in tvheadend when trying to tune)

Posting here in the hopes that an opensource alternative is possible, and offer whatever assistance I can in moving that forward

TBS6285 symbolrate 0

Thank you so much for making this driver.

In order to make it work, I had to adjust the symbolrate in the tvheadend mux file. Tvheadend does not give me the option to choose a symbolrate > 0. I think this is related to the symbolrate as reported by the driver: (based on this thread: https://tvheadend.org/issues/1567)

pvr:~# dvb-fe-tool -g
INFO Device Silicon Labs Si2168 (/dev/dvb/adapter0/frontend0) capabilities:
INFO CAN_2G_MODULATION
[...]
INFO Got parameters for DVBC/ANNEX_A:
[...]
INFO FREQUENCY = 0
INFO MODULATION = QPSK
INFO INVERSION = OFF
INFO SYMBOL_RATE = 0
INFO INNER_FEC = NONE
INFO DELIVERY_SYSTEM = DVBC/ANNEX_A

TBS6981 fails to tune

While the driver written by Luis is far more stable compared to the original one by Turbosight, I still experience some issues with my TBS6981 from time to time.
Sometimes Tvheadend (3.9.385~g7d8d81a) is not able to start a stream of a channel. In the web interface the status changes from "testing" to "bad". If that problem occurs, I sometimes can open channels on other muxes, and sometimes that doesn't work either. The issue seems to "resolve" in time. When repeatedly trying to open the channel that fails, it will sometimes start streaming, and sometimes it does not. When trying after, for example a day, all works fine again.

Since I am having lot's of troubles with all of my tbs cards in the past 1,5 year, I'm close to buying new Digital Devices cards and put my TBS cards aside or try to sell them as this is just becoming a huge irritation since you simply cannot trust the card will do it's job.

So I'm curious if the kind of problems I currently encouter will be resolvable or that it always be a buggy card. In case of the latter I will just take my losses and buy Digital Devices cards of which I already have one (DVB-C) and works flawlessly.
If there still is some hope for this card, I will offcourse be happy to help and debug these issues. In that case please instruct me what information is needed.

Thanks a lot!
Regards,
Hugo

Make failing with rmmod.pl

Reporting problem with Line 4 - proc/...

I could still make install afterwards as the modules were build, but the rmmod part of the make had an issue.

Ubuntu 13.04 - Kernel 3.8.0-30-generic

TBS 6982 -- possible crash

I've been using this driver for a few weeks now. My system is Ubuntu Server 14.04 64 bit, kernel 3.13.0-29, and I amd running tvheadend 3.4.28 (the stable release)

What I am finding is after three or four days of uptime, something goes wrong such that I get very limited data from the card -- watching on XMBC I get very sporadic picture updates. I am assuming that this is a driver issue (but I am no expert) because the problem stays when I restart either xbmc or tvheadend, but is solved if I reboot the server.

The following are what I think are relevant lines from syslog...

un 21 12:03:17 serv2 kernel: [146305.391172] irq 19: nobody cared (try booting with the "irqpoll" option)
Jun 21 12:03:17 serv2 kernel: [146305.391214] CPU: 1 PID: 0 Comm: swapper/1 Tainted: GF          O 3.13.0-29-generic #53-Ubuntu
Jun 21 12:03:17 serv2 kernel: [146305.391216] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./N68-S3 UCC, BIOS P1.60 09/19/2011
Jun 21 12:03:17 serv2 kernel: [146305.391218]  ffff880119af6a9c ffff88011fc43e68 ffffffff8171a214 ffff880119af6a00
Jun 21 12:03:17 serv2 kernel: [146305.391221]  ffff88011fc43e90 ffffffff810c19e2 ffff880119af6a00 0000000000000013
Jun 21 12:03:17 serv2 kernel: [146305.391223]  0000000000000000 ffff88011fc43ed0 ffffffff810c1e7c 000000001fc43eb0
Jun 21 12:03:17 serv2 kernel: [146305.391225] Call Trace:
Jun 21 12:03:17 serv2 kernel: [146305.391227]  <IRQ>  [<ffffffff8171a214>] dump_stack+0x45/0x56
Jun 21 12:03:17 serv2 kernel: [146305.391236]  [<ffffffff810c19e2>] __report_bad_irq+0x32/0xd0
Jun 21 12:03:17 serv2 kernel: [146305.391239]  [<ffffffff810c1e7c>] note_interrupt+0x1ac/0x200
Jun 21 12:03:17 serv2 kernel: [146305.391241]  [<ffffffff810bf759>] handle_irq_event_percpu+0xd9/0x1d0
Jun 21 12:03:17 serv2 kernel: [146305.391243]  [<ffffffff810bf88d>] handle_irq_event+0x3d/0x60
Jun 21 12:03:17 serv2 kernel: [146305.391245]  [<ffffffff810c29fa>] handle_fasteoi_irq+0x5a/0x100
Jun 21 12:03:17 serv2 kernel: [146305.391248]  [<ffffffff81015cde>] handle_irq+0x1e/0x30
Jun 21 12:03:17 serv2 kernel: [146305.391251]  [<ffffffff8172cf0d>] do_IRQ+0x4d/0xc0
Jun 21 12:03:17 serv2 kernel: [146305.391254]  [<ffffffff817226ad>] common_interrupt+0x6d/0x6d
Jun 21 12:03:17 serv2 kernel: [146305.391255]  <EOI>  [<ffffffff8104f596>] ? native_safe_halt+0x6/0x10
Jun 21 12:03:17 serv2 kernel: [146305.391261]  [<ffffffff8101c5ef>] default_idle+0x1f/0xc0
Jun 21 12:03:17 serv2 kernel: [146305.391263]  [<ffffffff8101ceb6>] arch_cpu_idle+0x26/0x30
Jun 21 12:03:17 serv2 kernel: [146305.391265]  [<ffffffff810beb95>] cpu_startup_entry+0xc5/0x290
Jun 21 12:03:17 serv2 kernel: [146305.391268]  [<ffffffff81040fb8>] start_secondary+0x218/0x2c0
Jun 21 12:03:17 serv2 kernel: [146305.391269] handlers:
Jun 21 12:03:17 serv2 kernel: [146305.391288] [<ffffffffa022ac90>] saa716x_budget_pci_irq [saa716x_budget]
Jun 21 12:03:17 serv2 kernel: [146305.391323] Disabling IRQ #19
Jun 21 12:05:07 serv2 kernel: [146415.942793] demux_worker: called but nothing to do
Jun 21 12:06:10 serv2 kernel: [146479.230286] demux_worker: called but nothing to do
Jun 21 12:06:11 serv2 kernel: [146480.031395] demux_worker: called but nothing to do

Jun 21 12:09:30 serv2 kernel: [146678.906205] BUG: soft lockup - CPU#0 stuck for 23s! [unison:31195]
Jun 21 12:09:30 serv2 kernel: [146678.906254] Modules linked in: quota_v2 quota_tree nfsd auth_rpcgss nfs_acl nfs lockd sunrpc fscache snd_hda_codec_via av201x(OF) xt_tcpudp xt_recent iptable_filter ip_tables x_tables kvm_amd kvm nouveau mxm_wmi wmi video saa716x_budget(OF) tas2101(OF) cxd2820r(OF) mb86a16(OF) saa716x_core(OF) stv090x(OF) serio_raw ttm k10temp edac_core drm_kms_helper edac_mce_amd drm i2c_algo_bit dvb_core(OF) i2c_mux mac_hid snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd soundcore parport_pc ppdev lp i2c_nforce2 parport pata_acpi hid_generic usbhid hid pata_amd sata_nv forcedeth
Jun 21 12:09:30 serv2 kernel: [146678.906297] CPU: 0 PID: 31195 Comm: unison Tainted: GF          O 3.13.0-29-generic #53-Ubuntu
Jun 21 12:09:30 serv2 kernel: [146678.906300] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./N68-S3 UCC, BIOS P1.60 09/19/2011
Jun 21 12:09:30 serv2 kernel: [146678.906303] task: ffff8800cd3717f0 ti: ffff880011bba000 task.ti: ffff880011bba000
Jun 21 12:09:30 serv2 kernel: [146678.906305] RIP: 0010:[<ffffffff8120d330>]  [<ffffffff8120d330>] __break_lease+0x350/0x3d0
Jun 21 12:09:30 serv2 kernel: [146678.906312] RSP: 0018:ffff880011bbbe28  EFLAGS: 00000246
Jun 21 12:09:30 serv2 kernel: [146678.906314] RAX: ffff8800cf17c618 RBX: 0000000000000001 RCX: ffff8800cf17ca98
Jun 21 12:09:30 serv2 kernel: [146678.906316] RDX: ffff8800cf17ca98 RSI: 000000001ccc1cca RDI: ffffffff81fae380
Jun 21 12:09:30 serv2 kernel: [146678.906318] RBP: ffff880011bbbe98 R08: ffff8800cf17ca80 R09: 0000000000000004
Jun 21 12:09:30 serv2 kernel: [146678.906319] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001
Jun 21 12:09:30 serv2 kernel: [146678.906321] R13: ffff880011bbbe18 R14: ffff8800cf17c600 R15: ffff880011bbbe18
Jun 21 12:09:30 serv2 kernel: [146678.906323] FS:  00007fb7175a4740(0000) GS:ffff88011fc00000(0000) knlGS:0000000000000000
Jun 21 12:09:30 serv2 kernel: [146678.906325] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun 21 12:09:30 serv2 kernel: [146678.906327] CR2: 0000000000cf9fc8 CR3: 00000000c330c000 CR4: 00000000000007f0
Jun 21 12:09:30 serv2 kernel: [146678.906329] Stack:
Jun 21 12:09:30 serv2 kernel: [146678.906330]  ffff88009dc2f708 00000000a063d180 ffff880011bbbe60 ffff88009dc2f680
Jun 21 12:09:30 serv2 kernel: [146678.906334]  0000000000001842 ffff880011bbbeb8 ffff880011bbbe98 ffffffff811d8df8
Jun 21 12:09:30 serv2 kernel: [146678.906337]  ffff880011bbbeb0 ffff88009dc2f728 ffff880011bbbf40 00000000000003ea
Jun 21 12:09:30 serv2 kernel: [146678.906340] Call Trace:
Jun 21 12:09:30 serv2 kernel: [146678.906346]  [<ffffffff811d8df8>] ? notify_change+0x1a8/0x390
Jun 21 12:09:30 serv2 kernel: [146678.906350]  [<ffffffff811b9a47>] chown_common+0x117/0x180
Jun 21 12:09:30 serv2 kernel: [146678.906354]  [<ffffffff811bb62f>] SyS_chown+0x7f/0xf0
Jun 21 12:09:30 serv2 kernel: [146678.906358]  [<ffffffff8172adff>] tracesys+0xe1/0xe6
Jun 21 12:09:30 serv2 kernel: [146678.906360] Code: 0f 94 c2 4d 85 ff 75 46 84 d2 75 3f 48 8d 75 b0 4c 89 f7 e8 f3 d8 e9 ff 4c 89 e7 45 89 fd e8 38 4e 51 00 48 89 df e8 30 e6 ff ff <45> 85 ff 0f 88 3a ff ff ff 0f 85 e3 fe ff ff 48 8b 7d a8 e8 e8 
Jun 21 12:10:24 serv2 kernel: [146733.489724] demux_worker: called but nothing to do
Jun 21 12:10:29 serv2 kernel: [146738.496678] demux_worker: called but nothing to do

Jun 21 12:35:17 serv2 tvheadend[29277]: message repeated 59 times: [ HTTP: 192.168.2.72: /comet/poll -- 401]
Jun 21 12:49:30 serv2 tvheadend[29277]: dvr: "The Simpsons" on "Channel 4 HD" recorder starting
Jun 21 12:49:30 serv2 tvheadend[29277]: subscription: "DVR: The Simpsons" subscribing on "Channel 4 HD", weight: 300, adapter: "Tmax TAS2101-1", network: "Freesat", mux: "Freesat: 11,126,500 kHz Vertical (No satconf)", provider: "Freesat", service: "Channel 4 HD", quality: 100
Jun 21 12:49:30 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: H264 @ #2305: Continuity counter error
Jun 21 12:49:30 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: AC3 @ #2306: Continuity counter error
Jun 21 12:49:30 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: MPEG2AUDIO @ #2307: Continuity counter error
Jun 21 12:49:30 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: TELETEXT @ #2309: Continuity counter error
Jun 21 12:49:31 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: H264 @ #2305: Continuity counter error, 1 duplicate log lines suppressed
Jun 21 12:49:31 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: AC3 @ #2306: Continuity counter error, 1 duplicate log lines suppressed
Jun 21 12:49:31 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: DVBSUB @ #2308: Continuity counter error
Jun 21 12:49:31 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: TELETEXT @ #2309: Continuity counter error, 1 duplicate log lines suppressed
Jun 21 12:49:31 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: MPEG2AUDIO @ #2307: Continuity counter error, 1 duplicate log lines suppressed
Jun 21 12:49:32 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: H264 @ #2305: Continuity counter error, 6 duplicate log lines suppressed
Jun 21 12:49:32 serv2 tvheadend[29277]: TS: Tmax TAS2101-1/ASTRA: 11,126,500 kHz Vertical (No satconf)/Channel 4 HD: AC3 @ #2306: Continuity counter error, 3 duplicate log lines suppressed

Compile for Raspbian (Debian Wheezy)

i`ve a Raspberry Pi B+ board (arm arch) with Linux Raspbian (Debian Wheezy) kernel 3.12.28+.

more info :http://www.raspberrypi.org/

my dvb is TBS qbox 5922 usb.
i installed a fresh Raspbian on my board, but i can`t compile the driver, i just type this:

Linux raspberrypi 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Nov 27 12:37:12 2014 from 192.168.1.101

pi@raspberrypi ~ $ git clone git://linuxtv.org/media_build.git

Cloning into 'media_build'...
remote: Counting objects: 2592, done.
remote: Compressing objects: 100% (975/975), done.
remote: Total 2592 (delta 1812), reused 2261 (delta 1577)
Receiving objects: 100% (2592/2592), 516.33 KiB | 113 KiB/s, done.
Resolving deltas: 100% (1812/1812), done.

pi@raspberrypi ~ $ git clone --depth=1 https://github.com/ljalves/linux_media.git -b latest ./media

Cloning into './media'...
remote: Counting objects: 100542, done.
remote: Compressing objects: 100% (87835/87835), done.
remote: Total 100542 (delta 48015), reused 35118 (delta 11786)
Receiving objects: 100% (100542/100542), 156.74 MiB | 73 KiB/s, done.
Resolving deltas: 100% (48015/48015), done.
Checking out files: 100% (48069/48069), done.

pi@raspberrypi ~ $ cd media_build
pi@raspberrypi ~/media_build $ make dir DIR=../media

make -C linux/ dir DIR="../../media"
make[1]: Entering directory '/home/pi/media_build/linux'
rm -rf drivers firmware include sound .patches_applied .linked_dir .git_log.md5 git_log kernel_version.h
/bin/sh: 1: lsdiff: not found
Makefile:119: recipe for target 'dir' failed
make[1]: *** [dir] Error 127
make[1]: Leaving directory '/home/pi/media_build/linux'
Makefile:32: recipe for target 'dir' failed
make: *** [dir] Error 2

is there any Requrirements ?!
and i`m new with linux...

TBS 6982

Hello @ljalves.

Thank you so much for this afford, I'm running TBS 6981 card at home and successfully switched to your driver from genuine TBS drivers and its working much better, getting better signal from muxes and card runs pretty stable.

But here is a problem. TBS 6981 is not available any more and successor card is TBS 6981. I tried to build same IPTV solution as I have to a friend and failed to acquire TBS 6981. So I purchased two 6982's and have difficulties with them since. In one card, one tuner is defected and querying with TBS support for RMA and exchange. Also signal and stability are not as good as with my 6981 and your driver.

Is there a big difference between 6981 and 6982 ? Due to nature of fact that 6981 is not sellable, it would be great for all folks who can now only buy 6982's to have driver alternative.

I can provide you info you need about 6982 and help you with testing etc.

tvheadend is hanging

ok, after the compiling issues, here are the next ones:
tvheadend (3.4.27gfbda802quantal) is unusable, syslog/dmesg puts out this messages:
Aug 30 11:28:18 xbmc ntpdate[1810]: step time server 192.53.103.108 offset -0.573277 sec
Aug 30 11:31:42 xbmc kernel: [ 240.263546] INFO: task tvheadend:1402 blocked for more than 120 seconds.
Aug 30 11:31:42 xbmc kernel: [ 240.263549] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug 30 11:31:42 xbmc kernel: [ 240.263551] tvheadend D c1969e00 0 1402 1 0x00000000
Aug 30 11:31:42 xbmc kernel: [ 240.263553] f1dc7cd8 00000086 c1969e00 c1969e00 00000000 c183d200 f6ca8000 00000002
Aug 30 11:31:42 xbmc kernel: [ 240.263557] c1969e00 c1969e00 ee17fe97 00000002 f7bb9e00 f1da3f70 f1dc7cf0 f1dc7ca4
Aug 30 11:31:42 xbmc kernel: [ 240.263561] c1054499 f1dc7cac f1dc7ca4 00000282 00000000 f1dc7cbc c1054d06 00000282
Aug 30 11:31:42 xbmc kernel: [ 240.263564] Call Trace:
Aug 30 11:31:42 xbmc kernel: [ 240.263569] [] ? lock_timer_base.isra.37+0x29/0x50
Aug 30 11:31:42 xbmc kernel: [ 240.263571] [] ? try_to_del_timer_sync+0x66/0xb0
Aug 30 11:31:42 xbmc kernel: [ 240.263573] [] ? del_timer_sync+0x29/0x50
Aug 30 11:31:42 xbmc kernel: [ 240.263577] [] schedule+0x23/0x60
Aug 30 11:31:42 xbmc kernel: [ 240.263579] [] schedule_preempt_disabled+0xd/0x10
Aug 30 11:31:42 xbmc kernel: [ 240.263581] [] __mutex_lock_slowpath+0xc6/0x120
Aug 30 11:31:42 xbmc kernel: [ 240.263583] [] mutex_lock+0x24/0x40
Aug 30 11:31:42 xbmc kernel: [ 240.263586] [] cx24117_cmd_execute+0x28/0x50 [cx24117]
Aug 30 11:31:42 xbmc kernel: [ 240.263588] [] cx24117_set_tone+0x77/0xd0 [cx24117]
Aug 30 11:31:42 xbmc kernel: [ 240.263590] [] ? schedule_timeout+0x215/0x280
Aug 30 11:31:42 xbmc kernel: [ 240.263602] [] ? dvb_frontend_open+0x2ae/0x330 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263606] [] ? dvb_register_frontend+0x170/0x170 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263610] [] dvb_frontend_ioctl_legacy.isra.11+0x1cb/0xa50 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263613] [] ? dvb_device_open+0xb2/0x100 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263616] [] ? _raw_spin_lock_irq+0x18/0x20
Aug 30 11:31:42 xbmc kernel: [ 240.263618] [] ? __down_common+0x8d/0xc9
Aug 30 11:31:42 xbmc kernel: [ 240.263621] [] ? down_interruptible+0x30/0x50
Aug 30 11:31:42 xbmc kernel: [ 240.263624] [] dvb_frontend_ioctl+0xed/0xe30 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263627] [] ? path_put+0x1a/0x20
Aug 30 11:31:42 xbmc kernel: [ 240.263629] [] ? terminate_walk+0x35/0x40
Aug 30 11:31:42 xbmc kernel: [ 240.263631] [] ? do_last+0x2f7/0x880
Aug 30 11:31:42 xbmc kernel: [ 240.263634] [] ? dvb_frontend_ioctl_legacy.isra.11+0xa50/0xa50 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263637] [] dvb_usercopy+0x6e/0x170 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263641] [] ? dvb_frontend_ioctl_legacy.isra.11+0xa50/0xa50 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263643] [] ? path_openat+0xcf/0x380
Aug 30 11:31:42 xbmc kernel: [ 240.263645] [] ? do_filp_open+0x31/0x80
Aug 30 11:31:42 xbmc kernel: [ 240.263649] [] ? dvb_frontend_ioctl_legacy.isra.11+0xa50/0xa50 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263652] [] ? dvb_usercopy+0x170/0x170 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263655] [] dvb_generic_ioctl+0x22/0x40 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263658] [] ? dvb_frontend_ioctl_legacy.isra.11+0xa50/0xa50 [dvb_core]
Aug 30 11:31:42 xbmc kernel: [ 240.263660] [] do_vfs_ioctl+0x7a/0x5a0
Aug 30 11:31:42 xbmc kernel: [ 240.263666] [] ? putname+0x2b/0x40
Aug 30 11:31:42 xbmc kernel: [ 240.263668] [] ? putname+0x2b/0x40
Aug 30 11:31:42 xbmc kernel: [ 240.263672] [] ? getnstimeofday+0x56/0x140
Aug 30 11:31:42 xbmc kernel: [ 240.263675] [] sys_ioctl+0x68/0x80
Aug 30 11:31:42 xbmc kernel: [ 240.263678] [] sysenter_do_call+0x12/0x28

and i get this:
[ 73.021779] i2c i2c-10: cx24117_firmware_ondemand: No firmware uploaded (timeout or file not found?)

but
xbmc ~ # md5sum /lib/firmware/dvb-fe-cx24117.fw
d41d8cd98f00b204e9800998ecf8427e /lib/firmware/dvb-fe-cx24117.fw
xbmc ~ #

the file is there

Linux 3.13 support

I certainly don't mean to hassle but I'm just curious when you think 3.13 will be supported. I'm currently getting a bunch of (fairly predictable) patch errors:

patch -s -f -R -p1 -i ../backports/api_version.patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/pvrusb2/pvrusb2-v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/staging/media/sn9c102/sn9c102_core.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/v4l2-core/v4l2-ioctl.c.rej

TBS-6285 - 'frontend 0 attach failed`

I have a XenServer and have set up PCI pass through for my TBS-6285 tuner. I followed the install instructions but the frontend is not attached for some reason. Have I missed something?

/dev/dvb/ is present and when I list one of the 4 adaptors I get ls /dev/dvb/adapter0/

root@debian-tv-data:~# ls -al /dev/dvb/adapter0/
total 0
drwxr-xr-x 2 root root     100 Dec 10 16:57 .
drwxr-xr-x 6 root root     120 Dec 10 16:57 ..
crw-rw---T 1 root video 212, 0 Dec 10 16:57 demux0
crw-rw---T 1 root video 212, 1 Dec 10 16:57 dvr0
crw-rw---T 1 root video 212, 2 Dec 10 16:57 net0

When checking lspci -v I notice no kernel modules are used (but the driver is)

# 
00:00.0 Multimedia controller: Philips Semiconductors SAA7160 (rev 02)
Subsystem: Device 6285:0001
Flags: bus master, fast devsel, latency 0, IRQ 26
Memory at fdd00000 (64-bit, non-prefetchable) [size=1M]
Capabilities: [40] MSI: Enable- Count=1/32 Maskable- 64bit+
Capabilities: [50] Express Endpoint, MSI 00
Capabilities: [74] Power Management version 2
Capabilities: [80] Vendor Specific Information: Len=50 <?>
Capabilities: [100] Vendor Specific Information: ID=0000 Rev=0 Len=088 <?>
Kernel driver in use: SAA716x Budget

In dmesg it says that frontend n attach failed but not why

[    3.445054]  c1a2c05c5965c0c8abae0d1d0feb058f73a6b6da Fix sta090x+saa716x bas
ed cards and a bad auto-merge
[    3.493507] SAA716x Budget 0000:00:00.0: enabling device (0000 -> 0002)
[    3.493763] SAA716x Budget 0000:00:00.0: Xen PCI mapped GSI16 to IRQ26
[    3.494156] SAA716x Budget 0000:00:00.0: setting latency timer to 64
[    3.512701] DVB: registering new adapter (SAA716x dvb adapter)
[    3.518146] SAA716x Budget 0000:00:00.0: TurboSight TBS 6285 frontend 0 attach failed
[    3.518595] DVB: registering new adapter (SAA716x dvb adapter)
[    3.523996] SAA716x Budget 0000:00:00.0: TurboSight TBS 6285 frontend 1 attach failed
[    3.524471] DVB: registering new adapter (SAA716x dvb adapter)
[    3.529901] SAA716x Budget 0000:00:00.0: TurboSight TBS 6285 frontend 2 attach failed
[    3.530350] DVB: registering new adapter (SAA716x dvb adapter)
[    3.535223] SAA716x Budget 0000:00:00.0: TurboSight TBS 6285 frontend 3 attach failed

TBS6281 support?

Hi,
I've just bought a tbs 6281, I was hoping it would be supported by the existing 6280 support, but I can see how this works now and that the card needs to be included in the list of supported cards in the code. Would support for this card be possible? AFAIK it's just a 6280 with additional DVB-C support.

Thanks,

Giles

TBS 5922 support

Hello,

The homepage of the project ( https://github.com/ljalves/linux_media/wiki ) was open in my browser since few days. Big was my excitement today when I checked for update and saw that there is major commit - the USB cards support. Alas, in the big mix of added TBS USB cards, my device - TBS 5922 - is missing.

I wonder if you can add support for 5922 in the driver?
As far as I know TBS 5922 is the USB equivalent of TBS 6922.

The chips used are AV2011 + TAS2100. And the USB bridge is CY7C68013A, which I believe, is the same used in TBS 5925.

Here is part of lsusb -v

Bus 001 Device 002: ID 734c:5922 TBS Technologies China
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x734c TBS Technologies China
idProduct 0x5922
bcdDevice 0.01
iManufacturer 1 TBS-Tech
iProduct 2 TBS 5922
iSerial 0
bNumConfigurations 1

I hope the difference between other TBS cards and mine is not big and support will be possible.

Also I want to say BIG thanks to ljalves and crazycat69 for all the great work.
Open source tbs driver is just miracle.

Regards, imperia777

cannot compile | radio-sf16fmr2.c:32:21: error: field 'v4l2_dev' has incomplete type

Hi,

i'm on ubuntu 12.04.2 LTS with kernel 3.2.0-44-generic-pae
all dependencies like:
kernel-source or kernel-headers
libdigest-sha-perl
make
gcc
git
patch
patchutils
libproc-processtable-perl

are installed, i became this build error:

CC [M] /root/media_build/v4l/radio-sf16fmr2.o
/root/media_build/v4l/radio-sf16fmr2.c:32:21: error: field 'v4l2_dev' has incomplete type
/root/media_build/v4l/radio-sf16fmr2.c: In function 'fmr2_probe':
/root/media_build/v4l/radio-sf16fmr2.c:217:32: warning: left-hand operand of comma expression has no effect [-Wunused-value]
/root/media_build/v4l/radio-sf16fmr2.c:226:2: error: implicit declaration of function 'v4l2_device_register' [-Werror=implicit-function-declaration]
/root/media_build/v4l/radio-sf16fmr2.c:228:3: error: implicit declaration of function 'v4l2_err' [-Werror=implicit-function-declaration]
/root/media_build/v4l/radio-sf16fmr2.c:232:11: error: 'struct snd_tea575x' has no member named 'v4l2_dev'
/root/media_build/v4l/radio-sf16fmr2.c:234:11: error: 'struct snd_tea575x' has no member named 'radio_nr'
/root/media_build/v4l/radio-sf16fmr2.c:241:2: error: too many arguments to function 'snd_tea575x_init'
include/sound/tea575x-tuner.h:61:5: note: declared here
/root/media_build/v4l/radio-sf16fmr2.c: In function 'fmr2_remove':
/root/media_build/v4l/radio-sf16fmr2.c:291:2: error: implicit declaration of function 'v4l2_device_unregister' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [/root/media_build/v4l/radio-sf16fmr2.o] Fehler 1
make[2]: *** [module/root/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.2.0-44-generic-pae'
make[1]: *** [default] Fehler 2
make[1]: Verlasse Verzeichnis '/root/media_build/v4l'
make: *** [all] Fehler 2
root@xbmc:~/media_build#

what can i do?

OSS Driver Issue

Hi Luis,
Ive experienced in june succefull compilation of your drivers(in lubuntu14.04)
I retry now on new installed linux ( 14.04) with the same procedure and it fails at the make step ( see attached files)
did you have made some modifications ?
Thanks in advance
JP


make[3]: Entering directory /home/jp/media_build/linux' Unapplying patches patch -s -f -R -p1 -i ../backports/api_version.patch 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/pvrusb2/pvrusb2-v4l2.c.rej 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_v4l2.c.rej 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/v4l2-core/v4l2-ioctl.c.rej make[3]: Leaving directory/home/jp/media_build/linux'
Applying patches for kernel 3.13.0-35-generic
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
1 out of 1 hunk FAILED
make[2]: *** [apply_patches] Error 1
make[2]: Leaving directory /home/jp/media_build/linux' make[1]: *** [default] Error 2 make[1]: Leaving directory/home/jp/media_build/v4l'
make: *** [all] Error 2

Issue after pm-suspend

Hi to all,
First of all, thanks for the great effort for this wonderful driver
My config is ubuntu 14.04.1 LTS & TVH (3.4.28) , everything is OK
but when I put my server in suspend mode ( pm-suspend)
after wake up, it seems that my TBS6982 isn't correctly waked up (reset issue ?)
In a consequence of this, TVH shows as status Testing - Bad - Testing -Bad
Any idea ?

Thanks a lot in advance
JP

tbs6982se errors

Hello LJalves

I have the above card running on ubuntu 14.04, I'm getting the following errors on one tuner from tvheadend when scanning for services, also i can not tune with the affected tuner. I have to remove the power to the computer a reboot has no effect.

2014-11-18 21:54:03.011 cat: invalid checksum (len 22, errors 1)
2014-11-18 21:54:03.011 eit: invalid checksum (len 440, errors 1)
2014-11-18 21:54:03.011 bat: invalid checksum (len 613, errors 1)
2014-11-18 21:54:03.011 sdt: invalid checksum (len 613, errors 1)
2014-11-18 21:54:03.011 pat: invalid checksum (len 88, errors 1)
2014-11-18 21:54:12.001 mpegts: 10788V in Astra - scan no data, failed
2014-11-18 21:54:12.001 subscription: 0002: "scan" unsubscribing

I can provide any information you may require to find out why this might be happening

Many Thanks Pintglass

Firmware - TBS 6285

Hello,

First of all I'd like to thank ljalves for his great work!

I'm trying to use this driver with my TBS6285 (rev02) on a DVB-C provider but I can't find the right firmware. I've tried the firmwares suggested in the wiki but without success. The most strange is according to dmesg the driver and firmware are loaded ok but as soon as I try to use the adapter the systems crash.

Regarding Pid filtering in Si2168B

Hi,

We are using a DVB-T2 dongle which uses Si2168B demodulator.
Currently, I am able to see SD and HD channels using my dongle. I am using V4L compatible drivers. When I enable Pid filtering, while adding/removing/resetting pid, I see the lower level calls are stubs.

Is there a ready made implementation which I can use to add and remove pid for this particular demodulator ? If not, could youplease point to the register set which I can use for implementing the pid filter calls.

If you need any additional information please let me know.

Thank you,
Murali

TBS 6280 Dual DVB-T/T2 (saa716x)

No data received on tuning. Both adapter frontends are reported as being attached.

w_scan gives no data:
Scanning 8MHz frequencies...
474000: (time: 00:48) (time: 00:50) signal ok:
QAM_AUTO f = 474000 kHz I999B8C999D999T999G999Y999
Info: no data from NIT(actual)
474167: (time: 01:07) (time: 01:09) signal ok:
QAM_AUTO f = 474167 kHz I999B8C999D999T999G999Y999
Info: no data from NIT(actual)
473833: (time: 01:26) (time: 01:29) signal ok:
QAM_AUTO f = 473833 kHz I999B8C999D999T999G999Y999
Info: no data from NIT(actual)

w_scan with TBS proprietary drivers gives:
Scanning 8MHz frequencies...
474000: (time: 00:40) (time: 00:42) signal ok:
QAM_AUTO f = 474000 kHz I999B8C999D999T999G999Y999
new transponder:
(QAM_64 f = 722000 kHz I999B8C34D0T8G32Y0) 0x405A
new transponder:
(QAM_64 f = 690000 kHz I999B8C34D0T8G32Y0) 0x405A
new transponder:
(QAM_64 f = 522000 kHz I999B8C23D0T8G32Y0) 0x405A
new transponder:
(QAM_64 f = 498000 kHz I999B8C23D0T8G32Y0) 0x405A
new transponder:
(QAM_64 f = 714000 kHz I999B8C34D0T8G32Y0) 0x405A
474167: (time: 00:59) (time: 01:00) signal ok:
QAM_AUTO f = 474167 kHz I999B8C999D999T999G999Y999
473833: (time: 01:16) (time: 01:17) signal ok:
QAM_AUTO f = 473833 kHz I999B8C999D999T999G999Y999

Kernel version:
3.12.13-031213-lowlatency #201402221735 SMP PREEMPT Sat Feb 22 22:44:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

I will happily attempt to debug if you can provide some instructions.

Mike

Instability with Kernel 3.13.0-24-generic

Sorry, this is very non-specific and I may be doing 2+2=5 (if so, sorry)

I've had the open source driver running stably for a few months now (I am using Ubuntu 14.04 64 bit) with tvheadend (3.4.28)

About a week ago two kernel updates came through: 3.13.0-23-generic 3.13.0-24-generic fairly quickly.

Since these updates (and I am not aware of any other changes) my system seems a lot less stable -- I have had 3 failed recordings (3 or 4 minutes in the recording just stops).

I've had a few times where I have been watching live TV on XBMC (13.1 and now 13.2) with TVH 0.9.2 and playback has started braking up (lots of coloured squares across half the screen, and the it freezes)

I see the following entries in the tvheadlog:

subscription: "192.168.2.52 [ xbmc | XBMC Media Center ]" subscribing on "BBC One HD", weight: 150, adapter: "Tmax TAS2101-1", network: "ASTRA", mux: "ASTRA: 10,847,000 kHz Vertical (No satconf)", provider: "BSkyB", service: "BBC One HD", quality: 100
Aug 20 22:19:25 serv2 tvheadend[1075]: TS: Tmax TAS2101-1/Freesat: 10,847,000 kHz Vertical (No satconf)/BBC One HD: Transport error indicator
Aug 20 22:19:25 serv2 tvheadend[1075]: TS: Tmax TAS2101-1/Freesat: 10,847,000 kHz Vertical (No satconf)/BBC One HD: H264 @ #5400: Continuity counter error
Aug 20 22:19:31 serv2 tvheadend[1075]: TS: Tmax TAS2101-1/Freesat: 10,847,000 kHz Vertical (No satconf)/BBC One HD: Transport error indicator, 28 duplicate log lines suppressed
Aug 20 22:19:31 serv2 tvheadend[1075]: TS: Tmax TAS2101-1/Freesat: 10,847,000 kHz Vertical (No satconf)/BBC One HD: H264 @ #5400: Continuity counter error, 2 duplicate log lines suppressed

As ever -- grateful of any advice.

Thanks

tbs + dvbsky cards in same htpc

having major issues when i try to run in Openelec same time different types of dvb-cards.
TBS and dvbsky its a no go combination.
Sundtek ,Technisat,Cine V6 and any other brands are ok...as long as there is no TBS card in the htpc.

TBS6985 continuity errors when switching channels

Latest update is really good for tbs6985. There is no more continuity errors while using all 4 tuners when there is no channel switch. Maybe there is a way to get rid of all issues on 'software level'...

Watch one channel on first tuner, then launch second channel (on another transponder) on second tuner. I can watch both channels without errors for long time, but continuity errors appears immediatelly on first (or second) tuner in case I'm switching to another channel on second (or first).

Unable to make

I'm getting the following error when trying to make

make[3]: Entering directory `/home/scott/media_build/linux'
Unapplying patches
patch -s -f -R -p1 -i ../backports/api_version.patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/pvrusb2/pvrusb2-v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/v4l2-core/v4l2-ioctl.c.rej
make[3]: Leaving directory `/home/scott/media_build/linux'
Applying patches for kernel 3.13.0-32-generic
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
1 out of 1 hunk FAILED

Not sure what else I can try?

request for a WIKI Edit

I have failing DVB module initialization once compiled driver is loaded during system start-up. Regardless of the errors itself
{I can follow up on this through another issue report} would it be possible for you to edit WIKI and add information on last
known working system set-up (OS / kernel / media tree) where drivers were successfully built and loaded so if someone
would want to do a test of the drivers he would be able to do so in a quick manner using similar set-up to provided one. It looks
like there might be some issue related to kernel / dvb tree incompatibilities. For example I built drivers successfully on
Ubuntu Server 12.04.3 *kernel 3.9.x (fresh install) however module failed to load.

compiling issues

Hi,

i'm on ubuntu 12.10 with kernel 3.5.0-46 and i get following compile errors:

make -C /root/media_build/v4l 
make[1]: Entering directory `/root/media_build/v4l'
make -C firmware prep
creating symbolic links...
make[2]: Entering directory `/root/media_build/v4l/firmware'
make[2]: Leaving directory `/root/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory `/root/media_build/v4l/firmware'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/root/media_build/v4l/firmware'
Kernel build directory is /lib/modules/3.5.0-46-generic/build
make -C ../linux apply_patches
make[2]: Entering directory `/root/media_build/linux'
Syncing with dir ../../media
Patches for 3.5.0-46-generic already applied.
make[2]: Leaving directory `/root/media_build/linux'
make -C /lib/modules/3.5.0-46-generic/build SUBDIRS=/root/media_build/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-3.5.0-46-generic'
  LD [M]  /root/media_build/v4l/msp3400.o
  LD [M]  /root/media_build/v4l/cx25840.o
  CC [M]  /root/media_build/v4l/tas2101.o
  LD [M]  /root/media_build/v4l/tuner.o
  CC [M]  /root/media_build/v4l/v4l2-mem2mem.o
  CC [M]  /root/media_build/v4l/videobuf-core.o
  CC [M]  /root/media_build/v4l/videobuf-dma-sg.o
/root/media_build/v4l/tas2101.c: In function 'tas2101_attach':
/root/media_build/v4l/tas2101.c:484:3: error: too many arguments to function 'i2c_add_mux_adapter'
In file included from /root/media_build/v4l/tas2101.c:26:0:
include/linux/i2c-mux.h:36:21: note: declared here
/root/media_build/v4l/tas2101.c:490:3: error: too many arguments to function 'i2c_add_mux_adapter'
In file included from /root/media_build/v4l/tas2101.c:26:0:
include/linux/i2c-mux.h:36:21: note: declared here
make[3]: *** [/root/media_build/v4l/tas2101.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [_module_/root/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.5.0-46-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/media_build/v4l'
make: *** [all] Error 2

what am i doning wrong?

best regards

TBS-6922 - Support for?

Guys, a short note of thanks for the OpenSource TBS drivers!

I have a 6922, can you tell me if this device is supported in the current code base, if not is practical to support the TBS 6922 in the future?

Once again my thanks for your work and of the O/S TBS Drivers! - jmb

[ 13.894585] DVB: registering new adapter (SAA716x dvb adapter)
[ 14.644669] TurboSight TBS6922 DVB-S2 card MAC=00:22:ab:e0:3b:fb

New issue with TBS 8920

I've been using 2xTBS 8920s and 1xTBS 6982 for a while with no issues.

Updated the driver today and it has caused the 8920s to stop working. They usually work fine with ubuntu with just the firmware being loaded.

syslog paste with the errors - http://paste.ubuntu.com/9284564/

Reverted back to a previous build and they're working again.

TBS6985 tuning successful but no data received

I've tried your drivers for my TBS6985 card. All four devices are successfully connected and I can tune successfully to a channel. However I do not receive any data

[   33.504312] SAA716x Budget 0000:05:00.0: DVB: adapter 5 frontend 0 frequency 0 out of range (950000..2150000)
[   33.988160] SAA716x Budget 0000:05:00.0: DVB: adapter 4 frontend 0 frequency 0 out of range (950000..2150000)
[   34.468006] SAA716x Budget 0000:05:00.0: DVB: adapter 3 frontend 0 frequency 0 out of range (950000..2150000)
[   34.947894] SAA716x Budget 0000:05:00.0: DVB: adapter 2 frontend 0 frequency 0 out of range (950000..2150000)

05:00.0 Multimedia controller: Philips Semiconductors SAA7160 (rev 02)
        Subsystem: Device 6985:0002
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 
        Capabilities: [100 v1] Vendor Specific Information: ID=0000 Rev=0 Len=088 
        Kernel driver in use: SAA716x Budget

Output from scan-s2 -a 3 /usr/share/dvb/dvb-s/Astra-28.2E looks like this:

----------------------------------> Using DVB-S2
>>> tune to: 11758:hC23S1:S0.0W:27500:
DVB-S IF freq is 1158000
WARNING: filter timeout pid 0x0011
WARNING: filter timeout pid 0x0000
WARNING: filter timeout pid 0x0010

tvheadend logs output like this:

Jan 18 14:38:50 satellite tvheadend1263: subscription: 'initscan' subscribing to mux, weight: 2, adapter: 'Tmax TAS2101 : DVB-S #2', network: 'Sky', mux: '11798H'
Jan 18 14:38:50 satellite tvheadend1263: mpegts: 11390H - initial scan no data, failed
Jan 18 14:38:50 satellite tvheadend1263: subscription: "initscan" unsubscribing
Jan 18 14:38:50 satellite tvheadend1263: mpegts: 11565V - starting for 'initscan' (weight 2)
Jan 18 14:38:50 satellite tvheadend1263: mpegts: 11565V - tuning on Tmax TAS2101 : DVB-S #1
Jan 18 14:38:50 satellite tvheadend1263: subscription: 'initscan' subscribing to mux, weight: 2, adapter: 'Tmax TAS2101 : DVB-S #1', network: 'Sky', mux: '11565V'
Jan 18 14:38:50 satellite tvheadend1263: mpegts : 12460H - initial scan no data, failed
Jan 18 14:38:50 satellite tvheadend1263: subscription: "initscan" unsubscribing
Jan 18 14:38:50 satellite tvheadend1263: mpegts: 12629V - starting for 'initscan' (weight 2)
Jan 18 14:38:50 satellite tvheadend1263: mpegts: 12629V - tuning on Tmax TAS2101 : DVB-S #0
Jan 18 14:38:50 satellite tvheadend1263: subscription: 'initscan' subscribing to mux, weight: 2, adapter: 'Tmax TAS2101 : DVB-S #0', network: 'Sky', mux: '12629V'

Similarly, tuning and setting up the dvr0 device via szap-s2, yields no output when using mplayer, or simply cat /dev/dvb/adapter4/dvr0 >out.ts

dvbtraffic shows this when tuned to BBC 1 NI HD:

PID--FREQ-----BANDWIDTH-BANDWIDTH
0fff 6 p/s 1 kb/s 10 kbit
1e43 8 p/s 1 kb/s 13 kbit
1fff 66023 p/s 12121 kb/s 99299 kbit
2000 66039 p/s 12124 kb/s 99323 kbit
PID--FREQ-----BANDWIDTH-BANDWIDTH
03ff 20 p/s 3 kb/s 31 kbit
1f03 17 p/s 3 kb/s 26 kbit
1f88 38 p/s 6 kb/s 58 kbit
1fff 66217 p/s 12157 kb/s 99590 kbit
2000 66294 p/s 12171 kb/s 99707 kbit
PID--FREQ-----BANDWIDTH-BANDWIDTH
02ff 2 p/s 0 kb/s 4 kbit
1fff 66291 p/s 12170 kb/s 99702 kbit
2000 66294 p/s 12171 kb/s 99707 kbit
PID--FREQ-----BANDWIDTH-BANDWIDTH
1f01 12 p/s 2 kb/s 19 kbit
1fff 66026 p/s 12121 kb/s 99304 kbit
2000 66039 p/s 12124 kb/s 99323 kbit
PID--FREQ-----BANDWIDTH-BANDWIDTH

cannot compile : Issue with v4l/mt9v032.c

I'm getting a compile error on Ubuntu 12.04 with kernel 3.5.0-39-generic x86_64
Seems to be since the c

/home/stevemu/media_build/v4l/mt9v032.c: In function 'mt9v032_power_on':
/home/stevemu/media_build/v4l/mt9v032.c:226:2: error: implicit declaration of function 'clk_prepare_enable' [-Werror=implicit-function-declaration]
/home/stevemu/media_build/v4l/mt9v032.c: In function 'mt9v032_power_off':
/home/stevemu/media_build/v4l/mt9v032.c:243:2: error: implicit declaration of function 'clk_disable_unprepare' [-Werror=implicit-function-declaration]
/home/stevemu/media_build/v4l/mt9v032.c: In function 'mt9v032_probe':
/home/stevemu/media_build/v4l/mt9v032.c:752:2: error: implicit declaration of function 'devm_clk_get' [-Werror=implicit-function-declaration]
/home/stevemu/media_build/v4l/mt9v032.c:752:15: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[3]: *** [/home/stevemu/media_build/v4l/mt9v032.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [module/home/stevemu/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.2.0-45-generic'
make[1]: *** [default] Error 2

Compile errors

I tried to upgrade from an existing version, as TVHeadend wasn't showing all the adaptors or able to playback. I think there was a minor kernel upgrade at some point too from 3.2.0-67 to 3.2.0-68.

The upgrade failed. So I tried to install from scratch. On both occasions, I get the following errors during the "make" command:

Unapplying patches
patch -s -f -R -p1 -i ../backports/api_version.patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/pvrusb2/pvrusb2-v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/v4l2-core/v4l2-ioctl.c.rej
make[3]: Leaving directory /home/user/downloads/tbs_ljavles2/media_build/linux' Applying patches for kernel 3.2.0-68-generic patch -s -f -N -p1 -i ../backports/api_version.patch patch -s -f -N -p1 -i ../backports/pr_fmt.patch 1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/au0828/au0828.h.rej make[2]: *** [apply_patches] Error 1 make[2]: Leaving directory/home/user/downloads/tbs_ljavles2/media_build/linux'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/user/downloads/tbs_ljavles2/media_build/v4l'
make: *** [all] Error 2

Is there something wrong? Or something I need to do?

tbs 5980 tested on fedora 21

just wanted to let know ;)

it compiled fine,
and once i get to reboot (still copying other stuff) ill report if it works (with cam module)
kernel version 3.17.4-301.fc21.x86_64

ps i also used the driver before on Archlinux where it worked fine!

Compile errors

Hi get the following errors when try to compile. I tried with Ubuntu 12.04, 13.04, 13.10:

make[3]: Entering directory `/home/vlc/media_build/linux'
Unapplying patches
patch -s -f -R -p1 -i ../backports/api_version.patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/pvrusb2/pvrusb2-v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/staging/media/sn9c102/sn9c102_core.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_driver.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/usb/uvc/uvc_v4l2.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/media/v4l2-core/v4l2-ioctl.c.rej

Full log:
http://pastebin.com/Tt92LV7c

Can anyone help please?
Thanks.

Build fail to 3.17.2

Build failure with 3.17.2

/home/mark/build/media_build/v4l/dvb_net.c: In function 'dvb_net_add_if':
/home/mark/build/media_build/v4l/dvb_net.c:1279:70: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
/home/mark/build/media_build/v4l/dvb_net.c:1279:8: error: 'alloc_netdev' undeclared (first use in this function)
/home/mark/build/media_build/v4l/dvb_net.c:1279:8: note: each undeclared identifier is reported only once for each function it appears in
/home/mark/build/media_build/v4l/dvb_net.c: At top level:
/home/mark/build/media_build/v4l/dvb_net.c:1241:13: warning: 'dvb_net_setup' defined but not used [-Wunused-function]
make[3]: *** [/home/mark/build/media_build/v4l/dvb_net.o] Error 1
make[2]: *** [_module_/home/mark/build/media_build/v4l] Error 2
make[2]: Leaving directory `/home/mark/build/linux-3.17.2'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/mark/build/media_build/v4l'
make: *** [all] Error 2

TBS 5922 with Openelec on Raspberry Pi B+

Hi developers! I am very grateful for your hard works. My problem is i ahve raspberry pi and i love my pi. (Ambilight and other great stuffs on pi). I have tbs 5922 usb device. And i love openelec system. I use special building image for raspberry pi. Build is use this repostory and i have issue with this. I dont know maybe other issue. Dmesg output is here

[ 10.574942] dvb-usb: found a 'TBS QBOX22 DVBS2 USB2.0' in cold state, will try to load a firmware
[ 10.628633] usb 1-1.4: Direct firmware load for dvb-usb-tbsqbox-id5922.fw failed with error -2
[ 10.628660] dvb-usb: did not find the firmware file. (dvb-usb-tbsqbox-id5922.fw) Please see linux/Documentation/dvb/ for more details on firmware-problems. (-2)
[ 10.628829] usbcore: registered new interface driver tbsqbox22
[ 10.636897] usbcore: registered new interface driver snd-usb-audio

whats problem? 5922 is unsupported arm system like raspberry pi?

Can't Load Module

After following the instructions under "Installing, Upgrading and TVheadend" I run into problems when executing the step "sudo modprobe cx23885" - I get the error message "ERROR: could not insert 'cx23885': Invalid argument".

I'm quite the linux newbie, I'm afraid, so any help in diagnosing what's going wrong would be appreciated.

I'm using Linux Mint 15 (Olivia), kernel version 3.8.0-27-generic x86_64, with a TBS6981 card. lspci gives me the following output:

01:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 04)
        Subsystem: Device 6981:8888
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 5
        Region 0: Memory at e1400000 (64-bit, non-prefetchable) [size=2M]
        Capabilities: [40] Express (v1) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <2us, L1 <4us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        Capabilities: [80] Power Management version 2
                Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [90] Vital Product Data
                Product Name: "
                End
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn-
        Capabilities: [200 v1] Virtual Channel
                Caps:   LPEVC=0 RefClk=100ns PATEntryBits=1
                Arb:    Fixed+ WRR32+ WRR64+ WRR128-
                Ctrl:   ArbSelect=WRR64
                Status: InProgress-
                Port Arbitration Table [240] <?>
                VC0:    Caps:   PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb:    Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl:   Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
                        Status: NegoPending- InProgress-

dmesg gives the following output when I try to modprobe:

[  524.925476] media: Linux media interface: v0.10
[  524.949151] Linux video capture interface: v2.00
[  524.949156] WARNING: You are using an experimental version of the media stack.
[  524.949156]  As the driver is backported to an older kernel, it doesn't offer
[  524.949156]  enough quality for its usage in production.
[  524.949156]  Use it with care.
[  524.949156] Latest git patches (needed if you report a bug to [email protected]):
[  524.949156]  3f826b9ec2f2f6b0bca042c6769484f9d899d500 Merge branch 'media_tree/master' into latest
[  524.949156]  dfb9f94e8e5e7f73c8e2bcb7d4fb1de57e7c333d [media] stk1160: Build as a module if SND is m and audio support is selected
[  524.949156]  00f2be68ee980fc79605f7922c9d8facacca5797 Merge branch 'cx24117' into latest
[  524.976515] cx2341x: disagrees about version of symbol v4l2_ctrl_grab
[  524.976521] cx2341x: Unknown symbol v4l2_ctrl_grab (err -22)
[  524.976530] cx2341x: disagrees about version of symbol v4l2_ctrl_handler_setup
[  524.976533] cx2341x: Unknown symbol v4l2_ctrl_handler_setup (err -22)
[  524.976539] cx2341x: disagrees about version of symbol v4l2_ctrl_new_custom
[  524.976542] cx2341x: Unknown symbol v4l2_ctrl_new_custom (err -22)
[  524.976550] cx2341x: disagrees about version of symbol v4l2_ctrl_new_std_menu
[  524.976553] cx2341x: Unknown symbol v4l2_ctrl_new_std_menu (err -22)
[  524.976560] cx2341x: disagrees about version of symbol v4l2_ctrl_activate
[  524.976563] cx2341x: Unknown symbol v4l2_ctrl_activate (err -22)
[  524.976589] cx2341x: Unknown symbol v4l2_ctrl_handler_init (err 0)
[  524.976594] cx2341x: disagrees about version of symbol v4l2_ctrl_new_std
[  524.976597] cx2341x: Unknown symbol v4l2_ctrl_new_std (err -22)
[  524.976601] cx2341x: disagrees about version of symbol v4l2_ctrl_g_ctrl
[  524.976603] cx2341x: Unknown symbol v4l2_ctrl_g_ctrl (err -22)
[  524.976607] cx2341x: disagrees about version of symbol v4l2_ctrl_handler_free
[  524.976610] cx2341x: Unknown symbol v4l2_ctrl_handler_free (err -22)
[  524.976615] cx2341x: disagrees about version of symbol v4l2_ctrl_cluster
[  524.976618] cx2341x: Unknown symbol v4l2_ctrl_cluster (err -22)
[  535.409013] mt2060 I2C read failed

TBS6285 DVB-C "mode".

I guess this is not really an issue, so sorry if I'm messing things up. I have successfully compiled the drivers and TVHeadend shows 4xDVB-T tuners, for my TBS6285 card, which is nice, but how would I go about enabling DVB-C support? The card should support DVB-C but I cant see any DVB-C tuners?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.