From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Ricardo Ribalda <ribalda@chromium.org>
Cc: Giuliano Lotta <giuliano.lotta@gmail.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
mchehab@kernel.org
Subject: Re: ucv camera fix : tester offering :-)
Date: Fri, 30 Dec 2022 21:33:42 +0200 [thread overview]
Message-ID: <Y689FvF1zULBkSHs@pendragon.ideasonboard.com> (raw)
In-Reply-To: <CANiDSCuoL4-L4zXPFRS88NpmYMdbbP2QNi90U9LkpS90_unb1w@mail.gmail.com>
On Wed, Dec 21, 2022 at 09:09:37PM +0100, Ricardo Ribalda wrote:
> Hi Giuliano
>
> Usually it is better to ask at the linux-media mailing list
> https://www.linuxtv.org/lists.php. there is better chance to get an
> answer and your question will get better chances to get be answered.
>
> On Wed, 21 Dec 2022 at 15:14, Giuliano Lotta wrote:
> >
> > Hi Laurent,
> >
> > I'm using using an ubuntu Ubuntu 22.04.1 LTS on 5.15.0-56-generic
> >
> > with an Acer Nitro 5 AN517-55 with Quanta ACER HD User Facing', USB
> > 0408:4035.
> >
> > Currently the camera is not working under linux. The camera works
> > perfectly on Windows 11 dual boot.
> >
> > The camera is reported to have problems on other linux versions:
> > https://linux-hardware.org/?id=usb:0408-4035
> >
> > My console commands report similar info to other users:
> > https://unix.stackexchange.com/questions/723504/integrated-camera-not-detected-working-on-acer-nitro-5-an515-58
> >
> > I see also that there is a proposed fix at
> > https://patchwork.kernel.org/project/linux-media/patch/20220617235610.321917-9-ribalda@chromium.org/
>
> If your error in dmesg is simiar
>
> [ 4.629731] uvcvideo 3-6:1.1: Failed to query (129) UVC probe control : 26 (exp. 48).
It looks like your device advertise UVC 1.5 support (as also hinted by
the availability of the Region of Interest control in the camera input
terminal) but implements the UVC 1.0a video control. I'm honestly
puzzled by how abysmal compliance testing seems to be among webcam
manufacturers. In older days this would have called for beheading with a
rusty tea spoon, or worse, cursing in them Finnish.
> I am afraid that my patch won't help you much. My patch fixes the way
> a control can be configured.
>
> Can you copy your whole dmesg when you get an error.
That would be useful.
> Also the output of lsusb -v -d 0408:4035
That seems to be available from https://pastebin.com/raw/GQVWC6i3.
Giuliano, could you try the following patch ? You need to apply it to
the sources of the kernel you're running (available from your
distribution), and compile the uvcvideo module. Depending on the
distribution, it may sign kernel modules, in which case you may need to
recompile the whole kernel. That's a distribution-specific issue that
you should bring up with your distribution's support channel if you run
into issues.
diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index 6abec7a51f47..52e7cae5c249 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -2447,6 +2447,17 @@ static const struct usb_device_id uvc_ids[] = {
.bInterfaceSubClass = 1,
.bInterfaceProtocol = UVC_PC_PROTOCOL_15,
.driver_info = (kernel_ulong_t)&uvc_ctrl_power_line_limited },
+ /* Quanta ACER HD User Facing */
+ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
+ | USB_DEVICE_ID_MATCH_INT_INFO,
+ .idVendor = 0x0408,
+ .idProduct = 0x4035,
+ .bInterfaceClass = USB_CLASS_VIDEO,
+ .bInterfaceSubClass = 1,
+ .bInterfaceProtocol = UVC_PC_PROTOCOL_15,
+ .driver_info = (kernel_ulong_t)&(const struct uvc_device_info){
+ .uvc_version = 0x010a,
+ } },
/* LogiLink Wireless Webcam */
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
| USB_DEVICE_ID_MATCH_INT_INFO,
This may cause side effects, for instance when it comes to handling of
the power line frequency control or other controls whose implementation
depend on the UVC version, but we'll worry about that later.
> > Installed linux-source but uvc_driver.c I found in the directory tree of Ubuntu is different from both :
> >
> > - https://github.com/torvalds/linux/blob/master/drivers/media/usb/uvc/uvc_driver.c
> >
> > - https://patchwork.kernel.org/project/linux-media/patch/20220617235610.321917-9-ribalda@chromium.org/
> >
> >
> > I would like to test your patch and see if the solution can be
> > submitted to Ubuntu for the next fix release.
> >
> > - Could you give me some instructions on how to proceed ?
> >
> > - Should I compile a new whole kernel or just a mod?
> >
> > - Where can I find the source to which your fix applies (seems to
> > apply to something different from Ubuntu and torvald versions) ?
> > Will it be compatible with the current Ubuntu version?
> >
> > - May I ask for some instructions on how to proceed with testing
> > your fix ?
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2022-12-30 19:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA+DpmqZ1fh=MqEn-G6wb_6yELuPWVTROG2ReUDPJGAAOn7FN9Q@mail.gmail.com>
2022-12-21 20:09 ` ucv camera fix : tester offering :-) Ricardo Ribalda
2022-12-30 19:33 ` Laurent Pinchart [this message]
[not found] ` <CA+DpmqZ=v1TwfhnjpaT6ip9L4UnVuE-Cx2cJo0hDNybNhKwu4g@mail.gmail.com>
2023-01-02 12:49 ` Laurent Pinchart
[not found] ` <CA+Dpmqax3M5=a=uPEorx=o2_kaKt_Aj7iXaXHreyjWFLscr+Ng@mail.gmail.com>
2023-01-02 13:25 ` Laurent Pinchart
[not found] ` <CA+DpmqYNK=zLPPRjsqWF-3TgdPHq97tFBGamizrdN1i3xHwAtQ@mail.gmail.com>
[not found] ` <CA+DpmqaVAh8SHhML+4t_MuV4fmZ1HeCaZ9i9B58TRUqpJ2k9VQ@mail.gmail.com>
[not found] ` <Y71KO4ZEwYVSYuvm@pendragon.ideasonboard.com>
[not found] ` <CA+Dpmqba0Lo0wpEQYFbd9SUrBGspn44UDn_jqGyJTpf1oYhttg@mail.gmail.com>
2023-01-15 20:47 ` Laurent Pinchart
2023-01-16 8:11 ` Ricardo Ribalda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y689FvF1zULBkSHs@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=giuliano.lotta@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=ribalda@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox