Skip to contentSkip to conversation

Fix control AC-3 of the 6752HS

PATCH New Dmitri Belimov 1 participant 1 message Aug 10, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix control AC-3 of the 6752HS

Hi All

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

linux/drivers/media/video/saa7134/saa6752hs.c +1 -1
diff -r e72c463783ab linux/drivers/media/video/saa7134/saa6752hs.c
@@ -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;

With my best regards, Dmitry.

linux/drivers/media/video/saa7134/saa6752hs.c +1 -1
diff -r e72c463783ab linux/drivers/media/video/saa7134/saa6752hs.c
@@ -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;