From patchwork Tue Jan 25 20:03:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor M. Liplianin" X-Patchwork-Id: 5688 Return-path: Envelope-to: mchehab@pedra Delivery-date: Tue, 25 Jan 2011 18:55:59 -0200 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1Phpvj-0001F6-AH for mchehab@pedra; Tue, 25 Jan 2011 18:55:59 -0200 Received: from casper.infradead.org [85.118.1.10] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Tue, 25 Jan 2011 18:55:59 -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 1Phpqy-0007ET-Bg; Tue, 25 Jan 2011 20:51:04 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753792Ab1AYUum (ORCPT + 1 other); Tue, 25 Jan 2011 15:50:42 -0500 Received: from mail-ew0-f46.google.com ([209.85.215.46]:55235 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753876Ab1AYUts (ORCPT ); Tue, 25 Jan 2011 15:49:48 -0500 Received: by mail-ew0-f46.google.com with SMTP id 5so2884034ewy.19 for ; Tue, 25 Jan 2011 12:49:47 -0800 (PST) Received: by 10.14.47.193 with SMTP id t41mr6684387eeb.21.1295988587337; Tue, 25 Jan 2011 12:49:47 -0800 (PST) Received: from useri.localnet ([93.125.74.3]) by mx.google.com with ESMTPS id t5sm11419593eeh.20.2011.01.25.12.49.45 (version=SSLv3 cipher=RC4-MD5); Tue, 25 Jan 2011 12:49:46 -0800 (PST) Message-ID: <4d3f376a.857a0e0a.122c.4794@mx.google.com> From: "Igor M. Liplianin" Date: Tue, 25 Jan 2011 22:03:00 +0200 Subject: [PATCH 4/9 v3] xc5000: add support for DVB-C tuning. To: , , Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: 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;