All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jens Krehbiel-Gräther" <linux-dvb@okg-computer.de>
To: linux-dvb <linux-dvb@linuxtv.org>
Subject: Re: [linux-dvb] Technotrend S2-3200 Scanning
Date: Fri, 16 May 2008 08:30:38 +0200	[thread overview]
Message-ID: <482D2A0E.1030307@okg-computer.de> (raw)
In-Reply-To: <E1Jwsxt-000E0b-00.goga777-bk-ru@f151.mail.ru>

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

Igor schrieb:
>> I've tried using a version from the repository, dvb-utils 1.1.1-3
>>
>> I also tried to compile the originals from the source tree, unpatched, 
>> http://linuxtv.org/hg/dvb-apps
>>     
>
> yes, you have to use szap2 in the TEST directory  with the latest multiproto
> http://linuxtv.org/hg/dvb-apps/file/31a6dd437b9a/test/szap2.c
>
>   
>> I tried to patch "scan" with this scan source: 
>> http://jusst.de/manu/scan.tar.bz2
>>
>> And I tried to patch szap with this file:  
>> http://abraham.manu.googlepages.com/szap.c
>>     
>
> imho, this versions are not actually. 
> It seems to me there's not any working scan's version for currently multiproto.
>   


I postet a patch a few weeks ago (here again).
These szap and scan patches prepare the apps for actual multiproto (well 
for multiproto a few weeks ago, if the api hasn't changed again, these 
should work).

you have to patch the szap and scan from this sources:

http://abraham.manu.googlepages.com/szap.c
http://abraham.manu.googlepages.com/szap.c


Jens

[-- Attachment #2: scan-multiproto-3.3.patch --]
[-- Type: text/plain, Size: 1549 bytes --]

diff -Naur 1/scan.c 2/scan.c
--- 1/scan.c	2008-04-03 02:00:19.000000000 +0200
+++ 2/scan.c	2008-04-03 12:29:32.000000000 +0200
@@ -1674,15 +1674,18 @@
 	}
 
         struct dvbfe_info fe_info1;
+	enum dvbfe_delsys delivery;
 
         // a temporary hack, need to clean
         memset(&fe_info1, 0, sizeof (struct dvbfe_info));
             
         if(t->modulation_system == 0)
-            fe_info1.delivery = DVBFE_DELSYS_DVBS;
+            delivery = DVBFE_DELSYS_DVBS;
         else if(t->modulation_system == 1)
-            fe_info1.delivery = DVBFE_DELSYS_DVBS2;
-            
+            delivery = DVBFE_DELSYS_DVBS2;
+
+        ioctl(frontend_fd, DVBFE_SET_DELSYS, &delivery); //switch system 
+
         int result = ioctl(frontend_fd, DVBFE_GET_INFO, &fe_info1);
         if (result < 0) {
             perror("ioctl DVBFE_GET_INFO failed");
@@ -1690,7 +1693,7 @@
             return -1;
         }
         
-        switch (fe_info1.delivery) {
+        switch (delivery) {
             case DVBFE_DELSYS_DVBS:
                 info("----------------------------------> Using '%s' DVB-S\n", fe_info.name);
                 break;
@@ -1701,7 +1704,7 @@
                 info("----------------------------------> Using '%s' DVB-S2\n", fe_info.name);
                 break;
             default:
-                info("Unsupported Delivery system (%d)!\n", fe_info1.delivery);
+                info("Unsupported Delivery system (%d)!\n", delivery);
                 t->last_tuning_failed = 1;
                 return -1;
         }

[-- Attachment #3: szap-multiproto-apiv33.diff --]
[-- Type: text/x-patch, Size: 1595 bytes --]

--- org/szap.c	2008-04-02 20:47:05.000000000 +0200
+++ new/szap.c	2008-04-02 20:46:30.000000000 +0200
@@ -351,6 +351,7 @@
 	uint32_t ifreq;
 	int hiband, result;
 	struct dvbfe_info fe_info;
+	enum dvbfe_delsys delivery;
 
 	// a temporary hack, need to clean
 	memset(&fe_info, 0, sizeof (&fe_info));
@@ -365,15 +366,15 @@
 	switch (delsys) {
 	case DVBS:
 		printf("Querying info .. Delivery system=DVB-S\n");
-		fe_info.delivery = DVBFE_DELSYS_DVBS;	
+		delivery = DVBFE_DELSYS_DVBS;
 		break;
 	case DSS:
 		printf("Querying info .. Delivery system=DSS\n");
-		fe_info.delivery = DVBFE_DELSYS_DSS;
+		delivery = DVBFE_DELSYS_DSS;
 		break;
 	case DVBS2:
 		printf("Querying info .. Delivery system=DVB-S2\n");
-		fe_info.delivery = DVBFE_DELSYS_DVBS2;
+		delivery = DVBFE_DELSYS_DVBS2;
 		break;
 	default:
 		printf("Unsupported delivery system\n");
@@ -391,6 +392,8 @@
 			return FALSE;
 		}
 
+		ioctl(fefd, DVBFE_SET_DELSYS, &delivery); //switch system
+
 		result = ioctl(fefd, DVBFE_GET_INFO, &fe_info);
 		if (result < 0) {
 			perror("ioctl DVBFE_GET_INFO failed");
@@ -398,7 +401,7 @@
 			return FALSE;
 		}
 		
-		switch (fe_info.delivery) {
+		switch (delivery) {
 		case DVBFE_DELSYS_DVBS:
 			printf("----------------------------------> Using '%s' DVB-S", fe_info.name);
 			break;
@@ -409,7 +412,7 @@
 			printf("----------------------------------> Using '%s' DVB-S2", fe_info.name);
 			break;
 		default:
-			printf("Unsupported Delivery system (%d)!\n", fe_info.delivery);
+			printf("Unsupported Delivery system (%d)!\n", delivery);
 			close(fefd);
 			return FALSE;
 		}

[-- Attachment #4: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

  reply	other threads:[~2008-05-16  6:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15 23:02 [linux-dvb] Technotrend S2-3200 Scanning Jelle De Loecker
     [not found] ` <E1JwrWW-0006Ye-00.goga777-bk-ru@f139.mail.ru>
2008-05-16  5:25   ` Jelle De Loecker
2008-05-16  5:58     ` Igor
2008-05-16  6:30       ` Jens Krehbiel-Gräther [this message]
2008-05-16  7:10         ` Jelle De Loecker
2008-05-16  8:01           ` ChaosMedia > WebDev
2008-05-18  8:12     ` Igor Nikanov
2008-05-18  9:21       ` Jelle De Loecker
2008-05-18 11:24         ` Faruk A
2008-05-18 11:39           ` Jelle De Loecker
2008-05-18 12:07             ` Faruk A
2008-05-18 12:57               ` Jelle De Loecker
2008-05-18 15:19                 ` Faruk A
2008-05-18 19:44                 ` Andy Walls
2008-05-18 20:53                   ` Jelle De Loecker
2008-05-18  9:53       ` Jelle De Loecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=482D2A0E.1030307@okg-computer.de \
    --to=linux-dvb@okg-computer.de \
    --cc=linux-dvb@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.