[mythtv-users] PVR-150 and the IR Blaster
Rich West
Rich.West at wesmo.com
Tue Oct 24 03:12:32 UTC 2006
And I got it working. :) Very cool. And setting up the IR blaster in
the right spot on the set top box is definitely important. :)
The patch was required in order to get it to compile, and then it was a
matter of tweaking the modprobe.conf file accordingly.
Thanks for all the help!
-Rich
> Ahh! Got it to compile. I had to make a couple of tweaks to the
> patched source, but it did compile. I cannot say that it works, but I'm
> going to test that shortly. :)
>
> -rich
>
>
> I had to modify the drivers/kcompat.h:
> --- lirc-0.8.1-CVS-pvr150/drivers/kcompat.h 2006-07-09
> 06:56:42.000000000 -0400
> +++ lirc-0.8.1-CVS-pvr150.patch/drivers/kcompat.h 2006-10-23
> 15:05:01.000000000 -0400
> @@ -15,8 +15,11 @@
>
> #include <linux/device.h>
>
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
> #define LIRC_HAVE_DEVFS
> #define LIRC_HAVE_DEVFS_26
> +#endif
> +
> #define LIRC_HAVE_SYSFS
>
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
>
> And drivers/lirc_dev/lirc_dev.c as follows:
> --- lirc-0.8.1-CVS-pvr150/drivers/lirc_dev/lirc_dev.c 2006-07-09
> 06:56:41.000000000 -0400
> +++ lirc-0.8.1-CVS-pvr150.patch/drivers/lirc_dev/lirc_dev.c
> 2006-10-23 15:01:28.000000000 -0400
> @@ -49,12 +49,15 @@
> #endif
> #define __KERNEL_SYSCALLS__
> #include <linux/unistd.h>
> +
> +#include "drivers/kcompat.h"
> +
> /* DevFS header */
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
> +#if defined(LIRC_HAVE_DEVFS)
> #include <linux/devfs_fs_kernel.h>
> #endif
> /* SysFS header */
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
> +#if defined(LIRC_HAVE_SYSFS)
> #include <linux/device.h>
> #endif
>
> -Rich
>
>
More information about the mythtv-users
mailing list