Package Details: magewell-pro-capture-dkms 1.3.0.4285-1

Git Clone URL: https://aur.archlinux.org/magewell-pro-capture-dkms.git (read-only, click to copy)
Package Base: magewell-pro-capture-dkms
Description: Driver for Magewell Pro Capture Family
Upstream URL: https://www.magewell.com/downloads/pro-capture#/driver/linux-x86
Licenses: unknown
Conflicts: magewell-pro-capture
Submitter: Jat
Maintainer: Jat
Last Packager: Jat
Votes: 4
Popularity: 1.10
First Submitted: 2020-06-10 04:41 (UTC)
Last Updated: 2022-06-28 17:27 (UTC)

Latest Comments

1 2 Next › Last »

goldensuneur commented on 2023-01-31 12:36 (UTC)

I contacted Magewell support and they sent me an updated driver that fixes the build error on kernel 6.1+.

Driver version is 4328, you can download it at this URL http://www.magewell.com/files/drivers/ProCaptureForLinux_4328.tar.gz

There fix in src/avstream/alsa.c:

    snd_pcm_lib_preallocate_pages_for_all(
            pcm,
            SNDRV_DMA_TYPE_CONTINUOUS,
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0))
            card->dev,
#else
            snd_dma_continuous_data(GFP_KERNEL),
#endif
            audio_pcm_hardware.buffer_bytes_max,
            audio_pcm_hardware.buffer_bytes_max
            );

Which should work both with 6.1+ and earlier versions.

daren commented on 2023-01-28 19:05 (UTC) (edited on 2023-01-28 19:06 (UTC) by daren)

I just earlier today applied the patch suggested by zakklol by putting this in the PKGBUILD

prepare() {
    cd "${srcdir}/ProCaptureForLinux_4285"
    sed -e "s/snd_dma_continuous_data(GFP_KERNEL)/NULL/g" -i "src/sources/avstream/alsa.c"
}

And the card works in OBS and mwcap-info -l shows the card as well, it must be some other problem that you have.

Jost commented on 2023-01-28 19:01 (UTC) (edited on 2023-02-04 15:49 (UTC) by Jost)

EDIT: turns out this is a kernel bug, triggered by my CPU model :( See kernel.org thread.

Until all kernels and modules properly support Intel's new IBT mechanism, a feasibly workaround is to add ibt=off to the kernel command line. Note that this might weaken security.

end of EDIT

After modifying src/sources/avstream/alsa.c line 700 as mentioned below, module builds, but will not load on 6.1.8-arch1-1 !

Card is recognized by by lspci, but not by mwcap-info.

[    5.460969] traps: Missing ENDBR: PNG_unFilterScanline+0x168/0x330 [ProCapture]
[    5.461062] ------------[ cut here ]------------
[    5.461064] kernel BUG at arch/x86/kernel/traps.c:255!
[    5.461084] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[    5.461095] CPU: 10 PID: 389 Comm: systemd-udevd Tainted: G           OE      6.1.8-arch1-1 #1 d43e9bdcfe4ce09800bbe1da2a184cb293bc3e00
[    5.461110] Hardware name: ASUSTeK COMPUTER INC. Q670EI-IM-A/Q670EI-IM-A, BIOS 1.15.00 06/15/2022
[    5.461119] RIP: 0010:exc_control_protection+0xc2/0xd0
[    5.461133] Code: fa ff 45 31 c9 49 89 d8 b9 09 00 00 00 48 8b 93 80 00 00 00 be fc 00 00 00 48 c7 c7 39 e5 63 8f e8 c3 f4 47 ff e9 64 ff ff ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
[    5.461147] RSP: 0018:ffff96a040e5f608 EFLAGS: 00010002
[    5.461158] RAX: 0000000000000043 RBX: ffff96a040e5f628 RCX: 0000000000000000
[    5.461167] RDX: 0000000000000000 RSI: ffff8a89efca1660 RDI: ffff8a89efca1660
[    5.461175] RBP: 0000000000000003 R08: 0000000000000000 R09: ffff96a040e5f4a0
[    5.461182] R10: 0000000000000003 R11: ffffffff8fecb948 R12: 0000000000000000
[    5.461189] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[    5.461196] FS:  00007fd796eb2080(0000) GS:ffff8a89efc80000(0000) knlGS:0000000000000000
[    5.461207] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    5.461214] CR2: 000055c8a72ead58 CR3: 0000000104e58004 CR4: 0000000000f70ee0
[    5.461223] PKRU: 55555554
[    5.461228] Call Trace:
[    5.461235]  <TASK>
[    5.461242]  asm_exc_control_protection+0x26/0x30
[    5.461254] RIP: 0010:PNG_unFilterScanline+0x168/0x330 [ProCapture]
[    5.461337] Code: e2 4c 29 f2 66 0f 1f 44 00 00 42 0f b6 04 32 42 02 04 33 43 88 04 34 49 83 c6 01 4d 39 fe 75 ea 31 c0 e9 5b ff ff ff 0f 1f 00 <31> c0 4d 85 c9 0f 84 bf fe ff ff 31 c0 0f 1f 00 0f b6 14 03 41 88
[    5.461354] RSP: 0018:ffff96a040e5f6d0 EFLAGS: 00010297
[    5.461364] RAX: 0000000000000024 RBX: ffff96a042aad011 RCX: 0000000000000003
[    5.461373] RDX: 0000000000000000 RSI: ffff96a042aad011 RDI: ffff96a043001010
[    5.461382] RBP: ffff96a040e5f718 R08: 0000000000000000 R09: 0000000000000870
[    5.461391] R10: ffff96a043001010 R11: 0000000000000000 R12: ffff96a043001010
[    5.461401] R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000870
[    5.461418]  ? karray_set_count+0xaf/0xf0 [ProCapture 584fb3f316b5cdc4d112aca212392f5fc7898b81]
[    5.461499]  PNG_decode+0x5af/0xac0 [ProCapture 584fb3f316b5cdc4d112aca212392f5fc7898b81]
[    5.461574]  ? folio_wait_bit_common+0x212/0x350
[    5.461590]  ? _copy_to_iter+0x54b/0x650
[    5.461602]  ? current_time+0x40/0x100
[    5.461614]  ? atime_needs_update+0x108/0x180
[    5.461625]  ? touch_atime+0x48/0x1b0
[    5.461636]  ? filemap_read+0x323/0x340
[    5.461650]  ? __kernel_read+0x196/0x290
[    5.461661]  loadEmbeddedPngImage+0x1f/0x80 [ProCapture 584fb3f316b5cdc4d112aca212392f5fc7898b81]
[    5.461727]  loadPngImage+0x138/0x160 [ProCapture 584fb3f316b5cdc4d112aca212392f5fc7898b81]
[    5.461799]  xi_cap_probe+0x396/0x6d0 [ProCapture 584fb3f316b5cdc4d112aca212392f5fc7898b81]
[    5.461862]  local_pci_probe+0x42/0x80
[    5.461874]  pci_device_probe+0xc1/0x250
[    5.461887]  really_probe+0xdb/0x380
[    5.461900]  ? pm_runtime_barrier+0x54/0x90
[    5.461912]  __driver_probe_device+0x78/0x170
[    5.461924]  driver_probe_device+0x1f/0x90
[    5.461936]  __driver_attach+0xd2/0x1c0
[    5.461948]  ? __device_attach_driver+0x110/0x110
[    5.461960]  bus_for_each_dev+0x88/0xd0
[    5.461971]  bus_add_driver+0x1b2/0x200
[    5.461983]  driver_register+0x8d/0xe0
[    5.461996]  xi_cap_init+0x45/0x1000 [ProCapture 584fb3f316b5cdc4d112aca212392f5fc7898b81]
[    5.462057]  ? 0xffffffffc0bc8000
[    5.462076]  do_one_initcall+0x5a/0x220
[    5.462091]  do_init_module+0x4a/0x1e0
[    5.462103]  __do_sys_init_module+0x17f/0x1b0
[    5.462118]  do_syscall_64+0x5c/0x90
[    5.462126]  ? exc_page_fault+0x74/0x170
[    5.462137]  entry_SYSCALL_64_after_hwframe+0x63/0xcd
[    5.462150] RIP: 0033:0x7fd79792216e
[    5.462161] Code: 48 8b 0d 1d ec 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ea eb 0c 00 f7 d8 64 89 01 48
[    5.462175] RSP: 002b:00007ffe4b33c788 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[    5.462186] RAX: ffffffffffffffda RBX: 000055c8a716a290 RCX: 00007fd79792216e
[    5.462194] RDX: 000055c8a719c4d0 RSI: 00000000000e2ced RDI: 000055c8a73d2950
[    5.462202] RBP: 000055c8a719c4d0 R08: 0000000000103000 R09: 85ebca77c2b2ae63
[    5.462209] R10: 000000000002b671 R11: 0000000000000246 R12: 0000000000020000
[    5.462216] R13: 000055c8a719c2d0 R14: 000055c8a716a290 R15: 000055c8a7115090
[    5.462227]  </TASK>
[    5.462231] Modules linked in: dca btmtk fjes(-) pcc_cpufreq(-) acpi_cpufreq(-) ProCapture(OE+) mei bluetooth i915(+) ecdh_generic videodev drm_buddy mc intel_vsec ttm snd_pcm drm_display_helper snd_timer cec snd intel_gtt soundcore video acpi_tad acpi_pad nct6775 nct6775_core hwmon_vid wmi coretemp vfat fat cfg80211 rfkill mac_hid dm_multipath sg crypto_user fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 dm_mod raid1 md_mod spi_intel_pci crc32c_intel xhci_pci spi_intel xhci_pci_renesas
[    5.462349] ---[ end trace 0000000000000000 ]---

zakklol commented on 2023-01-01 03:27 (UTC)

Version 4285 fails to build on kernel 6.1.

To fix, change src/sources/avstream/alsa.c line 700 from snd_dma_continuous_data(GFP_KERNEL) to NULL

Retro64XYZ commented on 2022-07-06 05:16 (UTC)

When installing I get the following error -

==> ERROR: Missing 5.9.16-1-MANJARO kernel modules tree for module magewell-pro-capture/4285.

Trying to install the headers does not work as they appear unavailable. Any tips?

Currently running 5.15.50-1-MANJARO

Jost commented on 2022-06-28 13:07 (UTC) (edited on 2022-06-28 13:42 (UTC) by Jost)

kernel module build fails for new version: Pakete (1) magewell-pro-capture-dkms-1.3.0.4236-1

Deprecated feature: REMAKE_INITRD

Building module: cleaning build area... make -j4 KERNELRELEASE=5.18.5-arch1-1......(bad exit status: 2) Error! Bad return status for module build on kernel: 5.18.5-arch1-1 (x86_64) Consult /var/lib/dkms/magewell-pro-capture/4236/build/make.log for more information.

Edit: The deprecation error can be fixed by manually editing /var/lib/dkms/magewell-pro-capture/4236/source/dkms.conf and simply deleting the offending line (since "no" is the default anyway).

Unfortunately, the build still fails, with gcc complaining about implicitly declared functions:

/var/lib/dkms/magewell-pro-capture/4236/build/sources/avstream/capture.c:291:14: Fehler: Implizite Deklaration der Funktion »pci_set_dma_mask« [-Werror=implicit-function-declaration] 291 | !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {

ariaverge commented on 2022-06-14 02:21 (UTC)

I contacted support to get a new version that works with 5.18.1 is here, hopefully it is listed on their website as a stable release soon.

Version 4285: http://www.magewell.com/files/firmware/ProCaptureForLinux_4285.tar.gz

Arndroid commented on 2021-04-23 12:03 (UTC)

Working wonders, thank you! (Manjaro on 5.10)

goldensuneur commented on 2021-01-12 10:19 (UTC)

Yes, it is backward compatible with older kernels (the patch only apply for kernels 5.10+). I don't have time to test it extensively right now but it worked fine for the 5-10 min I used it yesterday.

Jat commented on 2021-01-12 09:26 (UTC)

@goldensuneur Is it backward compatible with kernel 5.9, 5.4, etc? Does it work fine on kernel 5.10? I have not upgraded the kernel to 5.10 and really do not want to waste time to test it.