Skip to content

Instantly share code, notes, and snippets.

@govorox
Last active January 29, 2016 11:34
Show Gist options
  • Save govorox/da57bfaad83115b2b315 to your computer and use it in GitHub Desktop.
Save govorox/da57bfaad83115b2b315 to your computer and use it in GitHub Desktop.
Fix Lenovo-E550 camera kernel issue (ubuntu)
--- drivers/media/usb/uvc/uvc_driver.c.orig 2015-06-06 22:48:39.375283516 +0900
+++ drivers/media/usb/uvc/uvc_driver.c 2015-06-06 22:48:08.371766829 +0900
@@ -1496,7 +1496,8 @@
if (entity == NULL) {
uvc_trace(UVC_TRACE_DESCR, "Found reference to "
"unknown entity %d.\n", id);
- return -EINVAL;
+// return -EINVAL;
+return 0;
}
*_entity = entity;
@@ -1518,7 +1519,8 @@
if (entity->chain.next || entity->chain.prev) {
uvc_trace(UVC_TRACE_DESCR, "Found reference to "
"entity %d already in chain.\n", entity->id);
- return -EINVAL;
+// return -EINVAL;
+return 0;
}
/* Process entity */
To fix the Lenovo E550 builtin camera recognition error
1. Get the current kernel source:
apt-get source linux-image-$(uname -r)
2. Apply the patch (in the root of the kernel source):
patch -p1 < ../ignore_chining_errors.patch
3. Edit debian.master/changelog, add +vadim to the version number at the top of the file
4. Build kernel:
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic
5. Install resulting .deb packages:
sudo dpkg -i linux*2.6.38-7.37*.deb
6. Reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment