mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-10 16:42:21 +00:00
media: atmel: atmel-sama5d2-isc: fix wrong mask in YUYV format check
[ Upstream commit91f49b8098
] While this does not happen in production, this check should be done versus the mask, as checking with the YCYC value may not include some bits that may be set. It is correct and safe to check the whole mask. Fixes:123aaf816b
("media: atmel: atmel-sama5d2-isc: fix YUYV format") Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
cf0fdece31
commit
0138760d42
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ static void isc_sama5d2_config_rlp(struct isc_device *isc)
|
|||
* Thus, if the YCYC mode is selected, replace it with the
|
||||
* sama5d2-compliant mode which is YYCC .
|
||||
*/
|
||||
if ((rlp_mode & ISC_RLP_CFG_MODE_YCYC) == ISC_RLP_CFG_MODE_YCYC) {
|
||||
if ((rlp_mode & ISC_RLP_CFG_MODE_MASK) == ISC_RLP_CFG_MODE_YCYC) {
|
||||
rlp_mode &= ~ISC_RLP_CFG_MODE_MASK;
|
||||
rlp_mode |= ISC_RLP_CFG_MODE_YYCC;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue