Commit Graph

183 Commits

Author SHA1 Message Date
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
Sven Schnelle
9dd6bc2a02 facetimehd: don't access __iomem directly 2015-11-28 07:29:47 +01:00
Sven Schnelle
5305cee744 facetimehd: remove unused functions and adjust copyright 2015-11-27 20:51:44 +01:00
Sven Schnelle
f3067f211a rename driver to facetimehd 2015-11-27 20:32:06 +01:00
Sven Schnelle
3cc6e64906 bcwc_pcie: load set file according to sensor id 2015-11-26 10:11:46 +01:00
Sven Schnelle
5e3734963a bcwc_pcie: add missing bcwc_buffer.c and bcwc_buffer.h 2015-11-25 20:17:58 +01:00
Sven Schnelle
6072fbbdbb bcwc_pcie: cleanup probe function 2015-11-24 21:19:32 +01:00
Sven Schnelle
c38439aeb9 bcwc_pcie: allow to set framerate 2015-11-23 23:31:55 +01:00
Sven Schnelle
1f22dd2da2 bcwc_pcie: add variable for wait_event_interruptible() 2015-11-23 20:03:02 +01:00
Sven Schnelle
5c8ecaef7f bcwc_pcie: allow to set arbitry frame sizes 2015-11-23 16:02:04 +01:00