All of lore.kernel.org
 help / color / mirror / Atom feed
* pvrusb2: fix 7MHz & 8MHz DVB-T tuner support for HVR1900 rev D1F5
@ 2012-02-07 17:08 Michael Krufky
  2012-02-24 19:27 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Krufky @ 2012-02-07 17:08 UTC (permalink / raw)
  To: Mike Isely; +Cc: linux-media, Communications nexus for pvrusb2 driver, stable

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

There are some new revisions of the HVR-1900 around whose DVB-T
support is broken without this small bug-fix.  Please merge asap -
this fix needs to go to stable kernels as well.  It applies cleanly
against *all* recent kernels.

The following changes since commit 805a6af8dba5dfdd35ec35dc52ec0122400b2610:

  Linux 3.2 (2012-01-04 15:55:44 -0800)

are available in the git repository at:
  git://linuxtv.org/mkrufky/hauppauge surrey

Michael Krufky (1):
      pvrusb2: fix 7MHz & 8MHz DVB-T tuner support for HVR1900 rev D1F5

 drivers/media/video/pvrusb2/pvrusb2-devattr.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

[-- Attachment #2: 0001-pvrusb2-fix-7MHz-8MHz-DVB-T-tuner-support-for-HVR190.patch --]
[-- Type: text/x-patch, Size: 1894 bytes --]

From 7202e49582611ccd70e93db8b8f75c0811015444 Mon Sep 17 00:00:00 2001
From: Michael Krufky <mkrufky@linuxtv.org>
Date: Tue, 7 Feb 2012 11:28:33 -0500
Subject: [PATCH] pvrusb2: fix 7MHz & 8MHz DVB-T tuner support for HVR1900 rev
 D1F5

The D1F5 revision of the WinTV HVR-1900 uses a tda18271c2 tuner
instead of a tda18271c1 tuner as used in revision D1E9. To
account for this, we must hardcode the frontend configuration
to use the same IF frequency configuration for both revisions
of the device.

6MHz DVB-T is unaffected by this issue, as the recommended
IF Frequency configuration for 6MHz DVB-T is the same on both
c1 and c2 revisions of the tda18271 tuner.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Mike Isely <isely@pobox.com>
Cc: stable@kernel.org
---
 drivers/media/video/pvrusb2/pvrusb2-devattr.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.c b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
index c6da8f7..d8c8982 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-devattr.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
@@ -320,7 +320,17 @@ static struct tda829x_config tda829x_no_probe = {
 	.probe_tuner = TDA829X_DONT_PROBE,
 };
 
+static struct tda18271_std_map hauppauge_tda18271_dvbt_std_map = {
+        .dvbt_6   = { .if_freq = 3300, .agc_mode = 3, .std = 4,
+                      .if_lvl = 1, .rfagc_top = 0x37, },
+        .dvbt_7   = { .if_freq = 3800, .agc_mode = 3, .std = 5,
+                      .if_lvl = 1, .rfagc_top = 0x37, },
+        .dvbt_8   = { .if_freq = 4300, .agc_mode = 3, .std = 6,
+                      .if_lvl = 1, .rfagc_top = 0x37, },
+};
+
 static struct tda18271_config hauppauge_tda18271_dvb_config = {
+	.std_map = &hauppauge_tda18271_dvbt_std_map,
 	.gate    = TDA18271_GATE_ANALOG,
 	.output_opt = TDA18271_OUTPUT_LT_OFF,
 };
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-27 16:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-07 17:08 pvrusb2: fix 7MHz & 8MHz DVB-T tuner support for HVR1900 rev D1F5 Michael Krufky
2012-02-24 19:27 ` Mauro Carvalho Chehab
2012-02-27 10:15   ` Michael Krufky
2012-02-27 11:44     ` Mauro Carvalho Chehab
2012-02-27 16:09       ` Michael Krufky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.