diff options
author | Igor M. Liplianin | 2011-01-25 21:03:00 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2011-03-22 00:32:17 +0100 |
commit | e80edce1abfabf637edc68e8dd13ef0af6e46cdf (patch) | |
tree | 1229e8b3f69ae3fbc828b9264d7ca68910dbc5d3 /drivers/media/common | |
parent | [media] Support for stv0367 multi-standard demodulator (diff) | |
download | kernel-qcow2-linux-e80edce1abfabf637edc68e8dd13ef0af6e46cdf.tar.gz kernel-qcow2-linux-e80edce1abfabf637edc68e8dd13ef0af6e46cdf.tar.xz kernel-qcow2-linux-e80edce1abfabf637edc68e8dd13ef0af6e46cdf.zip |
[media] xc5000: add support for DVB-C tuning
Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/tuners/xc5000.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c index 76ac5cd84af7..e3218c97d536 100644 --- a/drivers/media/common/tuners/xc5000.c +++ b/drivers/media/common/tuners/xc5000.c @@ -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; |