Re: Read DVB signal information directly from xc4000 based tuners

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For xc4000 based tuners we can read signal directly from tuner even
for demodulator. This is updated patch of id 8933. This patch depends
on id 8926 (Add signal information to xc4000 tuner).
From 4e51d66e51e54983b38ea556c370a7bf3dd5e273 Mon Sep 17 00:00:00 2001
From: Miroslav <thunder.m@xxxxxxxx>
Date: Fri, 23 Dec 2011 00:35:15 +0100
Subject: [PATCH] Read DVB signal information directly from xc4000 based tuners.

---
 drivers/media/video/cx23885/cx23885-dvb.c |    3 +++
 drivers/media/video/cx88/cx88-dvb.c       |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index f0482b2..7198072 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -945,6 +945,9 @@ static int dvb_register(struct cx23885_tsport *port)
 				       dev->name);
 				goto frontend_detach;
 			}
+
+			/* read signal directly from tuner */
+			fe->ops.read_signal_strength = fe->ops.tuner_ops.get_rf_strength;
 		}
 		break;
 	case CX23885_BOARD_TBS_6920:
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index 592f3aa..c023a6c 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -635,6 +635,9 @@ static int attach_xc4000(struct cx8802_dev *dev, struct xc4000_config *cfg)
 		return -EINVAL;
 	}
 
+	/* read signal directly from xc4000 tuner */
+	fe->ops.read_signal_strength = fe->ops.tuner_ops.get_rf_strength;
+
 	printk(KERN_INFO "%s/2: xc4000 attached\n", dev->core->name);
 
 	return 0;
-- 
1.7.2.3


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux