252 Commits

Author SHA1 Message Date
Patrik Jakobsson
766030b5ea facetimehd: Fix include guards in fthd_drv.h
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2016-01-03 15:39:37 +01:00
Patrik Jakobsson
96de215c26 facetimehd: Lower max resolution to known good values
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2016-01-03 13:35:29 +01:00
Patrik Jakobsson
0f646b3660 facetimehd: Fix read io mode
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2016-01-03 13:17:34 +01:00
Patrik Jakobsson
7317a76771 Merge pull request #27 from mauritiusdadd/master
Add download and extraction script for the OS X firmware version 1.43
2015-12-31 14:55:33 +01:00
Patrik Jakobsson
b5e3e74daa facetimehd: Hack the suspend/resume handlers
This is a temporary fix for suspend/resume. It'll unload and reload the
entire driver on suspend/resume. This will obviously not work if the
device is not closed. Also, remove the PCI_VDEVICE macro.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-12-31 14:41:18 +01:00
Patrik Jakobsson
959ae39f9d facetimehd: Rework some of the IRQ handling
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-12-31 14:41:18 +01:00
Patrik Jakobsson
581c909a3f facetimehd: Rename firmware control registers
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-12-31 14:41:17 +01:00
Patrik Jakobsson
0617a86642 facetimehd: Name the known IRQ registers
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-12-31 14:41:17 +01:00
Maurizio D'Addona
a5567bff6c Add some improvements to the makefile 2015-12-29 17:20:34 +01:00
Maurizio D'Addona
41b3eca3a1 Add download and extraction scripts for OS X firmware 1.43 2015-12-29 12:33:16 +01:00
Patrik Jakobsson
c5ca5b6e20 Merge pull request #21 from hobarrera/readme-improvements
Minor README improvements
2015-12-25 20:54:44 +01:00
Hugo Osvaldo Barrera
2d04716156 Tidy up README and move info to the wiki
We'll be keeping the wiki up to date, so remove redundant (and partially
outdated) information from the README.
2015-12-25 12:36:17 -03:00
Maurizio D'Addona
4e69c7ba1b Add universal extraction script for both OS X and Windows drivers 2015-12-24 10:44:01 +01:00
Patrik Jakobsson
6a120799f1 facetimehd: Add new firmware extraction scripts
And remove the broken ones.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-12-06 15:23:05 +01:00
Patrik Jakobsson
2b45fb581a facetimehd: Add control for auto white balance
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-12-06 14:47:26 +01:00
Patrik Jakobsson
eb3e43505d facetimehd: Allow loading of set file to fail
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2015-12-06 14:45:38 +01:00
Sven Schnelle
abdb6cd603 facetimehd: add missing struct dentry for debugfs to struct fthd_privatew 2015-12-01 21:15:05 +01:00
Sven Schnelle
ab647bf462 facetimehd: add unique device name to debugfs dir 2015-12-01 09:40:47 +01:00
Sven Schnelle
edefad16ba facetimehd: remove unneeded header files in fthd_debugfs.h 2015-12-01 09:29:04 +01:00
Sven Schnelle
ea4e874e45 facetimehd: switch to debugfs 2015-12-01 09:26:46 +01:00
Patrik Jakobsson
4d67b02371 Merge branch 'my_fixes' of git://github.com/sschnelle/facetimehd 2015-11-30 21:57:44 +01:00
Patrik Jakobsson
5ad66dbd5e facetimehd: Add missing init of planes 2015-11-30 21:54:12 +01:00
Patrik Jakobsson
7532c491b7 facetimehd: Only allow framesizes for formats we support 2015-11-30 21:15:53 +01:00
Patrik Jakobsson
230e57ae45 facetimehd: Rework and fix _G_FMT/_S_FMT/_TRY_FMT 2015-11-30 21:13:26 +01:00
Patrik Jakobsson
3f5fa56ae3 facetimehd: Add basic event subscription 2015-11-30 21:13:26 +01:00
Sven Schnelle
a8c3278948 facetimehd: don't report that we can do tv standards 2015-11-30 20:26:31 +01:00
Sven Schnelle
4dd6f5459e facetimehd: remove V4L2_CAP_TIMEPERFRAME 2015-11-30 20:08:10 +01:00
Sven Schnelle
a0118922b6 Revert "facetimehd: remove explicit V4L2_CAPTURE capability"
This reverts commit b9cf9afb31.
2015-11-30 18:26:34 +01:00
Sven Schnelle
b9cf9afb31 facetimehd: remove explicit V4L2_CAPTURE capability 2015-11-30 18:23:44 +01:00
Sven Schnelle
ced9f7805e facetimehd: add support for dumping ringbuffer via sysfs 2015-11-30 14:42:30 +01:00
Sven Schnelle
6242aaa624 facetimehd: make get_entry_addr() public 2015-11-30 14:41:56 +01:00
Sven Schnelle
5608b8b00f facetimehd: add sysfs functions
Introduce a new debug sysfs file, which accepts the following commands:

ps - show task running in firmware
banner - show startup banner
get_root - get ROOT object
heap - show heap statistics
irq - show irq statistics
semaphore - show semaphore status
wiring - show wiring status
get_object_by_name %s - get address for object
get_fsm_by_name %s - get address for FSM
dump_object %p - show information about object
dump_objects - dump all objects (NOTE: will crash firmware)
show_objects - show graph about all objects known
get_debug_level - get debug level for object
set_debug_level - set debug level for object
set_debug_level_rec - set debug level recursive for all objects
get_fsm_count - get count of FSM's
get_fsm_by_index - get fsm address for index
get_fsm_debug_level - get debug level for fsm
set_fsm_debug_level - set debug level for fsm
2015-11-30 11:57:10 +01:00
Sven Schnelle
59c279a5f3 facetimehd: check command status in fthd_isp_cmd() 2015-11-30 11:50:26 +01:00
Sven Schnelle
cf1e7c2dfb facetimehd: add function to send debug commands to the firmware 2015-11-30 11:49:59 +01:00
Sven Schnelle
67f5198a17 facetimehd: add debug command definitions 2015-11-30 11:49:07 +01:00
Patrik Jakobsson
d57b16fc64 facetimehd: Fix enumeration of formats 2015-11-29 23:48:57 +01:00
Patrik Jakobsson
6d58c3b96e facetimehd: Remove V4L2_CAP_TIMEPERFRAME from device caps
V4L2_CAP_TIMERPERFRAME is a streaming paramater and must not go into the
device caps. This accidentally exposed mplane support which we don't
have yet.
2015-11-29 23:11:38 +01:00
Patrik Jakobsson
7c50063de3 facetimehd: Don't expose a TV standard
We're a webcam so we don't support TV standards
2015-11-29 23:11:36 +01:00
Patrik Jakobsson
77bf571d54 Merge branch 'my_fixes' of git://github.com/sschnelle/facetimehd 2015-11-29 21:15:28 +01:00
Sven Schnelle
d1ec497e02 Merge remote-tracking branch 'patjak/master' into my_fixes 2015-11-28 23:11:00 +01:00
Sven Schnelle
6bbe3712f8 facetimehd: fix enum_frameintervals()
Signed-off-by: Sven Schnelle <svens@stackframe.org>
2015-11-28 23:09:40 +01:00
Sven Schnelle
4758d7a848 facetimehd: set framesize type to stepwise 2015-11-28 23:02:23 +01:00
Sven Schnelle
c0e9fbb6e6 facetimehd: return error if channel list is empty
Signed-off-by: Sven Schnelle <svens@stackframe.org>
2015-11-28 23:01:19 +01:00
Sven Schnelle
ca8c5584e0 facetimehd: add channel waitqueue
add a per channel waitqueue to be able to have more than one ringbuffer
entry in flight.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
2015-11-28 22:59:44 +01:00
Sven Schnelle
3574901c31 facetimehd: add missing linefeeds in pr_debug
Signed-off-by: Sven Schnelle <svens@stackframe.org>
2015-11-28 22:21:37 +01:00
Patrik Jakobsson
58195cd9e4 facetimehd: Rename firmware directory
And the v4l driver name.
2015-11-28 21:26:07 +01:00
Sven Schnelle
aebaf60c07 facetimehd: change fthd_channel_ringbuf_send() error handling
In the current implementation it returns -1 on error, an offset value
otherwise. Change it to return a negative error value, and add a pointer
to an u32 for receiving the entry offset as an extra argument.

This makes the ugly (u32)-1 return code comparision obsolete, and we
can return a more detailed error code like EAGAIN if all ringbuffer slots
are busy.
2015-11-28 21:18:22 +01:00
Patrik Jakobsson
8e83f8fbcd Merge branch 'my_fixes' of git://github.com/sschnelle/facetimehd 2015-11-28 21:16:40 +01:00
Patrik Jakobsson
311137ba01 facetimehd: Prep the DDR PHY save/restore functions 2015-11-28 20:53:42 +01:00
Sven Schnelle
2ff298739a facetimehd: set bus_info in v4l2 capabilities 2015-11-28 17:15:42 +01:00