diff options
author | Andy Walls <awalls@radix.net> | 2009-01-30 22:33:02 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:38 -0400 |
commit | 302df9702192a68578916ef922c33370cbba350d (patch) | |
tree | eab3173a4b82ec26c89b82c50e9bfb0fe2477953 /drivers/media/video/cx18/cx18-controls.c | |
parent | 4325dff220918c2ced82d16c3475d9a5afb1cab3 (diff) |
V4L/DVB (10439): cx18: Clean-up and enable sliced VBI handling
Removed legacy ivtv state variables, added comments, and cleaned
up sliced VBI related code. Enabled sliced VBI.
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-controls.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-controls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx18/cx18-controls.c b/drivers/media/video/cx18/cx18-controls.c index 17edf305d649..6af4d5c190e1 100644 --- a/drivers/media/video/cx18/cx18-controls.c +++ b/drivers/media/video/cx18/cx18-controls.c | |||
@@ -178,8 +178,8 @@ static int cx18_setup_vbi_fmt(struct cx18 *cx, enum v4l2_mpeg_stream_vbi_fmt fmt | |||
178 | int i; | 178 | int i; |
179 | 179 | ||
180 | for (i = 0; i < CX18_VBI_FRAMES; i++) { | 180 | for (i = 0; i < CX18_VBI_FRAMES; i++) { |
181 | /* Yuck, hardcoded. Needs to be a define */ | 181 | cx->vbi.sliced_mpeg_data[i] = |
182 | cx->vbi.sliced_mpeg_data[i] = kmalloc(2049, GFP_KERNEL); | 182 | kmalloc(CX18_SLICED_MPEG_DATA_BUFSZ, GFP_KERNEL); |
183 | if (cx->vbi.sliced_mpeg_data[i] == NULL) { | 183 | if (cx->vbi.sliced_mpeg_data[i] == NULL) { |
184 | while (--i >= 0) { | 184 | while (--i >= 0) { |
185 | kfree(cx->vbi.sliced_mpeg_data[i]); | 185 | kfree(cx->vbi.sliced_mpeg_data[i]); |