Thanks Laurent.Found similar type of discussion in this thread http://www.mail-archive.com/linux-media@xxxxxxxxxxxxxxx/msg38443.html On Tue, Jan 3, 2012 at 6:44 AM, Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> wrote: > Hi Dilip, > > On Friday 23 December 2011 19:57:22 Dilip Mannil wrote: >> Hi, >> I am trying to implement v4l2 slave driver for ML86V76654 digital >> video decoder that converts NTSC, PAL, SECAM analog video signals into >> the YCbCr standard digital format. This codec takes 4 analog inputs(2 >> analog camera + 2 ext video in) and encodes in to digital(only one at >> a time). >> >> The driver should be able to switch between capture channels upon >> request from user space application. >> >> I couldn't find the support for multiple capture channels on a single >> device in v4l2 layer. Please correct me if I am wrong. >> >> Ideally I want the v4l2 slave driver to have following feature. >> >> 1. ioctl that can be used to enumerate/get/set the capture channels >> on the video encoder. >> 2. Able to capture video from the currently set capture channel and >> pass to higher layers. >> >> Which is the best way to implement this support? > > VIDIOC_ENUMINPUT and VIDIOC_[GS]_INPUT seem to be what you're looking for. > > -- > Regards, > > Laurent Pinchart -- 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