Date: Thu, 09 Dec 2010 20:08:33 +0000 From: Bernhard Froehlich <decke@FreeBSD.org> To: Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> Cc: freebsd-multimedia@FreeBSD.org Subject: Re: MythTV 0.23.1 and PVR-500 Message-ID: <4527be32dde950f11e72018cb92bcb30@bluelife.at> In-Reply-To: <30b41900556a2d54a8dd02d41fc6a1ec@bluelife.at> References: <20101209140056.4c1d98c0.torfinn.ingolfsen@broadpark.no> <30b41900556a2d54a8dd02d41fc6a1ec@bluelife.at>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Thu, 09 Dec 2010 15:24:23 +0000, Bernhard Froehlich <decke@bluelife.at> wrote: > On Thu, 09 Dec 2010 14:00:56 +0100, Torfinn Ingolfsen > <torfinn.ingolfsen@broadpark.no> wrote: >> Hello, >> >> I am testing MythTV 0.23.1 from ports on my main MythTV machine[1], >> running FreeBSD 8.1 (slightly old): >> root@kg-fil# uname -a >> FreeBSD kg-fil.kg4.no 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #4: Fri >> May 21 00:20:01 CEST 2010 >> root@kg-fil.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 >> root@kg-fil# portversion -v | grep mythtv >> mythtv-0.23.1 = up-to-date with port >> >> >> The machine has a PVR-500 card, and I am using this driver (patched >> to work with 8.x): >> root@kg-fil# portversion -v | grep pvr >> pvrxxx-09042008 < needs updating (port has 20060822_1) >> The driver works with mplayer, tested like this: >> pvr250-setchannel -d 0 -t 147.25 >> mplayer /dev/cxm0 >> >> (and the same for /dev/cxm1). >> >> Note: I tried the updated pvr250 driver as well, but it doesn't want >> to detect / use the tuners of my card. >> >> >> The port installed fine, but LiveTV (or anything lese to do with the >> PVR-500 card) isn't working. >> Output from /var/log/mythbackend.log: >> 2010-12-09 13:31:25.223 MainServer::ANN Playback >> 2010-12-09 13:31:25.223 adding: kg-fil.kg4.no as a client (events: 0) >> 2010-12-09 13:31:25.240 TVRec(1): Changing from None to WatchingLiveTV >> 2010-12-09 13:31:25.246 TVRec(1): HW Tuner: 1->1 >> 2010-12-09 13:31:25.928 ProgramInfo(): Updated pathname '':'' -> >> '1000_20101209133125.mpg' >> 2010-12-09 13:31:25.937 >> >> Not ivtv or pvrusb2 or hdpvr driver > > I'm aware of this problem but you're obviously the only mythtv user on > FreeBSD that uses that driver because it's happening since the 0.23 > update. Could you please try it with the 0.24 port that is already > mostly finished? I want to commit the update around christmas. > > http://svn.bluelife.at/nightlies/blueports.tar.gz Could you please try the attached patch? It's against mythtv 0.24 and enables mythtv to detect CXM driver like ivtv - we'll see if that is enough to make it working or just opens a new gate to hell. http://home.bluelife.at/patches/patch-libs__libmythtv__mpegrecorder.cpp -- Bernhard Froehlich http://www.bluelife.at/ [-- Attachment #2 --] --- libs/libmythtv/mpegrecorder.cpp.orig 2010-09-30 17:50:17.000000000 +0200 +++ libs/libmythtv/mpegrecorder.cpp 2010-12-09 20:59:53.000000000 +0100 @@ -398,7 +398,7 @@ if (CardUtil::GetV4LInfo(chanfd, card, driver, version)) { - if (driver == "ivtv") + if (driver == "ivtv" || driver == "CXM") { bufferSize = 4096; usingv4l2 = (version >= IVTV_KERNEL_VERSION(0, 8, 0)); @@ -435,6 +435,8 @@ } } + VERBOSE(VB_IMPORTANT, QString("card %1 driver %2 version %3") + .arg(card).arg(driver).arg(version)); VERBOSE(VB_RECORD, LOC + QString("usingv4l2(%1) has_v4l2_vbi(%2) " "has_buggy_vbi(%3)") .arg(usingv4l2).arg(has_v4l2_vbi).arg(has_buggy_vbi)); @@ -615,7 +617,7 @@ { uint st = (uint) streamtype; - if (driver == "ivtv") + if (driver == "ivtv" || driver == "CXM") { switch (st) { @@ -644,7 +646,7 @@ { uint sr = (uint) audsamplerate; - sr = (driver == "ivtv") ? 48000 : sr; // only 48kHz works properly. + sr = (driver == "ivtv" || driver == "CXM") ? 48000 : sr; // only 48kHz works properly. if (sr != (uint) audsamplerate) { @@ -669,7 +671,7 @@ layer = max(min(layer, 3U), 1U); - layer = (driver == "ivtv") ? 2 : layer; + layer = (driver == "ivtv" || driver == "CXM") ? 2 : layer; if (layer != (uint) audtype) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4527be32dde950f11e72018cb92bcb30>
