From: Dmitri Belimov Date: Mon, 10 Aug 2009 07:48:16 +0000 (-0300) Subject: V4L/DVB (12487): Fix control AC-3 of the 6752HS X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7ae26889635d0708bb2a0b5d21f99368abc2366c;p=linux-beck.git V4L/DVB (12487): Fix control AC-3 of the 6752HS Fix error for AC-3 control of the 6752HS MPEG-2 coder. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/saa7134/saa6752hs.c b/drivers/media/video/saa7134/saa6752hs.c index 63c4b8f1f541..1eabff6b2456 100644 --- a/drivers/media/video/saa7134/saa6752hs.c +++ b/drivers/media/video/saa7134/saa6752hs.c @@ -468,7 +468,7 @@ static int handle_ctrl(int has_ac3, struct saa6752hs_mpeg_params *params, 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;