[mythtv-users] muted volume until channel change

Duncan Sargeant dunc-mythtv at rcpt.to
Fri Aug 1 15:38:32 EDT 2003


I have this wierd bug where mythtv mutes the audio until the channel is
changed.  Thus, only Live TV is possible, and recording results in muted
audio.  I debugged until I was blue in the face, but all I could see is
that mythtv does exactly the same thing as xawtv (but xawtv doesn't have
this problem).

My own fix is attached - a patch to NupperVideoRecorder.cpp to set the
channel ioctl with the same values we just read from the ioctl a few
lines back - i.e. set the channel to the current channel please!  It
appears the audio ioctl on the previous line will mute the audio no
matter whether we are trying to or not :-(

The card is a Pixelview PV-BT878P+9B, module options are:

options bttv card=72 radio=1
pre-install bttv insmod tuner type=5

Anybody have the same problem and come up with a solution?

,dunc
-------------- next part --------------
--- libs/libmythtv/NuppelVideoRecorder.cpp	31 Jul 2003 17:25:46 -0000	1.129
+++ libs/libmythtv/NuppelVideoRecorder.cpp	1 Aug 2003 02:32:10 -0000
@@ -828,6 +828,8 @@
         }
         if (ioctl(fd, VIDIOCSAUDIO, &va)<0) 
             perror("VIDIOCSAUDIO");
+        if (ioctl(fd, VIDIOCSCHAN, &vchan) < 0) 
+            perror("VIDIOCSCHAN");
     } 
     else 
     {



More information about the mythtv-users mailing list