All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] em28xx: Don't call em28xx_ir_init when disable_ir is true
@ 2009-08-21  2:49 Shine Liu
  2009-08-21  3:03 ` Devin Heitmueller
  0 siblings, 1 reply; 2+ messages in thread
From: Shine Liu @ 2009-08-21  2:49 UTC (permalink / raw)
  To: linux-media; +Cc: dheitmueller

I think we should call em28xx_ir_init(dev) when disable_ir is true.
Following patch will fix the bug. 

Cheers,

Shine



Signed-off-by: Shine Liu <shinel@foxmail.com>
-----------------------------------------------------


--- a/drivers/media/video/em28xx/em28xx-cards.c	2009-08-14 06:43:34.000000000 +0800
+++ a/drivers/media/video/em28xx/em28xx-cards.c	2009-08-21 10:39:23.000000000 +0800
@@ -2367,7 +2367,9 @@
 	}
 
 	em28xx_tuner_setup(dev);
-	em28xx_ir_init(dev);
+
+	if(!disable_ir)
+		em28xx_ir_init(dev);
 }
 
 




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] em28xx: Don't call em28xx_ir_init when disable_ir is true
  2009-08-21  2:49 [PATCH] em28xx: Don't call em28xx_ir_init when disable_ir is true Shine Liu
@ 2009-08-21  3:03 ` Devin Heitmueller
  0 siblings, 0 replies; 2+ messages in thread
From: Devin Heitmueller @ 2009-08-21  3:03 UTC (permalink / raw)
  To: shinel; +Cc: linux-media

On Thu, Aug 20, 2009 at 10:49 PM, Shine Liu<shinel@foxmail.com> wrote:
> I think we should call em28xx_ir_init(dev) when disable_ir is true.
> Following patch will fix the bug.
>
> Cheers,
>
> Shine

Yeah, this looks reasonable.  I must have just accidentally cut the
code when I refactored the onboard IR support (as opposed to external
i2c IR).

In reality I really should take another pass over how the IR registers
are configured since currently we rely on the XCLK field definition in
the board configuration to setup the IR, which prevents you from
switching remote control modes between NEC/RC5/RC6, etc.

Reviewed-by: Devin Heitmueller <dheitmueller@kernellabs.com>

Thanks,

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-21  3:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-21  2:49 [PATCH] em28xx: Don't call em28xx_ir_init when disable_ir is true Shine Liu
2009-08-21  3:03 ` Devin Heitmueller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.