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

How to select VIDEOBUF2_DMA_SG in kernel config? #4

Open
simonvanderveldt opened this issue Jul 3, 2017 · 2 comments
Open

How to select VIDEOBUF2_DMA_SG in kernel config? #4

simonvanderveldt opened this issue Jul 3, 2017 · 2 comments

Comments

@simonvanderveldt
Copy link

simonvanderveldt commented Jul 3, 2017

Thanks for the ebuild for the macbook webcam!
When emerging it I ran into the issue that my current kernel doesn't have CONFIG_VIDEOBUF2_DMA_SG enabled. I was wondering how you enabled it because apparently it's not possible to toggle it directly through make menuconfig, it's only toggled as a dependency for all kinds of other drivers which I don't really want to install.
Of course manually adding it to the kernel config doesn't really work since it'll be removed when running make menuconfig.

@toaster
Copy link
Owner

toaster commented Jul 3, 2017

Hi Simon,

sadly I have no Gentoo Desktop anymore since my employer switched to the new MBP with touch bar. I can't remember which driver I had installed to get CONFIG_VIDEOBUF2_DMA_SG. Maybe it was some V4L stuff.

Sorry, that I could not help you here.

@simonvanderveldt
Copy link
Author

simonvanderveldt commented Jul 3, 2017

Np, thanks for the quick response!
Seems like the only way is to enable some piece of hardware in the kernel that enables VIDEOBUF2_DMA_SG. I looked in the gentoo tree and that's also what for example ndiswrapper does https://github.com/gentoo/gentoo/blob/master/net-wireless/ndiswrapper/ndiswrapper-1.61.ebuild#L33

I've gone for CONFIG_VIDEO_TW68 which relies on the smallest amount of dependencies and only enables VIDEOBUF2_DMA_SG, not other settings. See https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/drivers/media/pci/tw68/Kconfig#L4

Maybe a similar hint that one could/should enable this like ndiswrapper does would be helpful?

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

No branches or pull requests

2 participants