[mythtv-users] Per Card Volume Control Bounty started
Tom Lichti
tom at redpepperracing.com
Fri Sep 8 23:08:33 UTC 2006
Anduin Withers wrote:
>> Could you point me to the area of the code that sets the volume for
>> recording? I tried looking once and got totally lost...
>>
>
> For your standard ivtv card:
>
> libs/libmythtv/mpegrecorder.cpp in the OpenV4L2DeviceAsInput function.
>
>
Ok, I've removed the code that sets the volume as below, any negative
ramifications you can see?
Thanks
Tom
Index: libs/libmythtv/mpegrecorder.cpp
===================================================================
--- libs/libmythtv/mpegrecorder.cpp (revision 11073)
+++ libs/libmythtv/mpegrecorder.cpp (working copy)
@@ -322,6 +322,7 @@
return false;
}
+/* Trying to remove audio setting
struct v4l2_control ctrl;
ctrl.id = V4L2_CID_AUDIO_VOLUME;
ctrl.value = 65536 / 100 *audvolume;
@@ -335,7 +336,7 @@
if (!SetIVTVDeviceOptions(chanfd) && !SetV4L2DeviceOptions(chanfd))
return false;
-
+*/
readfd = open(videodevice.ascii(), O_RDWR | O_NONBLOCK);
if (readfd < 0)
{
More information about the mythtv-users
mailing list