From patchwork Mon May 5 20:48:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: CrazyCat X-Patchwork-Id: 23836 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1WhPvl-0004Zs-Eu; Mon, 05 May 2014 22:56:09 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-8) with esmtp id 1WhPvj-0002v9-jd; Mon, 05 May 2014 22:56:09 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756145AbaEEUzz (ORCPT + 1 other); Mon, 5 May 2014 16:55:55 -0400 Received: from forward1l.mail.yandex.net ([84.201.143.144]:33978 "EHLO forward1l.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755604AbaEEUzy (ORCPT ); Mon, 5 May 2014 16:55:54 -0400 X-Greylist: delayed 418 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 May 2014 16:55:54 EDT Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward1l.mail.yandex.net (Yandex) with ESMTP id 92BEF1520FAF for ; Tue, 6 May 2014 00:48:54 +0400 (MSK) Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 544EF19000E4 for ; Tue, 6 May 2014 00:48:54 +0400 (MSK) Received: from 46-211-181-25-gprs.kyivstar.net (46-211-181-25-gprs.kyivstar.net [46.211.181.25]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id A4mGeQ6kMK-mrTes8MZ; Tue, 6 May 2014 00:48:53 +0400 (using TLSv1.1 with cipher AES256-SHA (256/256 bits)) (Client certificate not present) X-Yandex-Uniq: cf5f0c7e-4023-4748-bce3-4947616910ca DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narod.ru; s=mail; t=1399322934; bh=917zEZ50TjTg/whkCHySqgtYJxkTPcq7fP7zwmNfMTg=; h=From:To:Subject:Date:Message-ID:User-Agent:MIME-Version: Content-Transfer-Encoding:Content-Type; b=ciHXiZ7ThF2PpJZbROtAGa7N5xvKBNHLbHltcGxe4oZ7VTArGOVsTNJsit6BTwgof gtn63P/3k1hjAKChLLxjHnesvdxxWu/CrkaGDEYHZYhgAg4lfpIbWvNK+KGwOTM4IU OOe8bMYFUcEIq2pwqY+VSJmGYob3WnElWheLhKpQ= Authentication-Results: smtp17.mail.yandex.net; dkim=pass header.i=@narod.ru From: CrazyCat To: linux-media@vger.kernel.org Subject: [PATCH] dw2102: Geniatech T220 init fixed Date: Mon, 05 May 2014 23:48:50 +0300 Message-ID: <1709090.pAjQK6zJW5@ubuntu> User-Agent: KMail/4.8.5 (Linux/3.2.0-48-generic-pae; KDE/4.8.5; i686; ; ) MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.5.5.204518 X-PMX-Spam: Gauge=X, Probability=10%, Report=' HASHBUSTER_BLOCK_V2 0.5, FROM_NAME_ONE_WORD 0.05, HTML_00_01 0.05, HTML_00_10 0.05, MSGID_ADDED_BY_MTA 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1400_1499 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, INVALID_MSGID_NO_FQDN 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __DATE_TZ_RU 0, __HASHBUSTER_BLOCK_V2_1 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __RUS_WEBMAIL_RCVD 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT 0' Geniatech T220 init fixed. Signed-off-by: Evgeny Plehov --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;