[mythtv] [PATCH] Capture card clipping

Colin Cross colin at colincross.com
Fri Mar 26 17:15:40 EST 2004


I posted this patch a while ago, but it was untested and I didn't get any
response.  I finally had a chance to test it, and it causes no problems on my
backend that did work before, and fixes the problem on my backend that didn't
work before.

Short recap, my bt878 backend needs the volume set to 32768, but MythTV normally
sets it to 65535.  Using the skipbtaudio option does not fix the problem - it
leaves the card muted.  This patch adds an option in the capturecard table for
the volume to set the card to, and adds a configuration box for it in the setup
program.  The only thing it doesn't do is add the entry in the table in
dbcheck.cpp because I wasn't sure who assigns database version numbers.  It
just needs "ALTER TABLE capturecard ADD COLUMN volume INT NOT NULL DEFAULT -1;"
run on the database.

If the volume is set to -1, there is no change to current functionality.  If the
volume is set to something else, it sets it in StartRecording() using code that
was already present.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythtv-bttv-volume.diff
Type: text/diff
Size: 11274 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040326/1fda57d0/mythtv-bttv-volume.bin


More information about the mythtv-dev mailing list