<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoPlainText>On 06/06/08 12:48 +0200, Holger Mueller wrote:<o:p></o:p></p>

<p class=MsoPlainText>&gt; Hello,<o:p></o:p></p>

<p class=MsoPlainText>&gt; <o:p></o:p></p>

<p class=MsoPlainText>&gt; a customer asked me to port the 2.6.11 v4l2 driver
to&nbsp; a 2.6.18 kernel <o:p></o:p></p>

<p class=MsoPlainText>&gt; for their embedded hardware.<o:p></o:p></p>

<p class=MsoPlainText>&gt; <o:p></o:p></p>

<p class=MsoPlainText>&gt; In general Linux works well on that machine, and
they have chosen <o:p></o:p></p>

<p class=MsoPlainText>&gt; 2.6.18 as kernel version for their system image.<o:p></o:p></p>

<p class=MsoPlainText>&gt; <o:p></o:p></p>

<p class=MsoPlainText>&gt; The Cimarron driver compiles cleanly on the newer
kernel (geode <o:p></o:p></p>

<p class=MsoPlainText>&gt; registers are accessible and seem to be in sane
state).<o:p></o:p></p>

<p class=MsoPlainText>&gt; <o:p></o:p></p>

<p class=MsoPlainText>&gt; The lxv4l2 part was a little bit harder (detection
of pci devices has <o:p></o:p></p>

<p class=MsoPlainText>&gt; changed).<o:p></o:p></p>

<p class=MsoPlainText>&gt; <o:p></o:p></p>

<p class=MsoPlainText>&gt; After initializing&nbsp; the saa7115 video decoder
the geode registers the <o:p></o:p></p>

<p class=MsoPlainText>&gt; clock interrupt of the video signal.<o:p></o:p></p>

<p class=MsoPlainText>&gt; <o:p></o:p></p>

<p class=MsoPlainText>&gt; Now my problem:<o:p></o:p></p>

<p class=MsoPlainText>&gt; <o:p></o:p></p>

<p class=MsoPlainText>&gt; by calling you example Application LinuxVPE I only
get a rectangular <o:p></o:p></p>

<p class=MsoPlainText>&gt; overlay which is grayed! out. Mr. Pietrek and I have
tried to figure <o:p></o:p></p>

<p class=MsoPlainText>&gt; out where this gray color is coming from.<o:p></o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>I am not familiar with the LinuxVPE application, so I
don't know what color key it uses, but a grey key would be somewhat sane.&nbsp;
If it is a grey key, then your problem is that you are not getting any video
in, or it isn't being correctly sent to the overlay.<o:p></o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; Setting ckey_x to 0 in cim_df.c results in no
visible change at all.<o:p></o:p></p>

<p class=MsoPlainText>&gt; around line 679:<o:p></o:p></p>

<p class=MsoPlainText>&gt; WRITE_REG32 (DC3_CLR_KEY_X, ckey_x);<o:p></o:p></p>

<p class=MsoPlainText><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>That register controls the color key for graphics, which
is probably not what you are looking for.&nbsp; You need to verify that the
video data is being correctly written into memory and that the overlay is set
up to process the color space.<o:p></o:p></p>

<div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;
padding:0in 0in 1.0pt 0in'>

<p class=MsoPlainText style='border:none;padding:0in'><o:p>&nbsp;</o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>The grey color does come from the color key. However, the
only instance that I am aware of with the Graphics_Video4Linux2_03.03.0000 driver
where you will get a grey window as you suggest is when there is no video in
the frame buffer. Please verify your video source. Does your setup work with
the 2.6.11 kernel and Graphics_Video4Linux2_03.03.0000 driver version?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>What really bothers me is the statement:<o:p></o:p></p>

<p class=MsoNormal>&nbsp; &#8220;lxv4l2 part was a little bit harder (detection
of pci devices has changed).<o:p></o:p></p>

<p class=MsoNormal>&nbsp; &nbsp;After &nbsp;initializing&nbsp; the saa7115
video decoder the geode registers the <o:p></o:p></p>

<p class=MsoNormal>&nbsp; &nbsp;clock interrupt of the video signal.&#8221;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>The Graphics_Video4Linux2_03.03.0000 does not include any
code for saa7115, so I don&#8217;t know anything about this. Could you please
send me your patch to look at it?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>John Yoder</span></b><b><span style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:navy'><br>
<br>
</span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:navy'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>