PATCH 07/13: 0007-CX24116-Query-DVB-frontend-delivery-capabilities

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

 



From c314b95085f4567d90b4e02272e60f8e15385aac Mon Sep 17 00:00:00 2001
From: Manu Abraham <abraham.manu@xxxxxxxxx>
Date: Thu, 17 Nov 2011 07:06:26 +0530
Subject: [PATCH 07/13] CX24116: Query DVB frontend delivery capabilities

Override default delivery system information provided by FE_GET_INFO, so
that applications can enumerate delivery systems provided by the frontend.
The hardware also supports DSS, but there is currently no code within the
driver to handle the delivery system. When code exists to handle DSS, the
frontend needs to advertise it's DSS delivery system capability.

Signed-off-by: Manu Abraham <abraham.manu@xxxxxxxxx>
---
 drivers/media/dvb/frontends/cx24116.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c
index ccd0525..8860285 100644
--- a/drivers/media/dvb/frontends/cx24116.c
+++ b/drivers/media/dvb/frontends/cx24116.c
@@ -1223,6 +1223,15 @@ static int cx24116_get_property(struct dvb_frontend *fe,
 	struct dtv_property *tvp)
 {
 	dprintk("%s(..)\n", __func__);
+	switch (tvp->cmd) {
+	case DTV_ENUM_DELSYS:
+		tvp->u.buffer.data[0] = SYS_DVBS;
+		tvp->u.buffer.data[1] = SYS_DVBS2;
+		tvp->u.buffer.len = 2;
+		break;
+	default:
+		break;
+	}
 	return 0;
 }
 
-- 
1.7.1


[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