From: "Igor M. Liplianin" <liplianin@tut.by>
To: linux-dvb@linuxtv.org
Subject: [linux-dvb] [PATCH] S2 cx24116: MPEG initialization
Date: Tue, 9 Sep 2008 20:12:04 +0300 [thread overview]
Message-ID: <200809092012.04927.liplianin@tut.by> (raw)
In-Reply-To: <200809091750.38009.liplianin@tut.by>
[-- Attachment #1: Type: text/plain, Size: 195 bytes --]
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
[-- Attachment #2: 8867.patch --]
[-- Type: text/x-diff, Size: 1977 bytes --]
# HG changeset patch
# User Igor M. Liplianin <liplianin@me.by>
# Date 1220979467 -10800
# Node ID 77293218655c3d272705232dc40ad9925473b8c1
# Parent ed37fbee40febc38e74833387ec7d317087056d1
Adjust MPEG initialization in cx24116
From: Igor M. Liplianin <liplianin@me.by>
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@me.by>
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)
[-- Attachment #3: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
next prev parent reply other threads:[~2008-09-09 17:12 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-04 4:54 [linux-dvb] S2API - First release Steven Toth
2008-09-04 10:54 ` Roger James
2008-09-04 11:06 ` Stephen Rowles
2008-09-04 13:41 ` Steven Toth
2008-09-04 12:36 ` barry bouwsma
2008-09-04 13:40 ` Steven Toth
2008-09-04 15:03 ` Igor M. Liplianin
2008-09-04 15:19 ` Steven Toth
2008-09-04 16:07 ` Hans Werner
2008-09-05 13:18 ` Steven Toth
2008-09-06 11:57 ` Igor M. Liplianin
2008-09-07 2:01 ` Hans Werner
2008-09-08 15:09 ` Steven Toth
2008-09-08 14:42 ` Steven Toth
2008-09-08 20:34 ` [linux-dvb] [PATCH] S2 - DVBWorld 2104, TeVii S650 Igor M. Liplianin
2008-09-09 14:50 ` Igor M. Liplianin
2008-09-09 16:31 ` [linux-dvb] [PATCH] S2 cx24116: Above 30000 kSym/s symbol rates patch Igor M. Liplianin
2008-09-09 23:52 ` Steven Toth
2008-09-10 8:35 ` [linux-dvb] [PATCH] S2 cx24116: Above 30000 kSym/s symbol ratespatch Goga777
2008-09-09 17:12 ` Igor M. Liplianin [this message]
2008-09-09 23:52 ` [linux-dvb] [PATCH] S2 cx24116: MPEG initialization Steven Toth
2008-09-09 23:52 ` [linux-dvb] [PATCH] S2 - DVBWorld 2104, TeVii S650 Steven Toth
2008-09-09 23:52 ` Steven Toth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200809092012.04927.liplianin@tut.by \
--to=liplianin@tut.by \
--cc=linux-dvb@linuxtv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox