From patchwork Sun Oct 26 07:56:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olli Salonen X-Patchwork-Id: 5153651 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D6B1DC11AC for ; Sun, 26 Oct 2014 08:00:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02A9D202F8 for ; Sun, 26 Oct 2014 08:00:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE0A9202F2 for ; Sun, 26 Oct 2014 08:00:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751031AbaJZH4b (ORCPT ); Sun, 26 Oct 2014 03:56:31 -0400 Received: from mail-la0-f42.google.com ([209.85.215.42]:63748 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997AbaJZH4a (ORCPT ); Sun, 26 Oct 2014 03:56:30 -0400 Received: by mail-la0-f42.google.com with SMTP id gf13so4964292lab.15 for ; Sun, 26 Oct 2014 00:56:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=mL5geFpOEWzKxO+U+uWDqi1uFQRayJEZbdIVcaSJFdw=; b=G4QJgMcpnADKLBAWDlEUFUeeBXV9sBBlY+bji4zU6AidmfvWtf+2h/rrw7UrooPTFN 36MNcwBU3nAFlOQznzDNmfU/Uy9N65/u6MBWKtXfWsJ1TBJ388ewynhzDUhp2Hlf5n7+ PluW3DHChWxyhnIQ0/wqQ6Z0y3AG17U7LvbUGd42j7G1gK4OvNIHyzjZRaNd9b0Cb/fy X7LAK98Ajo+RoNpPTdhqQRph7fw9sj7y6g4wpOUCdRkODRjfAqilNKHDdVGIuzXjo7MT 5K46LCplMCIJTy4SbtXZR88CTnIJVaMUzFZalFfBZFsC+vBUDYqWxUBZbEh3VCS49t7E M4yw== X-Gm-Message-State: ALoCoQlRubknUAq1gGRisAAkjyqfjY0kNuVHgj1FYmaNjDzakqhWiSj6JyAmEkFcoBXDxR2B2aGH X-Received: by 10.112.138.39 with SMTP id qn7mr15294712lbb.57.1414310188311; Sun, 26 Oct 2014 00:56:28 -0700 (PDT) Received: from dl160.lan (188-67-84-160.bb.dnainternet.fi. [188.67.84.160]) by mx.google.com with ESMTPSA id n7sm3694205lae.11.2014.10.26.00.56.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 26 Oct 2014 00:56:27 -0700 (PDT) From: Olli Salonen To: linux-media@vger.kernel.org Cc: Olli Salonen Subject: [PATCH] cxusb: TS mode setting for TT CT2-4400 Date: Sun, 26 Oct 2014 09:56:12 +0200 Message-Id: <1414310172-25876-1-git-send-email-olli.salonen@iki.fi> X-Mailer: git-send-email 1.9.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is a new version of the TechnoTrend CT2-4400 USB tuner. The difference is the demodulator that is used (Si2168-B40 instead of -A30). For TT CT2-4400v2 a TS stream related parameter needs to be set, otherwise the stream becomes corrupted. The Windows driver for both CT2-4400 and CT2-4400v2 sets this as well. After this patch the driver works for both versions. Signed-off-by: Olli Salonen Reviewed-by: Antti Palosaari --- drivers/media/usb/dvb-usb/cxusb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c index 356abb3..8925b3946 100644 --- a/drivers/media/usb/dvb-usb/cxusb.c +++ b/drivers/media/usb/dvb-usb/cxusb.c @@ -1438,6 +1438,12 @@ static int cxusb_tt_ct2_4400_attach(struct dvb_usb_adapter *adap) si2168_config.i2c_adapter = &adapter; si2168_config.fe = &adap->fe_adap[0].fe; si2168_config.ts_mode = SI2168_TS_PARALLEL; + + /* CT2-4400v2 TS gets corrupted without this */ + if (d->udev->descriptor.idProduct == + USB_PID_TECHNOTREND_TVSTICK_CT2_4400) + si2168_config.ts_mode |= 0x40; + memset(&info, 0, sizeof(struct i2c_board_info)); strlcpy(info.type, "si2168", I2C_NAME_SIZE); info.addr = 0x64;