Commit 8e4ac074 authored by Leonid V. Fedorenchik's avatar Leonid V. Fedorenchik Committed by Greg Kroah-Hartman

Staging: cx25821: Change indent with spaces to tabs 6

Change indent with spaces to tabs.
Signed-off-by: default avatarLeonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2ba51498
...@@ -534,7 +534,7 @@ int cx25821_video_register(struct cx25821_dev *dev) ...@@ -534,7 +534,7 @@ int cx25821_video_register(struct cx25821_dev *dev)
return 0; return 0;
fail_unreg: fail_unreg:
cx25821_video_unregister(dev, i); cx25821_video_unregister(dev, i);
return err; return err;
} }
...@@ -565,7 +565,7 @@ int cx25821_buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, ...@@ -565,7 +565,7 @@ int cx25821_buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,
u32 line0_offset, line1_offset; u32 line0_offset, line1_offset;
struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb); struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb);
int bpl_local = LINE_SIZE_D1; int bpl_local = LINE_SIZE_D1;
int channel_opened = fh->channel_id; int channel_opened = fh->channel_id;
BUG_ON(NULL == fh->fmt); BUG_ON(NULL == fh->fmt);
if (fh->width < 48 || fh->width > 720 || if (fh->width < 48 || fh->width > 720 ||
...@@ -604,21 +604,21 @@ int cx25821_buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, ...@@ -604,21 +604,21 @@ int cx25821_buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,
channel_opened = (channel_opened < 0 channel_opened = (channel_opened < 0
|| channel_opened > 7) ? 7 : channel_opened; || channel_opened > 7) ? 7 : channel_opened;
if (dev->channels[channel_opened] if (dev->channels[channel_opened].pixel_formats ==
.pixel_formats == PIXEL_FRMT_411) PIXEL_FRMT_411)
buf->bpl = (buf->fmt->depth * buf->vb.width) >> 3; buf->bpl = (buf->fmt->depth * buf->vb.width) >> 3;
else else
buf->bpl = (buf->fmt->depth >> 3) * (buf->vb.width); buf->bpl = (buf->fmt->depth >> 3) * (buf->vb.width);
if (dev->channels[channel_opened] if (dev->channels[channel_opened].pixel_formats ==
.pixel_formats == PIXEL_FRMT_411) { PIXEL_FRMT_411) {
bpl_local = buf->bpl; bpl_local = buf->bpl;
} else { } else {
bpl_local = buf->bpl; /* Default */ bpl_local = buf->bpl; /* Default */
if (channel_opened >= 0 && channel_opened <= 7) { if (channel_opened >= 0 && channel_opened <= 7) {
if (dev->channels[channel_opened] if (dev->channels[channel_opened]
.use_cif_resolution) { .use_cif_resolution) {
if (dev->tvnorm & V4L2_STD_PAL_BG if (dev->tvnorm & V4L2_STD_PAL_BG
|| dev->tvnorm & V4L2_STD_PAL_DK) || dev->tvnorm & V4L2_STD_PAL_DK)
bpl_local = 352 << 1; bpl_local = 352 << 1;
...@@ -724,7 +724,7 @@ int cx25821_video_mmap(struct file *file, struct vm_area_struct *vma) ...@@ -724,7 +724,7 @@ int cx25821_video_mmap(struct file *file, struct vm_area_struct *vma)
static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) static void buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
{ {
struct cx25821_buffer *buf = struct cx25821_buffer *buf =
container_of(vb, struct cx25821_buffer, vb); container_of(vb, struct cx25821_buffer, vb);
struct cx25821_buffer *prev; struct cx25821_buffer *prev;
struct cx25821_fh *fh = vq->priv_data; struct cx25821_fh *fh = vq->priv_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment