Ticket #3086: mythtv_unmute.patch

File mythtv_unmute.patch, 781 bytes (added by tomfelker, 14 years ago)

patch to unmute capture card's analog audio out

  • libs/libmythtv/NuppelVideoRecorder.cpp

    diff -ur mythtv-0.20_svn11444/libs/libmythtv/NuppelVideoRecorder.cpp mythtv-0.20_svn11444_tomsfix/libs/libmythtv/NuppelVideoRecorder.cpp
    old new  
    949949            InitFilters();
    950950            DoV4L2();
    951951            return false;
    952         }
     952        } else { /* V4L2 needs unmuting */
     953         struct v4l2_control vc;
     954         memset(&vc, 0, sizeof(vc));
     955         vc.id = V4L2_CID_AUDIO_MUTE;
     956         vc.value = 0;
     957         if (ioctl(fd, VIDIOC_S_CTRL, &vc) < 0)
     958           perror("VIDIOC_S_CTRL:V4L2_CID_AUDIO_MUTE");
     959       }
     960
    953961    }
    954962
    955963    channelfd = fd;