[PATCH] Fix control AC-3 of the 6752HS
Dmitri Belimov <[email protected]>
| Newsgroups | gmane.linux.drivers.video-input-infrastructure,gmane.comp.video.video4linux |
|---|---|
| Message-ID | <[email protected]> |
Hi All Fix error for AC-3 control of the 6752HS MPEG-2 coder. 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 <[email protected]> With my best regards, Dmitry.
6752hs_ac3_ctrl.patch
(text/x-patch, 586 B)
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 <[email protected]>