From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58499 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932321Ab0BBTJ0 (ORCPT ); Tue, 2 Feb 2010 14:09:26 -0500 Message-ID: <4B687851.3050706@redhat.com> Date: Tue, 02 Feb 2010 17:09:05 -0200 From: Mauro Carvalho Chehab MIME-Version: 1.0 To: Jean Delvare CC: hermann pitton , LMML , Daro , Roman Kellner Subject: Re: [PATCH] saa7134: Fix IR support of some ASUS TV-FM 7135 variants References: <20100127120211.2d022375@hyperion.delvare> <4B630179.3080006@redhat.com> <1264812461.16350.90.camel@localhost> <20100130115632.03da7e1b@hyperion.delvare> In-Reply-To: <20100130115632.03da7e1b@hyperion.delvare> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Hi Jean, > From: Jean Delvare > Subject: saa7134: Fix IR support of some ASUS TV-FM 7135 variants > > Some variants of the ASUS TV-FM 7135 are handled as the ASUSTeK P7131 > Analog (card=146). However, by the time we find out, some > card-specific initialization is missed. In particular, the fact that > the IR is GPIO-based. Set it when we change the card type, and run > saa7134_input_init1(). > > Signed-off-by: Jean Delvare > Cc: Daro > Cc: Roman Kellner > --- > linux/drivers/media/video/saa7134/saa7134-cards.c | 5 +++++ > 1 file changed, 5 insertions(+) > > --- v4l-dvb.orig/linux/drivers/media/video/saa7134/saa7134-cards.c 2010-01-30 10:56:50.000000000 +0100 > +++ v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c 2010-01-30 11:52:18.000000000 +0100 > @@ -7299,6 +7299,11 @@ int saa7134_board_init2(struct saa7134_d > printk(KERN_INFO "%s: P7131 analog only, using " > "entry of %s\n", > dev->name, saa7134_boards[dev->board].name); > + > + /* IR init has already happened for other cards, so > + * we have to catch up. */ > + dev->has_remote = SAA7134_REMOTE_GPIO; > + saa7134_input_init1(dev); > } > break; > case SAA7134_BOARD_HAUPPAUGE_HVR1150: This version of your patch makes sense to me. This logic will only apply for board SAA7134_BOARD_ASUSTeK_P7131_ANALOG, so, provided that someone with this board test it, I'm OK with it. Had Roman or Daro already test it? -- Cheers, Mauro