summaryrefslogtreecommitdiff
path: root/debian/patches/debian/dfsg/lgs8gxx-lgs8g75-disable.patch
blob: 639dcd60928706af3f21ceea5d536a1cc9b8b937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From 15e2cca5411a60ec9d936b36be1bac937f1bfeaa Mon Sep 17 00:00:00 2001
From: Ben Hutchings <ben@decadent.org.uk>
Date: Tue, 3 Nov 2009 23:50:20 +0000
Subject: [PATCH 18/24] lgs8gxx: mark lgs8g75 as broken and mark firmware for removal

---
 drivers/media/dvb/frontends/lgs8gxx.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/media/dvb/frontends/lgs8gxx.c b/drivers/media/dvb/frontends/lgs8gxx.c
index eabcadc..a7446fd 100644
--- a/drivers/media/dvb/frontends/lgs8gxx.c
+++ b/drivers/media/dvb/frontends/lgs8gxx.c
@@ -46,6 +46,7 @@ module_param(fake_signal_str, int, 0644);
 MODULE_PARM_DESC(fake_signal_str, "fake signal strength for LGS8913."
 "Signal strength calculation is slow.(default:on).");
 
+#ifdef REMOVE_DFSG
 static const u8 lgs8g75_initdat[] = {
 	0x01, 0x30, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
 	0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
@@ -81,6 +82,7 @@ static const u8 lgs8g75_initdat[] = {
 	0x65, 0xE0, 0x54, 0xFD, 0xF0, 0x22, 0x90, 0x80,
 	0x65, 0xE0, 0x44, 0xC2, 0xF0, 0x22
 };
+#endif
 
 /* LGS8GXX internal helper functions */
 
@@ -625,6 +627,7 @@ static int lgs8913_init(struct lgs8gxx_state *priv)
 	return 0;
 }
 
+#ifdef CONFIG_BROKEN
 static int lgs8g75_init_data(struct lgs8gxx_state *priv)
 {
 	const u8 *p = lgs8g75_initdat;
@@ -652,6 +655,7 @@ static int lgs8g75_init_data(struct lgs8gxx_state *priv)
 
 	return 0;
 }
+#endif
 
 static int lgs8gxx_init(struct dvb_frontend *fe)
 {
@@ -1089,7 +1093,14 @@ struct dvb_frontend *lgs8gxx_attach(const struct lgs8gxx_config *config,
 	priv->frontend.demodulator_priv = priv;
 
 	if (config->prod == LGS8GXX_PROD_LGS8G75)
+#ifdef CONFIG_BROKEN
 		lgs8g75_init_data(priv);
+#else
+	{
+		dprintk("lgs8g75 firmware not available\n");
+		goto error_out;
+	}
+#endif
 
 	return &priv->frontend;
 
-- 
1.6.5.2