Thank you very much, Matthias. I was going to try the patch right now, however I'm finding that it doesn't apply clean to the current HG tree. This is what I'm getting:<br><br><span style="font-family: courier new,monospace;">patching file linux/drivers/media/dvb/frontends/Kconfig</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Hunk #1 FAILED at 368.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">1 out of 1 hunk FAILED -- saving rejects to file linux/drivers/media/dvb/frontends/Kconfig.rej</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">patching file linux/drivers/media/dvb/frontends/Makefile</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Hunk #1 succeeded at 23 (offset -2 lines).</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">patching file linux/drivers/media/dvb/frontends/zl10036.c</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">patching file linux/drivers/media/dvb/frontends/zl10036.h</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">patching file linux/drivers/media/video/saa7134/Kconfig</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">patching file linux/drivers/media/video/saa7134/saa7134-cards.c</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Hunk #3 succeeded at 5716 (offset 42 lines).</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">patching file linux/drivers/media/video/saa7134/saa7134-dvb.c</span><br style="font-family: courier new,monospace;">
<br>I've tried to manually patch Kconfig by adding the rejected lines, but I suppose there must something I'm doing wrong: apparently it compiles fine, but saa7134-dvb is not loaded and the frontend is not being created for the card (although the card is detected and the video0 device for analog is there).<br>
<br>I'll apreciate any hints you could give me, I'm impatient to test this. Plus, I'm seing lately some cross posted messages regarding the chips on this cards, so maybe there's some hope for it :D<br><br>
Best regards, <br> Eduard<br><br><br><br><br><div class="gmail_quote">2008/4/27 Matthias Schwarzott <<a href="mailto:zzam@gentoo.org">zzam@gentoo.org</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Montag, 14. April 2008, Eduard Huguet wrote:<br>
> > ---------- Missatge reenviat ----------<br>
> > From: Matthias Schwarzott <<a href="mailto:zzam@gentoo.org">zzam@gentoo.org</a>><br>
> > To: <a href="mailto:linux-dvb@linuxtv.org">linux-dvb@linuxtv.org</a><br>
> > Date: Sat, 12 Apr 2008 17:04:50 +0200<br>
> > Subject: [linux-dvb] [patch 5/5] mt312: add attach-time setting to invert<br>
> > lnb-voltage<br>
> > Add a setting to config struct for inversion of lnb-voltage.<br>
> > Needed for support of Avermedia A700 cards.<br>
> ><br>
> > Signed-off-by: Matthias Schwarzott <<a href="mailto:zzam@gentoo.org">zzam@gentoo.org</a>><br>
> > Index: v4l-dvb/linux/drivers/media/dvb/frontends/mt312.c<br>
> > ===================================================================<br>
> > --- v4l-dvb.orig/linux/drivers/media/dvb/frontends/mt312.c<br>
> > +++ v4l-dvb/linux/drivers/media/dvb/frontends/mt312.c<br>
> > @@ -422,11 +422,16 @@ static int mt312_set_voltage(struct dvb_<br>
> > {<br>
> > struct mt312_state *state = fe->demodulator_priv;<br>
> > const u8 volt_tab[3] = { 0x00, 0x40, 0x00 };<br>
> > + u8 val;<br>
> ><br>
> > if (v > SEC_VOLTAGE_OFF)<br>
> > return -EINVAL;<br>
> ><br>
> > - return mt312_writereg(state, DISEQC_MODE, volt_tab[v]);<br>
> > + val = volt_tab[v];<br>
> > + if (state->config->voltage_inverted)<br>
> > + val ^= 0x40;<br>
> > +<br>
> > + return mt312_writereg(state, DISEQC_MODE, val);<br>
> > }<br>
> ><br>
> > static int mt312_read_status(struct dvb_frontend *fe, fe_status_t *s)<br>
> > Index: v4l-dvb/linux/drivers/media/dvb/frontends/mt312.h<br>
> > ===================================================================<br>
> > --- v4l-dvb.orig/linux/drivers/media/dvb/frontends/mt312.h<br>
> > +++ v4l-dvb/linux/drivers/media/dvb/frontends/mt312.h<br>
> > @@ -31,6 +31,9 @@<br>
> > struct mt312_config {<br>
> > /* the demodulator's i2c address */<br>
> > u8 demod_address;<br>
> > +<br>
> > + /* inverted voltage setting */<br>
> > + int voltage_inverted:1;<br>
> > };<br>
> ><br>
> > #if defined(CONFIG_DVB_MT312) || (defined(CONFIG_DVB_MT312_MODULE) &&<br>
> > defined(MODULE))<br>
> > --<br>
><br>
> Thanks for the patches. ¿Is your lastest unified diff on your page<br>
> (a700_full_20080412.diff) equivalent to these patches or must they be<br>
> applied separately?<br>
Another 2 weeks later. These patches already have been applied at hg level. So<br>
now the new remaining full patch (a700_full_20080427.diff) is to be applied<br>
on top.<br>
<br>
It contains a zl10036 driver and the changes to the glue code in saa7134-dvb.<br>
zl10036 works most of the time here, but I am not fully happy with its current<br>
design.<br>
<br>
Open issues:<br>
* Should set_params routine be kept spiltted as it is?<br>
* Is bandwidth handling sane?<br>
Now calc the needed bw by symbolrate and add 3MHz.<br>
Datasheet suggests to start at max setting and decrease as possible after the<br>
lock is established (using freq. offset info from demod).<br>
* The used gain values are found by try and error and do not work for all<br>
transponders here.<br>
The most difficult transponder here was RTL - and that now works for me with<br>
exactly these gain settings (rfg=0, ba=1, bg=1).<br>
<br>
><br>
> I'll try to some tests tonight, if you have made some progress. By the way,<br>
> ¿could you tell me if it's better to use use_frontend=0 or 1 for<br>
> saa7134-dvb module? I think that this changes the driver used for frontend,<br>
> but I'm not sure.<br>
<br>
use_frontend is intended to be used for choosing between dvb-s and dvb-t or<br>
similar if the frontend offers both exclusively. I abused this parameter to<br>
choose between the two driver for zl10313 demod. This is no longer used, so<br>
forget about this parameter.<br>
<br>
Regards<br>
<font color="#888888">Matthias<br>
</font></blockquote></div><br>