diff mbox

Fix control AC-3 of the 6752HS

Message ID 20090810174816.61e7a34e@glory.loctelecom.ru (mailing list archive)
State Accepted
Headers show

Commit Message

Dmitri Belimov Aug. 10, 2009, 7:48 a.m. UTC
Hi All

Fix error for AC-3 control of the 6752HS MPEG-2 coder.


Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>


With my best regards, Dmitry.
diff mbox

Patch

diff -r e72c463783ab linux/drivers/media/video/saa7134/saa6752hs.c
--- a/linux/drivers/media/video/saa7134/saa6752hs.c	Sat Aug 08 03:28:41 2009 -0300
+++ b/linux/drivers/media/video/saa7134/saa6752hs.c	Mon Aug 10 12:41:30 2009 +1000
@@ -475,7 +475,7 @@ 
 		if (set && new != V4L2_MPEG_AUDIO_ENCODING_LAYER_2 &&
 		    (!has_ac3 || new != V4L2_MPEG_AUDIO_ENCODING_AC3))
 			return -ERANGE;
-		new = old;
+		params->au_encoding = new;
 		break;
 	case V4L2_CID_MPEG_AUDIO_L2_BITRATE:
 		old = params->au_l2_bitrate;

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>