diff options
author | Steven Toth <stoth@kernellabs.com> | 2010-07-31 15:03:55 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 05:55:03 -0400 |
commit | 32299a1461ef080e9d8808cf1a762c59403ac63b (patch) | |
tree | 18f4cc9b0194fff568277d268ba0e486f4c354fb /drivers/media/video/saa7164 | |
parent | 46b9db2d856793526abf59b5366d2dd7b04c92b7 (diff) |
[media] saa7164: Avoid spurious error after firmware starts
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7164')
-rw-r--r-- | drivers/media/video/saa7164/saa7164-core.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/media/video/saa7164/saa7164-core.c b/drivers/media/video/saa7164/saa7164-core.c index 8879517d974a..b1efbeae8598 100644 --- a/drivers/media/video/saa7164/saa7164-core.c +++ b/drivers/media/video/saa7164/saa7164-core.c | |||
@@ -163,14 +163,21 @@ static void saa7164_ts_verifier(struct saa7164_buffer *buf) | |||
163 | 163 | ||
164 | } | 164 | } |
165 | 165 | ||
166 | if (port->v_cc_errors) | 166 | /* Only report errors if we've been through this function atleast |
167 | * once already and the cached cc values are primed. First time through | ||
168 | * always generates errors. | ||
169 | */ | ||
170 | if (port->v_cc_errors && (port->done_first_interrupt > 1)) | ||
167 | printk(KERN_ERR "video pid cc, %d errors\n", port->v_cc_errors); | 171 | printk(KERN_ERR "video pid cc, %d errors\n", port->v_cc_errors); |
168 | 172 | ||
169 | if (port->a_cc_errors) | 173 | if (port->a_cc_errors && (port->done_first_interrupt > 1)) |
170 | printk(KERN_ERR "audio pid cc, %d errors\n", port->a_cc_errors); | 174 | printk(KERN_ERR "audio pid cc, %d errors\n", port->a_cc_errors); |
171 | 175 | ||
172 | if (port->sync_errors) | 176 | if (port->sync_errors && (port->done_first_interrupt > 1)) |
173 | printk(KERN_ERR "sync_errors = %d\n", port->sync_errors); | 177 | printk(KERN_ERR "sync_errors = %d\n", port->sync_errors); |
178 | |||
179 | if (port->done_first_interrupt == 1) | ||
180 | port->done_first_interrupt++; | ||
174 | } | 181 | } |
175 | 182 | ||
176 | static void saa7164_histogram_reset(struct saa7164_histogram *hg, char *name) | 183 | static void saa7164_histogram_reset(struct saa7164_histogram *hg, char *name) |