From a897fe3005379130a422b1210890a8313c53ef8f Mon Sep 17 00:00:00 2001 From: Peter Bee Date: Tue, 20 Dec 2022 12:21:52 +0800 Subject: [PATCH] sim/video: rename dq_buf to dqbuf Signed-off-by: Peter Bee --- arch/sim/src/sim/posix/sim_host_v4l2.c | 4 ++-- arch/sim/src/sim/sim_hostvideo.h | 4 ++-- arch/sim/src/sim/sim_video.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/sim/src/sim/posix/sim_host_v4l2.c b/arch/sim/src/sim/posix/sim_host_v4l2.c index 27facdac6f..4094676e84 100644 --- a/arch/sim/src/sim/posix/sim_host_v4l2.c +++ b/arch/sim/src/sim/posix/sim_host_v4l2.c @@ -115,8 +115,8 @@ struct host_video_dev_s *host_video_init(const char *host_video_dev_path) return vdev; } -int host_video_dq_buf(struct host_video_dev_s *vdev, uint8_t *addr, - uint32_t size) +int host_video_dqbuf(struct host_video_dev_s *vdev, uint8_t *addr, + uint32_t size) { struct v4l2_buffer buf; diff --git a/arch/sim/src/sim/sim_hostvideo.h b/arch/sim/src/sim/sim_hostvideo.h index 8441431996..78bd595497 100644 --- a/arch/sim/src/sim/sim_hostvideo.h +++ b/arch/sim/src/sim/sim_hostvideo.h @@ -43,8 +43,8 @@ struct host_video_dev_s *host_video_init(const char *host_video_dev_path); int host_video_uninit(struct host_video_dev_s *vdev); int host_video_start_capture(struct host_video_dev_s *vdev); int host_video_stop_capture(struct host_video_dev_s *vdev); -int host_video_dq_buf(struct host_video_dev_s *vdev, uint8_t *addr, - uint32_t size); +int host_video_dqbuf(struct host_video_dev_s *vdev, uint8_t *addr, + uint32_t size); int host_video_set_fmt(struct host_video_dev_s *vdev, uint16_t width, uint16_t height, uint32_t fmt, uint32_t denom, uint32_t numer); diff --git a/arch/sim/src/sim/sim_video.c b/arch/sim/src/sim/sim_video.c index ad341f2587..9da591b3b6 100644 --- a/arch/sim/src/sim/sim_video.c +++ b/arch/sim/src/sim/sim_video.c @@ -307,9 +307,9 @@ void sim_video_loop(void) if (g_sim_video_priv.next_buf) { - ret = host_video_dq_buf(g_sim_video_priv.vdev, - g_sim_video_priv.next_buf, - g_sim_video_priv.buf_size); + ret = host_video_dqbuf(g_sim_video_priv.vdev, + g_sim_video_priv.next_buf, + g_sim_video_priv.buf_size); if (ret > 0) { g_sim_video_priv.capture_cb(0, ret);