Message ID | CA+V-a8s_mZNEuN0JHH_rpJU=zab57Q_LfLT_onwj0=ykgoUm0g@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 03/31/2014 07:24 PM, Prabhakar Lad wrote: > Hi Hans, > > On Mon, Mar 31, 2014 at 8:34 PM, Hans Verkuil <hverkuil@xs4all.nl> wrote: >> Hi Prabhakar, >> >> This looks really nice! >> > Writing a video driver has become really easy with almost 90% of work > done by v4l core itself :) That was the idea! >> I'll do a full review on Friday, but in the meantime can you post the output > OK. > >> of 'v4l2-compliance -s' using the latest v4l2-compliance version? I've made >> some commits today, so you need to do a git pull of v4l-utils.git. >> > I had compilation failures for v4l2-compliance following is the patch > fixing that, (I am > facing some issues in cross compilation once done I'll post the o/p of it) I fixed the 'friend' issue (weird that it didn't fail with my g++) and the other issue was already fixed yesterday. Regards, Hans
diff --git a/utils/v4l2-compliance/cv4l-helpers.h b/utils/v4l2-compliance/cv4l-helpers.h index 2423ef9..e2729a6 100644 --- a/utils/v4l2-compliance/cv4l-helpers.h +++ b/utils/v4l2-compliance/cv4l-helpers.h @@ -6,7 +6,7 @@ class cv4l_buffer; class cv4l_queue : v4l_queue { - friend cv4l_buffer; + friend class cv4l_buffer; public: cv4l_queue(v4l_fd *_fd, unsigned type = V4L2_BUF_TYPE_VIDEO_CAPTURE, unsigned memory = V4L2_MEMORY_MMAP) diff --git a/utils/v4l2-compliance/v4l2-compliance.h b/utils/v4l2-compliance/v4l2-compliance.h index f2f7072..b6d4dae 100644 --- a/utils/v4l2-compliance/v4l2-compliance.h +++ b/utils/v4l2-compliance/v4l2-compliance.h @@ -137,7 +137,7 @@ static inline int test_ioctl(int fd, unsigned long cmd, ...) } static inline void *test_mmap(void *start, size_t length, int prot, int flags, - int fd, int64_t offset) + int fd, off_t offset) { return wrapper ? v4l2_mmap(start, length, prot, flags, fd, offset) : mmap(start, length, prot, flags, fd, offset);