Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Adapted Code to new driver version and fixed some problems#12

Open
cdorn0 wants to merge 23 commits intoderrod:masterfrom
cdorn0:master
Open

Adapted Code to new driver version and fixed some problems#12
cdorn0 wants to merge 23 commits intoderrod:masterfrom
cdorn0:master

Conversation

@cdorn0
Copy link

@cdorn0 cdorn0 commented Jan 9, 2022

Over christmas I did some work on the driver. I tried to fix the issues with the crash and support of OBS. Both should be fine now. Also all supported pixelformats should work now.

cdorn0 added 23 commits March 19, 2021 11:52
… vfs_read to kernel_read as it is no longer exported
…ted makefile accordingly; added creation of .cmd files for shipped objects
… work; fixed singleplane support for NV12 and YV12; fixed multiplane buffers; fixed ioctl for v4l2 compliance; started development on multiplane support
@derrod
Copy link
Owner

derrod commented Jan 9, 2022

Very nice! I'll try to review and hopefully merge it not too long from now depending on when I get around to running the card on Linux again.

(I also hope to find some time to learn more about linux kernel driver development, maybe getting DKMS or working [if you haven't already]. And long term I'd like to completely remove the binary blobs by decompiling and rebuilding the required parts)

@travisvroman
Copy link

Just wanted to toss out there that I tried @cdorn0 's branch and it works perfectly on my setup - thank you!

I'm running Ubuntu Studio 21.04, using the 5.13.0-28-lowlatency kernel.

@strank
Copy link

strank commented Apr 4, 2022

Adding a comment here for others that might want to try something similar until I get time to investigate a bit more on my fork.

I almost got the AverMedia Live Gamer Bolt (GC555) working with @cdorn0 's current master branch, up to the video input showing in OBS. It does currently crash after a very short time though, with the journal showing lots of "BUG: scheduling while atomic" messages. This is on Manjaro kernel 5.16.14-1. I hope that the issue only requires small changes to account for changes in the newer kernel.

Changes needed in the repo to compile for the GC555, see my fork:

  • Change the device pci id in two places
  • Change include of <stdarg.h> to <linux/stdarg.h>

@Cairan
Copy link

Cairan commented Jul 13, 2022

I also get a lot of the BUG: scheduling while atomic: kworker/6:1/210/0x00000002 errors on 5.15.19 (Slackware 15's default kernel) but not on my self-compiled 5.10.47 from last year... HDMI Input capture does seem to work in OBS now with a couple of trial-and-error with 5.15 but works without much issues on 5.10... I'd stick to 5.10 for the moment if I could but I have an unrelated issue with my flat scanner apps crashing on 5.10 but not on 5.4 or 5.15...

The BUG kernel messages saturate the syslog really fast so I had to do a couple of shenanigans to prevent /var/log from filling up but it works well enough to stream with. Thanks for the work on updating the driver for recent kernels, that is very appreciated.

@cdorn0
Copy link
Author

cdorn0 commented Jul 20, 2022

There seems to be an issue with recent kernel changes. Unfortunately I am very busy right now, but I will try to find the issue that leads to the freeze as soon as I find the time

@PAI5REECHO
Copy link

Straight up crashes on kernel version 6.2.8 as soon as I ffplay /dev/video0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants