-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.3.2.r1.4] msm-jpegdma: Add V4L2_CAP_DEVICE_CAPS to caps #1927
Conversation
So, this thing shouldn't even happen. In any case, if we want to solve it like this... let's say that I don't want to tell you that at this point the entire camera_v2 needs basically the same fix.... You want to do something like this: cap->device_caps = V4L2_CAP_STREAMING |
V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_VIDEO_CAPTURE;
cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS; But then obviously, this is something to keep in mind: Anyway, fix your patch like I said and let's see: if it works, then it .. works :) |
See v4l_querycap() in v4l2-ioctl.c Otherwise the query fails with a crash: [...] Bad caps for driver msm_jpegdma, 4200003 0 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 23782 at v4l_querycap+0x90/0xd4 Modules linked in: CPU: 1 PID: 23782 Comm: ExtCamHotPlug Tainted: G W 4.9.154-gb61c5e1840de-dirty sonyxperiadev#23 Hardware name: SoMC Kagura-ROW (DT) task ffffffc037b85e80 task.stack: ffffffc0b7188000 PC is at v4l_querycap+0x90/0xd4 LR is at v4l_querycap+0x90/0xd4 [...] Signed-off-by: ix5 <ix5@users.noreply.github.com> Signed-off-by: Angelo G. Del Regno <kholk11@gmail.com>
Compiled with your suggestion, seems to work ok so far(well it should ofc). |
Can anyone else please test this on any other legacy platform? It looks fine to me now, anyway. |
See
v4l_querycap()
inv4l2-ioctl.c
Otherwise the query fails with a crash: