From patchwork Tue Jun 3 17:22:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: CrazyCat X-Patchwork-Id: 4289581 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 A57ADBEEA7 for ; Tue, 3 Jun 2014 17:23:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C2A27201DD for ; Tue, 3 Jun 2014 17:23:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8EB22012B for ; Tue, 3 Jun 2014 17:22:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933085AbaFCRW4 (ORCPT ); Tue, 3 Jun 2014 13:22:56 -0400 Received: from forward6l.mail.yandex.net ([84.201.143.139]:47989 "EHLO forward6l.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932762AbaFCRWz (ORCPT ); Tue, 3 Jun 2014 13:22:55 -0400 Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [37.140.190.28]) by forward6l.mail.yandex.net (Yandex) with ESMTP id D7D0914E1103 for ; Tue, 3 Jun 2014 21:22:53 +0400 (MSK) Received: from smtp3o.mail.yandex.net (localhost [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id 8D50D1E1A65 for ; Tue, 3 Jun 2014 21:22:53 +0400 (MSK) Received: from ns.km10203.keymachine.de (ns.km10203.keymachine.de [62.141.48.117]) by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id GEpfu8J47s-MlK8dYtm; Tue, 3 Jun 2014 21:22:47 +0400 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (Client certificate not present) X-Yandex-Uniq: 0ef86fc4-81e2-4341-8f2b-2c8fcedb06c1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narod.ru; s=mail; t=1401816168; bh=Um/+yCH1T9s23W+/1ysyDVAAclI/neD6zZk+4RdFTLQ=; h=From:To:Subject:Date:Message-ID:User-Agent:MIME-Version: Content-Transfer-Encoding:Content-Type; b=gC9DAWLekrSQHXcx8bN440NNYzyykZOqdYQyJ9h0hTGuzqXGubZuV2C8OcreSn8Cb MyFvWs3pGfwdQZQbNck8f8EM+QfyixO0zR2K8R0U20UotQjcsS+X8yZ2pHwLUxcEeM N3CoZ7SwWFUQAAO/plEb94t+8TvNfWrgrelITqQo= Authentication-Results: smtp3o.mail.yandex.net; dkim=pass header.i=@narod.ru From: CrazyCat To: linux-media Subject: [PATCH] dw2102: Geniatech T220 init fixed Date: Tue, 03 Jun 2014 20:22:44 +0300 Message-ID: <3646158.R7eJSyhLvT@computer> User-Agent: KMail/4.13 (Linux/3.13.0-24-generic; KDE/4.13.0; x86_64; ; ) MIME-Version: 1.0 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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Geniatech T220 init fixed - reset cmd from windows driver and fixed TS bus config for cxd2820r. Signed-off-by: Evgeny Plehov --- drivers/media/usb/dvb-usb/dw2102.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c index ae0f56a..7135a3e 100644 --- a/drivers/media/usb/dvb-usb/dw2102.c +++ b/drivers/media/usb/dvb-usb/dw2102.c @@ -1109,6 +1109,7 @@ static struct ds3000_config su3000_ds3000_config = { static struct cxd2820r_config cxd2820r_config = { .i2c_address = 0x6c, /* (0xd8 >> 1) */ .ts_mode = 0x38, + .ts_clock_inv = 1, }; static struct tda18271_config tda18271_config = { @@ -1387,20 +1388,27 @@ static int su3000_frontend_attach(struct dvb_usb_adapter *d) static int t220_frontend_attach(struct dvb_usb_adapter *d) { - u8 obuf[3] = { 0xe, 0x80, 0 }; + u8 obuf[3] = { 0xe, 0x87, 0 }; u8 ibuf[] = { 0 }; if (dvb_usb_generic_rw(d->dev, obuf, 3, ibuf, 1, 0) < 0) err("command 0x0e transfer failed."); obuf[0] = 0xe; - obuf[1] = 0x83; + obuf[1] = 0x86; + obuf[2] = 1; + + if (dvb_usb_generic_rw(d->dev, obuf, 3, ibuf, 1, 0) < 0) + err("command 0x0e transfer failed."); + + obuf[0] = 0xe; + obuf[1] = 0x80; obuf[2] = 0; if (dvb_usb_generic_rw(d->dev, obuf, 3, ibuf, 1, 0) < 0) err("command 0x0e transfer failed."); - msleep(100); + msleep(50); obuf[0] = 0xe; obuf[1] = 0x80;