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

OP5+/HDMIRX: Allow ability to restream without reopening device #7257

Closed
wants to merge 1 commit into from

Conversation

benhoff
Copy link
Collaborator

@benhoff benhoff commented Sep 16, 2024

Description

I couldn't "restream" on the hdmirx driver for OPi5+. Meaning once I had opened the hdmirx device, called start stream, then stopped the stream, and then tried to start the stream again without closing the file/device, I would get a "device busy" code. The error/busy signal is thrown from this line of code. Looking at the function call for vb2_is_busy the stream->buf_queue just needs to be marked as done.

I'm not sure what this function return_all_buffers was doing before, but this patch marks items as done before delete them and use a helper method in the kernel to iterate the list instead of hand-rolling the logic.

This patch has been submitted to collabora for upstreaming.

How Has This Been Tested?

Tested on OP5+

Checklist:

Please delete options that are not relevant.

  • I have performed a self-review of my own code
  • My changes generate no new warnings

@github-actions github-actions bot added size/small PR with less then 50 lines Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... labels Sep 16, 2024
@igorpecovnik
Copy link
Member

You should be able to add "ready to merge" label. When you feel its good to go.

@benhoff
Copy link
Collaborator Author

benhoff commented Sep 16, 2024

I jumped the gun on this one, this was a bug in my userspace code.

@benhoff benhoff closed this Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

2 participants