Skip to content

enable led flash for the camera

v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --all

Flash Controls

                       led_mode 0x009c0901 (menu)   : min=0 max=2 default=0 value=0
				0: Off
				1: Flash
				2: Torch
                         strobe 0x009c0903 (button) : flags=write-only, execute-on-write
                    stop_strobe 0x009c0904 (button) : flags=write-only, execute-on-write
                  strobe_status 0x009c0905 (bool)   : default=0 value=0 flags=read-only, volatile
                 strobe_timeout 0x009c0906 (int)    : min=32000 max=1024000 step=32000 default=512000 value=512000
           intensity_flash_mode 0x009c0907 (int)    : min=62500 max=875000 step=62500 default=825000 value=812500 flags=volatile, execute-on-write
           intensity_torch_mode 0x009c0908 (int)    : min=62500 max=875000 step=62500 default=825000 value=825000 flags=volatile, execute-on-write

a strobe is lightning up when doing the following ( stop_strobe needs to be set for "strobe" to work again ):

v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl led_mode=1
v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl strobe=
v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl stop_strobe=

turn on torch:

v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl led_mode=2

turn off torch:

v4l2-ctl --media-bus-info platform:30b80000.csi --device white:torch --set-ctrl led_mode=0

but not sure if this is enough testing, but I guess the application will directly do the above, in which case it would be ok.

Fixes: #351 (closed)

Edited by Martin Kepplinger

Merge request reports