media: anysee: accept read buffers of length 1 in anysee_master_xfer
authorIstván Váradi <ivaradi@varadiistvan.hu>
Tue, 13 Feb 2024 20:20:32 +0000 (21:20 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 8 Apr 2024 11:48:18 +0000 (13:48 +0200)
commit3c2ea5ec1d86d07329e9a117186a0c8cd30d1c40
treefcb19f8e86e136cf0475878868d6d44de0ee3b87
parentb82779648dfd3814df4e381f086326ec70fd791f
media: anysee: accept read buffers of length 1 in anysee_master_xfer

anysee_master_xfer currently accepts read messages of length 2 only.
However, several frontends, e.g. tda10023 send buffers of length 1,
containing an 8-bit register number (see tda10023_readreg).
These buffers are rejected currently, making many Anysee variants
to not work. In these cases the "Unsupported Anysee version"
message is logged.

This patch alters the function to accept buffers of a length of 1 too.

Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil: add spaces around '<', fix typo in 'sevaral']
drivers/media/usb/dvb-usb-v2/anysee.c