drivers/video: fix if video node do not exist on host of sim env, video driver init fail
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
This commit is contained in:
parent
bdf82d2087
commit
4f0a8dc391
@ -179,7 +179,7 @@ static uint32_t imgdata_fmt_to_v4l2(uint32_t pixelformat)
|
||||
|
||||
static bool sim_camera_is_available(struct imgsensor_s *sensor)
|
||||
{
|
||||
return host_video_is_available(CONFIG_HOST_VIDEO_DEV_PATH);
|
||||
return true;
|
||||
}
|
||||
|
||||
static int sim_camera_init(struct imgsensor_s *sensor)
|
||||
|
Loading…
Reference in New Issue
Block a user