Skip to content
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

MediaControl: Dymically set mainline IVSC media-entity src-pad index #114

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jwrdegoede
Copy link
Contributor

Since mainline kernel commit 48f5fd8967f8 ("media: ivsc: csi: Swap SINK and SOURCE pads") the src-pad on the mainline ivsc mc-entity is pad 1, where as on older versions it is pad 0.

When updating the sensor link to point to the IVSC instead, link.srcPad was left at pad-0 inherited from the original sensor link.

Since with newer kernels this now needs to be pad-1, also update link.srcPad and do so dynamically, so that it works with all mainline IVSC driver versions.

This fixes ipu6-camera-hal / icamerasrc not working on laptops with an IVSC chip running kernels using the mainline IVSC driver with the mentioned commit.

Since mainline kernel commit 48f5fd8967f8 ("media: ivsc: csi: Swap SINK
and SOURCE pads") the src-pad on the mainline ivsc mc-entity is pad 1,
where as on older versions it is pad 0.

When updating the sensor link to point to the IVSC instead, link.srcPad
was left at pad-0 inherited from the original sensor link.

Since with newer kernels this now needs to be pad-1, also update
link.srcPad and do so dynamically, so that it works with all mainline
IVSC driver versions.

This fixes ipu6-camera-hal / icamerasrc not working on laptops with
an IVSC chip running kernels using the mainline IVSC driver with
the mentioned commit.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
@jwrdegoede
Copy link
Contributor Author

Cc: @vicamo @smallorange (FYI)

@vicamo
Copy link
Contributor

vicamo commented Jun 28, 2024

Cc: @vicamo @smallorange (FYI)

This is a duplicate of #112, no?

@jwrdegoede
Copy link
Contributor Author

Cc: @vicamo @smallorange (FYI)

This is a duplicate of #112, no?

Ah yes it looks like it is (#112 seems to do more, but it does also set link.srcPad like this PR does) . I did not see those changes because I was testing the main branch.

Assuming that that commit is heading towards the main branch, then this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants