Patrik Jakobsson
45b9a2cbeb
Merge branch 'MegaManSec-patch-1'
2024-10-10 14:31:36 +02:00
Joshua Rogers
20055fa2e9
Attach fthd_pci_remove() to pci driver shutdown hook
...
When running Linux in a VM with the facetimehd module, the device must explicitly be removed.
If the device is not removed upon a shutdown of the VM, the device becomes inoperable until a full reboot of the host. Inoperable here means that the error message "Init failed! No wake signal" occurs.
2024-10-10 14:29:28 +02:00
Patrik Jakobsson
d47bb259d9
Add MODULE_FIRMWARE macro
...
This should help dracut to understand that the firmware is also needed
if the module is put into initrd.
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
0.6.8.2
2024-06-05 13:24:15 +02:00
Patrik Jakobsson
b1f74242ad
Merge pull request #292 from vicamo/for-upstream/accommodate-to-v4l2-field-rename
...
v4l2: accommodate to struct filed rename of vb2_buffer::min_buffers_needed
0.6.8.1
2024-03-22 08:11:51 +01:00
Patrik Jakobsson
2b287d4f5c
Merge pull request #291 from vicamo/for-upstream/update-dkms-version
...
Update dkms.conf with current version.
2024-02-21 20:58:15 +01:00
You-Sheng Yang
d894befef6
v4l2: accommodate to struct filed rename of vb2_buffer::min_buffers_needed
...
Signed-off-by: You-Sheng Yang <vicamo@gmail.com >
2024-02-17 22:32:34 +08:00
You-Sheng Yang
0d4f2b8e99
Update dkms.conf with current version.
...
Signed-off-by: You-Sheng Yang <vicamo@gmail.com >
2024-02-17 22:24:56 +08:00
Patrik Jakobsson
ff64787c0b
Merge pull request #289 from vicamo/for-upstream/fix-build-against-linux-next
...
v4l2: drop ref to unused header
0.6.8
2024-02-02 08:58:52 +01:00
Patrik Jakobsson
07d5ebb204
Merge pull request #270 from satmandu/patch-2
...
Update dkms.conf with current version.
2024-02-02 08:56:26 +01:00
You-Sheng Yang
67bf8a73ed
v4l2: drop ref to unused header
...
Signed-off-by: You-Sheng Yang <vicamo@gmail.com >
2023-10-13 18:04:46 +08:00
Satadru Pramanik
d853c9bbb6
Update dkms.conf with current version.
2022-07-21 12:49:25 -04:00
Patrik Jakobsson
75a2a5800a
Use dma_set_coherent_mask() instead of pci_set_consistent_dma_mask()
...
Kernels v5.18+ needs dma_set_coherent_mask()
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
0.5.18
2022-06-03 12:09:04 +02:00
Patrik Jakobsson
8431504df5
Specify module device table
...
Makes the driver automatically load when hardware is detected. This
should have been done a long time ago. Ooops.
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2021-11-16 13:09:08 +01:00
Patrik Jakobsson
f85a6041af
Apply SPDX license identifiers and provice a LICENSE file
...
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2021-08-11 10:55:24 +02:00
Isaac
82626d4892
Rename V4L2_TYPE_GRABBER to V4L2_TYPE_VIDEO for 5.7rc1
...
Fixes builds on 5.7rc1; credit to:
4815caf32e
0.5.7
2020-06-05 11:33:17 +02:00
Patrik Jakobsson
545cb18e2a
Revert to discrete frame sizes and frame intervals
...
Skype and other applications don't support stepwise frame sizes and
frame intervals. Instead they try to handle them as discrete devices
which fails. It seems they will never fix this so instead we reduce our
functionality to just support the discrete type.
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2020-05-22 15:45:38 +02:00
Patrik Jakobsson
e989703071
Replace ioremap_nocache() with ioremap()
...
ioremap_nocache() got removed from upstream because ioremap() always
gave "nocache". Use ioremap() instead.
Fixes: 4bdc0d676a643140bdf17dbf7eafedee3d496a3c
remove ioremap_nocache and devm_ioremap_nocache
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2020-04-30 10:26:09 +02:00
Patrik Jakobsson
ea832ac486
Fix warning for usage of uninitialized variable
...
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2019-12-10 16:37:09 +01:00
Patrik Jakobsson
a79354fc2e
Change debug level when reporting unknown sensor id
...
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2019-12-10 16:35:54 +01:00
Patrik Jakobsson
726d5318a0
Merge pull request #188 from elerch/patch-1
...
return 0 instead of -EINVAL when no filename found
2019-12-10 16:32:36 +01:00
Andreas Kemnade
f0c2f05272
facetimehd: set device_caps in video_device
...
In kernel 5.4 I otherwise get this warning
WARNING: CPU: 1 PID: 451 at drivers/media/v4l2-core/v4l2-dev.c:863 __video_register_device+0x64b/0xe90 [videodev]
The code there is:
/* the device_caps field MUST be set for all but subdevs */
if (WARN_ON(type != VFL_TYPE_SUBDEV && !vdev->device_caps))
Signed-off-by: Andreas Kemnade <andreas@kemnade.info >
2019-12-05 15:06:07 +01:00
Andreas Kemnade
7d3b650382
facetimehd: compile fix for kernel 5.4
...
pci-aspm.h is merged into pci.h
Signed-off-by: Andreas Kemnade <andreas@kemnade.info >
2019-12-05 15:00:08 +01:00
Patrik Jakobsson
5490fa69d6
firmware: Moved the firmware tools to it's own repository
...
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2019-11-05 13:37:34 +01:00
Emil Lerch
8706159559
return 0 instead of -EINVAL when no filename found
...
My dev_priv->sensorid1 value is 0x248, which doesn't appear in the case statement. That said, the code below my change indicates that a set file itself is optional, so there should be no difference in behavior if the filename is not found or the filename is known but doesn't exist. The module and camera are functional on my machine with this change, with the caveat that no calibration is performed.
2019-09-18 14:14:38 -07:00
Patrik Jakobsson
9b40b27aeb
firmware: Remove superfluous slash in install path
...
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2019-03-26 13:42:51 +01:00
Patrik Jakobsson
9190f7d3b8
facetimehd: Disable ASPM
...
Kernel commit: 5a8361f7ecceaed64b4064000d16cb703462be49
ACPICA: Integrate package handling with module-level code
The above commit fixed a problem with ACPI that previously prevented
ASPM to be enabled. Unfortunately our driver broke because the link to
the device went down while streaming. Fix this for now by disabling ASPM
for the device entirely.
Note: There is an ACPI method we're calling to "power on/off" the device
so the real solution here might be to get it working correctly. I will
need to investigate that further so no ASPM will have to do for now.
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com >
2019-03-17 22:45:13 +01:00
Patrik Jakobsson
1684f3b189
Merge pull request #171 from numansiddique/master
...
Fix compilation error with 4.19+ kernels
2019-01-22 17:52:16 +01:00
Numan Siddique
f62b01d625
Fix compilation error with 4.19+ kernels
...
make[1]: Entering directory '/usr/src/kernels/4.19.9-300.fc29.x86_64'
CC [M] bcwc_pcie/fthd_ddr.o
In file included from bcwc_pcie/fthd_ddr.c:21:
bcwc_pcie/fthd_drv.h:121:5: warning: "LINUX_VERSION_CODE" is not defined, evaluates to 0 [-Wundef]
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
^~~~~~~~~~~~~~~~~~
bcwc_pcie/fthd_drv.h:121:26: warning: "KERNEL_VERSION" is not defined, evaluates to 0 [-Wundef]
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
^~~~~~~~~~~~~~
bcwc_pcie/fthd_drv.h:121:40: error: missing binary operator before token "("
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
...
Fixes the above compilation error
Signed-off-by: Numan Siddique <numan.siddique@gmail.com >
2018-12-30 15:47:47 +05:30
Patrik Jakobsson
0712f39443
Merge pull request #102 from azat-linux/linux-4.8
...
vb2: replace void *alloc_ctxs by struct device *alloc_devs
2016-10-16 19:41:17 +02:00
Azat Khuzhin
40e8e711ad
vb2: replace void *alloc_ctxs by struct device *alloc_devs
...
Upstream: torvalds/linux@36c0f8b32c ("[media] vb2:
replace void *alloc_ctxs by struct device *alloc_devs")
2016-10-10 21:28:52 +03:00
Patrik Jakobsson
48f9854e5d
Merge pull request #85 from nbartos/deb
...
Add 'make deb' to make debian firmware package.
2016-07-19 22:11:52 +02:00
Patrik Jakobsson
d9302e9d26
Merge pull request #86 from nbartos/dkms
...
DKMS package should blacklist bdc_pci automatically.
2016-07-12 00:05:01 +02:00
Nick Bartos
2c9e539540
Add 'make deb' to make debian firmware package.
2016-07-04 14:22:20 -07:00
Nick Bartos
4901c363e8
DKMS package should blacklist bdc_pci automatically.
2016-07-02 13:25:52 -07:00
Patrik Jakobsson
5a7083bd98
Merge pull request #77 from tecnickcom/master
...
fix compile errors in Ubuntu 16.04
2016-05-02 21:08:47 +02:00
nick
e7ee61b01b
compile in 4.4.0 kernel
2016-04-26 10:08:40 +01:00
Nicola Asuni
cc27b9ebaf
Merge pull request #3 from sweeze/master
...
Add dkms.conf and tweak Makefile to work with dkms
2016-04-26 09:43:45 +01:00
Nicola Asuni
61f100a76c
Merge pull request #2 from ddalex/fix44
...
Fix compilation for newer kernels
2016-04-26 09:42:20 +01:00
Nicola Asuni
c3e828dee4
Merge pull request #1 from yantarou/osxupd10.11.3.dmg
...
Firmware extraction update for Mac OS X 10.11.3
2016-04-26 09:41:23 +01:00
Alex Damian
93aeb34c43
Fix compilation for newer kernels
...
New kernels above 4.4 have a different interface for
vb2_ops.queue_setup, so we respect that.
Tested on 4.6.0, the camera works ok.
2016-04-22 20:54:32 +01:00
Joe Barnett
76945312a9
Add dkms.conf and tweak Makefile to work with dkms
...
Specifically, allow building for an installed kernel that is not the running kernel
2016-04-21 15:57:59 -07:00
Jan Hilberath
1aa456e00a
Firmware extraction update for Mac OS X 10.11.3
...
This patch set updates the firmware download and extraction scripts
to work with the OS X El Capitan 10.11.3 Update:
https://support.apple.com/downloads/DL1858
https://support.apple.com/downloads/DL1858/en_US/osxupd10.11.3.dmg
Fixes: https://github.com/patjak/bcwc_pcie/issues/62
Signed-off-by: Jan Hilberath <jan@hilberath.de >
2016-03-10 22:59:21 +09:00
Patrik Jakobsson
8cc44d67f3
Merge pull request #63 from ColinHarrington/cleanup-gitignore
...
Cleanup gitignore
2016-03-01 15:22:59 +01:00
Colin Harrington
2894ef6d13
ignore binary .deb and .tgz files
2016-02-18 09:15:52 -06:00
Colin Harrington
6c7f150083
ignore .tmp_versions & other items created when installing via checkinstall
2016-02-18 09:14:27 -06:00
Colin Harrington
6fa2b61339
ignore binary firmware files
2016-02-18 00:15:09 -06:00
Patrik Jakobsson
bb3c229956
Merge pull request #50 from mauritiusdadd/hotfix
...
Update firmware verions in the extraction script
2016-02-01 00:06:19 +01:00
Patrik Jakobsson
8c7e3cd510
Merge pull request #56 from askulysh/master
...
fix fw_args init.
2016-01-28 15:46:45 +01:00
Andriy Skulysh
5201e3f372
facetimehd: fix fw_args init.
...
Signed-off-by: Andriy Skulysh <askulysh@gmail.com >
2016-01-28 15:46:58 +02:00
Patrik Jakobsson
186e9f9101
Merge pull request #55 from askulysh/master
...
facetimehd: fix fthd_hw_ddr_rewrite_mode_regs()
2016-01-27 00:03:02 +01:00