From b7b8a326eaf65e404f9483e3d918d3af3a8d9531 Mon Sep 17 00:00:00 2001
From: Miroslav Slugeň <thunde...@email.cz>
Date: Sun, 11 Dec 2011 22:56:15 +0100
Subject: [PATCH] Put analog radio and analog TV together both required same offset.

---
 drivers/media/common/tuners/tuner-xc2028.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c
index 3acbaa0..95b8c79 100644
--- a/drivers/media/common/tuners/tuner-xc2028.c
+++ b/drivers/media/common/tuners/tuner-xc2028.c
@@ -942,12 +942,10 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
 	 */
 	switch (new_type) {
 	case V4L2_TUNER_ANALOG_TV:
+	case V4L2_TUNER_RADIO:
 		rc = send_seq(priv, {0x00, 0x00});
 
-		/* Analog mode requires offset = 0 */
-		break;
-	case V4L2_TUNER_RADIO:
-		/* Radio mode requires offset = 0 */
+		/* Analog modes requires offset = 0 */
 		break;
 	case V4L2_TUNER_DIGITAL_TV:
 		/*
-- 
1.7.2.3

Reply via email to