[PATCH] cx88: fix stereo dematrix for A2 sound system

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

 



Hi, 

Using A2 sound system, in stereo mode, the first sound channel is L+R, the 
second channel is 2*R. So the dematrix control should be SUMR instead of 
SUMDIFF. Let's use SUMR for stereo mode, and use SUMDIFF for everything 
else. (SUMDIFF is required for mono mode, because without it the right 
channel would be silent).


Signed-off-by: Marton Balint <cus@xxxxxxxxxx>
--- drivers/media/video/cx88/cx88-tvaudio.c.stereo	2008-03-17 21:31:11.000000000 +0100
+++ drivers/media/video/cx88/cx88-tvaudio.c	2008-03-21 21:31:55.000000000 +0100
@@ -626,7 +626,12 @@ static void set_audio_standard_A2(struct
 		break;
 	};
 
-	mode |= EN_FMRADIO_EN_RDS | EN_DMTRX_SUMDIFF;
+	mode |= EN_FMRADIO_EN_RDS;
+	if ((mode & 0x3f) == EN_A2_FORCE_STEREO)
+		mode |= EN_DMTRX_SUMR;
+	else
+		mode |= EN_DMTRX_SUMDIFF;
+
 	set_audio_finish(core, mode);
 }
 
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux