How to have two mode with same resolution and different frame rate?

Hello,
I want to have a driver with 2 mode with same resolution and different frame rate.
I got help from the imx219 driver and in this driver the frame rate of 1280x720 is set to 60 and 120. I could not capture with 120 fps. this issue, also, is in my driver.
how to have two mode with same resolution and different frame rate?

regards
kamel

Why? you can have frame control to 60 by 120fps sensor mode.

Have reference to imx185 to implement the use_sensor_mode_id

use_sensor_mode_id*
A Boolean, default value false. If true, the user mode driver bypasses the default mode selection logic and uses the TEGRA_CAMERA_CID_SENSOR_MODE_ID control to select a specific sensor mode. If false, it uses default mode selection logic, which selects a mode based on resolution, color format, and frame rate.

thanks,
I will check this.