public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][media] SI2168: Resolve unknown chip version errors with different HVR22x5 models
@ 2015-06-04 12:38 Steven Toth
  2015-06-04 12:47 ` Antti Palosaari
  0 siblings, 1 reply; 11+ messages in thread
From: Steven Toth @ 2015-06-04 12:38 UTC (permalink / raw)
  To: Linux-Media; +Cc: Antti Palosaari, Olli Salonen, Peter Faulkner-Ball

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

We're seeing a mix of SI2168 demodulators appearing on HVR2205 and
HVR2215 cards, the chips are stamped with different build dates,
verified on my cards.

The si2168 driver detects some cards fine, others not at all. I can
reproduce the working and non-working case. The fix, if we detect a
newer card (D40) load the B firmware.

This fix works well for me and properly enables DVB-T tuning behavior
using tzap.

Thanks to Peter Faulkner-Ball for describing his workaround.

Signed-off-By: Steven Toth <stoth@kernellabs.com>

-- 
Steven Toth - Kernel Labs
http://www.kernellabs.com

[-- Attachment #2: d40.patch --]
[-- Type: application/octet-stream, Size: 784 bytes --]

diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index 5db588e..6682323 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -407,6 +407,7 @@ static int si2168_init(struct dvb_frontend *fe)
 	#define SI2168_A20 ('A' << 24 | 68 << 16 | '2' << 8 | '0' << 0)
 	#define SI2168_A30 ('A' << 24 | 68 << 16 | '3' << 8 | '0' << 0)
 	#define SI2168_B40 ('B' << 24 | 68 << 16 | '4' << 8 | '0' << 0)
+	#define SI2168_D40 (  0 << 24 |'D' << 16 | '4' << 8 | '0' << 0)
 
 	switch (chip_id) {
 	case SI2168_A20:
@@ -416,6 +417,7 @@ static int si2168_init(struct dvb_frontend *fe)
 		fw_name = SI2168_A30_FIRMWARE;
 		break;
 	case SI2168_B40:
+	case SI2168_D40:
 		fw_name = SI2168_B40_FIRMWARE;
 		break;
 	default:

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-06-11 18:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 12:38 [PATCH][media] SI2168: Resolve unknown chip version errors with different HVR22x5 models Steven Toth
2015-06-04 12:47 ` Antti Palosaari
2015-06-04 12:57   ` Steven Toth
2015-06-04 12:57   ` Olli Salonen
2015-06-04 13:22     ` Olli Salonen
2015-06-04 13:49       ` Antti Palosaari
2015-06-04 14:03       ` Steven Toth
2015-06-05 13:40         ` Olli Salonen
2015-06-05 14:18           ` Antti Palosaari
2015-06-06  7:41             ` Olli Salonen
2015-06-11 18:21           ` Steven Toth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox