[mythtv-users] How to issue command when starting a new recording?
Jack Wrobbel
mythtv-users at thewubs.dnsalias.com
Thu Oct 6 04:56:16 UTC 2005
On Wed, 2005-10-05 at 03:16, kanetse at gmail.com wrote:
> I have this problem where (for some unknown reason), MythTV will mute
> my TV card's audio out periodically. This results in recordings with
> no audio. It's not a frontend or sound card issue. I have found it
> can be re-enabled by issuing a command to the v4l driver, namely,
> "v4lctl volume mute off".
>
I saw this with my BT card quite a while ago. The following patch
seemed to fix it for me. It unmutes the card whenever a recording
starts. YMMV
Jack
Index: libs/libmythtv/NuppelVideoRecorder.cpp
===================================================================
--- libs/libmythtv/NuppelVideoRecorder.cpp (revision 7195)
+++ libs/libmythtv/NuppelVideoRecorder.cpp (working copy)
@@ -1033,16 +1043,32 @@
perror("VIDIOCGCHAN");
// if channel has a audio then activate it
+/* jmw start */
+#if 0
if (!skip_btaudio && (vchan.flags & VIDEO_VC_AUDIO) ==
VIDEO_VC_AUDIO) {
+#else
+ if ((vchan.flags & VIDEO_VC_AUDIO) == VIDEO_VC_AUDIO) {
+#endif
+/* jmw end */
if (ioctl(fd, VIDIOCGAUDIO, &va)<0)
perror("VIDIOCGAUDIO");
+
+/* jmw start */
+ VERBOSE(VB_GENERAL, "-----------Unmuting BTTV
card----------------");
va.flags &= ~VIDEO_AUDIO_MUTE; // now this really has to work
- va.volume = volume * 65535 / 100;
+ if (!skip_btaudio ) {
+ va.volume = volume * 65535 / 100;
+ } else {
+ VERBOSE(VB_GENERAL, "Would have skipped Unmute.");
+ }
if (ioctl(fd, VIDIOCSAUDIO, &va) < 0)
perror("VIDIOCSAUDIO");
+
+
+/* jmw end */
//if (ioctl(fd, VIDIOCSCHAN, &vchan) < 0)
// perror("VIDIOCSCHAN");
}
More information about the mythtv-users
mailing list