mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
media: rppx1: bls: read the raw pattern from the PRE2 acquisition module
rppx1_bls_swap_regs() gets the Bayer pattern from the acquisition module. The PRE1 path uses pre1.acq, but the PRE2 path mistakenly uses pre2.bls. The BLS module does not store a Bayer pattern, so PRE2 would read zero (RGGB) and map fixed black levels to the wrong colour registers. PRE2 is not started or dispatched yet, so the bug is currently latent. Read the pattern from pre2.acq, as the PRE1 path does, so that enabling PRE2 does not start out with the wrong register mapping. Signed-off-by: Linmao Li <lilinmao@kylinos.cn> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
a1530ef451
commit
e04ffff543
|
|
@ -70,7 +70,7 @@ rppx1_bls_swap_regs(struct rpp_module *mod, const u32 input[4], u32 output[4])
|
|||
|
||||
/* Swap to pattern used in our path, PRE1 or PRE2. */
|
||||
struct rpp_module *acq = mod == &mod->rpp->pre1.bls ?
|
||||
&mod->rpp->pre1.acq : &mod->rpp->pre2.bls;
|
||||
&mod->rpp->pre1.acq : &mod->rpp->pre2.acq;
|
||||
enum rpp_raw_pattern pattern = acq->info.acq.raw_pattern;
|
||||
|
||||
for (unsigned int i = 0; i < 4; ++i)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user