From patchwork Fri Dec 31 11:37:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor M. Liplianin" X-Patchwork-Id: 5390 Return-path: Envelope-to: mchehab@gaivota Delivery-date: Sat, 01 Jan 2011 07:56:56 -0200 Received: from mchehab by gaivota with local (Exim 4.72) (envelope-from ) id 1PYyCl-0001rH-OO for mchehab@gaivota; Sat, 01 Jan 2011 07:56:56 -0200 Received: from casper.infradead.org [85.118.1.10] by gaivota with IMAP (fetchmail-6.3.17) for (single-drop); Sat, 01 Jan 2011 07:56:55 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PYxmw-0005Di-M8; Sat, 01 Jan 2011 09:30:15 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751760Ab1AAJ3i (ORCPT + 1 other); Sat, 1 Jan 2011 04:29:38 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:59089 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557Ab1AAJ3h (ORCPT ); Sat, 1 Jan 2011 04:29:37 -0500 Received: by mail-ey0-f174.google.com with SMTP id 27so5457575eye.19 for ; Sat, 01 Jan 2011 01:29:36 -0800 (PST) Received: by 10.213.112.144 with SMTP id w16mr5259440ebp.69.1293874176091; Sat, 01 Jan 2011 01:29:36 -0800 (PST) Received: from useri.localnet ([93.125.74.3]) by mx.google.com with ESMTPS id q58sm12964627eeh.3.2011.01.01.01.29.34 (version=SSLv3 cipher=RC4-MD5); Sat, 01 Jan 2011 01:29:35 -0800 (PST) Message-ID: <4d1ef3ff.52790e0a.0150.0713@mx.google.com> From: "Igor M. Liplianin" Date: Fri, 31 Dec 2010 13:37:00 +0200 Subject: [PATCH 04/18] xc5000: add support for DVB-C tuning. To: , , Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Mauro Carvalho Chehab Signed-off-by: Igor M. Liplianin --- 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 76ac5cd..e3218c9 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;