Feature #2952

Master tuner feature for linuxdvb

Added by Patrick Vorlicek about 2 years ago. Updated over 1 year ago.

Status:FixedStart date:2015-06-17
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:DVB
Target version:4.2

Description

Hey there,

I saw that there is a master tuner feature for SAT>IP. I'm using a Digital Devices Max S8 card and it has four tuners with two demods each behind a multiswitch. For the second demod per tuner to work I need the master tuner feature for linuxdvb, because the second demod must use the same polarity and low-high band setting as the first demod.

I know this is kind of a border case and I haven't looked at the source by myself yet, but maybe someone is already working on this or can give me a hint how to proper implement this.

Thank you,
Pat

log.tar.bz2 (111 KB) Patrick Vorlicek, 2015-10-06 11:07

tvheadend.tar.bz2 (466 KB) Patrick Vorlicek, 2015-10-06 12:56

Associated revisions

Revision ac47b98d
Added by Jaroslav Kysela over 1 year ago

linuxdvb: add master tuner support, fixes #2952

History

#1 Updated by Patrick Vorlicek about 2 years ago

The second sentence may be confusing. What I meant: I'm using a Digital Devices Max S8 card and it has four tuners with two demods each. The tuners are behind a multiswitch.

#2 Updated by Jaroslav Kysela almost 2 years ago

  • Target version set to 4.2

#3 Updated by Jaroslav Kysela over 1 year ago

I'm working on this in my linudvb branch https://github.com/perexg/tvheadend/tree/linuxdvb . Could you give a try ? (Assume that it won't work - untested - I have only SAT>IP hw around for tests now).

#4 Updated by Jaroslav Kysela over 1 year ago

BTW: It may be more "faster" to catch me on IRC - #hts channel - nick perexg to resolve issues quickly.

#5 Updated by Jaroslav Kysela over 1 year ago

Continuing the IRC session: I added more debug lines to the source code. Please, pull from the linuxdvb branch again and provide traces: --trace mpegts,linuxdvb,diseqc (compile tvh with --enable-trace ./configure option).

#6 Updated by Patrick Vorlicek over 1 year ago

Log attached. As I'm at work right now I'm not able to tune more than one channel at the moment, but I've activated epg idle scanning - which still only uses tuners #0-2 and not #4-6 additionally.

If that's not enough I'll add another log when I come home. It would be also fine with me if you take a look at the webif or via ssh yourself.

#7 Updated by Jaroslav Kysela over 1 year ago

The branch was updated. Could you retry ? This test is perfect (idle scanning).

#8 Updated by Patrick Vorlicek over 1 year ago

Now it seems to be broken. TvHeadend doesn't start idle scanning at all.

#9 Updated by Jaroslav Kysela over 1 year ago

Please, change '-O2' in Makefile to '-Og' and recompile tvh and provide the crash again to check where it exactly ends..

#10 Updated by Patrick Vorlicek over 1 year ago

Now I get the following compile error:

src/descrambler/dvbcam.c: In function ‘dvbcam_service_stop’:
src/descrambler/dvbcam.c:249:10: error: ‘slot’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (ac2->slot slot && ac2->ca ca) {
^
cc1: all warnings being treated as errors
Makefile:549: recipe for target '/root/tvheadend-perexg/build.linux/src/descrambler/dvbcam.o' failed
make: *** [/root/tvheadend-perexg/build.linux/src/descrambler/dvbcam.o] Error 1

#11 Updated by Jaroslav Kysela over 1 year ago

Fetch linuxdvb branch again.

#12 Updated by Jaroslav Kysela over 1 year ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF