diff options
author | Andy Walls <awalls@radix.net> | 2008-12-07 21:30:17 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:38:29 -0500 |
commit | 6ecd86dcc838fa446ec86334a9fe0c1e415e3514 (patch) | |
tree | df04619a856f7adaa5cfed62df396a2aa2375c67 /drivers/media/video/cx18/cx18-driver.h | |
parent | 66c2a6b0bc0b394d215768610d96f44cf97052ac (diff) |
V4L/DVB (9802): cx18: Add module parameters for finer control over buffer allocations
cx18: Add module parameters for finer control over buffer allocations.
User now has the option of setting smaller buffers to get lower
latency transfers from the encoder. User can also now set the number
of buffers used for a stream explicitly.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.h')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h index 4d56d07195b6..29c296f39f91 100644 --- a/drivers/media/video/cx18/cx18-driver.h +++ b/drivers/media/video/cx18/cx18-driver.h | |||
@@ -115,6 +115,17 @@ | |||
115 | #define CX18_DEFAULT_ENC_VBI_BUFFERS 1 | 115 | #define CX18_DEFAULT_ENC_VBI_BUFFERS 1 |
116 | #define CX18_DEFAULT_ENC_PCM_BUFFERS 1 | 116 | #define CX18_DEFAULT_ENC_PCM_BUFFERS 1 |
117 | 117 | ||
118 | /* Maximum firmware DMA buffers per stream */ | ||
119 | #define CX18_MAX_MDLS_PER_STREAM 63 | ||
120 | |||
121 | /* DMA buffer, default size in kB allocated */ | ||
122 | #define CX18_DEFAULT_ENC_TS_BUFSIZE 32 | ||
123 | #define CX18_DEFAULT_ENC_MPG_BUFSIZE 32 | ||
124 | #define CX18_DEFAULT_ENC_IDX_BUFSIZE 32 | ||
125 | #define CX18_DEFAULT_ENC_YUV_BUFSIZE 128 | ||
126 | /* Default VBI bufsize based on standards supported by card tuner for now */ | ||
127 | #define CX18_DEFAULT_ENC_PCM_BUFSIZE 4 | ||
128 | |||
118 | /* i2c stuff */ | 129 | /* i2c stuff */ |
119 | #define I2C_CLIENTS_MAX 16 | 130 | #define I2C_CLIENTS_MAX 16 |
120 | 131 | ||
@@ -408,6 +419,7 @@ struct cx18 { | |||
408 | 419 | ||
409 | struct mutex serialize_lock; /* mutex used to serialize open/close/start/stop/ioctl operations */ | 420 | struct mutex serialize_lock; /* mutex used to serialize open/close/start/stop/ioctl operations */ |
410 | struct cx18_options options; /* User options */ | 421 | struct cx18_options options; /* User options */ |
422 | int stream_buffers[CX18_MAX_STREAMS]; /* # of buffers for each stream */ | ||
411 | int stream_buf_size[CX18_MAX_STREAMS]; /* Stream buffer size */ | 423 | int stream_buf_size[CX18_MAX_STREAMS]; /* Stream buffer size */ |
412 | struct cx18_stream streams[CX18_MAX_STREAMS]; /* Stream data */ | 424 | struct cx18_stream streams[CX18_MAX_STREAMS]; /* Stream data */ |
413 | unsigned long i_flags; /* global cx18 flags */ | 425 | unsigned long i_flags; /* global cx18 flags */ |