提交 31410596 编写于 作者: T Tomas Winkler 提交者: Greg Kroah-Hartman

staging/easycap: add first level indentation to easycap_settings.c

Add first level indentation to easycap_sound_settings with astyle -t8
10 lines over 80 characters were left out for further fix

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 cb81fa07
...@@ -39,252 +39,255 @@ ...@@ -39,252 +39,255 @@
*/ */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
const struct easycap_standard easycap_standard[] = { const struct easycap_standard easycap_standard[] = {
{ {
.mask = 0x00FF & PAL_BGHIN , .mask = 0x00FF & PAL_BGHIN ,
.v4l2_standard = { .v4l2_standard = {
.index = PAL_BGHIN, .index = PAL_BGHIN,
.id = (V4L2_STD_PAL_B | V4L2_STD_PAL_G | V4L2_STD_PAL_H | .id = (V4L2_STD_PAL_B |
V4L2_STD_PAL_G | V4L2_STD_PAL_H |
V4L2_STD_PAL_I | V4L2_STD_PAL_N), V4L2_STD_PAL_I | V4L2_STD_PAL_N),
.name = "PAL_BGHIN", .name = "PAL_BGHIN",
.frameperiod = {1, 25}, .frameperiod = {1, 25},
.framelines = 625, .framelines = 625,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & NTSC_N_443 , .mask = 0x00FF & NTSC_N_443 ,
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_N_443, .index = NTSC_N_443,
.id = V4L2_STD_UNKNOWN, .id = V4L2_STD_UNKNOWN,
.name = "NTSC_N_443", .name = "NTSC_N_443",
.frameperiod = {1, 25}, .frameperiod = {1, 25},
.framelines = 480, .framelines = 480,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & PAL_Nc , .mask = 0x00FF & PAL_Nc ,
.v4l2_standard = { .v4l2_standard = {
.index = PAL_Nc, .index = PAL_Nc,
.id = V4L2_STD_PAL_Nc, .id = V4L2_STD_PAL_Nc,
.name = "PAL_Nc", .name = "PAL_Nc",
.frameperiod = {1, 25}, .frameperiod = {1, 25},
.framelines = 625, .framelines = 625,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & NTSC_N , .mask = 0x00FF & NTSC_N ,
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_N, .index = NTSC_N,
.id = V4L2_STD_UNKNOWN, .id = V4L2_STD_UNKNOWN,
.name = "NTSC_N", .name = "NTSC_N",
.frameperiod = {1, 25}, .frameperiod = {1, 25},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & SECAM , .mask = 0x00FF & SECAM ,
.v4l2_standard = { .v4l2_standard = {
.index = SECAM, .index = SECAM,
.id = V4L2_STD_SECAM, .id = V4L2_STD_SECAM,
.name = "SECAM", .name = "SECAM",
.frameperiod = {1, 25}, .frameperiod = {1, 25},
.framelines = 625, .framelines = 625,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & NTSC_M , .mask = 0x00FF & NTSC_M ,
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_M, .index = NTSC_M,
.id = V4L2_STD_NTSC_M, .id = V4L2_STD_NTSC_M,
.name = "NTSC_M", .name = "NTSC_M",
.frameperiod = {1, 30}, .frameperiod = {1, 30},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & NTSC_M_JP , .mask = 0x00FF & NTSC_M_JP ,
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_M_JP, .index = NTSC_M_JP,
.id = V4L2_STD_NTSC_M_JP, .id = V4L2_STD_NTSC_M_JP,
.name = "NTSC_M_JP", .name = "NTSC_M_JP",
.frameperiod = {1, 30}, .frameperiod = {1, 30},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & PAL_60 , .mask = 0x00FF & PAL_60 ,
.v4l2_standard = { .v4l2_standard = {
.index = PAL_60, .index = PAL_60,
.id = V4L2_STD_PAL_60, .id = V4L2_STD_PAL_60,
.name = "PAL_60", .name = "PAL_60",
.frameperiod = {1, 30}, .frameperiod = {1, 30},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & NTSC_443 , .mask = 0x00FF & NTSC_443 ,
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_443, .index = NTSC_443,
.id = V4L2_STD_NTSC_443, .id = V4L2_STD_NTSC_443,
.name = "NTSC_443", .name = "NTSC_443",
.frameperiod = {1, 30}, .frameperiod = {1, 30},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x00FF & PAL_M , .mask = 0x00FF & PAL_M ,
.v4l2_standard = { .v4l2_standard = {
.index = PAL_M, .index = PAL_M,
.id = V4L2_STD_PAL_M, .id = V4L2_STD_PAL_M,
.name = "PAL_M", .name = "PAL_M",
.frameperiod = {1, 30}, .frameperiod = {1, 30},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & PAL_BGHIN_SLOW), .mask = 0x8000 | (0x00FF & PAL_BGHIN_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = PAL_BGHIN_SLOW, .index = PAL_BGHIN_SLOW,
.id = (V4L2_STD_PAL_B | V4L2_STD_PAL_G | V4L2_STD_PAL_H | .id = (V4L2_STD_PAL_B | V4L2_STD_PAL_G |
V4L2_STD_PAL_H |
V4L2_STD_PAL_I | V4L2_STD_PAL_N | V4L2_STD_PAL_I | V4L2_STD_PAL_N |
(((v4l2_std_id)0x01) << 32)), (((v4l2_std_id)0x01) << 32)),
.name = "PAL_BGHIN_SLOW", .name = "PAL_BGHIN_SLOW",
.frameperiod = {1, 5}, .frameperiod = {1, 5},
.framelines = 625, .framelines = 625,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & NTSC_N_443_SLOW), .mask = 0x8000 | (0x00FF & NTSC_N_443_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_N_443_SLOW, .index = NTSC_N_443_SLOW,
.id = (V4L2_STD_UNKNOWN | (((v4l2_std_id)0x11) << 32)), .id = (V4L2_STD_UNKNOWN | (((v4l2_std_id)0x11) << 32)),
.name = "NTSC_N_443_SLOW", .name = "NTSC_N_443_SLOW",
.frameperiod = {1, 5}, .frameperiod = {1, 5},
.framelines = 480, .framelines = 480,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & PAL_Nc_SLOW), .mask = 0x8000 | (0x00FF & PAL_Nc_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = PAL_Nc_SLOW, .index = PAL_Nc_SLOW,
.id = (V4L2_STD_PAL_Nc | (((v4l2_std_id)0x01) << 32)), .id = (V4L2_STD_PAL_Nc | (((v4l2_std_id)0x01) << 32)),
.name = "PAL_Nc_SLOW", .name = "PAL_Nc_SLOW",
.frameperiod = {1, 5}, .frameperiod = {1, 5},
.framelines = 625, .framelines = 625,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & NTSC_N_SLOW), .mask = 0x8000 | (0x00FF & NTSC_N_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_N_SLOW, .index = NTSC_N_SLOW,
.id = (V4L2_STD_UNKNOWN | (((v4l2_std_id)0x21) << 32)), .id = (V4L2_STD_UNKNOWN | (((v4l2_std_id)0x21) << 32)),
.name = "NTSC_N_SLOW", .name = "NTSC_N_SLOW",
.frameperiod = {1, 5}, .frameperiod = {1, 5},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & SECAM_SLOW), .mask = 0x8000 | (0x00FF & SECAM_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = SECAM_SLOW, .index = SECAM_SLOW,
.id = (V4L2_STD_SECAM | (((v4l2_std_id)0x01) << 32)), .id = (V4L2_STD_SECAM | (((v4l2_std_id)0x01) << 32)),
.name = "SECAM_SLOW", .name = "SECAM_SLOW",
.frameperiod = {1, 5}, .frameperiod = {1, 5},
.framelines = 625, .framelines = 625,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & NTSC_M_SLOW), .mask = 0x8000 | (0x00FF & NTSC_M_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_M_SLOW, .index = NTSC_M_SLOW,
.id = (V4L2_STD_NTSC_M | (((v4l2_std_id)0x01) << 32)), .id = (V4L2_STD_NTSC_M | (((v4l2_std_id)0x01) << 32)),
.name = "NTSC_M_SLOW", .name = "NTSC_M_SLOW",
.frameperiod = {1, 6}, .frameperiod = {1, 6},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & NTSC_M_JP_SLOW), .mask = 0x8000 | (0x00FF & NTSC_M_JP_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_M_JP_SLOW, .index = NTSC_M_JP_SLOW,
.id = (V4L2_STD_NTSC_M_JP | (((v4l2_std_id)0x01) << 32)), .id = (V4L2_STD_NTSC_M_JP |
(((v4l2_std_id)0x01) << 32)),
.name = "NTSC_M_JP_SLOW", .name = "NTSC_M_JP_SLOW",
.frameperiod = {1, 6}, .frameperiod = {1, 6},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & PAL_60_SLOW), .mask = 0x8000 | (0x00FF & PAL_60_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = PAL_60_SLOW, .index = PAL_60_SLOW,
.id = (V4L2_STD_PAL_60 | (((v4l2_std_id)0x01) << 32)), .id = (V4L2_STD_PAL_60 | (((v4l2_std_id)0x01) << 32)),
.name = "PAL_60_SLOW", .name = "PAL_60_SLOW",
.frameperiod = {1, 6}, .frameperiod = {1, 6},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & NTSC_443_SLOW), .mask = 0x8000 | (0x00FF & NTSC_443_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = NTSC_443_SLOW, .index = NTSC_443_SLOW,
.id = (V4L2_STD_NTSC_443 | (((v4l2_std_id)0x01) << 32)), .id = (V4L2_STD_NTSC_443 | (((v4l2_std_id)0x01) << 32)),
.name = "NTSC_443_SLOW", .name = "NTSC_443_SLOW",
.frameperiod = {1, 6}, .frameperiod = {1, 6},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0x8000 | (0x00FF & PAL_M_SLOW), .mask = 0x8000 | (0x00FF & PAL_M_SLOW),
.v4l2_standard = { .v4l2_standard = {
.index = PAL_M_SLOW, .index = PAL_M_SLOW,
.id = (V4L2_STD_PAL_M | (((v4l2_std_id)0x01) << 32)), .id = (V4L2_STD_PAL_M | (((v4l2_std_id)0x01) << 32)),
.name = "PAL_M_SLOW", .name = "PAL_M_SLOW",
.frameperiod = {1, 6}, .frameperiod = {1, 6},
.framelines = 525, .framelines = 525,
.reserved = {0, 0, 0, 0} .reserved = {0, 0, 0, 0}
} }
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.mask = 0xFFFF .mask = 0xFFFF
} }
}; };
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
/* /*
...@@ -313,13 +316,13 @@ struct easycap_format easycap_format[1 + SETTINGS_MANY]; ...@@ -313,13 +316,13 @@ struct easycap_format easycap_format[1 + SETTINGS_MANY];
int int
fillin_formats(void) fillin_formats(void)
{ {
int i, j, k, m, n; int i, j, k, m, n;
u32 width, height, pixelformat, bytesperline, sizeimage; u32 width, height, pixelformat, bytesperline, sizeimage;
enum v4l2_field field; enum v4l2_field field;
enum v4l2_colorspace colorspace; enum v4l2_colorspace colorspace;
u16 mask1, mask2, mask3, mask4; u16 mask1, mask2, mask3, mask4;
char name1[32], name2[32], name3[32], name4[32]; char name1[32], name2[32], name3[32], name4[32];
for (i = 0, n = 0; i < STANDARD_MANY; i++) { for (i = 0, n = 0; i < STANDARD_MANY; i++) {
mask1 = 0x0000; mask1 = 0x0000;
switch (i) { switch (i) {
case PAL_BGHIN: { case PAL_BGHIN: {
...@@ -463,39 +466,56 @@ for (i = 0, n = 0; i < STANDARD_MANY; i++) { ...@@ -463,39 +466,56 @@ for (i = 0, n = 0; i < STANDARD_MANY; i++) {
if (0x1 & mask1) if (0x1 & mask1)
continue; continue;
strcpy(&name2[0], "_AT_720x576"); strcpy(&name2[0], "_AT_720x576");
width = 720; height = 576; break; width = 720;
height = 576;
break;
} }
case AT_704x576: { case AT_704x576: {
if (0x1 & mask1) if (0x1 & mask1)
continue; continue;
strcpy(&name2[0], "_AT_704x576"); strcpy(&name2[0], "_AT_704x576");
width = 704; height = 576; break; width = 704;
height = 576;
break;
} }
case AT_640x480: { case AT_640x480: {
strcpy(&name2[0], "_AT_640x480"); strcpy(&name2[0], "_AT_640x480");
width = 640; height = 480; break; width = 640;
height = 480;
break;
} }
case AT_720x480: { case AT_720x480: {
if (!(0x1 & mask1)) if (!(0x1 & mask1))
continue; continue;
strcpy(&name2[0], "_AT_720x480"); strcpy(&name2[0], "_AT_720x480");
width = 720; height = 480; break; width = 720;
height = 480;
break;
} }
case AT_360x288: { case AT_360x288: {
if (0x1 & mask1) if (0x1 & mask1)
continue; continue;
strcpy(&name2[0], "_AT_360x288"); strcpy(&name2[0], "_AT_360x288");
width = 360; height = 288; mask2 = 0x0800; break; width = 360;
height = 288;
mask2 = 0x0800;
break;
} }
case AT_320x240: { case AT_320x240: {
strcpy(&name2[0], "_AT_320x240"); strcpy(&name2[0], "_AT_320x240");
width = 320; height = 240; mask2 = 0x0800; break; width = 320;
height = 240;
mask2 = 0x0800;
break;
} }
case AT_360x240: { case AT_360x240: {
if (!(0x1 & mask1)) if (!(0x1 & mask1))
continue; continue;
strcpy(&name2[0], "_AT_360x240"); strcpy(&name2[0], "_AT_360x240");
width = 360; height = 240; mask2 = 0x0800; break; width = 360;
height = 240;
mask2 = 0x0800;
break;
} }
default: default:
return -2; return -2;
...@@ -596,85 +616,85 @@ for (i = 0, n = 0; i < STANDARD_MANY; i++) { ...@@ -596,85 +616,85 @@ for (i = 0, n = 0; i < STANDARD_MANY; i++) {
} }
} }
} }
} }
if ((1 + SETTINGS_MANY) <= n) if ((1 + SETTINGS_MANY) <= n)
return -6; return -6;
easycap_format[n].mask = 0xFFFF; easycap_format[n].mask = 0xFFFF;
return n; return n;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
struct v4l2_queryctrl easycap_control[] = struct v4l2_queryctrl easycap_control[] =
{{ {{
.id = V4L2_CID_BRIGHTNESS, .id = V4L2_CID_BRIGHTNESS,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Brightness", .name = "Brightness",
.minimum = 0, .minimum = 0,
.maximum = 255, .maximum = 255,
.step = 1, .step = 1,
.default_value = SAA_0A_DEFAULT, .default_value = SAA_0A_DEFAULT,
.flags = 0, .flags = 0,
.reserved = {0, 0} .reserved = {0, 0}
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.id = V4L2_CID_CONTRAST, .id = V4L2_CID_CONTRAST,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Contrast", .name = "Contrast",
.minimum = 0, .minimum = 0,
.maximum = 255, .maximum = 255,
.step = 1, .step = 1,
.default_value = SAA_0B_DEFAULT + 128, .default_value = SAA_0B_DEFAULT + 128,
.flags = 0, .flags = 0,
.reserved = {0, 0} .reserved = {0, 0}
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.id = V4L2_CID_SATURATION, .id = V4L2_CID_SATURATION,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Saturation", .name = "Saturation",
.minimum = 0, .minimum = 0,
.maximum = 255, .maximum = 255,
.step = 1, .step = 1,
.default_value = SAA_0C_DEFAULT + 128, .default_value = SAA_0C_DEFAULT + 128,
.flags = 0, .flags = 0,
.reserved = {0, 0} .reserved = {0, 0}
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.id = V4L2_CID_HUE, .id = V4L2_CID_HUE,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Hue", .name = "Hue",
.minimum = 0, .minimum = 0,
.maximum = 255, .maximum = 255,
.step = 1, .step = 1,
.default_value = SAA_0D_DEFAULT + 128, .default_value = SAA_0D_DEFAULT + 128,
.flags = 0, .flags = 0,
.reserved = {0, 0} .reserved = {0, 0}
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.id = V4L2_CID_AUDIO_VOLUME, .id = V4L2_CID_AUDIO_VOLUME,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Volume", .name = "Volume",
.minimum = 0, .minimum = 0,
.maximum = 31, .maximum = 31,
.step = 1, .step = 1,
.default_value = 16, .default_value = 16,
.flags = 0, .flags = 0,
.reserved = {0, 0} .reserved = {0, 0}
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.id = V4L2_CID_AUDIO_MUTE, .id = V4L2_CID_AUDIO_MUTE,
.type = V4L2_CTRL_TYPE_BOOLEAN, .type = V4L2_CTRL_TYPE_BOOLEAN,
.name = "Mute", .name = "Mute",
.default_value = true, .default_value = true,
.flags = 0, .flags = 0,
.reserved = {0, 0} .reserved = {0, 0}
}, },
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
{ {
.id = 0xFFFFFFFF .id = 0xFFFFFFFF
} }
}; };
/*****************************************************************************/ /*****************************************************************************/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册