Skip to content

Commit

Permalink
actions: Switch to the Raspberry Pi libcamera repo
Browse files Browse the repository at this point in the history
The upstream libcamera repo does not have Pi 5 support yet, so switch
the testing to use the Raspberry Pi downstream repo temporarily.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
  • Loading branch information
naushir committed Oct 5, 2023
1 parent f31dba7 commit 0b66a9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/libcamera-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: rm -rf ${{env.LIBCAMERA_SRC_DIR}}

- name: Pull libcamera
run: git clone --depth=1 git://linuxtv.org/libcamera.git ${{env.LIBCAMERA_SRC_DIR}}
run: git clone --depth=1 https://github.com/raspberrypi/libcamera.git ${{env.LIBCAMERA_SRC_DIR}}

- name: libcamera version
run: cd ${{env.LIBCAMERA_SRC_DIR}} && git log -1
Expand Down
4 changes: 3 additions & 1 deletion core/libcamera_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <libcamera/base/shared_fd.h>

unsigned int LibcameraApp::verbosity = 2;
unsigned int LibcameraApp::verbosity = 1;

enum class Platform
{
Expand All @@ -47,6 +47,8 @@ Platform get_platform()

if (ret)
return Platform::UNKNOWN;

std::cout << " caps " << (char *)caps.card;

if (!strncmp((char *)caps.card, "unicam", sizeof(caps.card)))
return Platform::VC4;
Expand Down

0 comments on commit 0b66a9c

Please sign in to comment.