Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2007 18:00:02 -0500
From:      User Mat <mathew.kanner@gmail.com>
To:        Danny Pansters <danny@ricin.com>
Cc:        multimedia@freebsd.org
Subject:   Re: PVR-150 on 6-STABLE: success and mini HOWTO
Message-ID:  <20071219230002.GC52400@tube5.mine.nu>
In-Reply-To: <200712191659.28032.danny@ricin.com>
References:  <200712191659.28032.danny@ricin.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Dec 19, Danny Pansters wrote:
> I just completed setting up my brand new Hauppauge PVR-150 (MCE I think) on 
> 6.2-STABLE using the newish port from usleep. All this info can be found, but 
> it is scattered, so I thought it might be useful to put together a short step 
> by step guide:

    (I'm becoming active again).

    It also works on 7 and 8 with the attached patch.  Tuning works
    best by frequency.  Once I choose s-video or composite input, I
    can't switch back to the tuner.

    I'm also kinda working on mythtv, I've got the latest built, but
    it's failing at probing the inputs of the card (the version in the
    ports works at that part, but fails to get schedules).  I've never
    used mythtv so I don't have reference to a working version.

    For now, I'm using a slightly hacked version of the devel version
    of mpegcat (multimedia/gopchop) to split the mpeg stream on the
    hour.  I intend to send those patches to the author, they are
    trivial.

    --Mat

--IS0zKkzwUGydFO0o
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="pvrxxx.patch"

--- ./work/dev/cxm/cxm.h.premat	2007-12-14 20:09:17.000000000 -0500
+++ ./work/dev/cxm/cxm.h	2007-12-14 20:10:06.000000000 -0500
@@ -225,7 +225,6 @@
 			 cxm_pal_60hz_source_format,
 			 cxm_secam_50hz_source_format };
 
-extern const struct cxm_tuner cxm_tuners[];
 
 enum cxm_type { cxm_unknown_type, cxm_iTVC15_type, cxm_iTVC16_type };
 enum cxm_cardtype { CXM_PVR250, CXM_PVR500 };
@@ -689,4 +688,6 @@
 int cxm_saa7115_is_locked( struct cxm_softc *sc );
 int cxm_saa7115_wait_for_lock( struct cxm_softc *sc );
 
+extern const struct cxm_tuner cxm_tuners[];
+
 #endif /* cmx_h */
--- ./work/dev/cxm/cxm.c.premat	2007-12-14 20:11:33.000000000 -0500
+++ ./work/dev/cxm/cxm.c	2007-12-14 20:11:52.000000000 -0500
@@ -2047,7 +2047,7 @@
             device_get_nameunit(dev));
 
         error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_AV | INTR_FAST,
-                               cxm_intr_fast, sc, &sc->ih_cookie);
+                               NULL, cxm_intr_fast, sc, &sc->ih_cookie);
 #endif
 
 	if (error) {
--- ./work/modules/cxm/cxm/fbsd-compat.h.premat	2007-12-14 20:10:56.000000000 -0500
+++ ./work/modules/cxm/cxm/fbsd-compat.h	2007-12-14 20:11:08.000000000 -0500
@@ -55,13 +55,6 @@
 #undef AUDIO_EXTERN
 #undef AUDIO_INTERN
 
-/* missing types ? */
-#if __FreeBSD_version < 500000
-	#include <sys/inttypes.h>
-#else
-	#include <inttypes.h>
-#endif
-
 #define u16 uint16_t
 #define u32 uint32_t
 #define u8  uint8_t

--IS0zKkzwUGydFO0o--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071219230002.GC52400>