v4l2-ctl will work with any v4l2 video or radio card. Normally, ivtv-utils provide it, but this ebuild will fail when the ivtv related kernel option is not present. I made an ebuild that will compile and install only v4l2-ctl from the ivtv-utils tarball. Reproducible: Always Steps to Reproduce: 1. emerge ivtv-utils 2. 3. Actual Results: Didn't find the IVTV kernel option. It is normal because I don't own such hardware. The consequence is that v4l2-ctl is not installed when I need it in order to easily switch between mono and stereo sound with my radio card (haupauge hvr-4000). Expected Results: Install v4l2-ctl. My kernel is a 2.6.29-gentoo-r4, so it have no CONFIG_VIDEO_V4L1 option when CONFIG_VIDEO_V4L2=m is selected, but a CONFIG_VIDEO_V4L1_COMPAT option. I took the ivtv-utils ebuild as basis for this ebuild. Another way would be to hack ivtv-utils ebuild, but it is maybe more complicated and more confusing. DEPEND="!media-tv/v4l2-ctl" into ivtv-utils ebuild would be necessary if v4l2-ctl get its way into portage.
Created attachment 198404 [details] v4l2-ctl-1.3.0 ebuild
Created attachment 198405 [details] Renamed patch from ivtv-utils-1.3.0-r1
(In reply to comment #0) > v4l2-ctl will work with any v4l2 video or radio card. Normally, ivtv-utils > provide it, but this ebuild will fail when the ivtv related kernel option is > not present. I like the idea, but why not just make having IVTV possibly dependent instead? Or am I missing something.
If I understand what you mean by possibly dependent, it would be an USE flag into ivtv-utils live "v4l2ctl-only" that will compile and install only v4l2-ctl from the sources. Also, I was not able to compile the ivtv related part of the package with emerge, make was failing even before the ivtv utils part, during the compilation of v4l2-debug (but it was OK when compiling by hand directly from the sources, it doesn't compile v4l2-debug and even the ivtv parts was compiling.), that even after changing the dependencies in order to force it to compile. It is why I stated to make another ebuild. Anyway, It make no sens that someone that doesn't have an ivtv card install everything.
Added to tree Dominique, will you test and see if it's working for you
Thank you Steve, it work fine here on amd64.
ivtv-ctl and v4l2-ctl are now in v4l-utils