patjak / facetimehd

Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam
GNU General Public License v2.0
1.36k stars 161 forks source link

Unable to Open Stream #158

Open CaptSilver opened 6 years ago

CaptSilver commented 6 years ago

I am trying to use vlc or webcamoid to access my webcam on my late 2013 macbook pro and both applications fail, but cheese works. Unfortunately cheese does not work well. :/

Dmesg: Linux video capture interface: v2.00 [ 101.166293] facetimehd 0000:02:00.0: Found FaceTime HD camera with device id: 1570 [ 101.166518] facetimehd 0000:02:00.0: Setting 64bit DMA mask [ 101.172260] facetimehd 0000:02:00.0: S2 PCIe link init succeeded [ 101.172291] facetimehd 0000:02:00.0: Refclk: 25MHz (0xa) [ 101.182316] facetimehd 0000:02:00.0: PLL reset finished [ 101.182318] facetimehd 0000:02:00.0: Waiting for S2 PLL to lock at 450 MHz [ 101.182330] facetimehd 0000:02:00.0: S2 PLL is locked after 10 us [ 101.192363] facetimehd 0000:02:00.0: S2 PLL is in bypass mode [ 101.212438] facetimehd 0000:02:00.0: DDR40 PHY PLL locked on safe settings [ 101.212451] facetimehd 0000:02:00.0: STRAP valid [ 101.212452] facetimehd 0000:02:00.0: Configuring DDR PLLs for 450 MHz [ 101.212458] facetimehd 0000:02:00.0: DDR40 PLL is locked after 0 us [ 101.212470] facetimehd 0000:02:00.0: First DDR40 VDL calibration completed after 3 us [ 101.212477] facetimehd 0000:02:00.0: Second DDR40 VDL calibration completed after 1 us [ 101.212478] facetimehd 0000:02:00.0: Using step size 145 [ 101.212483] facetimehd 0000:02:00.0: VDL set to: coarse=0x10008, fine=0x10119 [ 101.212488] facetimehd 0000:02:00.0: Virtual VTT enabled [ 101.233046] facetimehd 0000:02:00.0: S2 DRAM memory address: 0x22159559 [ 101.233059] facetimehd 0000:02:00.0: Rewrite DDR mode registers succeeded [ 101.233252] facetimehd 0000:02:00.0: Full memory verification succeeded! (0) [ 101.696399] facetimehd 0000:02:00.0: Loaded firmware, size: 1392kb [ 101.738810] facetimehd 0000:02:00.0: ISP woke up after 0ms [ 101.738815] facetimehd 0000:02:00.0: Number of IPC channels: 7, queue size: 44865 [ 101.738841] facetimehd 0000:02:00.0: Firmware requested heap size: 3072kb [ 101.748890] facetimehd 0000:02:00.0: ISP second int after 0ms [ 101.748893] facetimehd 0000:02:00.0: Channel description table at 00800000 [ 101.759074] facetimehd 0000:02:00.0: magic value: 00000000 after 0 ms [ 101.759075] facetimehd 0000:02:00.0: Enabling interrupts [ 101.759330] FWMSG: [ 101.759351] FWMSG: - APOLLO-ISP-APPLE ------------------------------------------------------------ [ 101.759360] FWMSG: [ 101.759371] FWMSG: Restart count : 0 [ 101.759391] FWMSG: Platform : mode = TARGET, ID = 0x00000000, HW = 00020018.00000000 [ 101.759404] FWMSG: System Clock : 200000000 Hz [ 101.759416] FWMSG: Processor mode : SUPERVISOR [ 101.759534] FWMSG: Cache architecture type : SEPARATE [ 101.759546] FWMSG: Cache type : WRITEBACK [ 101.759559] FWMSG: Data Cache Line : 32 [0x20] [ 101.759572] FWMSG: Boot arguments entries : 2 [ 101.759584] FWMSG: 0000: 0x00000000 0x00000000 [ 101.759602] FWMSG: Physical memory base : 0x00000000 [TLB base 0x00160000] [ 101.759638] FWMSG: Main memory : base : 0x00000000 [ 101.759655] FWMSG: size : 8388608 [0x00800000] [8.0 MB] [ 101.759688] FWMSG: Extra heap : base : 0x2080b000 [phy = 0x0080b000] [ 101.759776] FWMSG: size : 3145728 [0x00300000] [3.0 MB] [ 101.759792] FWMSG: Shared window : base : 0x00800000 [static wiring] [ 101.759810] FWMSG: size : 125829120 [0x07800000] [120.0 MB] [ 101.759824] FWMSG: Shared memory : base : 0x00800000 [ 101.759931] FWMSG: size : 260046848 [0x0f800000] [248.0 MB] [ 101.759950] FWMSG: TEXT : 1421992 [0x15b2a8] - text 667256, cstring 38749, const 715528 [ 101.760054] FWMSG: DATA : 8076 [0x1f8c] - data 0, bss 460, common 1452, noinit 6144 [ 101.760069] FWMSG: Heap free space : 10002626 [0x0098a0c2] [ 101.760084] FWMSG: Heap allocated space : 94656 [0x000171c0] [ 101.760101] FWMSG: Disclaimer : Copyright (c) APPLE Inc. All Rights Reserved. [ 101.760114] FWMSG: Application : adc [release] [ 101.760194] FWMSG: Linked on : Jul 25 2015 - 08:48:55 [ 101.760207] FWMSG: Release : S2ISP-01.43.00 [ 101.760219] FWMSG: H4ISPAPPLE : 11536 [ 101.760230] FWMSG: H4ISPCD : 4081 [ 101.760241] FWMSG: ffw : 4143 [ 101.760257] FWMSG: Tool-chain : iPhone OS - 7.0.3 [clang/clang++] [ 101.760267] FWMSG: [ 101.760330] FWMSG: ------------------------------------------------------------------------------- [ 101.760339] FWMSG: [ 101.833606] FWMSG: [ISP] CMD = 0x0004 [CISP_CMD_PRINT_ENABLE] [ 101.833733] FWMSG: [ISP] CMD = 0x0003 [CISP_CMD_CONFIG_GET] [ 101.833891] FWMSG: [ISP] CH = 0 CMD = 0x010d [CISP_CMD_CH_INFO_GET] [ 101.834319] facetimehd 0000:02:00.0: Direct firmware load for facetimehd/1871_01XX.dat failed with error -2

Kernel is 4.17.17-200.fc28.x86_64

How do i fix this or what do you need?