[PATCH] S2 cx24116: MPEG initialization

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

 



Hi again Steven,

Please apply this patch.
Patch to adjust MPEG initialization in cx24116 in order to accomodate 
different MPEG CLK positions and polarities for different cards.

Igor Liplianin
# HG changeset patch
# User Igor M. Liplianin <liplianin@xxxxx>
# Date 1220979467 -10800
# Node ID 77293218655c3d272705232dc40ad9925473b8c1
# Parent  ed37fbee40febc38e74833387ec7d317087056d1
Adjust MPEG initialization in cx24116

From: Igor M. Liplianin <liplianin@xxxxx>

Adjust MPEG initialization in cx24116 in order to accomodate different
MPEG CLK position and polarity in different cards.

Signed-off-by: Igor M. Liplianin <liplianin@xxxxx>

diff -r ed37fbee40fe -r 77293218655c linux/drivers/media/dvb/dvb-usb/dw2102.c
--- a/linux/drivers/media/dvb/dvb-usb/dw2102.c	Tue Sep 09 19:22:29 2008 +0300
+++ b/linux/drivers/media/dvb/dvb-usb/dw2102.c	Tue Sep 09 19:57:47 2008 +0300
@@ -284,7 +284,7 @@
 
 static struct cx24116_config dw2104_config = {
 	.demod_address = 0x55,
-	/*.mpg_clk_pos_pol = 0x01,*/
+	.mpg_clk_pos_pol = 0x01,
 };
 
 static int dw2104_frontend_attach(struct dvb_usb_adapter *d)
diff -r ed37fbee40fe -r 77293218655c linux/drivers/media/dvb/frontends/cx24116.c
--- a/linux/drivers/media/dvb/frontends/cx24116.c	Tue Sep 09 19:22:29 2008 +0300
+++ b/linux/drivers/media/dvb/frontends/cx24116.c	Tue Sep 09 19:57:47 2008 +0300
@@ -478,7 +478,10 @@
 	cmd.args[0x01] = 0x01;
 	cmd.args[0x02] = 0x75;
 	cmd.args[0x03] = 0x00;
-	cmd.args[0x04] = 0x02;
+	if (state->config->mpg_clk_pos_pol)
+		cmd.args[0x04] = state->config->mpg_clk_pos_pol;
+	else
+		cmd.args[0x04] = 0x02;
 	cmd.args[0x05] = 0x00;
 	cmd.len= 0x06;
 	ret = cx24116_cmd_execute(fe, &cmd);
diff -r ed37fbee40fe -r 77293218655c linux/drivers/media/dvb/frontends/cx24116.h
--- a/linux/drivers/media/dvb/frontends/cx24116.h	Tue Sep 09 19:22:29 2008 +0300
+++ b/linux/drivers/media/dvb/frontends/cx24116.h	Tue Sep 09 19:57:47 2008 +0300
@@ -33,6 +33,9 @@
 
 	/* Need to reset device during firmware loading */
 	int (*reset_device)(struct dvb_frontend* fe);
+
+	/* Need to set MPEG parameters */
+	u8 mpg_clk_pos_pol:0x02;
 };
 
 #if defined(CONFIG_DVB_CX24116) || defined(CONFIG_DVB_CX24116_MODULE)
_______________________________________________
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