soyersoyer / cameractrls

Camera controls for Linux
Other
544 stars 23 forks source link

Feature Request: Add enable/disable of mic for logitech cameras #39

Open steamraven opened 8 months ago

steamraven commented 8 months ago

Some Logitech webcams have a firmware switch to enable/disable Microphone. (ex C920c, C290e, C925e), Cameras can be shipped with Microphone disabled. This can be accessed through a XU control.

This is a SET_CUR, Unit: 11 ( Logitech peripheral GUID ffe52d21-8030-4e2c-82d9-f587d00540bd ) Interface: 0 Selector = 0x10 Value: 0 or 1

Code to do that with a USB ctrl_transfer https://github.com/MavChtz/C920e/blob/master/C920e.py

Not sure what all USB ids support this, but at least 0x08b6: "Logi Webcam C920e", 0x08b7: "Logi Webcam C920c", 0x085b: "Logi Webcam C925e",

soyersoyer commented 8 months ago

Thanks for this information. I only have the C925e, but I can't disable the mic in Logi Tune with that cam. There is no enable built-in mic field like in this picture: https://images.squarespace-cdn.com/content/v1/5b9c79b6da02bc4447384e96/1633913620260-9G804IS752D4P3TOK3MT/vlcsnap-2021-10-10-17h50m34s087.png

Does it also respond to UVC_GET_LEN? Does it only work if you detach the kernel driver? Could you try this branch please? https://github.com/soyersoyer/cameractrls/tree/c920e

thanks