diff options
author | Guillaume Tucker <guillaume.tucker@collabora.com> | 2019-07-24 18:19:22 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-07-25 13:31:30 +0300 |
commit | 79e85d1d2c16ba4907bb9d6a4381516b729ff341 (patch) | |
tree | d69b6a9dd168e303cb69b49aa9903a9d5df362cc /drivers/staging/media/Kconfig | |
parent | 8baf50109929c9b407be756c52f4f80a659cb705 (diff) | |
download | linux-79e85d1d2c16ba4907bb9d6a4381516b729ff341.tar.xz |
media: vivid: fix device init when no_error_inj=1 and fb disabled
Add an extra condition to add the video output control class when the
device has some hdmi outputs defined. This is required to then always
be able to add the display present control, which is enabled when
there are some hdmi outputs.
This fixes the corner case where no_error_inj is enabled and the
device has no frame buffer but some hdmi outputs, as otherwise the
video output control class would be added anyway. Without this fix,
the sanity checks fail in v4l2_ctrl_new() as name is NULL.
Fixes: c533435ffb91 ("media: vivid: add display present control")
Cc: stable@vger.kernel.org # for 5.3
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging/media/Kconfig')
0 files changed, 0 insertions, 0 deletions