diff mbox

AVerTV MCE 116 Plus radio

Message ID 20091011010039.GA4726@moon (mailing list archive)
State Rejected
Headers show

Commit Message

Aleksandr V. Piskunov Oct. 11, 2009, 1:01 a.m. UTC
None
diff mbox

Patch

diff --git a/linux/drivers/media/video/cx25840/cx25840-core.c b/linux/drivers/media/video/cx25840/cx25840-core.c
--- a/linux/drivers/media/video/cx25840/cx25840-core.c
+++ b/linux/drivers/media/video/cx25840/cx25840-core.c
@@ -626,7 +642,13 @@ 
 	if (state->radio) {
 		cx25840_write(client, 0x808, 0xf9);
 		cx25840_write(client, 0x80b, 0x00);
-	}
+		/* Double reset cx2384x after setting FM radio mode, helps to
+		   avoid "tinny" audio when ivtv I2C bus is being run on
+		   frequency higher than 30 KHz */
+		cx25840_and_or(client, 0x810, ~0x01, 0);
+		msleep(50);
+		cx25840_and_or(client, 0x810, ~0x01, 1);
+	}	
 	else if (std & V4L2_STD_525_60) {
 		/* Certain Hauppauge PVR150 models have a hardware bug
 		   that causes audio to drop out. For these models the