Moderator Control Panel ]

Changing the order of Tuner Adapters

Changing the order of Tuner Adapters

Postby thatfellow » Wed Mar 10, 2021 11:09 pm

Hi,

I have an issue with tuner order. They seem to load in a random order.

My setup:
Ubuntu server 20.04
TBS6984 & TBS6209
I have tried open & closed source drivers & multiple forks of open source.
Currently using https://github.com/tbsdtv/media_build.git

I have read dozens of tutorials, here is one example:
https://www.mythtv.org/wiki/Device_Filenames_and_udev
but none of them seem to work as there is no difference in udevadm info output and no unique ATTRS{serial} for each tuner

Can someone suggest a way to force the:
TBS6209 to take adapter_nr=10,11,12,13,14,15,16,17
TBS6984 to take adapter_nr=20,21,22,23
or similar.

Ideally (probably because of my ocd), I would like:
TBS6209-tuner 0 to be -> adapter_nr=10
TBS6209-tuner 1 to be -> adapter_nr=11
TBS6209-tuner 2 to be -> adapter_nr=12
TBS6209-tuner 3 to be -> adapter_nr=13
TBS6209-tuner 4 to be -> adapter_nr=14
TBS6209-tuner 5 to be -> adapter_nr=15
TBS6209-tuner 6 to be -> adapter_nr=16
TBS6209-tuner 7 to be -> adapter_nr=17
TBS6984-tuner A to be -> adapter_nr=20
TBS6984-tuner B to be -> adapter_nr=21
TBS6984-tuner C to be -> adapter_nr=22
TBS6984-tuner D to be -> adapter_nr=23


Can anyone suggest a fix before this drives me insane..

Here is some infor on my system:

lspci -vmm
Code: Select All Code
Slot:   03:00.0
Class:  Multimedia controller
Vendor: TBS Technologies
Device: DVB Tuner PCIe Card
SVendor:        TBS Technologies (wrong ID)
SDevice:        TBS6209 DVB-T2/C2/T/C/ISDB-T OctaTV Tuner
PhySlot:        4
NUMANode:       0

Slot:   07:00.0
Class:  Multimedia controller
Vendor: Philips Semiconductors
Device: SAA7160
SVendor:        Unknown vendor 6984
SDevice:        SAA7160
PhySlot:        1
Rev:    02
NUMANode:       0




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

TBSECP3 driver (544:6178 6209:1) on PCI Domain:0 Bus:3 Device:0 Function:0
        DEVICE:0 ADAPTER:4 FRONTEND:0 (Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T))
                 FE_OFDM Fmin=174MHz Fmax=862MHz
        DEVICE:0 ADAPTER:9 FRONTEND:0 (TurboSight TBS 6984 DVB-S/S2)
                 FE_QPSK Fmin=950MHz Fmax=2150MHz
        DEVICE:0 ADAPTER:11 FRONTEND:0 (TurboSight TBS 6984 DVB-S/S2)
                 FE_QPSK Fmin=950MHz Fmax=2150MHz
        DEVICE:0 ADAPTER:2 FRONTEND:0 (Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T))
                 FE_OFDM Fmin=174MHz Fmax=862MHz
        DEVICE:0 ADAPTER:7 FRONTEND:0 (Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T))
                 FE_OFDM Fmin=174MHz Fmax=862MHz
        DEVICE:0 ADAPTER:0 FRONTEND:0 (Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T))
                 FE_OFDM Fmin=174MHz Fmax=862MHz
        DEVICE:0 ADAPTER:5 FRONTEND:0 (Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T))
                 FE_OFDM Fmin=174MHz Fmax=862MHz
        DEVICE:0 ADAPTER:3 FRONTEND:0 (Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T))
                 FE_OFDM Fmin=174MHz Fmax=862MHz
        DEVICE:0 ADAPTER:8 FRONTEND:0 (Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T))
                 FE_OFDM Fmin=174MHz Fmax=862MHz
        DEVICE:0 ADAPTER:10 FRONTEND:0 (TurboSight TBS 6984 DVB-S/S2)
                 FE_QPSK Fmin=950MHz Fmax=2150MHz
        DEVICE:0 ADAPTER:1 FRONTEND:0 (TurboSight TBS 6984 DVB-S/S2)
                 FE_QPSK Fmin=950MHz Fmax=2150MHz
        DEVICE:0 ADAPTER:6 FRONTEND:0 (Turbosight TBS 6209 (Octa DVB-T/T2/C/C2/ISDB-T))
                 FE_OFDM Fmin=174MHz Fmax=862MHz




dmesg | grep dvb
Code: Select All Code
                0bc8cfa5b40283ec1f075d690c94c192c375b051 media: dvb-frontends/mxl58x: Minor fix.
                0bc8cfa5b40283ec1f075d690c94c192c375b051 media: dvb-frontends/mxl58x: Minor fix.
[    3.825574] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[    3.881558] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[    4.054692] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[    4.183543] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[    4.263870] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[    4.343367] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[    4.431945] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[    4.515665] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[    4.603749] dvbdev: DVB: registering new adapter (TBSECP3 DVB Adapter)
[    7.995506] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[    8.003204] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[    8.010759] dvbdev: DVB: registering new adapter (SAA716x dvb adapter)
[   14.945106] si2183 19-0067: downloading firmware from file 'dvb-demod-si2183-b60-01.fw'
[   15.804726] si2183 19-0064: downloading firmware from file 'dvb-demod-si2183-b60-01.fw'
[   16.276710] si2183 18-0067: downloading firmware from file 'dvb-demod-si2183-b60-01.fw'
[   17.143835] si2183 18-0064: downloading firmware from file 'dvb-demod-si2183-b60-01.fw'
[   17.661685] si2183 17-0067: downloading firmware from file 'dvb-demod-si2183-b60-01.fw'
[   18.573140] si2183 17-0064: downloading firmware from file 'dvb-demod-si2183-b60-01.fw'
[   19.067137] si2183 16-0067: downloading firmware from file 'dvb-demod-si2183-b60-01.fw'
[   20.026712] si2183 16-0064: downloading firmware from file 'dvb-demod-si2183-b60-01.fw'



ls -al /dev/dvb
Code: Select All Code
total 0
drwxr-xr-x 14 root root  280 Mar 10 14:07 .
drwxr-xr-x 21 root root 4920 Mar 10 14:07 ..
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter0
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter1
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter10
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter11
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter2
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter3
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter4
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter5
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter6
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter7
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter8
drwxr-xr-x  2 root root  120 Mar 10 14:07 adapter9
Attachments
tvheadend.PNG
thatfellow
 
Posts: 4
Joined: Tue Jun 26, 2018 11:09 pm

Re: Changing the order of Tuner Adapters

Postby steven » Sun Mar 21, 2021 8:18 am

Hi Sir

You can assign some adapter nums for certain adapter driver. Put this options to/etc/modprobe.d/dvb.conf
options saa716x_core adapter_nr=0,1,2,3
options tbsecp3 adapter_nr=
So saa716x-based 6984 always attached as adapter 0,1,2,3. Other FPGA-based cards 4,5,6,7......

after create the file do not forget to reboot .

Thanks

Kind Regards

steven
steven
 
Posts: 2180
Joined: Fri Aug 06, 2010 3:23 pm


Return to Off topics

Who is online

Users browsing this forum: No registered users and 1 guest