-
Notifications
You must be signed in to change notification settings - Fork 5.2k
drivers: media: rpi: cfe: Avoid unpack operation for 16-bit formats #6926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -884,7 +884,9 @@ static void cfe_start_channel(struct cfe_node *node) | |||
width = source_fmt->width; | |||
height = source_fmt->height; | |||
|
|||
if (node->vid_fmt.fmt.pix.pixelformat == | |||
/* We don't need to repack in the case of 16-bit output. */ | |||
if (fmt.depth != 16 && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt->depth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Groan, I even had that locally!
The unpack operation is redundant for 16-bit sensor formats, don't set the hardware to do it in these cases. Signed-off-by: Naushir Patuck <[email protected]>
@njhollinghurst sadly I think this fix is only partially complete. We only remove the REMAP mode for direct CSI-2 output, not the FE output. From reading the spec, if |
Yes, the only workaround when using FE is to use the 'wildcard' DT (which is equivalent to reverting 98b1f0d) with the side-effect that it will then capture metadata and other DTs. FE could in theory crop out the different components, but better to avoid FE altogether if we can. |
Merging this now as it's correct, but fixing the core issue still needs quite a bit of additional work. |
kernel: drivers: media: rpi: cfe: Avoid unpack operation for 16-bit formats See: raspberrypi/linux#6926
kernel: drivers: media: rpi: cfe: Avoid unpack operation for 16-bit formats See: raspberrypi/linux#6926
The unpack operation is redundant for 16-bit sensor formats, don't set the hardware to do it in these cases.