From: Janne Grunau <j@jannau.net>
Date: Tue, 27 Jul 2010 14:01:47 +0000 (-0300)
Subject: [media] hdpvr: fix audio input setting for pre AC3 firmwares
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fe023ad15e4a9147c208e4c4cac98d7fd40ab0bd;p=openwrt%2Fstaging%2Fblogic.git

[media] hdpvr: fix audio input setting for pre AC3 firmwares

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
---

diff --git a/drivers/media/video/hdpvr/hdpvr-control.c b/drivers/media/video/hdpvr/hdpvr-control.c
index b5cd2b50f748..068df4ba3f51 100644
--- a/drivers/media/video/hdpvr/hdpvr-control.c
+++ b/drivers/media/video/hdpvr/hdpvr-control.c
@@ -168,8 +168,7 @@ int hdpvr_set_audio(struct hdpvr_device *dev, u8 input,
 		if (ret == 2)
 			ret = 0;
 	} else
-		ret = hdpvr_config_call(dev, CTRL_AUDIO_INPUT_VALUE,
-					dev->options.audio_input+1);
+		ret = hdpvr_config_call(dev, CTRL_AUDIO_INPUT_VALUE, input);
 error:
 	return ret;
 }