[mythtv] [PATCH] mono support

Emil Friis mythtv-dev@snowman.net
Mon, 18 Nov 2002 06:37:46 -0800 (PST)


Jim, I guess I never saw your email. I also have an AverTV
Stereo card which i bought from CompUSA. The problem with
the card is that the bttv driver doesn't know the card. I
even downloaded the latest version from
http://www.bytesex.org/bttv and no success on autodetection.
When I look at dmesg the card gets autodetected as card 13
and everything works except for the audio being the SAP
channel. I didn't find any solutions anywhere but finally
figured out that the audiomux settings for the autodetected
card were to blame.

Using bttools in Windows with the drivers installed I
figured out that the correct setting to get stereo sound is
0xff44e. So:

modprobe bttv audiomux=0xff44e

For some reason it didn't seem to work from modules.autoload
so I had to manually rmmod and modprobe every time. That
gave me problems when I got the second card though because
when you modprobe bttv it detects both cards and the other
card didn't like the audiomux setting.

My solution was to go to the bttv source (bttv-cards.c),
change the first value in the audiomux array to 0xff44e,
make, make install and modprobe bttv. Now everything works
just fine without having to put any arguments on bttv.

-Emil

On Mon, 18 Nov 2002 06:13:27 -0800 (PST), Isaac Richards
wrote:

> 
> On Wednesday 13 November 2002 08:33 pm, Jim Radford wrote:
> > So far I haven't been able to get my cheap AverTV Stereo
> card to
> > actually work in stereo, so I needed this patch to kill
> the chipmunks.
> > The audio is still out of sync though.  Isaac, can you
> think of any
> > other places that need to be updated?  I don't understand
> how the
> > audio is synced yet.
> 
> Yeah -- all the calculations in the audio sync code assume
> that the audio is 
> stereo.  You'd need to fix those assumptions as well. 
Bunch
> of magic numbers 
> in the player code..  It might be easier just to open the
> device as mono as 
> you are currently, then transform the audio buffer to
stereo
> real quick after 
> reading the data from the sound card, or even just use
> lame_encode_buffer() 
> instead of lame_encode_buffer_interleaved() and duplicate
> the mono channel to 
> stereo that way.
> 
> Isaac
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@snowman.net
> <a
href="http://mail.telocity.com/jump/http://www.snowman.net/mailman/listinfo/mythtv-dev">http://www.snowman.net/mailman/listinfo/mythtv-dev</a>