<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=245080022-20112005>Hi 
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=245080022-20112005>Over the last couple 
of days, I have been able to get mythtv-stable to compile and actually display 
live TV from satellite. The only thing I that's keeping me from buying on of 
those big 24" Dell screens to watch TV through mythv is that I cannot access my 
official Seca card. The card is for Canal Digitaal, which is a Dutch satellite 
provider. The card resides in my Dreambox 7000-S. And no, it is not an option to 
put the card in the Nexus-S CI, for several reasons.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=245080022-20112005>I have applied a 
patch to dvbcam.c to call newcamd (using newcamd 6.04) on a channel change. 
Newcamd does respond when switching&nbsp;channels (see below), but there's no 
image, no sound. It does recognize an unencrypted channel, 
though.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=245080022-20112005>Hopefully somebody 
can help me here: I'd really like to put MythTV into my living 
room!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005>Cheers,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005>Koen</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=245080022-20112005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=245080022-20112005>[root@linux 
~]#<BR>PAT - Sun Nov 20 23:05:52 CET 
2005<BR>----------------------------------<BR>0000 : 00 b0 41 04 51 e1 00 00 00 
00 e0 10 0f a5 e3 ed&nbsp;&nbsp;&nbsp; A Q<BR>0010 : 0f a6 e3 ee 0f a7 e3 ef 0f 
a9 e3 f1 0f ab e3 f3<BR>0020 : 0f ac e3 f4 0f ad e3 f5 1c 1f e4 4c 05 dd e5 
dc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
L<BR>0030 : 0f af e3 f7 0f b4 e3 fc 0f be e4 06 0f c3 e4 0b<BR>0040 : 1b ff ec 
21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
!</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><SPAN 
class=245080022-20112005>[newcamd-v6.04 23:05:52] start decoding servid 0fac, 
pmt 03f4.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=245080022-20112005>PMT 03f4 - 
Sun Nov 20 23:05:52 CET 2005<BR>---------------------------------------<BR>0000 
: 02 b0 8f 0f ac f7 00 00 ff fe f0 06 09 04 06 
22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"<BR>0010 : e5 68 c6 e1 98 f0 00 02 e2 06 f0 13 09 11 01 00&nbsp;&nbsp; 
h<BR>0020 : e6 44 00 6a ff 00 00 00 00 00 00 02 14 1f 74 04&nbsp;&nbsp; D 
j&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t<BR>0030 : e0 5c f0 19 
0a 04 64 75 74 00 09 11 01 00 e6 44&nbsp;&nbsp; \&nbsp;&nbsp;&nbsp; 
dut&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D<BR>0040 : 00 6a ff 00 00 00 00 00 00 02 14 
1f 74 06 e0 23&nbsp;&nbsp; 
j&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t&nbsp; #<BR>0050 : f0 
07 56 05 64 75 74 09 00 c0 e0 d0 f0 21 c6 05&nbsp;&nbsp;&nbsp; V 
dut&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !<BR>0060 : 00 00 10 04 ff c2 18 4e 45 44 5f 
5f 45 50 47 4e&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NED__EPGN<BR>0070 
: 45 44 5f 5f 50 49 4c 4e 45 44 5f 5f 43 48 4c c1&nbsp; ED__PILNED__CHL<BR>0080 
: e0 fa f0 0a c2 08 50 49 4c 4f 54 45 00 00 3a 
83&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PILOTE&nbsp; :<BR>0090 : 53 
09&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
S</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><SPAN 
class=245080022-20112005>[newcamd-v6.04 23:05:52] channel using caid 0622, 
provid 000000, ecm 0568 ... 
no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t found<BR>[newcamd-v6.04 23:05:52] channel using caid 0100, provid 00006a, ecm 
0644 ... 
cw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
s<BR>[newcamd-v6.04 23:05:52] trying caid 0100, ecm 0644, provid 00006a, cws 
10.0.0.2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
:10001</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=245080022-20112005>ECM 0100 - 
Sun Nov 20 23:05:52 CET 2005<BR>---------------------------------------<BR>0000 
: 80 00 61 00 6a 00 00 fd 10 01 1d ec 94 e5 c9 43&nbsp;&nbsp;&nbsp; a 
j&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C<BR>0010 : 1d 67 ff 2b 
1c 7a 8d b4 0e 4e d1 43 34 fa fa ed&nbsp;&nbsp; g + z&nbsp;&nbsp; N C4<BR>0020 : 
c2 b7 6b 8b bf 9f 65 72 35 38 2d 5e 10 c2 9f fb&nbsp;&nbsp;&nbsp; k&nbsp;&nbsp; 
er58-^<BR>0030 : 1c 3f db c3 42 d7 b2 9e 54 08 d4 7b 7e 99 96 48&nbsp;&nbsp; 
?&nbsp; B&nbsp;&nbsp; T&nbsp; {&nbsp;&nbsp; H<BR>0040 : 4f 46 51 b9 a8 24 5a fa 
2b bc 27 ed f5 d7 26 d1&nbsp; OFQ&nbsp; $Z + '&nbsp;&nbsp; &amp;<BR>0050 : 7c b0 
8b b7 c9 78 0a 14 8f 2b 25 8e 89 6a 83 58&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
x&nbsp;&nbsp; +%&nbsp; j X<BR>0060 : 0e 0b df 86</SPAN></FONT></DIV>
<DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><FONT><SPAN 
class=245080022-20112005>
<DIV><FONT face=Arial></FONT><FONT face=Arial></FONT><BR><FONT 
face="Courier New" size=2>ECM -&gt; Card 0100 - Sun Nov 20 23:05:52 CET 
2005<BR>-----------------------------------------------<BR>00: 80 00 61 00 6a 00 
00 fd 10 01 1d ec 94 e5 c9 43&nbsp;&nbsp;&nbsp;&nbsp; a 
j&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C<BR>10: 1d 67 ff 2b 1c 
7a 8d b4 0e 4e d1 43 34 fa fa ed&nbsp;&nbsp;&nbsp; g + z&nbsp;&nbsp; N C4<BR>20: 
c2 b7 6b 8b bf 9f 65 72 35 38 2d 5e 10 c2 9f fb&nbsp;&nbsp;&nbsp;&nbsp; 
k&nbsp;&nbsp; er58-^<BR>30: 1c 3f db c3 42 d7 b2 9e 54 08 d4 7b 7e 99 96 
48&nbsp;&nbsp;&nbsp; ?&nbsp; B&nbsp;&nbsp; T&nbsp; {&nbsp;&nbsp; H<BR>40: 4f 46 
51 b9 a8 24 5a fa 2b bc 27 ed f5 d7 26 d1&nbsp;&nbsp; OFQ&nbsp; $Z + 
'&nbsp;&nbsp; &amp;<BR>50: 7c b0 8b b7 c9 78 0a 14 8f 2b 25 8e 89 6a 83 
58&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x&nbsp;&nbsp; +%&nbsp; j X<BR>60: 
0e 0b df 86</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>ECM &lt;- Card 0100 - Sun Nov 20 23:05:53 
CET 2005<BR>-----------------------------------------------<BR>00: 80 10 10 24 
f9 96 b3 02 b6 66 1e 5e 06 9f 03 86&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
$&nbsp;&nbsp;&nbsp;&nbsp; f ^<BR>10: 91 a2 b9<BR>[newcamd-v6.04 23:05:53] 
using&nbsp; caid 0100, ecm 0644, provid 00006a, key 
00000d,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
cws 10.0.0.2:10001</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>CAT - Sun Nov 20 23:05:53 CET 
2005<BR>----------------------------------<BR>0000 : 01 b0 2f ff ff c5 00 00 09 
04 06 02 e1 2c 09 0d&nbsp;&nbsp;&nbsp; 
/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,<BR>0010 : 01 00 e0 b6 
02 e0 b7 00 6a e0 b8 00 76 09 09 
01&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; j&nbsp;&nbsp; v<BR>0020 
: 01 e0 c9 01 e0 c8 00 12 09 04 06 22 e1 36 97 
fc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " 
6<BR>0030 : 5a 
84&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Z</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial></FONT><FONT face=Arial></FONT><BR><FONT 
face="Courier New" size=2>ECM 0100 - Sun Nov 20 23:05:56 CET 
2005<BR>---------------------------------------<BR>0000 : 81 00 61 00 6a 00 00 
fd 10 01 08 64 a2 b3 f5 15&nbsp;&nbsp;&nbsp; a j&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
d<BR>0010 : 88 31 d7 a7 f0 01 0b cd ec 8a 37 be 43 5a be 90&nbsp;&nbsp; 
1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 CZ<BR>0020 : d2 bb 86 eb 97 1f d8 
3a 04 d1 73 22 d8 70 3a d6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
:&nbsp; s" p:<BR>0030 : 37 41 59 69 d8 71 9a 53 11 37 7d 2b a9 9c b3 be&nbsp; 
7AYi q S 7 +<BR>0040 : cc e9 bf 16 29 29 2b 93 69 f1 68 81 0d c4 5c 
db&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ))+ i h&nbsp;&nbsp; \<BR>0050 : 7a b6 e2 df 6d 
52 5a 8d 7e e4 f7 b1 2d 92 eb cb&nbsp; z&nbsp;&nbsp; mRZ&nbsp;&nbsp;&nbsp;&nbsp; 
-<BR>0060 : d0 b6 50 
86&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
P</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial></FONT><FONT face=Arial></FONT><FONT 
face=Arial></FONT><BR><FONT face="Courier New" size=2>ECM -&gt; Card 0100 - Sun 
Nov 20 23:05:56 CET 
2005<BR>-----------------------------------------------<BR>00: 81 00 61 00 6a 00 
00 fd 10 01 08 64 a2 b3 f5 15&nbsp;&nbsp;&nbsp;&nbsp; a 
j&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; d<BR>10: 88 31 d7 a7 f0 01 0b cd ec 8a 37 be 43 
5a be 90&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 
CZ<BR>20: d2 bb 86 eb 97 1f d8 3a 04 d1 73 22 d8 70 3a 
d6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp; s" p:<BR>30: 37 
41 59 69 d8 71 9a 53 11 37 7d 2b a9 9c b3 be&nbsp;&nbsp; 7AYi q S 7 +<BR>40: cc 
e9 bf 16 29 29 2b 93 69 f1 68 81 0d c4 5c db&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
))+ i h&nbsp;&nbsp; \<BR>50: 7a b6 e2 df 6d 52 5a 8d 7e e4 f7 b1 2d 92 eb 
cb&nbsp;&nbsp; z&nbsp;&nbsp; mRZ&nbsp;&nbsp;&nbsp;&nbsp; -<BR>60: d0 b6 50 
86&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
P</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>ECM &lt;- Card 0100 - Sun Nov 20 23:05:56 
CET 2005<BR>-----------------------------------------------<BR>00: 81 10 10 05 
cf c8 9c 7c b4 d0 00 5e 06 9f 03 
86&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
^<BR>10: 91 a2 b9<BR>[newcamd-v6.04 23:05:58] pmt update filter 
set<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New"><SPAN class=245080022-20112005><FONT face=Arial 
size=2>The patch I applied is pasted below (plz don't mind the line-numbers, I 
did put this patch in the correct place (it's for a 17.1 mythtv 
version).</FONT></SPAN></FONT></DIV>
<DIV><FONT face="Courier New"><SPAN class=245080022-20112005><FONT face=Arial 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT><SPAN class=245080022-20112005><FONT face="Courier New">@@ -84,6 
+84,9 @@ <BR>&nbsp; <BR>&nbsp;bool DVBCam::Start() <BR>&nbsp;{ <BR>+&nbsp; 
&nbsp; ciThreadRunning = true;&nbsp; &nbsp;// newcamd patch 20050217 <BR>+&nbsp; 
&nbsp; return true;&nbsp; &nbsp;&nbsp; &nbsp;// newcamd patch 20050217 <BR>+ 
<BR>&nbsp; &nbsp; &nbsp;if (numslots == 0) <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;return false; <BR>&nbsp; <BR>@@ -109,6 +112,9 @@ <BR>&nbsp; <BR>&nbsp;bool 
DVBCam::Stop() <BR>&nbsp;{&nbsp; &nbsp; <BR>+&nbsp; &nbsp; ciThreadRunning = 
false;&nbsp; &nbsp;// newcamd patch 20050217 <BR>+&nbsp; &nbsp; return 
true;&nbsp; &nbsp;&nbsp; &nbsp;// newcamd patch 20050217 <BR>+ <BR>&nbsp; &nbsp; 
&nbsp;if (ciThreadRunning) <BR>&nbsp; &nbsp; &nbsp;{ <BR>&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp;exitCiThread = true; <BR>@@ -250,9 +256,103 @@ <BR>&nbsp; &nbsp; 
&nbsp;GENERAL(QString("CA: CiHandler thread stopped")); <BR>&nbsp;} <BR>&nbsp; 
<BR>+ <BR>+void camd_stop(unsigned int adapter)&nbsp; &nbsp;// newcamd patch 
20050217 <BR>+{ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; struct sockaddr_un servaddr; 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; int camdSocket; <BR>+&nbsp; &nbsp; &nbsp; 
&nbsp; unsigned char camdBuffer[6]; <BR>+ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; 
servaddr.sun_family = AF_UNIX; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; 
sprintf(servaddr.sun_path, "/<SPAN 
style="COLOR: #ffa34f"><B>tmp</B></SPAN>/camd.socket%d", adapter); <BR>+&nbsp; 
&nbsp; &nbsp; &nbsp; if ((camdSocket = socket(AF_UNIX, SOCK_STREAM, 0)) &lt; 0) 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; { <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; perror("[camdConnect] socket"); <BR>+&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; } 
<BR>+ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; if (connect(camdSocket, (struct 
sockaddr*) &amp;servaddr, sizeof(servaddr)) &lt; 0) <BR>+&nbsp; &nbsp; &nbsp; 
&nbsp; { <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
perror("[camdConnect] connect"); <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; close(camdSocket); <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; return; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; } <BR>+ <BR>+&nbsp; 
&nbsp; &nbsp; &nbsp; memset (camdBuffer+1, 0, 5); <BR>+&nbsp; &nbsp; &nbsp; 
&nbsp; camdBuffer[0] = 0xff; <BR>+ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; if 
(write(camdSocket, camdBuffer, 6) &lt; 0) <BR>+&nbsp; &nbsp; &nbsp; &nbsp; { 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
perror("[camdConnect] write"); <BR>+&nbsp; &nbsp; &nbsp; &nbsp; } <BR>+ 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; if (read(camdSocket, camdBuffer, 2) &lt; 0) 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; { <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; perror("[camdConnect] read reply"); <BR>+&nbsp; &nbsp; 
&nbsp; &nbsp; } <BR>+ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; close(camdSocket); <BR>+} 
<BR>+ <BR>+void camd_start(unsigned short servid, unsigned short pmtpid, 
unsigned short apid, unsigned int adapter)&nbsp; &nbsp;// newcamd patch 20050217 
<BR>+{ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; struct sockaddr_un servaddr; <BR>+&nbsp; 
&nbsp; &nbsp; &nbsp; int camdSocket; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; unsigned 
char camdBuffer[6]; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; unsigned short pid; <BR>+ 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; servaddr.sun_family = AF_UNIX; <BR>+&nbsp; 
&nbsp; &nbsp; &nbsp; sprintf(servaddr.sun_path, "/<SPAN 
style="COLOR: #ffa34f"><B>tmp</B></SPAN>/camd.socket%d", adapter); <BR>+&nbsp; 
&nbsp; &nbsp; &nbsp; if ((camdSocket = socket(AF_UNIX, SOCK_STREAM, 0)) &lt; 0) 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; { <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; perror("[camdConnect] socket"); <BR>+&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; } 
<BR>+ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; if (connect(camdSocket, (struct 
sockaddr*) &amp;servaddr, sizeof(servaddr)) &lt; 0) <BR>+&nbsp; &nbsp; &nbsp; 
&nbsp; { <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
perror("[camdConnect] connect"); <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; close(camdSocket); <BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; return; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; } <BR>+ <BR>+&nbsp; 
&nbsp; &nbsp; &nbsp; pid = apid; <BR>+ <BR>+/* Use the following line, if you 
want newcamd to demux and watch the <SPAN 
style="COLOR: #ffa34f"><B>pmt</B></SPAN>, * <BR>+ * because zapit, enigma or vdr 
don't do it&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; 
camdBuffer[4] = (pid &gt;&gt; 8) &amp; 0x1f; <BR>+ <BR>+/* Use the following 
line, if newcamd isn't allowed to demux/watch the <SPAN 
style="COLOR: #ffa34f"><B>pmt</B></SPAN>, * <BR>+ * because zapit, enigma or vdr 
do it themself, this needs /<SPAN style="COLOR: #ffa34f"><B>tmp</B></SPAN>/<SPAN 
style="COLOR: #ffa34f"><B>pmt</B></SPAN>.<SPAN 
style="COLOR: #ffa34f"><B>tmp</B></SPAN>,&nbsp; &nbsp; * <BR>+ * when starting 
newcamd&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */ <BR>+//&nbsp; &nbsp; &nbsp; camdBuffer[4] 
= ((pid &gt;&gt; 8) &amp; 0x1f) | 0x80; <BR>+ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; 
camdBuffer[5] = pid &amp; 0xff; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; pid = pmtpid; 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; camdBuffer[0] = (pid &gt;&gt; 8) &amp; 0x1f; 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; camdBuffer[1] = pid &amp; 0xff; <BR>+&nbsp; 
&nbsp; &nbsp; &nbsp; pid = servid; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; 
camdBuffer[2] = pid &gt;&gt; 8; <BR>+&nbsp; &nbsp; &nbsp; &nbsp; camdBuffer[3] = 
pid &amp; 0xff; <BR>+ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; if (write(camdSocket, 
camdBuffer, 6) &lt; 0) <BR>+&nbsp; &nbsp; &nbsp; &nbsp; { <BR>+&nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; perror("[camdConnect] write"); 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; } <BR>+ <BR>+&nbsp; &nbsp; &nbsp; &nbsp; if 
(read(camdSocket, camdBuffer, 2) &lt; 0) <BR>+&nbsp; &nbsp; &nbsp; &nbsp; { 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
perror("[camdConnect] read reply"); <BR>+&nbsp; &nbsp; &nbsp; &nbsp; } <BR>+ 
<BR>+&nbsp; &nbsp; &nbsp; &nbsp; close(camdSocket); <BR>+} <BR>+ <BR>&nbsp;void 
DVBCam::SetPMT(PMTObject &amp;<SPAN style="COLOR: #ffa34f"><B>pmt</B></SPAN>) 
<BR>&nbsp;{ <BR>&nbsp; &nbsp; &nbsp;GENERAL(QString("CA: SetPMT for 
ServiceID=%1").arg(<SPAN style="COLOR: #ffa34f"><B>pmt</B></SPAN>.ServiceID)); 
<BR>+&nbsp; &nbsp; camd_stop(cardnum);&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;// newcamd patch 20050217 <BR>+&nbsp; &nbsp; camd_start(<SPAN 
style="COLOR: #ffa34f"><B>pmt</B></SPAN>.ServiceID,0,0,cardnum);&nbsp; 
&nbsp;&nbsp; &nbsp;// newcamd patch 20050217 <BR>&nbsp; &nbsp; 
&nbsp;pthread_mutex_lock(&amp;pmt_lock); <BR>&nbsp; &nbsp; 
&nbsp;PMTList.clear(); <BR>&nbsp; &nbsp; &nbsp;PMTList += <SPAN 
style="COLOR: #ffa34f"><B>pmt</B></SPAN>; 
<BR></FONT></SPAN></DIV></FONT></SPAN></FONT></BODY><br />-- 
<br />Dit bericht is gescanned op virussen en andere gevaarlijke
<br />inhoud en lijkt schoon te zijn.
</HTML>