[mythtv] Avermedia M150-D

Sam Logen starz909 at yahoo.com
Sat Oct 27 21:07:40 UTC 2007


Hi all,

I've been using a version of this patch provided
graciously by Andrew for getting my Avermedia M150 to
work in my 20.2 version of Mythtv.  The patch, though,
was made for the SVN revision 14704.  After I upgraded
to the SVN revision 14737 and added the patch, mythtv
no longer builds, but errors and quits.  Anyone know
how this patch is breaking the make process for the
new SVN revisions?  Without the patch, mythtv builds,
installs, and runs fine - except it cannot use the
Avermedia card anymore.

I'm currently building mythtv again with the patch so
I can copy and post the build error.

Sam

------------------------
Howdy - I have the same card running on drivers
checked out from here:
http://linuxtv.org/hg/~mkrufky/blackbird/
built against a 2.6.23 kernel, with mythtv source from
SVN at rev 14704

I was able to get the card to play nice as an MPEG2
encoder card
 (everything 
working for ONE computer with ONE tuner card,) by
following the patch
 at the 
bottom of this post.

BIG FAT WARNING this was the first time I've mucked
with mythv sources
 so I 
have no idea what this might break. I just wanted live
TV to work and I
 was 
getting frustrated that mplayer would play video from
my card, but
 mythtv 
would not.

Good luck, YMMV.
Andrew

Index: libs/libmythtv/mpegrecorder.cpp
===================================================================
--- libs/libmythtv/mpegrecorder.cpp     (revision
14704)
+++ libs/libmythtv/mpegrecorder.cpp     (working copy)
@@ -324,7 +324,7 @@

 bool MpegRecorder::OpenV4L2DeviceAsInput(void)
 {
-    chanfd = open(videodevice.ascii(), O_RDWR);
+    chanfd = open(videodevice.ascii(), O_RDWR |
O_NONBLOCK);
     if (chanfd < 0)
     {
         VERBOSE(VB_IMPORTANT, LOC_ERR + "Can't open
video device. " +
 ENO);
@@ -447,7 +447,7 @@

     SetVBIOptions(chanfd);

-    readfd = open(videodevice.ascii(), O_RDWR |
O_NONBLOCK);
+    readfd = chanfd;
     if (readfd < 0)
     {
         VERBOSE(VB_IMPORTANT, LOC_ERR + "Can't open
video device." +
 ENO);


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the mythtv-dev mailing list