From patchwork Sun May 23 18:29:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Ringel X-Patchwork-Id: 101757 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4NIVKMB016430 for ; Sun, 23 May 2010 18:31:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755062Ab0EWSbQ (ORCPT ); Sun, 23 May 2010 14:31:16 -0400 Received: from mail-in-16.arcor-online.net ([151.189.21.56]:51791 "EHLO mail-in-16.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754945Ab0EWSbO (ORCPT ); Sun, 23 May 2010 14:31:14 -0400 Received: from mail-in-21-z2.arcor-online.net (unknown [151.189.8.185]) by mx.arcor.de (Postfix) with ESMTP id D8F1084EE; Sun, 23 May 2010 20:31:13 +0200 (CEST) Received: from mail-in-17.arcor-online.net (mail-in-17.arcor-online.net [151.189.21.57]) by mail-in-21-z2.arcor-online.net (Postfix) with ESMTP id C0838EDC48; Sun, 23 May 2010 20:31:13 +0200 (CEST) Received: from localhost.localdomain (unknown [188.106.95.190]) (Authenticated sender: stefan.ringel@arcor.de) by mail-in-17.arcor-online.net (Postfix) with ESMTPA id 4594ECBED6; Sun, 23 May 2010 20:31:13 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-17.arcor-online.net 4594ECBED6 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1274639473; bh=jUxNcNWwEI/JWE+cYQUEDx5yOh3dc7+Rsor1WiHsvZM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=in8x0rgTnx1x1GNJRJY5Y6ofjKNVQNiWk511813kZMTlk80ZJ/ZlhcrIROZNj9nXa HKu1GqYglHQdk3jpUWjvkZYBS6sM9+hloQiYuGeU3ii2/xtdQxIEm2aSoy+JegHy1U ZxzSZz+lQIcfATsJ1VnMoiQbwqsRSGlBOw4Zkwec= From: stefan.ringel@arcor.de To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, d.belimov@gmail.com, Stefan Ringel Subject: [PATCH 3/5] tm6000: set variable dev_mode in function tm6000_start_stream Date: Sun, 23 May 2010 20:29:26 +0200 Message-Id: <1274639366-2613-3-git-send-email-stefan.ringel@arcor.de> X-Mailer: git-send-email 1.7.0.3 In-Reply-To: <1274639366-2613-1-git-send-email-stefan.ringel@arcor.de> References: <1274639366-2613-1-git-send-email-stefan.ringel@arcor.de> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 23 May 2010 18:31:20 +0000 (UTC) diff --git a/drivers/staging/tm6000/tm6000-dvb.c b/drivers/staging/tm6000/tm6000-dvb.c index eafc89c..e6a802e 100644 --- a/drivers/staging/tm6000/tm6000-dvb.c +++ b/drivers/staging/tm6000/tm6000-dvb.c @@ -100,7 +100,10 @@ int tm6000_start_stream(struct tm6000_core *dev) printk(KERN_INFO "tm6000: got start stream request %s\n",__FUNCTION__); - tm6000_init_digital_mode(dev); + if (dev->mode != TM6000_MODE_DIGITAL) { + tm6000_init_digital_mode(dev); + dev->mode = TM6000_MODE_DIGITAL; + } dvb->bulk_urb = usb_alloc_urb(0, GFP_KERNEL); if(dvb->bulk_urb == NULL) {