mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
media: rkisp1: params: fix wrong bits settings
commit2025a48cfdupstream. The histogram mode is set using 'rkisp1_params_set_bits'. Only the bits of the mode should be the value argument for that function. Otherwise bits outside the mode mask are turned on which is not what was intended. Fixes:bae1155cf5("media: staging: rkisp1: add output device for parameters") Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c29dcb253a
commit
17c6d693a3
|
|
@ -1291,7 +1291,6 @@ static void rkisp1_params_config_parameter(struct rkisp1_params *params)
|
|||
memset(hst.hist_weight, 0x01, sizeof(hst.hist_weight));
|
||||
rkisp1_hst_config(params, &hst);
|
||||
rkisp1_param_set_bits(params, RKISP1_CIF_ISP_HIST_PROP,
|
||||
~RKISP1_CIF_ISP_HIST_PROP_MODE_MASK |
|
||||
rkisp1_hst_params_default_config.mode);
|
||||
|
||||
/* set the range */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user