Use video control interface as evidence of webcam
This commit is contained in:
committed by
Jeremy Soller
parent
00e2cc7a69
commit
fa0e9ec925
@@ -841,15 +841,9 @@ VOID WebcamStatus(VOID) {
|
||||
DEBUG ((EFI_D_INFO, " InterfaceSubClass: %d\n", IntfDesc.InterfaceSubClass));
|
||||
DEBUG ((EFI_D_INFO, " InterfaceProtocol: %d\n", IntfDesc.InterfaceProtocol));
|
||||
|
||||
//TODO: make sure this picks up all of our laptop webcams and nothing else
|
||||
UINT32 Id = (((UINT32)DevDesc.IdVendor) << 16) | ((UINT32)DevDesc.IdProduct);
|
||||
switch (Id) {
|
||||
case 0x04f2b5a7: // Chicony Camera (bonw13, serw10, oryp4)
|
||||
case 0x04f2b649: // Chicony Camera (galp4)
|
||||
case 0x04f2b685: // Chicony Camera (bonw14, darp5, darp6, gaze14, gaze15, lemp9, serw12)
|
||||
case 0x59869102: // Acer BisonCam (addw1, addw2, oryp6)
|
||||
Webcams++;
|
||||
break;
|
||||
if (IntfDesc.InterfaceClass == 14 && IntfDesc.InterfaceSubClass == 1) {
|
||||
DEBUG ((EFI_D_INFO, " Detected Video Control interface\n"));
|
||||
Webcams++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user