Martin Petrovsky wrote:
The patch worked wonderfully.
I can scan for channels and I can watch TV.
Martin-
Would you mind testing another patch for me? This is a cleanup patch,
but it must be tested before it gets applied.
I'll just need for you to make sure that after applying this patch, that
you are still able to scan for channels and tune into as many as you
were able to before.
I have both the patch that adds support for your card, and this cleanup
patch in my tree, located at:
http://linuxtv.org/hg/~mkrufky/dvb-pll
...if that doesn't work, then you can just go back to my stable tree
with only the patch adding support for your card, located at:
http://linuxtv.org/hg/~mkrufky/v4l-dvb
Please let me know how it works out.
# HG changeset patch
# User Michael Krufky <mkrufky@xxxxxxxxxxx>
# Node ID c598a8a94cf87f302b8d5cb9e246c58eafb4e7f4
# Parent 9ad47d78284600ecf281df308d21d9b682e83a37
dvb-bt8xx: convert thomson_dtt7579_pll_set to use dvb_pll_thomson_dtt7579
From: Michael Krufky <mkrufky@xxxxxxxxxxx>
- converted thomson_dtt7579_pll_set to use dvb_pll_thomson_dtt7579
Signed-off-by: Michael Krufky <mkrufky@xxxxxxxxxxx>
diff -r 9ad47d782846 -r c598a8a94cf8 linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c
--- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c Tue Apr 11 01:40:24 2006
+++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c Tue Apr 11 03:22:52 2006
@@ -150,32 +150,9 @@
static int thomson_dtt7579_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf)
{
- u32 div;
- unsigned char bs = 0;
- unsigned char cp = 0;
-
- div = (((params->frequency + 83333) * 3) / 500000) + IF_FREQUENCYx6;
-
- if (params->frequency < 542000000)
- cp = 0xb4;
- else if (params->frequency < 771000000)
- cp = 0xbc;
- else
- cp = 0xf4;
-
- if (params->frequency == 0)
- bs = 0x03;
- else if (params->frequency < 443250000)
- bs = 0x02;
- else
- bs = 0x08;
-
pllbuf[0] = 0xc0; // Note: non-linux standard PLL i2c address
- pllbuf[1] = div >> 8;
- pllbuf[2] = div & 0xff;
- pllbuf[3] = cp;
- pllbuf[4] = bs;
-
+ dvb_pll_configure(&dvb_pll_thomson_dtt7579, pllbuf + 1,
+ params->frequency, params->u.ofdm.bandwidth);
return 0;
}
_______________________________________________
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb