I noticed that after load the driver only one video device (/dev/video1) is exposed to the system, but cubietruck A20 has four video inputs (TV0 to TV3).
Is /dev/video1 a single device with four channels or this a limitation of the driver and I will be able to see only one input ?
Regads,
Antonio Belloni
Enrico,thank you for your help. Can we detail how to setup the driver ? Do I need to change something on the source code ?I didn't get any video at all, not even a blue screen. I am testing with V4L2 test programs. What program are you using to test the driver ?
videobuf_queue_dma_contig_init(&dev->vb_vidq, &video_qops,
NULL, &dev->slock, V4L2_BUF_TYPE_VIDEO_CAPTURE,
V4L2_FIELD_NONE,
sizeof(struct buffer), dev,NULL); */
I have seen in the videobuf_queue_dma_contig_init third parameter should be of type (struct device *), but struct device is defined in several *.h files of the source.
Can you help me with this issue ?
Regards,
Antonio Belloni
videobuf_queue_dma_contig_init(&dev->vb_vidq, &video_qops,
NULL, &dev->slock, V4L2_BUF_TYPE_VIDEO_CAPTURE,
V4L2_FIELD_NONE,
sizeof(struct buffer), dev,NULL);
Well, answering my own question. I changed the third parameter NULL invideobuf_queue_dma_contig_init(&dev->vb_vidq, &video_qops,
NULL, &dev->slock, V4L2_BUF_TYPE_VIDEO_CAPTURE,
V4L2_FIELD_NONE,
sizeof(struct buffer), dev,NULL);
to &pdev->dev and now the dma_alloc_coeherent is getting the device name (tvd) correctly. But I am still getting error dma_alloc_coehernet size 2764800 failed when I try to run the test program. I have already resized DEFAULT_CONSISTENT_DMA_SIZE to 4M but it is not working yet. I will resize it to a higher value and see what happens.
What can you find the sun7i_tvd drive where?
Hi Enrico,Any progress with this driver ?I have fixed all the bugs and now I can load the driver with no errors whatsoever. But sunxi-tvin only shows a box full of static, like a broken tv, and on the console I can see the error "select timeout", which is raised by the select system call, indicating that there is no input from the file descriptor of /dev/video1.I have tried with no camera connect to the board and then tried a camera on each one of the four pins (18,20,22 and 24) of CN9, but the results are always the same, only the static-box-broken-tv.Have you seen something like this ?
--
You received this message because you are subscribed to a topic in the Google Groups "linux-sunxi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/linux-sunxi/9dAldgInrkw/unsubscribe.
To unsubscribe from this group and all of its topics, send an email to linux-sunxi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.