From: Mauro Carvalho Chehab <m.chehab@samsung.com>
Date: Fri, 4 Jul 2014 17:15:30 +0000 (-0300)
Subject: [media] dib8000: Fix: add missing 4K FFT mode
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7fec1c80a78eefd898d09e6b6732e05eb1b80977;p=linux.git

[media] dib8000: Fix: add missing 4K FFT mode

Without that, tuning may fail on 4K FFT mode, as the transmission
parameter cache will be initialized with a wrong value.

Acked-By: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
---

diff --git a/drivers/media/dvb-frontends/dib8000.c b/drivers/media/dvb-frontends/dib8000.c
index 43d1261afba01..d4f37f569c5ca 100644
--- a/drivers/media/dvb-frontends/dib8000.c
+++ b/drivers/media/dvb-frontends/dib8000.c
@@ -3432,6 +3432,9 @@ static int dib8000_get_frontend(struct dvb_frontend *fe)
 	case 1:
 		fe->dtv_property_cache.transmission_mode = TRANSMISSION_MODE_2K;
 		break;
+	case 2:
+		fe->dtv_property_cache.transmission_mode = TRANSMISSION_MODE_4K;
+		break;
 	case 3:
 	default:
 		fe->dtv_property_cache.transmission_mode = TRANSMISSION_MODE_8K;