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
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
Sven Schnelle
e30a82d258
bcwc_pcie: fix goto statements
2015-11-23 16:01:30 +01:00
Sven Schnelle
a9e95f2793
bcwc_pcie: remove waitqueue from wq to cmd_wq
2015-11-23 16:00:55 +01:00
Sven Schnelle
61f779af56
bcwc_pcie: add bcwc_firmware_start() function
2015-11-23 15:58:21 +01:00
Sven Schnelle
c8431e7fbb
bcwc_pcie: fix return code check of wait_event_interruptible_timeout()
2015-11-23 15:50:29 +01:00
Sven Schnelle
a55acf2846
bcwc_pcie: check return value from bcwc_channel_ringbuf_send()
...
It might return NULL, which would cause a kernel crash.
2015-11-23 15:49:53 +01:00
Sven Schnelle
5f5b38e4cc
bcwc_pcie: set channel lock based on channel type
2015-11-23 15:48:56 +01:00
Sven Schnelle
60d31c8571
bcwc_pcie: call bcwc_buffer_queued handler
2015-11-23 15:46:44 +01:00
Sven Schnelle
58a71ab52b
bcwc_pcie: simplify ringbuffer handling
2015-11-23 15:45:04 +01:00
Sven Schnelle
c29ff9e9bf
bcwc_pcie: update README.md
2015-11-23 15:00:40 +01:00
Sven Schnelle
7225545e4b
bcwc_pcie: add channel type enum
2015-11-23 14:44:27 +01:00
Sven Schnelle
4e3d87fb36
bcwc_pcie: add various functions to stop firmware
2015-11-23 14:42:00 +01:00
Sven Schnelle
f1301ae599
bcwc_pcie: remove bcwc_channel_ringbuf_mark_entry_available()
2015-11-22 20:50:42 +01:00
Sven Schnelle
21d37eea24
bcwc_pcie: don't mark sharedmalloc free requests
2015-11-22 20:29:51 +01:00
Sven Schnelle
5cf27e2c53
bcwc_pcie: re-add debug messages
2015-11-22 08:05:16 +01:00
Sven Schnelle
1eeaf7d305
bcwc_pcie: set nice name in v4l2 info
2015-11-22 08:04:48 +01:00
Sven Schnelle
1667a2bc0b
bcwc_pcie: remove a few debug messages
2015-11-22 08:02:41 +01:00
Sven Schnelle
91821fc228
first version that actually streams ;-)
2015-11-21 21:58:30 +01:00
Sven Schnelle
10a0652a5d
bcwc_pci: add video 4 linux skeleton
2015-11-17 19:57:02 +01:00
Sven Schnelle
703c02342c
bcwc_pcie: Fix removal of module
...
the IRQ workqueue was called after channel info was freed, which was
crashing the kernel sometimes. Also fix the isp powerdown sequence,
to stop ISP properly if firmware crashes.
2015-11-14 20:56:21 +01:00
Sven Schnelle
44ae35299e
bcwc_pcie: add basic camera configuration commands
2015-11-09 14:35:17 +01:00
Sven Schnelle
5d5387a52a
bcwc_pcie: fix tx queue index reset
2015-11-09 14:21:38 +01:00