[linux-dvb] Broken Tuning on Wintv Nova HD S2

Message ID 200901291807.33531.liplianin@tut.by (mailing list archive)
State Superseded, archived
Headers

Commit Message

Igor M. Liplianin Jan. 29, 2009, 4:07 p.m. UTC
  ? ????????? ?? 27 January 2009 22:39:51 gimli ???????(?):
> Hi,
>
> the following changesets breaks Tuning to Vertical Transponders :
>
> http://mercurial.intuxication.org/hg/s2-liplianin/rev/1ca67881d96a
> http://linuxtv.org/hg/v4l-dvb/rev/2cd7efb4cc19
>
> For example :
>
> DMAX;BetaDigital:12246:vC34M2O0S0:S19.2E:27500:511:512=deu:32:0:10101:1:109
>2:0
>
>
> cu
>
> Edgar ( gimli ) Hucek
>
> _______________________________________________
> linux-dvb users mailing list
> For V4L/DVB development, please use instead linux-media@vger.kernel.org
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

More likely not polarization, but hi band may broken.
Anyway, please, try attached patch.
  

Patch

# HG changeset patch
# User Igor M. Liplianin <liplianin@me.by>
# Date 1233189531 -7200
# Node ID d09924ba6c75233d8212ef79076739d9400d79a8
# Parent  43dbc8ebb5a21c8991df5e5ead54b724c0dc18f4
HVR-4000 Test

diff -r 43dbc8ebb5a2 -r d09924ba6c75 linux/drivers/media/dvb/frontends/cx24116.c
--- a/linux/drivers/media/dvb/frontends/cx24116.c	Tue Jan 27 23:47:50 2009 -0200
+++ b/linux/drivers/media/dvb/frontends/cx24116.c	Thu Jan 29 02:38:51 2009 +0200
@@ -861,6 +861,7 @@ 
 static int cx24116_set_tone(struct dvb_frontend *fe,
 	fe_sec_tone_mode_t tone)
 {
+	struct cx24116_state *state = fe->demodulator_priv;
 	struct cx24116_cmd cmd;
 	int ret;
 
@@ -870,8 +871,12 @@ 
 		return -EINVAL;
 	}
 
-	/* Wait for LNB ready */
-	ret = cx24116_wait_for_lnb(fe);
+	if (state->config->use_lnb_dc != 1)
+		ret = cx24116_set_voltage(fe, SEC_VOLTAGE_13);
+	else
+		/* Wait for LNB ready */
+		ret = cx24116_wait_for_lnb(fe);
+
 	if (ret != 0)
 		return ret;
 
diff -r 43dbc8ebb5a2 -r d09924ba6c75 linux/drivers/media/dvb/frontends/cx24116.h
--- a/linux/drivers/media/dvb/frontends/cx24116.h	Tue Jan 27 23:47:50 2009 -0200
+++ b/linux/drivers/media/dvb/frontends/cx24116.h	Thu Jan 29 02:38:51 2009 +0200
@@ -35,6 +35,9 @@ 
 
 	/* Need to set MPEG parameters */
 	u8 mpg_clk_pos_pol:0x02;
+
+	/* Need to set LNB power control */
+	u8 use_lnb_dc;
 };
 
 #if defined(CONFIG_DVB_CX24116) || \
diff -r 43dbc8ebb5a2 -r d09924ba6c75 linux/drivers/media/video/cx23885/cx23885-dvb.c
--- a/linux/drivers/media/video/cx23885/cx23885-dvb.c	Tue Jan 27 23:47:50 2009 -0200
+++ b/linux/drivers/media/video/cx23885/cx23885-dvb.c	Thu Jan 29 02:38:51 2009 +0200
@@ -334,6 +334,7 @@ 
 
 static struct cx24116_config dvbworld_cx24116_config = {
 	.demod_address = 0x05,
+	.use_lnb_dc = 1,
 };
 
 static int dvb_register(struct cx23885_tsport *port)