diff options
author | Steven Toth <stoth@kernellabs.com> | 2010-07-31 15:06:49 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 07:54:50 -0200 |
commit | 9230acaac461c492ff9dea24bbe6a7f568b62cf6 (patch) | |
tree | 87e073c93af1d28a88db076a13f00414857703e0 /drivers/media/video/saa7164/saa7164.h | |
parent | 5fa56ccdacc54f5f694141c1a74f781cf77874bb (diff) | |
download | lwn-9230acaac461c492ff9dea24bbe6a7f568b62cf6.tar.gz lwn-9230acaac461c492ff9dea24bbe6a7f568b62cf6.zip |
[media] saa7164: patches to monitor TS payload for inconsistencies
... and report errors to console. (Debugging a DMA buffering issue).
These are made optional in later patches.
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7164/saa7164.h')
-rw-r--r-- | drivers/media/video/saa7164/saa7164.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/video/saa7164/saa7164.h b/drivers/media/video/saa7164/saa7164.h index ef98a958b75e..25044a0de8b0 100644 --- a/drivers/media/video/saa7164/saa7164.h +++ b/drivers/media/video/saa7164/saa7164.h @@ -375,6 +375,13 @@ struct saa7164_port { struct saa7164_buffer list_buf_used; struct saa7164_buffer list_buf_free; wait_queue_head_t wait_read; + + /* Debug */ + u32 sync_errors; + u32 v_cc_errors; + u32 a_cc_errors; + u8 last_v_cc; + u8 last_a_cc; }; struct saa7164_dev { @@ -521,6 +528,7 @@ extern int saa7164_buffer_cfg_port(struct saa7164_port *port); extern struct saa7164_user_buffer *saa7164_buffer_alloc_user( struct saa7164_dev *dev, u32 len); extern void saa7164_buffer_dealloc_user(struct saa7164_user_buffer *buf); +extern int saa7164_buffer_zero_offsets(struct saa7164_port *port, int i); /* ----------------------------------------------------------- */ |