Re: A patch and firmware for Australian Dual Digital 4 users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2007-05-07 at 14:35 +0200, Markus Rechberger wrote:
> Did you work with the v4l-dvb-experimental tree?
> It would be nice if you could send me a diff against the experimental
> tree so that we can add support for these device too there, there are
> already saa7134, cx88, em28xx xc3028/xc3018/xc2028 based devices
> supported in that tree:
> 
> http://mcentral.de/hg/~mrec/v4l-dvb-experimental

Hello Markus and Roger,

I have had some success getting the v4l-dvb-experimental code working in
Australia with Roger's new xc3028.au2.fw firmware.  The attached patch
shows the 2 lines which need to be changed.  The first change is setting
input_frequency to 0x2217 and the second is changing the frequency
offset for 7MHz to 2250000.  There are two other minor changes in the
patch to remove obsolete code.   Obviously, there needs to be a way to
enable the Australia-specific settings at runtime before they can be
committed.

The reason why I say that I have had "some success" as opposed to "total
success" is that I am getting patchy reception on some channels and I am
unable to even get a signal lock on others.  This might be due to:

a) The 2250000 offset causing frequency settings to map to incorrect
register values, or
b) Bad reception.  I suspect this is the case as I have bloody awful
reception on my analog TV.  I hope to buy a booster box tomorrow to see
if it makes any difference.

Kudos to Roger and Julian for enabling me to get this far.

Daniel
diff -r 0015df24a278 linux/drivers/media/dvb/dvb-usb/cxusb.c
--- a/linux/drivers/media/dvb/dvb-usb/cxusb.c	Mon May 07 06:33:45 2007 +0200
+++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c	Tue May 08 00:06:42 2007 +1000
@@ -379,6 +379,7 @@ static struct zl10353_config cxusb_zl103
 	.demod_address = 0x0f,
 	.no_tuner = 1,
 	.parallel_ts = 1,
+	.input_frequency = 0x2217
 };
 
 /* Callbacks for DVB USB */
diff -r 0015df24a278 linux/drivers/media/tuners/xc3028-tuner.c
--- a/linux/drivers/media/tuners/xc3028-tuner.c	Mon May 07 06:33:45 2007 +0200
+++ b/linux/drivers/media/tuners/xc3028-tuner.c	Tue May 08 00:10:11 2007 +1000
@@ -36,7 +36,6 @@
 */
 
 #include <linux/i2c.h>
-#include <linux/usb.h>
 #include "compat.h"
 #include <linux/videodev.h>
 #include <linux/firmware.h>
@@ -52,7 +51,6 @@ static int xc3028_set_mode(struct v4l_dv
 static int xc3028_set_mode(struct v4l_dvb_tuner_ops *c, struct dvb_int_frontend_parameters *params);
 
 struct xc3028_priv {
-	u8 tuning_code[12];
 	struct i2c_adapter *i2c;
 	fe_bandwidth_t bandwidth;
 	u32 frequency;
@@ -219,7 +217,7 @@ static int xc3028_tuner_set_params(struc
 				frequency=(unsigned long long)params->frequency-2750000;
 				break;
 			case BANDWIDTH_7_MHZ:
-				frequency=(unsigned long long)params->frequency-2750000;
+				frequency=(unsigned long long)params->frequency-2250000;
 				break;
 			case BANDWIDTH_6_MHZ:
 				frequency=(unsigned long long)params->frequency-1750000;
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux