From 79143dacbe050e95c7d16b14a9237da31f77a99a Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ospite@studenti.unina.it>
Date: Sun, 14 Oct 2012 18:03:54 +0200
Subject: [PATCH] am7xxx: add support for Philips/SagemCom PicoPix PPX 2055

---
 README.asciidoc         | 2 +-
 contrib/55-am7xxx.rules | 2 ++
 doc/DoxygenMainpage.dox | 1 +
 src/am7xxx.c            | 5 +++++
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/README.asciidoc b/README.asciidoc
index c037521..7ad02de 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -55,7 +55,7 @@ Examples of devices based on AM7XXX are:
       * http://support.acer.com/product/default.aspx?modelId=3888
 
   - Philips/SagemCom PicoPix projectors (PPX 1020, PPX 1230, PPX 1430, PPX
-    1630):
+    1630, PPX 2055):
       * http://www.philips.co.uk/c/pocket-projector/179840/cat/
       * http://www.sagemcom.com/EN/products/image-sound/pico-video-projectors.html
 
diff --git a/contrib/55-am7xxx.rules b/contrib/55-am7xxx.rules
index 8e9dd00..53643ac 100644
--- a/contrib/55-am7xxx.rules
+++ b/contrib/55-am7xxx.rules
@@ -6,3 +6,5 @@ ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="550
 ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="2144", MODE="0660", GROUP="plugdev"
 # Philips/Sagemcom PicoPix 1020
 ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="000e", MODE="0660", GROUP="plugdev"
+# Philips/Sagemcom PicoPix 2055
+ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0016", MODE="0660", GROUP="plugdev"
diff --git a/doc/DoxygenMainpage.dox b/doc/DoxygenMainpage.dox
index 5b79195..1754ea9 100644
--- a/doc/DoxygenMainpage.dox
+++ b/doc/DoxygenMainpage.dox
@@ -24,6 +24,7 @@ Check @link am7xxx.h @endlink for the public API documentation.
 - Acer C112
 - Aiptek PocketCinema T25
 - Philips/SagemCom PicoPix 1020
+- Philips/SagemCom PicoPix 2055
 
 @section libam7xxxDesignOverview Design Overview
 
diff --git a/src/am7xxx.c b/src/am7xxx.c
index 5b98b84..0daa259 100644
--- a/src/am7xxx.c
+++ b/src/am7xxx.c
@@ -91,6 +91,11 @@ static struct am7xxx_usb_device_descriptor supported_devices[] = {
 		.vendor_id  = 0x21e7,
 		.product_id = 0x000e,
 	},
+	{
+		.name       = "Philips/Sagemcom PicoPix 2055",
+		.vendor_id  = 0x21e7,
+		.product_id = 0x0016,
+	},
 };
 
 /* The header size on the wire is known to be always 24 bytes, regardless of
-- 
2.1.4