<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>> Hello,<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> a customer asked me to port the 2.6.11 v4l2 driver
to a 2.6.18 kernel <o:p></o:p></p>
<p class=MsoPlainText>> for their embedded hardware.<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> In general Linux works well on that machine, and
they have chosen <o:p></o:p></p>
<p class=MsoPlainText>> 2.6.18 as kernel version for their system image.<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> The Cimarron driver compiles cleanly on the newer
kernel (geode <o:p></o:p></p>
<p class=MsoPlainText>> registers are accessible and seem to be in sane
state).<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> The lxv4l2 part was a little bit harder (detection
of pci devices has <o:p></o:p></p>
<p class=MsoPlainText>> changed).<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> After initializing the saa7115 video decoder
the geode registers the <o:p></o:p></p>
<p class=MsoPlainText>> clock interrupt of the video signal.<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> Now my problem:<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> by calling you example Application LinuxVPE I only
get a rectangular <o:p></o:p></p>
<p class=MsoPlainText>> overlay which is grayed! out. Mr. Pietrek and I have
tried to figure <o:p></o:p></p>
<p class=MsoPlainText>> out where this gray color is coming from.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </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.
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> </o:p></p>
<p class=MsoPlainText>> Setting ckey_x to 0 in cim_df.c results in no
visible change at all.<o:p></o:p></p>
<p class=MsoPlainText>> around line 679:<o:p></o:p></p>
<p class=MsoPlainText>> WRITE_REG32 (DC3_CLR_KEY_X, ckey_x);<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>That register controls the color key for graphics, which
is probably not what you are looking for. 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> </o:p></p>
</div>
<p class=MsoNormal><o:p> </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> </o:p></p>
<p class=MsoNormal>What really bothers me is the statement:<o:p></o:p></p>
<p class=MsoNormal> “lxv4l2 part was a little bit harder (detection
of pci devices has changed).<o:p></o:p></p>
<p class=MsoNormal> After initializing the saa7115
video decoder the geode registers the <o:p></o:p></p>
<p class=MsoNormal> clock interrupt of the video signal.”<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The Graphics_Video4Linux2_03.03.0000 does not include any
code for saa7115, so I don’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> </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> </o:p></p>
</div>
</body>
</html>