• Philipp Zabel's avatar
    Input: synaptics-rmi4 - fill initial format · 9f6da5d4
    Philipp Zabel authored
    The driver doesn't set an initial video format until s_input is called:
    
      $ v4l2-ctl -d /dev/v4l-touch0 --get-input
      Video input : 0 (Normalized 16-Bit Image: ok)
      $ v4l2-ctl -d /dev/v4l-touch0 --get-fmt-video
      	Width/Height      : 0/0
      	Pixel Format      : ''
      	[...]
      $ v4l2-ctl -d /dev/v4l-touch0 --set-input 0
      Video input set to 0 (Normalized 16-Bit Image: Touch, ok)
      $ v4l2-ctl -d /dev/v4l-touch0 --get-fmt-video
      	Width/Height      : 71/40
      	Pixel Format      : 'TD16'
      	[...]
    
    To fix this, initialize the video format to input 0 during probe.
    Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
    Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    9f6da5d4
rmi_f54.c 17.9 KB