On Sat, 27 Feb 2010 21:20:27 +0100 Antonio Ospite <ospite@xxxxxxxxxxxxxxxxx> wrote: > +static int sd_querymenu(struct gspca_dev *gspca_dev, > + struct v4l2_querymenu *menu) > +{ > + switch (menu->id) { > + case V4L2_CID_POWER_LINE_FREQUENCY: > + switch (menu->index) { > + case 0: /* > V4L2_CID_POWER_LINE_FREQUENCY_50HZ */ > + strcpy((char *) menu->name, "50 Hz"); > + return 0; > + case 1: /* > V4L2_CID_POWER_LINE_FREQUENCY_60HZ */ > + strcpy((char *) menu->name, "60 Hz"); > + return 0; > + } > + break; > + } > + > + return -EINVAL; > +} In videodev2.h, there is: V4L2_CID_POWER_LINE_FREQUENCY_50HZ = 1, V4L2_CID_POWER_LINE_FREQUENCY_60HZ = 2, -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html