aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-08-27 17:16:54 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:07:29 -0400
commitb930e1d851c3ffbf82127bd0e4d72ffe94d4b7f2 (patch)
tree190561aa866401ac4d2b45f7a6c6bb5d9cb982a3 /drivers/media/video/cx88
parent38051450b378ef2cb51dff76a6b8299f59129172 (diff)
V4L/DVB (6125): whitespace cleanup: replace leading spaces with tabs
There were many instances of 7-space indents spread throughout the v4l-dvb tree. This patch replaces the 7-space indents with tabs. The whitespace cleaner script doesn't catch these, because it assumes that all indents are 8-space. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r--drivers/media/video/cx88/cx88-blackbird.c4
-rw-r--r--drivers/media/video/cx88/cx88-mpeg.c70
-rw-r--r--drivers/media/video/cx88/cx88-tvaudio.c6
3 files changed, 40 insertions, 40 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c
index 47007380a98a..fcaf4f51293f 100644
--- a/drivers/media/video/cx88/cx88-blackbird.c
+++ b/drivers/media/video/cx88/cx88-blackbird.c
@@ -1077,7 +1077,7 @@ static int mpeg_open(struct inode *inode, struct file *file)
1077 struct cx8802_driver *drv = NULL; 1077 struct cx8802_driver *drv = NULL;
1078 int err; 1078 int err;
1079 1079
1080 dev = cx8802_get_device(inode); 1080 dev = cx8802_get_device(inode);
1081 1081
1082 dprintk( 1, "%s\n", __FUNCTION__); 1082 dprintk( 1, "%s\n", __FUNCTION__);
1083 1083
@@ -1234,7 +1234,7 @@ static struct video_device cx8802_mpeg_template =
1234 .vidioc_s_tuner = vidioc_s_tuner, 1234 .vidioc_s_tuner = vidioc_s_tuner,
1235 .vidioc_s_std = vidioc_s_std, 1235 .vidioc_s_std = vidioc_s_std,
1236 .tvnorms = CX88_NORMS, 1236 .tvnorms = CX88_NORMS,
1237 .current_norm = V4L2_STD_NTSC_M, 1237 .current_norm = V4L2_STD_NTSC_M,
1238}; 1238};
1239 1239
1240/* ------------------------------------------------------------------ */ 1240/* ------------------------------------------------------------------ */
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c
index 4e6a84f15d17..d302793fcfb9 100644
--- a/drivers/media/video/cx88/cx88-mpeg.c
+++ b/drivers/media/video/cx88/cx88-mpeg.c
@@ -179,43 +179,43 @@ static int cx8802_restart_queue(struct cx8802_dev *dev,
179 struct cx88_buffer *buf; 179 struct cx88_buffer *buf;
180 struct list_head *item; 180 struct list_head *item;
181 181
182 dprintk( 1, "cx8802_restart_queue\n" ); 182 dprintk( 1, "cx8802_restart_queue\n" );
183 if (list_empty(&q->active)) 183 if (list_empty(&q->active))
184 { 184 {
185 struct cx88_buffer *prev; 185 struct cx88_buffer *prev;
186 prev = NULL; 186 prev = NULL;
187 187
188 dprintk(1, "cx8802_restart_queue: queue is empty\n" ); 188 dprintk(1, "cx8802_restart_queue: queue is empty\n" );
189 189
190 for (;;) { 190 for (;;) {
191 if (list_empty(&q->queued)) 191 if (list_empty(&q->queued))
192 return 0; 192 return 0;
193 buf = list_entry(q->queued.next, struct cx88_buffer, vb.queue); 193 buf = list_entry(q->queued.next, struct cx88_buffer, vb.queue);
194 if (NULL == prev) { 194 if (NULL == prev) {
195 list_del(&buf->vb.queue); 195 list_del(&buf->vb.queue);
196 list_add_tail(&buf->vb.queue,&q->active); 196 list_add_tail(&buf->vb.queue,&q->active);
197 cx8802_start_dma(dev, q, buf); 197 cx8802_start_dma(dev, q, buf);
198 buf->vb.state = STATE_ACTIVE; 198 buf->vb.state = STATE_ACTIVE;
199 buf->count = q->count++; 199 buf->count = q->count++;
200 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); 200 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT);
201 dprintk(1,"[%p/%d] restart_queue - first active\n", 201 dprintk(1,"[%p/%d] restart_queue - first active\n",
202 buf,buf->vb.i); 202 buf,buf->vb.i);
203 203
204 } else if (prev->vb.width == buf->vb.width && 204 } else if (prev->vb.width == buf->vb.width &&
205 prev->vb.height == buf->vb.height && 205 prev->vb.height == buf->vb.height &&
206 prev->fmt == buf->fmt) { 206 prev->fmt == buf->fmt) {
207 list_del(&buf->vb.queue); 207 list_del(&buf->vb.queue);
208 list_add_tail(&buf->vb.queue,&q->active); 208 list_add_tail(&buf->vb.queue,&q->active);
209 buf->vb.state = STATE_ACTIVE; 209 buf->vb.state = STATE_ACTIVE;
210 buf->count = q->count++; 210 buf->count = q->count++;
211 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); 211 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
212 dprintk(1,"[%p/%d] restart_queue - move to active\n", 212 dprintk(1,"[%p/%d] restart_queue - move to active\n",
213 buf,buf->vb.i); 213 buf,buf->vb.i);
214 } else { 214 } else {
215 return 0; 215 return 0;
216 } 216 }
217 prev = buf; 217 prev = buf;
218 } 218 }
219 return 0; 219 return 0;
220 } 220 }
221 221
diff --git a/drivers/media/video/cx88/cx88-tvaudio.c b/drivers/media/video/cx88/cx88-tvaudio.c
index 82364fb07025..76e5c78d8ae4 100644
--- a/drivers/media/video/cx88/cx88-tvaudio.c
+++ b/drivers/media/video/cx88/cx88-tvaudio.c
@@ -798,9 +798,9 @@ void cx88_get_stereo(struct cx88_core *core, struct v4l2_tuner *t)
798 core->astat = reg; 798 core->astat = reg;
799 799
800/* TODO 800/* TODO
801 Reading from AUD_STATUS is not enough 801 Reading from AUD_STATUS is not enough
802 for auto-detecting sap/dual-fm/nicam. 802 for auto-detecting sap/dual-fm/nicam.
803 Add some code here later. 803 Add some code here later.
804*/ 804*/
805 805
806 return; 806 return;