public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] CI/CAM fixes for knc1 dvb-s cards
@ 2008-03-21 19:24 Christoph Pfister
  2008-03-22  6:32 ` Oliver Endriss
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Christoph Pfister @ 2008-03-21 19:24 UTC (permalink / raw)
  To: v4l-dvb-maintainer; +Cc: linux-dvb

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

Hi,

Can somebody please pick up those patches (descriptions inlined)?

Thanks,

Christoph

[-- Attachment #2: fix-budget-av-cam.diff --]
[-- Type: text/x-diff, Size: 1186 bytes --]

# HG changeset patch
# User Christoph Pfister <pfister@linuxtv.org>
# Date 1206124155 -3600
# Node ID f252381440c1f36ae6f3e0daded1451806d0bd8b
# Parent  1886a5ea2f84935a8356b926e0820db04e0adc84
Fix support for certain cams in buget-av
The current ci implementation doesn't accept 0xff when reading data bytes (address == 0),
thus breaks cams which report a buffer size of 0x--ff like my orion one.
Limit the 0xff check to the only register left, the status register.
Signed-off-by: Christoph Pfister <pfister@linuxtv.org>

diff -r 1886a5ea2f84 -r f252381440c1 linux/drivers/media/dvb/ttpci/budget-av.c
--- a/linux/drivers/media/dvb/ttpci/budget-av.c	Fri Mar 21 08:04:55 2008 -0300
+++ b/linux/drivers/media/dvb/ttpci/budget-av.c	Fri Mar 21 19:29:15 2008 +0100
@@ -178,7 +178,7 @@ static int ciintf_read_cam_control(struc
 	udelay(1);
 
 	result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0);
-	if ((result == -ETIMEDOUT) || ((result == 0xff) && ((address & 3) < 2))) {
+	if ((result == -ETIMEDOUT) || ((result == 0xff) && ((address & 3) == 1))) {
 		ciintf_slot_shutdown(ca, slot);
 		printk(KERN_INFO "budget-av: cam ejected 3\n");
 		return -ETIMEDOUT;

[-- Attachment #3: fix-knc1-dvbs-ci.diff --]
[-- Type: text/x-diff, Size: 1162 bytes --]

# HG changeset patch
# User Christoph Pfister <pfister@linuxtv.org>
# Date 1206125034 -3600
# Node ID dc4505c2491d301a28ec06a669b272b3e47168b1
# Parent  f252381440c1f36ae6f3e0daded1451806d0bd8b
Fix CI interface on (some) KNC1 DVBS cards
Quoting the commit introducing reinitialise_demod (3984 / by adq):
"These cards [KNC1 DVBT and DVBC] need special handling for CI - reinitialising the frontend
device when the CI module is reset."
Apparently my 1894:0010 also needs that fix, because once you initialise CI/CAM you lose lock.
Signed-off-by: Christoph Pfister <pfister@linuxtv.org>

diff -r f252381440c1 -r dc4505c2491d linux/drivers/media/dvb/ttpci/budget-av.c
--- a/linux/drivers/media/dvb/ttpci/budget-av.c	Fri Mar 21 19:29:15 2008 +0100
+++ b/linux/drivers/media/dvb/ttpci/budget-av.c	Fri Mar 21 19:43:54 2008 +0100
@@ -943,6 +943,7 @@ static void frontend_init(struct budget_
 	case SUBID_DVBS_KNC1:
 	case SUBID_DVBS_KNC1_PLUS:
 	case SUBID_DVBS_EASYWATCH_1:
+		budget_av->reinitialise_demod = 1;
 		if (saa->pci->subsystem_vendor == 0x1894) {
 			fe = dvb_attach(stv0299_attach, &cinergy_1200s_1894_0010_config,
 					     &budget_av->budget.i2c_adap);

[-- Attachment #4: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

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

end of thread, other threads:[~2008-04-11 23:01 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 19:24 [linux-dvb] CI/CAM fixes for knc1 dvb-s cards Christoph Pfister
2008-03-22  6:32 ` Oliver Endriss
2008-03-22 12:56   ` Christoph Pfister
2008-03-28 17:20   ` Christoph Pfister
2008-03-28 21:57     ` Christoph Pfister
2008-04-03 23:33     ` Oliver Endriss
2008-04-05 13:14       ` Christoph Pfister
2008-04-11 22:01         ` Oliver Endriss
2008-03-22 11:31 ` e9hack
2008-03-22 13:13   ` Christoph Pfister
2008-03-22 15:46     ` thomas schorpp
2008-03-28 10:45 ` Arthur Konovalov
2008-03-28 14:35   ` Christoph Pfister
2008-03-28 15:06     ` Arthur Konovalov
2008-03-28 17:16       ` Christoph Pfister
2008-03-28 20:22         ` Arthur Konovalov
2008-03-28 22:02           ` Christoph Pfister
2008-03-28 23:59             ` Arthur Konovalov
2008-03-29 15:00               ` Christoph Pfister

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