Skip to contentSkip to conversation

xc5000: add support for DVB-C tuning.

PATCH Superseded Igor M. Liplianin 3 participants 3 messages Jan 1, 2011 Media (V4L/DVB)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 4/18 xc5000: add support for DVB-C tuning.

---
 drivers/media/common/tuners/xc5000.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
drivers/media/common/tuners/xc5000.c +18 -0
index 76ac5cd..e3218c9 100644
@@ -683,6 +683,24 @@ static int xc5000_set_params(struct dvb_frontend *fe,
 			return -EINVAL;
 		}
 		priv->rf_mode = XC_RF_MODE_AIR;
+	} else if (fe->ops.info.type == FE_QAM) {
+		dprintk(1, "%s() QAM\n", __func__);
+		switch (params->u.qam.modulation) {
+		case QAM_16:
+		case QAM_32:
+		case QAM_64:
+		case QAM_128:
+		case QAM_256:
+		case QAM_AUTO:
+			dprintk(1, "%s() QAM modulation\n", __func__);
+			priv->bandwidth = BANDWIDTH_8_MHZ;
+			priv->video_standard = DTV7_8;
+			priv->freq_hz = params->frequency - 2750000;
+			priv->rf_mode = XC_RF_MODE_CABLE;
+			break;
+		default:
+			return -EINVAL;
+		}
 	} else {
 		printk(KERN_ERR "xc5000 modulation type not supported!\n");
 		return -EINVAL;
Signature · 1 line
1.7.1
#2 lore raw
In reply to Benny Amorsen

В сообщении от 1 января 2011 11:43:28 автор Benny Amorsen написал:

Quoted 5 lines

It is always good to see more DVB-C devices supported... Do you happen to know some devices which have DVB-C support and use this chip?

/Benny

See next patch ...

Signature · 2 lines
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks