On Thu, Feb 15, 2024 at 11:06:47PM +0100, Moritz C. Weber wrote: > @@ -406,12 +405,11 @@ static void buffer_cb(struct vchiq_mmal_instance *instance, > is_capturing(dev)) { > v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, > "Grab another frame as buffer has EOS"); > - vchiq_mmal_port_parameter_set( > - instance, > - dev->capture.camera_port, > - MMAL_PARAMETER_CAPTURE, > - &dev->capture.frame_count, > - sizeof(dev->capture.frame_count)); > + vchiq_mmal_port_parameter_set(instance, > + dev->capture.camera_port, > + MMAL_PARAMETER_CAPTURE, > + #N(#O(#O(#O(#O(&dev->capture.frame_count, ^^^^^^^^^^^^^^^^ Wut? > + sizeof(dev->capture.frame_count)); > } > } > > @@ -420,11 +418,11 @@ static int enable_camera(struct bcm2835_mmal_dev *dev) > int ret; > > if (!dev->camera_use_count) { > - ret = vchiq_mmal_port_parameter_set( > - dev->instance, > - &dev->component[COMP_CAMERA]->control, > - MMAL_PARAMETER_CAMERA_NUM, &dev->camera_num, > - sizeof(dev->camera_num)); > + ret = vchiq_mmal_port_parameter_set(dev->instance, > + &dev->component[COMP_CAMERA]->control, > + MMAL_PARAMETER_CAMERA_NUM, > + &dev->camera_num, > + **sizeof(dev->camera_num)); Also Wut??? regards, dan carpenter