Commit Graph

192 Commits

Author SHA1 Message Date
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
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
Sven Schnelle
1af48495ad facetimehd: report correct amount of buffers 2015-11-28 17:10:16 +01:00
Sven Schnelle
2e7af64e81 facetimehd: add controls for brightness, contrast, saturation and hue 2015-11-28 16:17:11 +01:00
Sven Schnelle
9bc376510b facetimehd: adjust logging level in fthd_v4l2_ioctl_try_fmt_vid_cap() 2015-11-28 16:16:27 +01:00
Sven Schnelle
affbf73f42 facetimehd: add functions to set saturation and hue 2015-11-28 16:15:39 +01:00
Sven Schnelle
b93fbfc22b facetimehd: check index parameter in enum_framesizes()/enum_frameintervals()
otherwise we might have callers trying all possible index value which takes a lot
of time.
2015-11-28 16:12:19 +01:00
Sven Schnelle
ad486d4522 facetimehd: remove cmd_ready variable
instead evaluate the ringbuffer status. This allows to have more than one isp
command in flight.
2015-11-28 16:10:34 +01:00
Patrik Jakobsson
4ffc88f155 facetimehd: Use the max macro from linux/kernel.h 2015-11-28 13:33:47 +01:00
Patrik Jakobsson
ed773c8268 facetimehd: More Broadcom to FacetimeHD renaming 2015-11-28 13:16:53 +01:00
Patrik Jakobsson
29e8243acf facetimehd: Use module_pci_driver() helper macro 2015-11-28 12:45:19 +01:00
Patrik Jakobsson
84b880f29c facetimehd: Don't do a full memory verification
It can probably be skipped all together but let's settle for a short one
for now.
2015-11-28 12:12:31 +01:00