The patch number 8994 was added via Igor M. Liplianin <[EMAIL PROTECTED]> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: [EMAIL PROTECTED] ------ From: Igor M. Liplianin <[EMAIL PROTECTED]> Adjust MPEG initialization in cx24116 Adjust MPEG initialization in cx24116 in order to accomodate different MPEG CLK position and polarity in different cards. Signed-off-by: Igor M. Liplianin <[EMAIL PROTECTED]> --- linux/drivers/media/dvb/dvb-usb/dw2102.c | 2 +- linux/drivers/media/dvb/frontends/cx24116.c | 5 ++++- linux/drivers/media/dvb/frontends/cx24116.h | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff -r c16df309144f -r fce075ac704f 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 int dw2102_set_voltage(struct dvb 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 c16df309144f -r fce075ac704f 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 @@ static int cx24116_load_firmware (struct 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 c16df309144f -r fce075ac704f 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 @@ struct cx24116_config /* 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) --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/fce075ac704f23b1aca9c5a67e132dd1214c20cf _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits