29 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
41 .sizeimage = 162 * 120,
55 .sizeimage = 324 * 244,
63 static int setbrightness(
struct sd *
sd,
s32 val);
64 static int setcontrast(
struct sd *
sd,
s32 val);
66 static int setexposure(
struct sd *
sd,
s16 expo);
72 struct sd *
sd = (
struct sd *)gspca_dev;
77 err = setbrightness(sd, ctrl->
val);
80 err = setcontrast(sd, ctrl->
val);
83 err = setgain(sd, ctrl->
val);
86 err = setexposure(sd, ctrl->
val);
98 .s_ctrl = st6422_s_ctrl,
101 static int st6422_init_controls(
struct sd *sd)
118 static int st6422_probe(
struct sd *sd)
123 pr_info(
"st6422 sensor detected\n");
125 sd->
gspca_dev.cam.cam_mode = st6422_mode;
130 static int st6422_init(
struct sd *sd)
134 const u16 st6422_bridge_init[][2] = {
209 st6422_bridge_init[i][1]);
215 static int setbrightness(
struct sd *sd,
s32 val)
221 static int setcontrast(
struct sd *sd,
s32 val)
227 static int setgain(
struct sd *sd,
u8 gain)
252 static int setexposure(
struct sd *sd,
s16 expo)
263 static int st6422_start(
struct sd *sd)
277 return (err < 0) ? err : 0;
280 static int st6422_stop(
struct sd *sd)
282 PDEBUG(D_STREAM,
"Halting stream");