[Bug 430595] Re: scan from dvb-apps fails when using diseqc commands

Steven Ellis steven at openmedia.co.nz
Wed Sep 16 09:38:25 UTC 2009


Issue relates to changes in util/scan.c that won't allow a diseqc change
unless high and switch values are provided when using a custom LNB type

The following command will work with a diseqc

/usr/bin/scan -5  -l 11300,11300,11300 -s 3 D2.aurora

The following logic is incorrect as it is possible to use a monopoint
LNB via a DiSEqc

		if (lnb_type.high_val) {
			if (lnb_type.switch_val) {
				/* Voltage-controlled switch */
				int hiband = 0;

				if (p.frequency >= lnb_type.switch_val)
					hiband = 1;

				setup_switch (frontend_fd,
					      switch_pos,
					      t->polarisation == POLARISATION_VERTICAL ? 0 : 1,
					      hiband);
				usleep(50000);
				if (hiband)
					p.frequency = abs(p.frequency - lnb_type.high_val);
				else
					p.frequency = abs(p.frequency - lnb_type.low_val);
			} else {
				/* C-Band Multipoint LNBf */
				p.frequency = abs(p.frequency - (t->polarisation == POLARISATION_VERTICAL ?
						lnb_type.low_val: lnb_type.high_val));
			}
		} else	{
			/* Monopoint LNBf without switch */
			p.frequency = abs(p.frequency - lnb_type.low_val);
		}

-- 
scan from dvb-apps fails when using diseqc commands
https://bugs.launchpad.net/bugs/430595
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list