struct au0828_fh *fh = priv;
struct au0828_dev *dev = fh->dev;
- memset(cap, 0, sizeof(*cap));
strlcpy(cap->driver, "au0828", sizeof(cap->driver));
strlcpy(cap->card, dev->board.name, sizeof(cap->card));
strlcpy(cap->bus_info, dev->v4l2_dev.name, sizeof(cap->bus_info));
if(f->index)
return -EINVAL;
- memset(f, 0, sizeof(*f));
f->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
strcpy(f->description, "Packed YUV2");
f->flags = 0;
f->pixelformat = V4L2_PIX_FMT_UYVY;
- memset(f->reserved, 0, sizeof(f->reserved));
return 0;
}
if(AUVI_INPUT(tmp).type == 0)
return -EINVAL;
- memset(input, 0, sizeof(*input));
input->index = tmp;
strcpy(input->name, inames[AUVI_INPUT(tmp).type]);
if((AUVI_INPUT(tmp).type == AU0828_VMUX_TELEVISION) ||
if(a->index > 1)
return -EINVAL;
- memset(a, 0, sizeof(*a));
index = dev->ctrl_ainput;
if(index == 0)
strcpy(a->name, "Television");
if(t->index != 0)
return -EINVAL;
- memset(t, 0, sizeof(*t));
strcpy(t->name, "Auvitek tuner");
au0828_call_i2c_clients(dev, VIDIOC_G_TUNER, t);
{
struct au0828_fh *fh = priv;
struct au0828_dev *dev = fh->dev;
- memset(freq, 0, sizeof(*freq));
+
freq->type = V4L2_TUNER_ANALOG_TV;
freq->frequency = dev->ctrl_freq;
return 0;