Re: AVerMedia neverending story...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> * enabled the avermedia tvphone audio hook.  switching to stereo
>   should work now.
> 
> the problem is - switching to stereo works perfect with tda9840 chip,

There are different models out there.

> bttv-0.7.54 seems work well too, but after I quit xawtv - the sound is not
> muted, so I must "rmmod bttv" to switch it off

That's because the avermedia_tvphone_audio() hook touches to much bits.
The patch below should fix that.  Hope I did'nt broke something else...

  Gerd

---------------------------- cut here ----------------------------
diff -urN bttv-0.7.54/driver/bttv-cards.c ./driver/bttv-cards.c
--- bttv-0.7.54/driver/bttv-cards.c	Thu Jan 18 20:55:23 2001
+++ ./driver/bttv-cards.c	Sun Jan 21 11:07:13 2001
@@ -280,9 +280,9 @@
 	audio_inputs:	1,
 	tuner:		0,
 	svhs:		2,
-	gpiomask:	0x1000f,
+	gpiomask:	0x3000f,
 	muxsel:		{ 2, 3, 1, 1},
-	audiomux:	{1,0x10001, 0, 0,10},
+	audiomux:	{ 1,0x10001, 0, 0,10},
 	needs_tvaudio:	1,
 	tuner_type:	-1,
 },{
@@ -637,9 +637,13 @@
 	audio_inputs:	4,
 	tuner:		0,
 	svhs:		2,
+/* old entries
 	gpiomask:	12,
-	muxsel:		{ 2, 3, 1, 1},
 	audiomux:	{ 13, 14, 11, 7, 0, 0},
+ */
+	gpiomask:	0x0f,
+	muxsel:		{ 2, 3, 1, 1},
+	audiomux:	{ 0x04, 0x04, 0x08, 0x04, 0},
 	needs_tvaudio:	1,
 	pll:		PLL_28,
 	tuner_type:	5,
@@ -1415,12 +1419,11 @@
 
 	if (set) {
 		if (v->mode & VIDEO_SOUND_LANG1)   /* SAP */
-			val = 0xce;
+			val = 0x02;
 		if (v->mode & VIDEO_SOUND_STEREO)
-			val = 0xcd;
+			val = 0x01;
 		if (val) {
-			btaor(val, 0xff, BT848_GPIO_OUT_EN);
-			btaor(val, 0xff, BT848_GPIO_DATA);
+			btaor(val, 0x03, BT848_GPIO_DATA);
 			if (bttv_gpio)
 				bttv_gpio_tracking(btv,"avermedia");
 		}





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux