From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 19 23:26:02 2007 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB17416A469 for ; Wed, 19 Dec 2007 23:26:02 +0000 (UTC) (envelope-from mathew.kanner@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id 63A8C13C459 for ; Wed, 19 Dec 2007 23:26:02 +0000 (UTC) (envelope-from mathew.kanner@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so515904pyb.3 for ; Wed, 19 Dec 2007 15:26:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:organization:from; bh=yMYG5GWKpnf+tI9/EiE5yiGHClA0dFYElZhFxF+s+kU=; b=fdww0EeyH9LOh/odTmK+60DHqihHBYqgKCfao1/ErC07aU6fmnheCF/fUW+36Gq6bsXq2g1DhgwD7QzMMbcwIRSspVXNf91L0CsoVRZs97zBFgqbEhIRxiVPdKU2/XCeVdtI198osDTQq40ody3PdqQAbPBZSuGRb4iep0YcAEk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:organization:from; b=TdpVKiQBnB+4FUgURpRZVoLLDDnHcpaXyAZelrbQ2An9PeFotWbM41mkVUPxGjHfcyJLyK7P+bitoTfZ/mgV3yxEOZYSl6/4vDwyifhysDhmHaHAQpaOKBLkSuEf+XzBJ/m/zDChLl9WxASzBax58xX2h+JsvMyAt0kJaWjZuZA= Received: by 10.65.204.7 with SMTP id g7mr14465510qbq.73.1198105204912; Wed, 19 Dec 2007 15:00:04 -0800 (PST) Received: from localhost ( [74.57.16.159]) by mx.google.com with ESMTPS id q15sm5427904qbq.2007.12.19.15.00.03 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Dec 2007 15:00:03 -0800 (PST) Date: Wed, 19 Dec 2007 18:00:02 -0500 To: Danny Pansters Message-ID: <20071219230002.GC52400@tube5.mine.nu> References: <200712191659.28032.danny@ricin.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: <200712191659.28032.danny@ricin.com> User-Agent: Mutt/1.4.2.3i Organization: I speak for myself, operating in Montreal, CANADA From: User Mat Cc: multimedia@freebsd.org Subject: Re: PVR-150 on 6-STABLE: success and mini HOWTO X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2007 23:26:02 -0000 --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 -#else - #include -#endif - #define u16 uint16_t #define u32 uint32_t #define u8 uint8_t --IS0zKkzwUGydFO0o--