Skip to content

Commit 3daf8ed

Browse files
committed
add more debug information
1 parent c805999 commit 3daf8ed

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

io.github.saeugetier.photobooth.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
{
8686
"type": "patch",
8787
"path": "patches/disable-ipa-signing.patch"
88+
},
89+
{
90+
"type": "patch",
91+
"path": "patches/debug.patch"
8892
}
8993
],
9094
"modules": [

patches/debug.patch

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/src/libcamera/pipeline/rpi/pisp/pisp.cpp b/src/libcamera/pipeline/rpi/pisp/pisp.cpp
2+
index 77acd2f6..33fa467e 100644
3+
--- a/src/libcamera/pipeline/rpi/pisp/pisp.cpp
4+
+++ b/src/libcamera/pipeline/rpi/pisp/pisp.cpp
5+
@@ -885,8 +885,19 @@ bool PipelineHandlerPiSP::match(DeviceEnumerator *enumerator)
6+
cfe.add("rp1-cfe-fe-image0");
7+
cfe.add("rp1-cfe-fe-stats");
8+
cfe.add("rp1-cfe-fe-config");
9+
+
10+
+ LOG(RPI, Debug) << "Looking for CFE device with driver 'rp1-cfe'";
11+
+
12+
std::shared_ptr<MediaDevice> cfeDevice = acquireMediaDevice(enumerator, cfe);
13+
14+
+ if (!cfeDevice) {
15+
+ LOG(RPI, Debug) << "acquireMediaDevice returned null for CFE";
16+
+ LOG(RPI, Debug) << "Checking available media devices:";
17+
+ for (auto &dev : enumerator->search(cfe)) {
18+
+ LOG(RPI, Debug) << " Found matching device: " << dev->deviceNode();
19+
+ }
20+
+ }
21+
+
22+
if (!cfeDevice) {
23+
LOG(RPI, Debug) << "Unable to acquire a CFE instance";
24+
break;

0 commit comments

Comments
 (0)