Merge branch 'CR_1751_v4l2test_Kevin.xie' into 'jh7110-devel'

CR_1751: v4l2test: Fix the 'not support error' on null-display with mmap io_method.

See merge request sdk/buildroot!35
This commit is contained in:
Jason Zhou
2022-07-30 09:36:37 +00:00
+4 -2
View File
@@ -568,7 +568,8 @@ static void mainloop()
uint32_t nfds = 0; uint32_t nfds = 0;
LOG(STF_LEVEL_TRACE, "Enter\n"); LOG(STF_LEVEL_TRACE, "Enter\n");
if (STF_DISP_FB == gp_cfg_param->disp_type) { if (STF_DISP_FB == gp_cfg_param->disp_type ||
STF_DISP_NONE == gp_cfg_param->disp_type) {
// fb // fb
nfds = 1; nfds = 1;
fds = (struct pollfd*)malloc(sizeof(struct pollfd) * nfds); fds = (struct pollfd*)malloc(sizeof(struct pollfd) * nfds);
@@ -635,7 +636,8 @@ static void mainloop()
break; break;
} }
if (STF_DISP_FB == gp_cfg_param->disp_type) { if (STF_DISP_FB == gp_cfg_param->disp_type ||
STF_DISP_NONE == gp_cfg_param->disp_type) {
// fb // fb
if (fds[0].revents & POLLIN) { if (fds[0].revents & POLLIN) {
frameRead(); frameRead();