<?xml version="1.0" encoding="ANSI_X3.4-1968"?>
<rss version="2.0">
  <channel>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/</link>
    <language>en-us</language>

    <title>~stoth/saa7164-18271 Changelog</title>
    <description>~stoth/saa7164-18271 Changelog</description>
    <item>
    <title>merge http://kernellabs.com/hg/~mkrufky/tda18271</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/ed6e00511017</link>
    <description><![CDATA[merge http://kernellabs.com/hg/~mkrufky/tda18271<br/>
<br/>
From: Steven Toth &lt;stoth@kernellabs.com&gt;<br/>
<br/>
merge http://kernellabs.com/hg/~mkrufky/tda18271<br/>
<br/>
Priority: normal<br/>
<br/>
Signed-off-by: Steven Toth &lt;stoth@kernellabs.com&gt;]]></description>
    <author>&#83;&#116;&#101;&#118;&#101;&#110;&#32;&#84;&#111;&#116;&#104;&#32;&#60;&#115;&#116;&#111;&#116;&#104;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 02 Oct 2009 14:57:51 -0400</pubDate>
</item>
<item>
    <title>tda18271: display some state information in debug output</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/bb9ee9c1ad70</link>
    <description><![CDATA[tda18271: display some state information in debug output<br/>
<br/>
From: Michael Krufky &lt;mkrufky@kernellabs.com&gt;<br/>
<br/>
Display i2c adapter id, address and master / slave role in debug output.<br/>
<br/>
Priority: normal<br/>
<br/>
Signed-off-by: Michael Krufky &lt;mkrufky@kernellabs.com&gt;]]></description>
    <author>&#77;&#105;&#99;&#104;&#97;&#101;&#108;&#32;&#75;&#114;&#117;&#102;&#107;&#121;&#32;&#60;&#109;&#107;&#114;&#117;&#102;&#107;&#121;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 28 Sep 2009 02:13:49 -0400</pubDate>
</item>
<item>
    <title>tda18271: more signedness fixes</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/2aac04fbad20</link>
    <description><![CDATA[tda18271: more signedness fixes<br/>
<br/>
From: Michael Krufky &lt;mkrufky@kernellabs.com&gt;<br/>
<br/>
Convert tda18271_rf_tracking_filter_cal.rf_[ab][12] from int to s32.<br/>
Convert tda18271_priv.tm_rfcal from unsigned int to u8.<br/>
Cast subtractions between u32 values as s32.<br/>
<br/>
Priority: normal<br/>
<br/>
Signed-off-by: Michael Krufky &lt;mkrufky@kernellabs.com&gt;]]></description>
    <author>&#77;&#105;&#99;&#104;&#97;&#101;&#108;&#32;&#75;&#114;&#117;&#102;&#107;&#121;&#32;&#60;&#109;&#107;&#114;&#117;&#102;&#107;&#121;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 27 Sep 2009 22:10:20 -0400</pubDate>
</item>
<item>
    <title>tda18271: use temporary variables in tda18271_rf_tracking_filters_init</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/1535a0280266</link>
    <description><![CDATA[tda18271: use temporary variables in tda18271_rf_tracking_filters_init<br/>
<br/>
From: Michael Krufky &lt;mkrufky@kernellabs.com&gt;<br/>
<br/>
Use temporary variables for signed calulations between unsigned values<br/>
<br/>
Priority: normal<br/>
<br/>
Signed-off-by: Michael Krufky &lt;mkrufky@kernellabs.com&gt;]]></description>
    <author>&#77;&#105;&#99;&#104;&#97;&#101;&#108;&#32;&#75;&#114;&#117;&#102;&#107;&#121;&#32;&#60;&#109;&#107;&#114;&#117;&#102;&#107;&#121;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 27 Sep 2009 16:00:13 -0400</pubDate>
</item>
<item>
    <title>tda18271: fix signedness issue in tda18271_rf_tracking_filters_init</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/af46e930f790</link>
    <description><![CDATA[tda18271: fix signedness issue in tda18271_rf_tracking_filters_init<br/>
<br/>
From: Seth Barry &lt;seth@cyberseth.com&gt;<br/>
<br/>
While having tda18271 module set with debug=17 (cal &amp; info prints) and<br/>
cal=0 (delay calibration process until first use) - I discovered that<br/>
during the calibration process, if the frequency test for 69750000<br/>
returned a bcal of 0 (see tda18721-fe.c in tda18271_powerscan func) that<br/>
the tuner wouldn't be able to pickup any of the frequencies in the range<br/>
(all the other frequencies bands returned bcal=1).  I spent some time<br/>
going over the code and the NXP's tda18271 spec (ver.4 of it i think) and<br/>
adding a lot of debug prints and walking/stepping through the calibration<br/>
process.  I found that when the powerscan fails to find a frequency, the<br/>
rf calibration is not run and the default value is supposed to be used in<br/>
its place (pulled from the RF_CAL_map table) - but something was getting<br/>
goofed up there.<br/>
<br/>
Now, my c coding skills are very rusty, but i think root of the problem is<br/>
a signedness issue with the math operation for calculating the rf_a1 and<br/>
rf_a2 values in tda18271_rf_tracking_filters_init func, which results in<br/>
values like 20648 for rf_a1 (when it should probably have a value like 0,<br/>
or so slightly negative that it should be zero - this bad value for rf_a1<br/>
would in turn makes the approx calc within<br/>
tda18271c2_rf_tracking_filters_correction go out of whack).  The simplest<br/>
solution i found was to explicitly convert the signedness of the<br/>
denominator to avoid the implicit conversion.  The values placed into the<br/>
u32 rf_freq array should never exceed about 900mhz, so i think the s32 max<br/>
value shouldn't be an issue in this case.<br/>
<br/>
I've tested it out a little, and even when i get a bcal=0 with the<br/>
modified code, the default calibration value gets used, rf_a1 is zero, and<br/>
the tuner seems to lock on the stream and mythtv seems to play it fine.<br/>
<br/>
priority: high<br/>
<br/>
Signed-off-by: Seth Barry &lt;seth@cyberseth.com&gt;<br/>
Signed-off-by: Michael Krufky &lt;mkrufky@kernellabs.com&gt;]]></description>
    <author>&#77;&#105;&#99;&#104;&#97;&#101;&#108;&#32;&#75;&#114;&#117;&#102;&#107;&#121;&#32;&#60;&#109;&#107;&#114;&#117;&#102;&#107;&#121;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 27 Sep 2009 15:42:29 -0400</pubDate>
</item>
<item>
    <title>tda8290: enable deemphasis_50 module parameter</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/bee19077963f</link>
    <description><![CDATA[tda8290: enable deemphasis_50 module parameter<br/>
<br/>
From: Henk Vergonet &lt;Henk.Vergonet@gmail.com&gt;<br/>
<br/>
This adds a forgotten module_param macro needed to set a deemphasis of 50us.<br/>
It is the standard setting for commercial FM radio broadcasts outside the US.<br/>
<br/>
Priority: high<br/>
<br/>
Signed-off-by: Henk Vergonet &lt;Henk.Vergonet@gmail.com&gt;<br/>
Signed-off-by: Michael Krufky &lt;mkrufky@kernellabs.com&gt;]]></description>
    <author>&#77;&#105;&#99;&#104;&#97;&#101;&#108;&#32;&#75;&#114;&#117;&#102;&#107;&#121;&#32;&#60;&#109;&#107;&#114;&#117;&#102;&#107;&#121;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 27 Sep 2009 17:19:58 -0400</pubDate>
</item>
<item>
    <title>tda18271: fix overflow in FM radio frequency calculation</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/06515aa6d76e</link>
    <description><![CDATA[tda18271: fix overflow in FM radio frequency calculation<br/>
<br/>
From: Michael Krufky &lt;mkrufky@kernellabs.com&gt;<br/>
<br/>
Multiplication by 62500 causes an overflow in the 32 bit freq variable,<br/>
which is later divided by 1000 when using FM radio.<br/>
<br/>
This patch prevents the overflow by scaling the frequency value correctly<br/>
upfront.  Thanks to Henk Vergonet for spotting the problem and providing<br/>
a preliminary patch, which this changeset was based upon.<br/>
<br/>
Priority: high<br/>
<br/>
Cc: Henk Vergonet &lt;Henk.Vergonet@gmail.com&gt;<br/>
Signed-off-by: Michael Krufky &lt;mkrufky@kernellabs.com&gt;]]></description>
    <author>&#77;&#105;&#99;&#104;&#97;&#101;&#108;&#32;&#75;&#114;&#117;&#102;&#107;&#121;&#32;&#60;&#109;&#107;&#114;&#117;&#102;&#107;&#121;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 27 Sep 2009 13:05:12 -0400</pubDate>
</item>
<item>
    <title>SAA7164: Removed bus registration messages from driver startup</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/fdc9c06cbbe9</link>
    <description><![CDATA[SAA7164: Removed bus registration messages from driver startup<br/>
<br/>
From: Steven Toth &lt;stoth@kernellabs.com&gt;<br/>
<br/>
SAA7164: Removed bus registration messages from driver startup<br/>
<br/>
Priority: normal<br/>
<br/>
Signed-off-by: Steven Toth &lt;stoth@kernellabs.com&gt;]]></description>
    <author>&#83;&#116;&#101;&#118;&#101;&#110;&#32;&#84;&#111;&#116;&#104;&#32;&#60;&#115;&#116;&#111;&#116;&#104;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 17 Sep 2009 20:00:40 -0400</pubDate>
</item>
<item>
    <title>SAA7164: Remove the i2c client_attach/detach support, no longer required.</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/7f29a557f33b</link>
    <description><![CDATA[SAA7164: Remove the i2c client_attach/detach support, no longer required.<br/>
<br/>
From: Steven Toth &lt;stoth@kernellabs.com&gt;<br/>
<br/>
SAA7164: Remove the i2c client_attach/detach support, no longer required.<br/>
<br/>
Priority: normal<br/>
<br/>
Signed-off-by: Steven Toth &lt;stoth@kernellabs.com&gt;]]></description>
    <author>&#83;&#116;&#101;&#118;&#101;&#110;&#32;&#84;&#111;&#116;&#104;&#32;&#60;&#115;&#116;&#111;&#116;&#104;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 17 Sep 2009 14:06:45 -0400</pubDate>
</item>
<item>
    <title>SAA7164: Remove the SAA7164 bus id, no longer required.</title>
    <link>http://www.kernellabs.com/hg/~stoth/saa7164-18271/rev/1eb01a2e848e</link>
    <description><![CDATA[SAA7164: Remove the SAA7164 bus id, no longer required.<br/>
<br/>
From: Steven Toth &lt;stoth@kernellabs.com&gt;<br/>
<br/>
SAA7164: Remove the SAA7164 bus id, no longer required.<br/>
<br/>
Priority: normal<br/>
<br/>
Signed-off-by: Steven Toth &lt;stoth@kernellabs.com&gt;]]></description>
    <author>&#83;&#116;&#101;&#118;&#101;&#110;&#32;&#84;&#111;&#116;&#104;&#32;&#60;&#115;&#116;&#111;&#116;&#104;&#64;&#107;&#101;&#114;&#110;&#101;&#108;&#108;&#97;&#98;&#115;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 17 Sep 2009 14:05:38 -0400</pubDate>
</item>

  </channel>
</rss>
