From patchwork Sun Nov 28 15:40:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 362182 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oASFgUep010692 for ; Sun, 28 Nov 2010 15:42:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753337Ab0K1Pm3 (ORCPT ); Sun, 28 Nov 2010 10:42:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62468 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753331Ab0K1Pm2 (ORCPT ); Sun, 28 Nov 2010 10:42:28 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oASFgSnA015998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 28 Nov 2010 10:42:28 -0500 Received: from pedra (vpn-231-111.phx2.redhat.com [10.3.231.111]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oASFeIi0023822 for ; Sun, 28 Nov 2010 10:42:27 -0500 Date: Sun, 28 Nov 2010 13:40:05 -0200 From: Mauro Carvalho Chehab Cc: Linux Media Mailing List Subject: [PATCH 2/2] [media] RFC: Enable IRQ's on both GPIO transitions Message-ID: <20101128134005.35ec0010@pedra> In-Reply-To: References: Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 To: unlisted-recipients:; (no To-header on input) 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 (demeter1.kernel.org [140.211.167.41]); Sun, 28 Nov 2010 15:42:31 +0000 (UTC) diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c index 7f48306..8ede256 100644 --- a/drivers/media/video/bt8xx/bttv-input.c +++ b/drivers/media/video/bt8xx/bttv-input.c @@ -522,6 +522,11 @@ int bttv_input_init(struct bttv *btv) gpio = bttv_gpio_read(&btv->c); bttv_gpio_write(&btv->c, gpio & ~(1 << 4)); bttv_gpio_write(&btv->c, gpio | (1 << 4)); + + /* set normal/inverted mode at GPINTR pin as irq trigger */ + btaor(0, + ~(BT848_GPIO_DMA_CTL_GPINTC | BT848_GPIO_DMA_CTL_GPINTI), + BT848_GPIO_DMA_CTL); } else { /* init hardware-specific stuff */ bttv_gpio_inout(&btv->c, ir->mask_keycode | ir->mask_keydown, 0);