aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorIgor M. Liplianin <liplianin@me.by>2011-01-25 15:03:00 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 19:32:17 -0400
commite80edce1abfabf637edc68e8dd13ef0af6e46cdf (patch)
tree1229e8b3f69ae3fbc828b9264d7ca68910dbc5d3 /drivers/media/common
parent17cce932e8be9a3e32e1928524b73795b3f0e3aa (diff)
[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.c18
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,
683 return -EINVAL; 683 return -EINVAL;
684 } 684 }
685 priv->rf_mode = XC_RF_MODE_AIR; 685 priv->rf_mode = XC_RF_MODE_AIR;
686 } else if (fe->ops.info.type == FE_QAM) {
687 dprintk(1, "%s() QAM\n", __func__);
688 switch (params->u.qam.modulation) {
689 case QAM_16:
690 case QAM_32:
691 case QAM_64:
692 case QAM_128:
693 case QAM_256:
694 case QAM_AUTO:
695 dprintk(1, "%s() QAM modulation\n", __func__);
696 priv->bandwidth = BANDWIDTH_8_MHZ;
697 priv->video_standard = DTV7_8;
698 priv->freq_hz = params->frequency - 2750000;
699 priv->rf_mode = XC_RF_MODE_CABLE;
700 break;
701 default:
702 return -EINVAL;
703 }
686 } else { 704 } else {
687 printk(KERN_ERR "xc5000 modulation type not supported!\n"); 705 printk(KERN_ERR "xc5000 modulation type not supported!\n");
688 return -EINVAL; 706 return -EINVAL;