Antonio Ospite [Wed, 10 Jun 2015 11:16:02 +0000 (13:16 +0200)]
am7xxx: use debug() instead of fatal() in add_new_device()
We are guaranteed that ctx is non-null by a previous check.
Antonio Ospite [Wed, 10 Jun 2015 10:51:38 +0000 (12:51 +0200)]
am7xxx: rename the "function" argument of log_message() to "function_name"
This express better the meaning of the variable.
Antonio Ospite [Wed, 10 Jun 2015 10:42:39 +0000 (12:42 +0200)]
am7xxx: split declaration and initialization of the "transferred" variable
This makes it clearer than we mean to initialize the variable to
0 before _each_ libusb_bulk_transfer() call.
Antonio Ospite [Wed, 10 Jun 2015 10:41:57 +0000 (12:41 +0200)]
am7xxx-modeswitch: add a blank line for readability
Antonio Ospite [Wed, 10 Jun 2015 10:38:21 +0000 (12:38 +0200)]
am7xxx-modeswitch: set USB configuration following libusb documentation
For the details see: http://libusb.sourceforge.net/api-1.0/caveats.html
Antonio Ospite [Wed, 10 Jun 2015 10:22:57 +0000 (12:22 +0200)]
am7xxx-modeswitch: reorder declarations of variables
Antonio Ospite [Wed, 10 Jun 2015 10:21:41 +0000 (12:21 +0200)]
am7xxx-modeswitch: remove unneeded assignment
Antonio Ospite [Wed, 10 Jun 2015 10:18:49 +0000 (12:18 +0200)]
am7xxx-modeswitch: improve messages relative to libusb failures
Antonio Ospite [Wed, 10 Jun 2015 10:12:22 +0000 (12:12 +0200)]
am7xxx-modeswitch: use LIBUSB_LOG_LEVEL_INFO instead of a magic number
Antonio Ospite [Wed, 10 Jun 2015 10:09:31 +0000 (12:09 +0200)]
am7xxx-modeswitch: use libusb_set_auto_detach_kernel_driver()
Antonio Ospite [Wed, 10 Jun 2015 10:07:20 +0000 (12:07 +0200)]
am7xxx: print an error message when libusb_init fails
Antonio Ospite [Wed, 10 Jun 2015 09:05:46 +0000 (11:05 +0200)]
am7xxx: improve the comment about setting a new configuration
Explain better why it is not needed to detach all kernel drivers in most
situations.
Antonio Ospite [Wed, 10 Jun 2015 09:03:58 +0000 (11:03 +0200)]
am7xxx: clarify a comment about copying data in send_data_async()
Antonio Ospite [Mon, 20 Apr 2015 15:19:10 +0000 (17:19 +0200)]
am7xxx: release the interface when needed in open_device()
Release the interface when bailing out of open_device() after the
interface has been claimed.
Antonio Ospite [Mon, 20 Apr 2015 15:09:19 +0000 (17:09 +0200)]
am7xxx: check the return value of libusb_get_configuration()
libusb_get_configuration() can still fail after the device has been
opened, so check its actual return value before trusting the returned
current_configuration.
Antonio Ospite [Mon, 20 Apr 2015 14:42:02 +0000 (16:42 +0200)]
am7xxx: fix the error path of the second configuration check
Return a negative error value when the configuration check done after
claiming the interface fails, and also fix the output messages.
Antonio Ospite [Mon, 20 Apr 2015 14:32:04 +0000 (16:32 +0200)]
am7xxx: add comment about detaching kernel drivers before setting configuration
Antonio Ospite [Mon, 20 Apr 2015 14:30:53 +0000 (16:30 +0200)]
am7xxx: add some spaces in a comment
Antonio Ospite [Mon, 20 Apr 2015 14:28:47 +0000 (16:28 +0200)]
am7xxx: fix the coding style used to represent pointers
Antonio Ospite [Sun, 25 Jan 2015 23:20:20 +0000 (00:20 +0100)]
am7xxx: use libusb_error_name to print the return value of libusb calls
This makes the debug output more useful.
Antonio Ospite [Sun, 25 Jan 2015 23:05:27 +0000 (00:05 +0100)]
am7xxx: detach kernel driver before claiming the interface
This is needed on some systems like Ubuntu 14.04, but apparently not on
Debian ones.
Thanks-to: Andrea Console <andreaconsole@gmail.com>
Antonio Ospite [Sun, 25 Jan 2015 23:00:25 +0000 (00:00 +0100)]
am7xxx: use a saner approach when setting the USB configuration
Follow the advices from
http://libusb.sourceforge.net/api-1.0/caveats.html
Antonio Ospite [Sun, 25 Jan 2015 22:42:42 +0000 (23:42 +0100)]
am7xxx: when listing possible return values use "or" in place of "and"
Antonio Ospite [Sun, 25 Jan 2015 22:40:35 +0000 (23:40 +0100)]
am7xxx: mention open_device() in the comment about scan_devices()
Antonio Ospite [Sun, 25 Jan 2015 22:27:37 +0000 (23:27 +0100)]
am7xxx: clean up the exit path in open_device()
Antonio Ospite [Sun, 25 Jan 2015 22:23:33 +0000 (23:23 +0100)]
am7xxx: comment on the loop termination in SCAN_OP_OPEN_DEVICE mode
Antonio Ospite [Sun, 25 Jan 2015 22:12:03 +0000 (23:12 +0100)]
am7xxx: factor out an open_device() function from scan_devices()
This reduces the indentation level and makes the code more readable, now
it will be easier to improve open_device().
Antonio Ospite [Sun, 25 Jan 2015 21:12:27 +0000 (22:12 +0100)]
am7xxx: make a comment clearer about SCAN_OP_OPEN_DEVICE
Antonio Ospite [Sun, 25 Jan 2015 20:34:13 +0000 (21:34 +0100)]
TODO: add another item about the style used in cmake files
Antonio Ospite [Sun, 25 Jan 2015 20:33:34 +0000 (21:33 +0100)]
doc/lsusb_dumps: add lsusb_Philips-PicoPix-1020.log
Antonio Ospite [Tue, 30 Dec 2014 22:47:04 +0000 (23:47 +0100)]
examples: fix handling optional libraries in target_link_libraries()
am7xxx-play can compile just fine without XCB, but cmake was being
overly strict when XCB was missing.
Antonio Ospite [Sat, 22 Nov 2014 23:03:08 +0000 (00:03 +0100)]
am7xxx-play: improve a comment
Antonio Ospite [Sat, 22 Nov 2014 22:58:36 +0000 (23:58 +0100)]
am7xxx-play: fix a possible case of use before initialization
The got_packet variable is assigned inside an internal "if" of the while
loop, but it is also used in the checks at the end of the while loop,
and it is possible to get to this part before having ever assigned the
variable, so in order to behave correctly initialize the variable before
the loop starts.
Antonio Ospite [Thu, 6 Nov 2014 14:07:06 +0000 (15:07 +0100)]
debian/changelog: explain why asciidoc and xmlto were moved to Build-Depends
Git-Dch: ignore
Antonio Ospite [Wed, 5 Nov 2014 15:25:05 +0000 (16:25 +0100)]
debian/changelog: release package version 0.1.5-3
Git-Dch: ignore
Antonio Ospite [Wed, 5 Nov 2014 14:20:11 +0000 (15:20 +0100)]
debian/control: move asciidoc and xmlto to Build-Depends
This fixes the problem of the missing man pages in libam7xxx0.1-bin when
building only the binary packages.
Building the man pages depends on asciidoc, and the man pages need to be
built along with libam7xxx0.1-bin which is a binary package; however
dependencies in Build-Depends-Indep are not brought in when doing
a binary only build.
xmlto is needed as well because the a2x program from asciidoc needs it.
Antonio Ospite [Wed, 5 Nov 2014 10:38:19 +0000 (11:38 +0100)]
doc: update Doxyfile.in
In particular this fixes the following warnings from doxygen:
Warning: Tag `XML_SCHEMA' at line 235 of file `Doxyfile.in' has become obsolete.
This tag has been removed.
Warning: Tag `XML_DTD' at line 236 of file `Doxyfile.in' has become obsolete.
This tag has been removed.
Antonio Ospite [Mon, 7 Jul 2014 20:42:26 +0000 (22:42 +0200)]
debian/changelog: release package version 0.1.5-2
Git-Dch: ignore
Antonio Ospite [Mon, 7 Jul 2014 15:54:54 +0000 (17:54 +0200)]
debian/libam7xxx0.1-doc.examples: move the C example programs to libam7xxx-dev
Antonio Ospite [Mon, 7 Jul 2014 14:41:55 +0000 (16:41 +0200)]
debian/libam7xxx0.1-bin.install: distribute some files from contrib/
Antonio Ospite [Mon, 7 Jul 2014 14:41:15 +0000 (16:41 +0200)]
debian/copyright: document the license of some scripts from contrib/
Antonio Ospite [Mon, 7 Jul 2014 13:56:39 +0000 (15:56 +0200)]
debian/patches: add a patch to fix the license of the example programs
Antonio Ospite [Mon, 7 Jul 2014 13:53:22 +0000 (15:53 +0200)]
examples: the examples were always meant to be all under GPL-3+
Antonio Ospite [Mon, 7 Jul 2014 13:25:13 +0000 (15:25 +0200)]
debian/libam7xxx0.1-doc.lintian-overrides: update one override
Antonio Ospite [Mon, 7 Jul 2014 12:25:45 +0000 (14:25 +0200)]
debian/gbp.conf: fix typo s/prinstine-tar/pristine-tar/g
Antonio Ospite [Thu, 15 May 2014 16:10:02 +0000 (18:10 +0200)]
debian/changelog: release package version 0.1.5-1
Git-Dch: ignore
Antonio Ospite [Thu, 15 May 2014 16:08:00 +0000 (18:08 +0200)]
debian/control: fix cme warnings "Synopsis is too long."
Antonio Ospite [Thu, 15 May 2014 15:59:15 +0000 (17:59 +0200)]
debian/control: use a single dash in short descriptions
Some packages use two dashes to separate the generic description from
the package specific one, but the majority of packages use only one.
Antonio Ospite [Thu, 15 May 2014 14:54:31 +0000 (16:54 +0200)]
debian/control: fix installation over old versions
Antonio Ospite [Thu, 15 May 2014 14:45:11 +0000 (16:45 +0200)]
debian/watch: detect new versions from gitweb
Antonio Ospite [Thu, 15 May 2014 11:03:44 +0000 (13:03 +0200)]
debian/patches: drop all patches
Some patches were fixes from upstream which are now in the orig
codebase.
Some other patches were reverts of upstream commits needed to build with
older libav and libusb versions shipped in Debian distributions, drop
these as well as they are not needed anymore to build the package in
Unstable; possibly they can come back in a backport branch if needed.
Antonio Ospite [Thu, 15 May 2014 13:37:32 +0000 (15:37 +0200)]
debian/control: rename the libam7xxx-bin package to libam7xxx0.1-bin
This fixes a lintian error:
E: libam7xxx source: version-substvar-for-external-package libam7xxx0.1 -> libam7xxx0.1-bin
Antonio Ospite [Thu, 15 May 2014 13:22:28 +0000 (15:22 +0200)]
debian/libam7xxx0.1-doc.lintian-overrides: update overrides
Antonio Ospite [Thu, 15 May 2014 12:56:24 +0000 (14:56 +0200)]
debian/control: rename the libam7xxx-doc package to libam7xxx0.1-doc
This fixes a lintian error:
E: libam7xxx source: version-substvar-for-external-package libam7xxx-dev -> libam7xxx0.1-doc
Antonio Ospite [Thu, 15 May 2014 11:15:24 +0000 (13:15 +0200)]
debian/rules: install the NEWS file as the upstream changelog
Antonio Ospite [Thu, 15 May 2014 11:00:28 +0000 (13:00 +0200)]
debian/copyright: update contact info and copyright years
Antonio Ospite [Thu, 15 May 2014 10:59:28 +0000 (12:59 +0200)]
debian/control: update Maintainer email address
Antonio Ospite [Thu, 15 May 2014 10:58:21 +0000 (12:58 +0200)]
debian/changelog: prepare for package version 0.1.5-1
Git-Dch: ignore
Antonio Ospite [Thu, 15 May 2014 10:50:18 +0000 (12:50 +0200)]
Merge tag 'v0.1.5' into debian
Release version 0.1.5
Antonio Ospite [Thu, 15 May 2014 10:44:07 +0000 (12:44 +0200)]
Release version 0.1.5
Antonio Ospite [Thu, 15 May 2014 10:33:41 +0000 (12:33 +0200)]
HACKING.asciidoc: update Windows cross-build section to use libav10
Antonio Ospite [Mon, 12 May 2014 21:02:28 +0000 (23:02 +0200)]
am7xxx-play: port to libav10
Antonio Ospite [Thu, 8 May 2014 10:59:02 +0000 (12:59 +0200)]
Update email address and copyright years
Antonio Ospite [Thu, 8 May 2014 10:37:44 +0000 (12:37 +0200)]
contrib/performance/README: fix some typos
Antonio Ospite [Thu, 8 May 2014 10:27:23 +0000 (12:27 +0200)]
cosmetics: remove some trailing spaces
Antonio Ospite [Thu, 8 May 2014 10:26:04 +0000 (12:26 +0200)]
README.asciidoc: update instructions to test libam7xxx on Windows
Antonio Ospite [Thu, 8 May 2014 10:15:16 +0000 (12:15 +0200)]
HACKING.asciidoc: update the build instructions for Windows
Antonio Ospite [Thu, 8 May 2014 09:37:34 +0000 (11:37 +0200)]
am7xxx: don't use partial designated initializers
Compilers may warn about missing fields in initializers when more checks
are enabled with STRICT_COMPILATION_CHECKS=ON:
.../src/am7xxx.c:1131:31: error: missing field 'direction' initializer [-Werror,-Wmissing-field-initializers]
struct am7xxx_header h = { 0 };
^
1 error generated.
Antonio Ospite [Thu, 8 May 2014 09:22:31 +0000 (11:22 +0200)]
am7xxx: add a portable_endian.h
Add a portable_endian.h to define platform specific implementations for
the functions found on most unix-like systems in endian.h.
Antonio Ospite [Wed, 7 May 2014 19:40:44 +0000 (21:40 +0200)]
Merge branch 'zoom-tele-picopix'
Antonio Ospite [Wed, 7 May 2014 16:05:11 +0000 (18:05 +0200)]
am7xxx-play: allow setting the AM7XXX_ZOOM_TELE zoom mode
Antonio Ospite [Wed, 7 May 2014 16:04:16 +0000 (18:04 +0200)]
picoproj: allow setting the AM7XXX_ZOOM_TELE zoom mode
Antonio Ospite [Wed, 7 May 2014 16:01:58 +0000 (18:01 +0200)]
am7xxx: implement the set_zoom_mode() operation for the PicoPix 2055
Apparently AM7XXX_ZOOM_ORIGINAL and AM7XXX_ZOOM_TELE are the only
supported zoom modes on the PicoPix 2055.
Antonio Ospite [Wed, 7 May 2014 15:59:30 +0000 (17:59 +0200)]
am7xxx: add support for a new AM7XXX_ZOOM_TELE zoom mode
Some PicoPix projectors support a different zoom mode than the Acer
C110, in this mode the image uses a different lens distortion but the
frame aspect ratio does not change.
Antonio Ospite [Wed, 7 May 2014 15:46:50 +0000 (17:46 +0200)]
am7xxx: add a msleep() implementation in tools.[ch]
Antonio Ospite [Wed, 29 Jan 2014 14:29:59 +0000 (15:29 +0100)]
debian/changelog: prepare for 0.1.4-3
Git-Dch: ignore
Antonio Ospite [Wed, 29 Jan 2014 13:49:26 +0000 (14:49 +0100)]
debian/patches: add 0004-Revert-am7xxx-use-the-symbolic-constant-for-libusb-l.patch
Some old libusb version without the LIBUSB_LOG_LEVEL_* defines is still
around in Debian distros (like Raspbian). So add a patch to be able to
build packages for them.
Antonio Ospite [Wed, 4 Dec 2013 10:32:26 +0000 (11:32 +0100)]
Merge branch 'powermode-PicoPix2055'
Antonio Ospite [Thu, 28 Nov 2013 14:23:04 +0000 (15:23 +0100)]
am7xxx: add support for setting the power mode on the PicoPix 2055
Antonio Ospite [Thu, 28 Nov 2013 14:13:12 +0000 (15:13 +0100)]
am7xxx: dump fields of unknown packet types
Allow dumping the payload fields as generic header_data, this is useful
when the packet type cannot be handled explicitly because the meaning of
the data is not known.
Antonio Ospite [Thu, 28 Nov 2013 13:57:09 +0000 (14:57 +0100)]
am7xxx: factor out a send_command() function
Some packet types do not carry any header_data and thus they can be seen
as commands issued to the device.
Add a send_command() function to handle such packet types, others of
them are going to be added in future commits.
Antonio Ospite [Thu, 28 Nov 2013 12:49:52 +0000 (13:49 +0100)]
am7xxx: switch from device quirks to device ops
Define device specific operations in order to allow supporting different
implementation of a given operation by different device models.
For instance this will be used to add an alternative implementation of
the 'set_power_mode' operation for the Philips/SagemCom PicoPix 2055
projector.
For now device specific callbacks are used only for the 'set_power_mode'
and 'set_zoom_mode' operations.
Antonio Ospite [Tue, 19 Nov 2013 12:18:22 +0000 (13:18 +0100)]
debian/control: drop the am7xxx metapackage
Recommend libam7xxx0.1-bin for libam7xxx0.1 and recommend
libam7xxx0.1-doc for libam7xxx-dev.
Antonio Ospite [Tue, 19 Nov 2013 12:04:53 +0000 (13:04 +0100)]
debian/control: specify the debian package branch in Vcs-Git
This is what is suggested in
http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-VCS-fields
Antonio Ospite [Tue, 19 Nov 2013 12:04:00 +0000 (13:04 +0100)]
debian/control: bump Standards-Version to 3.9.5
Antonio Ospite [Tue, 19 Nov 2013 12:01:12 +0000 (13:01 +0100)]
debian/gbp.conf: explicitly disable pristine-tar
This fixes build when users have pristine-tar set to True in the global
configuration file.
Antonio Ospite [Tue, 19 Nov 2013 11:50:44 +0000 (12:50 +0100)]
debian/control: drop the version on the asciidoc dependency
Also drop the dependency on docbook-xsl as it will be brought in by
xmlto.
Antonio Ospite [Mon, 18 Nov 2013 13:41:42 +0000 (14:41 +0100)]
doc/lsusb_dumps: add lsusb_Philips-PicoPix-2055.log
Antonio Ospite [Mon, 18 Nov 2013 13:38:26 +0000 (14:38 +0100)]
doc/lsusb_dumps: strip trailing spaces
This makes it easier to compare different files with diff.
Antonio Ospite [Mon, 18 Nov 2013 13:35:37 +0000 (14:35 +0100)]
doc/man: misc fixes to man pages
The help text in particular was copied from the output of the '-h'
option which was referring to "this help message", this was OK on the
command line but it sounds a little off in a man page.
Antonio Ospite [Wed, 30 Oct 2013 09:49:56 +0000 (10:49 +0100)]
debian/patches: add 0003-CMakeLists.txt-define-DEBUG-1-only-when-CMAKE_BUILD_.patch
DEBUG=1 should not be enabled for Debian packages which are built with
CMAKE_BUILD_TYPE=RelWithDebInfo.
Antonio Ospite [Wed, 30 Oct 2013 09:41:06 +0000 (10:41 +0100)]
CMakeLists.txt: define DEBUG=1 only when CMAKE_BUILD_TYPE=Debug
When building with CMAKE_BUILD_TYPE=RelWithDebInfo the development debug
code should not be enabled, so don't define DEBUG=1 in DEBUG_FLAGS as
this will end up being both in CMAKE_C_FLAGS_DEBUG and
CMAKE_C_FLAGS_RELWITHDEBINFO.
Instead define DEBUG=1 only for CMAKE_C_FLAGS_DEBUG so it gets used only
when CMAKE_BUILD_TYPE=Debug.
Antonio Ospite [Wed, 30 Oct 2013 09:24:17 +0000 (10:24 +0100)]
debian/control: remove versions from libav dependencies
Antonio Ospite [Sun, 13 Oct 2013 13:50:11 +0000 (15:50 +0200)]
HACKING.asciidoc: fix the url of the avcodec_encode_video2 patch
Antonio Ospite [Sat, 7 Sep 2013 15:30:28 +0000 (17:30 +0200)]
am7xxx-play: cosmetics, fix coding style
Antonio Ospite [Sat, 3 Aug 2013 14:25:51 +0000 (16:25 +0200)]
debian/changelog: release Debian package 0.1.4-2
Git-Dch: ignore
Antonio Ospite [Sat, 3 Aug 2013 14:11:17 +0000 (16:11 +0200)]
debian/patches: add 0002-am7xxx-add-quirks-for-Philips-Sagemcom-PicoPix-2055.patch
With this patch PicoPix 2055 works more reliably.
Antonio Ospite [Sat, 3 Aug 2013 13:14:34 +0000 (15:14 +0200)]
am7xxx: add quirks for Philips/Sagemcom PicoPix 2055
The Philips/Sagemcom PicoPix 2055 does not support some operations:
- setting the power mode confuses the firmware
- setting the zoom mode has no effect whatsoever
Disable these operations.
Thanks-to: Luca Bompani
Antonio Ospite [Sun, 28 Jul 2013 21:22:15 +0000 (23:22 +0200)]
NEWS: fix a typo s/mode/more/
Antonio Ospite [Sun, 28 Jul 2013 16:44:19 +0000 (18:44 +0200)]
debian/changelog: package upstream version v0.1.4
Git-Dch: ignore