summaryrefslogtreecommitdiff
path: root/v4l/mt352.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/mt352.c')
-rw-r--r--v4l/mt352.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/v4l/mt352.c b/v4l/mt352.c
index e41a31107..4638207be 100644
--- a/v4l/mt352.c
+++ b/v4l/mt352.c
@@ -94,17 +94,6 @@ static u8 mt352_read_register(struct mt352_state* state, u8 reg)
return b1[0];
}
-
-
-
-
-
-
-
-
-
-
-
static int mt352_sleep(struct dvb_frontend* fe)
{
static u8 mt352_softdown[] = { CLOCK_CTL, 0x20, 0x08 };
@@ -259,11 +248,15 @@ static int mt352_set_parameters(struct dvb_frontend* fe,
/* 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. */
- for (i = 1; i < 13; i++)
+ for (i = 1; i < 13; i++) {
if (buf[i] != mt352_read_register(state, i + 0x50)) {
mt352_write(fe, buf, sizeof(buf));
break;
}
+ if (8 == i && 0 == buf[i])
+ /* no tuner address given => skip that part */
+ break;
+ }
return 0;
}
@@ -565,3 +558,9 @@ MODULE_LICENSE("GPL");
EXPORT_SYMBOL(mt352_attach);
EXPORT_SYMBOL(mt352_write);
+/*
+ * Local variables:
+ * c-basic-offset: 8
+ * compile-command: "make DVB=1"
+ * End:
+ */