Just out of curiosity because I've seen this with the other OmniVision
drivers, how could a set parameter function work if all the code is
commented out?
Enter code here...static int sensor_g_parm(struct v4l2_subdev *sd, struct
v4l2_streamparm *parms)
{
struct v4l2_captureparm *cp = &parms->parm.capture;
//struct sensor_info *info = to_state(sd);
if (parms->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
memset(cp, 0, sizeof(struct v4l2_captureparm));
cp->capability = V4L2_CAP_TIMEPERFRAME;
cp->timeperframe.numerator = 1;
cp->timeperframe.denominator = SENSOR_FRAME_RATE;
return 0;
}
static int sensor_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *parms)
{
// struct v4l2_captureparm *cp = &parms->parm.capture;
//struct v4l2_fract *tpf = &cp->timeperframe;
//struct sensor_info *info = to_state(sd);
//int div;
// if (parms->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
// return -EINVAL;
// if (cp->extendedmode != 0)
// return -EINVAL;
// if (tpf->numerator == 0 || tpf->denominator == 0)
// div = 1; /* Reset to full rate */
// else
// div = (tpf->numerator*SENSOR_FRAME_RATE)/tpf->denominator;
//
// if (div == 0)
// div = 1;
// else if (div > CLK_SCALE)
// div = CLK_SCALE;
// info->clkrc = (info->clkrc & 0x80) | div;
// tpf->numerator = 1;
// tpf->denominator = sensor_FRAME_RATE/div;
//sensor_write(sd, REG_CLKRC, info->clkrc);
return 0;
}
On Tuesday, September 23, 2014 8:05:04 AM UTC-7, George Ioakimedes wrote:
>
> I'll take a look at this today but unless this is somewhat recent it may
> not still work. I'm planning on trying to trace the kernel panics in hopes
> of finding the cause.
>
> On Tuesday, September 23, 2014 7:45:42 AM UTC-7, Simon Kenyon wrote:
>>
>> On 09/23/14 15:26, Joseph Nguya wrote:
>> > Please see attached working ov2643.c driver from Stefan.
>> is that was passes for "working" in this day and age?
>>
>
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.