diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-19 04:32:33 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:05:41 -0400 |
commit | 313e91e824c0c595dec3740c0c87f55eea6bdb3f (patch) | |
tree | 5e92f0e39e117c724550e0e7c8008717d287740b /drivers/media/video/ivtv/ivtv-driver.c | |
parent | 2ce55b606b29c6ab0c8583772f6807b49cc89372 (diff) |
V4L/DVB (6054): ivtv: specify some stream sizes in kB instead of MB
Some streams (PCM, VBI decoding) do not need that much memory, so specify
the allocated memory in kB instead of MB to limit memory usage. E.g. 1 MB
is overkill for the VBI decoding stream, 64 kB is enough.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-driver.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 8086c62e7545..3591518ed358 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -208,7 +208,7 @@ MODULE_PARM_DESC(enc_vbi_buffers, | |||
208 | "Encoder VBI Buffers (in MB)\n" | 208 | "Encoder VBI Buffers (in MB)\n" |
209 | "\t\t\tDefault: " __stringify(IVTV_DEFAULT_ENC_VBI_BUFFERS)); | 209 | "\t\t\tDefault: " __stringify(IVTV_DEFAULT_ENC_VBI_BUFFERS)); |
210 | MODULE_PARM_DESC(enc_pcm_buffers, | 210 | MODULE_PARM_DESC(enc_pcm_buffers, |
211 | "Encoder PCM buffers (in MB)\n" | 211 | "Encoder PCM buffers (in kB)\n" |
212 | "\t\t\tDefault: " __stringify(IVTV_DEFAULT_ENC_PCM_BUFFERS)); | 212 | "\t\t\tDefault: " __stringify(IVTV_DEFAULT_ENC_PCM_BUFFERS)); |
213 | MODULE_PARM_DESC(dec_mpg_buffers, | 213 | MODULE_PARM_DESC(dec_mpg_buffers, |
214 | "Decoder MPG buffers (in MB)\n" | 214 | "Decoder MPG buffers (in MB)\n" |
@@ -217,7 +217,7 @@ MODULE_PARM_DESC(dec_yuv_buffers, | |||
217 | "Decoder YUV buffers (in MB)\n" | 217 | "Decoder YUV buffers (in MB)\n" |
218 | "\t\t\tDefault: " __stringify(IVTV_DEFAULT_DEC_YUV_BUFFERS)); | 218 | "\t\t\tDefault: " __stringify(IVTV_DEFAULT_DEC_YUV_BUFFERS)); |
219 | MODULE_PARM_DESC(dec_vbi_buffers, | 219 | MODULE_PARM_DESC(dec_vbi_buffers, |
220 | "Decoder VBI buffers (in MB)\n" | 220 | "Decoder VBI buffers (in kB)\n" |
221 | "\t\t\tDefault: " __stringify(IVTV_DEFAULT_DEC_VBI_BUFFERS)); | 221 | "\t\t\tDefault: " __stringify(IVTV_DEFAULT_DEC_VBI_BUFFERS)); |
222 | MODULE_PARM_DESC(newi2c, | 222 | MODULE_PARM_DESC(newi2c, |
223 | "Use new I2C implementation\n" | 223 | "Use new I2C implementation\n" |
@@ -547,13 +547,13 @@ static void ivtv_process_options(struct ivtv *itv) | |||
547 | const char *chipname; | 547 | const char *chipname; |
548 | int i, j; | 548 | int i, j; |
549 | 549 | ||
550 | itv->options.megabytes[IVTV_ENC_STREAM_TYPE_MPG] = enc_mpg_buffers; | 550 | itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_MPG] = enc_mpg_buffers * 1024; |
551 | itv->options.megabytes[IVTV_ENC_STREAM_TYPE_YUV] = enc_yuv_buffers; | 551 | itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_YUV] = enc_yuv_buffers * 1024; |
552 | itv->options.megabytes[IVTV_ENC_STREAM_TYPE_VBI] = enc_vbi_buffers; | 552 | itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_VBI] = enc_vbi_buffers * 1024; |
553 | itv->options.megabytes[IVTV_ENC_STREAM_TYPE_PCM] = enc_pcm_buffers; | 553 | itv->options.kilobytes[IVTV_ENC_STREAM_TYPE_PCM] = enc_pcm_buffers; |
554 | itv->options.megabytes[IVTV_DEC_STREAM_TYPE_MPG] = dec_mpg_buffers; | 554 | itv->options.kilobytes[IVTV_DEC_STREAM_TYPE_MPG] = dec_mpg_buffers * 1024; |
555 | itv->options.megabytes[IVTV_DEC_STREAM_TYPE_YUV] = dec_yuv_buffers; | 555 | itv->options.kilobytes[IVTV_DEC_STREAM_TYPE_YUV] = dec_yuv_buffers * 1024; |
556 | itv->options.megabytes[IVTV_DEC_STREAM_TYPE_VBI] = dec_vbi_buffers; | 556 | itv->options.kilobytes[IVTV_DEC_STREAM_TYPE_VBI] = dec_vbi_buffers; |
557 | itv->options.cardtype = cardtype[itv->num]; | 557 | itv->options.cardtype = cardtype[itv->num]; |
558 | itv->options.tuner = tuner[itv->num]; | 558 | itv->options.tuner = tuner[itv->num]; |
559 | itv->options.radio = radio[itv->num]; | 559 | itv->options.radio = radio[itv->num]; |