Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235671
b: refs/heads/master
c: e8b754e
h: refs/heads/master
i:
  235669: 473ccf3
  235667: ce70d67
  235663: 83a4f6e
v: v3
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent 8007886 commit aab8766
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a858078942a6cb75f1d3ac44e8077bc228f32a8
refs/heads/master: e8b754ee8f71835281bdcea91d0ab37718abadb6
2 changes: 0 additions & 2 deletions trunk/drivers/staging/easycap/easycap.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
#error "PAGE_SIZE not defined"
#endif

#define STRINGIZE_AGAIN(x) #x
#define STRINGIZE(x) STRINGIZE_AGAIN(x)
/*---------------------------------------------------------------------------*/
/* VENDOR, PRODUCT: Syntek Semiconductor Co., Ltd
*
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/staging/easycap/easycap_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,39 +506,39 @@ for (i = 0, n = 0; i < STANDARD_MANY; i++) {
mask3 = 0x0000;
switch (k) {
case FMT_UYVY: {
strcpy(&name3[0], "_" STRINGIZE(FMT_UYVY));
strcpy(&name3[0], "_" __stringify(FMT_UYVY));
pixelformat = V4L2_PIX_FMT_UYVY;
mask3 |= (0x02 << 5);
break;
}
case FMT_YUY2: {
strcpy(&name3[0], "_" STRINGIZE(FMT_YUY2));
strcpy(&name3[0], "_" __stringify(FMT_YUY2));
pixelformat = V4L2_PIX_FMT_YUYV;
mask3 |= (0x02 << 5);
mask3 |= 0x0100;
break;
}
case FMT_RGB24: {
strcpy(&name3[0], "_" STRINGIZE(FMT_RGB24));
strcpy(&name3[0], "_" __stringify(FMT_RGB24));
pixelformat = V4L2_PIX_FMT_RGB24;
mask3 |= (0x03 << 5);
break;
}
case FMT_RGB32: {
strcpy(&name3[0], "_" STRINGIZE(FMT_RGB32));
strcpy(&name3[0], "_" __stringify(FMT_RGB32));
pixelformat = V4L2_PIX_FMT_RGB32;
mask3 |= (0x04 << 5);
break;
}
case FMT_BGR24: {
strcpy(&name3[0], "_" STRINGIZE(FMT_BGR24));
strcpy(&name3[0], "_" __stringify(FMT_BGR24));
pixelformat = V4L2_PIX_FMT_BGR24;
mask3 |= (0x03 << 5);
mask3 |= 0x0100;
break;
}
case FMT_BGR32: {
strcpy(&name3[0], "_" STRINGIZE(FMT_BGR32));
strcpy(&name3[0], "_" __stringify(FMT_BGR32));
pixelformat = V4L2_PIX_FMT_BGR32;
mask3 |= (0x04 << 5);
mask3 |= 0x0100;
Expand Down

0 comments on commit aab8766

Please sign in to comment.