PATCH 03/13: 0003-DVB-Allow-frontend-to-set-DELSYS-Modulation

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

 



From 0f1010bd5b1813cff087db9ccaaf95abe5858e53 Mon Sep 17 00:00:00 2001
From: Manu Abraham <abraham.manu@xxxxxxxxx>
Date: Sat, 19 Nov 2011 19:00:38 +0530
Subject: [PATCH 03/13] DVB: Allow frontend to set DELSYS/Modulation rather than querying fe->ops.info.type

With any tuner that can tune to multiple delivery systems/standards, it does
query fe->ops.info.type to determine frontend type and set the delivery
system type. fe->ops.info.type can handle only 4 delivery systems, viz FE_QPSK,
FE_QAM, FE_OFDM and FE_ATSC.

The change allows the tuner to be set to any delivery system specified in
fe_delivery_system_t and any modulation as specified in fe_modulation_t,
thereby simplification of issues.

Signed-off-by: Manu Abraham <abraham.manu@xxxxxxxxx>
---
 drivers/media/dvb/dvb-core/dvb_frontend.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h
index 67bbfa7..ec6e8e9 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.h
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.h
@@ -113,6 +113,8 @@ enum tuner_param {
 	DVBFE_TUNER_BANDWIDTH		= (1 <<  3),
 	DVBFE_TUNER_REFCLOCK		= (1 <<  4),
 	DVBFE_TUNER_IQSENSE		= (1 <<  5),
+	DVBFE_TUNER_DELSYS              = (1 <<  6),
+	DVBFE_TUNER_MODULATION		= (1 <<  7),
 	DVBFE_TUNER_DUMMY		= (1 << 31)
 };
 
@@ -149,6 +151,8 @@ enum dvbfe_algo {
 };
 
 struct tuner_state {
+	fe_delivery_system_t delsys;
+	fe_modulation_t modulation;
 	u32 frequency;
 	u32 tunerstep;
 	u32 ifreq;
-- 
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