[DVB patch 05/48] mt352: Pinnacle 300i comments

Johannes Stezenbach
2005-03-22T03:45:03Z

[-- Attachment #1: dvb-frontends-mt352-comments.patch --]
[-- Type: text/plain, Size: 1263 bytes --]

Comment preliminary Pinnacle 300i changes to the mt352 driver.

Signed-off-by: Johannes Stezenbach <js@linuxtv.org>

mt352.c | 4 ++++
1 files changed, 4 insertions(+)

Index: linux-2.6.12-rc1-mm1/drivers/media/dvb/frontends/mt352.c
===================================================================
--- linux-2.6.12-rc1-mm1.orig/drivers/media/dvb/frontends/mt352.c 2005-03-21 23:27:59.000000000 +0100
+++ linux-2.6.12-rc1-mm1/drivers/media/dvb/frontends/mt352.c 2005-03-22 00:14:46.000000000 +0100
@@ -294,6 +294,8 @@ static int mt352_set_parameters(struct d
state->config->pll_set(fe, param, buf+8);

#if 0 /* FIXME: should be catched elsewhere ... */
+ /* this dubious code which helped on some cards does not work for
+ * the pinnacle 300i */
/* Only send the tuning request if the tuner doesn't have the requested
* parameters already set. Enhances tuning time and prevents stream
* breakup when retuning the same transponder. */
@@ -435,6 +437,8 @@ static int mt352_read_status(struct dvb_
{
struct mt352_state* state = (struct mt352_state*) fe->demodulator_priv;
#if 1
+ /* the pinnacle 300i loses lock if the STATUS_x registers
+ * are polled too often... */
int val;

if (0 != mt352_read_register(state, INTERRUPT_0)) {

--