Compare commits

..
7 changed files with 158 additions and 53 deletions

No files matched your search

@@ -0,0 +1,52 @@
# Maintainer: Antony Kurniawan S. <postmarketos@smankusors.com>
pkgname=device-asus-zenfone3
pkgdesc="Asus Zenfone 3"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
firmware-asus-zenfone3
lk2nd-msm8953
mkbootimg
msm-firmware-loader
postmarketos-base
soc-qcom-msm8953
soc-qcom-msm8953-modem
"
makedepends="devicepkg-dev"
subpackages="
$pkgname-kernel-ze520kl:kernel_ze520kl
$pkgname-kernel-ze552kl:kernel_ze552kl
"
source="
deviceinfo
modules-initfs
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_ze520kl() {
depends="linux-postmarketos-qcom-msm8953"
pkgdesc="Asus Zenfone 3 (ZE520KL)"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_ze552kl() {
depends="linux-postmarketos-qcom-msm8953"
pkgdesc="Asus Zenfone 3 (ZE552KL)"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
sha512sums="
7070801470fe2e7ba2ea5cee79ec52d65ad7ff6bdc995283061aeb4967102082602bacb342d38bfa6589bb2e0140cbd71063803039b1e4eb861867c05232f588 deviceinfo
a4c56173941e88434073d9980a687a82956fbcaaaf15068fd2b4fd9351011a934c82f67e62ce87440876d673784938cfdaedc70ae03e1943c95baef6205567b1 modules-initfs
"
@@ -0,0 +1,34 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Asus Zenfone 3"
deviceinfo_manufacturer="Asus"
deviceinfo_codename="asus-zenfone3"
deviceinfo_year="2016"
deviceinfo_dtb_ze520kl="qcom/msm8953-asus-ze520kl"
deviceinfo_dtb_ze552kl="qcom/msm8953-asus-ze552kl"
deviceinfo_append_dtb="true"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_gpu_accelerated="true"
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_getty="ttyMSM0;115200"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_generate_extlinux_config="true"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_pagesize="2048"
deviceinfo_header_version="0"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
@@ -0,0 +1,7 @@
msm
panel_asus_ze520kl_ili7807b_boe
panel_asus_ze520kl_r63350_tm
panel_asus_ze552kl_ili7807b_ctc
panel_asus_ze552kl_nt35596_txd
panel_asus_ze552kl_otm1901a_lce
panel_asus_ze552kl_r63350_tm
@@ -0,0 +1,27 @@
# Maintainer: Antony Kurniawan S. <postmarketos@smankusors.com>
pkgname=firmware-asus-zenfone3
pkgver=1
pkgrel=0
pkgdesc="Firmware for Asus Zenfone 3 ZE520KL/ZE552KL"
url="https://gitlab.com/Smankusors/firmware-asus-zenfone3"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
_commit="f1439210719b2a1597f6390f34ae93cb1470ddf4"
builddir="$srcdir/$pkgname-$_commit/"
source="
$url/-/archive/$_commit/$pkgname-$_commit.tar.gz
firmware.files
"
_fwdir="/lib/firmware/postmarketos"
package() {
while IFS="" read -r fw; do
install -Dm644 "$fw" "$pkgdir/$_fwdir/$fw"
done < "$srcdir"/firmware.files
}
sha512sums="
a9980ae2ab0868d7e8e2d054e72525c030fe75d66aec6eebd2e17619d5d24455de2a158ea7ed0eb0db2f7a2f4bc07701672de217f8c7274599cd92c00cb2d04e firmware-asus-zenfone3-f1439210719b2a1597f6390f34ae93cb1470ddf4.tar.gz
2b5ba92ec40e84294e0c1feae167274d49990545cf28a1a916440a4604d03f5a213187d753fe02f98918f7283707e353e309a7169c44d4f69464a87afb67d2b8 firmware.files
"
@@ -0,0 +1,37 @@
qcom/a530_pfp.fw
qcom/a530_pm4.fw
wlan/prima/WCNSS_qcom_wlan_nv.bin
a506_zap.b02
a506_zap.mdt
adsp.b00
adsp.b01
adsp.b02
adsp.b03
adsp.b04
adsp.b05
adsp.b06
adsp.b07
adsp.b08
adsp.b09
adsp.b10
adsp.b11
adsp.b12
adsp.b13
adsp.b14
adsp.mdt
venus.b00
venus.b01
venus.b02
venus.b03
venus.b04
venus.mdt
wcnss.b00
wcnss.b01
wcnss.b02
wcnss.b04
wcnss.b06
wcnss.b09
wcnss.b10
wcnss.b11
wcnss.b12
wcnss.mdt
@@ -1,50 +0,0 @@
From d3f0e40d49378a70405b975169ab444f4a565a17 Mon Sep 17 00:00:00 2001
From: Robert Mader <robert.mader@collabora.com>
Date: Thu, 26 Sep 2024 23:07:39 +0200
Subject: [PATCH 5/5] pipeline: simple: Increase buffer count to four
Which is not only what many other pipeline handlers use, but also a good
lower limit when dealing with DRM and similar APIs. Even Mesas EGL and
Vulkan WSI implementations use for the reason outlined in mesa commit
992a2dbba80aba35efe83202e1013bd6143f0dba:
> When the compositor is directly scanning out from the application's buffer it
> may end up holding on to three buffers. These are the one that is is currently
> scanning out from, one that has been given to DRM as the next buffer to flip
> to, and one that has been attached and will be given to DRM as soon as the
> previous flip completes. When we attach a fourth buffer to the compositor it
> should replace that third buffer so we should get a release event immediately
> after that. This patch therefore also changes the number of buffer slots to 4
> so that we can accomodate that situation.
Given the popularity of this buffer number the bump should be unlikely
to cause problems. At the same time it may help with performance or
even work around glitches.
The previous number was introduced in commit
a8964c28c80fb520ee3c7b10143371081d41405a without mentioning a specific
reason against the change at hand.
Signed-off-by: Robert Mader <robert.mader@collabora.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
src/libcamera/pipeline/simple/simple.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
index 29320a26..b32f8b2c 100644
--- a/src/libcamera/pipeline/simple/simple.cpp
+++ b/src/libcamera/pipeline/simple/simple.cpp
@@ -1134,7 +1134,7 @@ CameraConfiguration::Status SimpleCameraConfiguration::validate()
cfg.frameSize = format.planes[0].size;
}
- cfg.bufferCount = 3;
+ cfg.bufferCount = 4;
}
return status;
--
2.46.2
+1 -3
View File
@@ -3,7 +3,7 @@
pkgname=libcamera
pkgver=9999
_pkgver=0.3.2
pkgrel=7
pkgrel=6
pkgdesc="Linux camera framework"
url="https://libcamera.org/"
arch="all"
@@ -46,7 +46,6 @@ source="https://gitlab.freedesktop.org/camera/libcamera/-/archive/v$_pkgver/libc
0002-libcamera-simple-Force-disable-softwareISP-for-milli.patch
0003-libcamera-simple-Enable-softISP-for-the-Pinephone.patch
0004-libcamera-simple-Skip-hwISP-formats-if-swISP-is-acti.patch
0005-pipeline-simple-Increase-buffer-count-to-four.patch
qcam.desktop
90-libcamera.rules
"
@@ -151,7 +150,6 @@ ac7df3e4509ae874199810057f4d8416da71720c15534578cc352608a8ae228dfa4814f9eb995d55
9b6da8bd11ff9d8400ed721fbbeb960ac8753c078fdd971d786a446a9f96fea19dfc55be2705dc44a152e11de996f88139c1d24637bffc257da5083d19fe80c9 0002-libcamera-simple-Force-disable-softwareISP-for-milli.patch
0fc6a1108c4e905d2d422a664622dc25ec459f13765b5711ad009d4df0fd0cceda8cd067a18e5e54eb2346b292481952161e72deb03d416ba80b300256c25e40 0003-libcamera-simple-Enable-softISP-for-the-Pinephone.patch
35c74746453f4c2e24a2185331afabcf64e3af01bec2462ec09940518cda0e91c4a1f33853b4b009e1f8352af3c606fbd4b4d3791ffbba0f610f19538380c4c8 0004-libcamera-simple-Skip-hwISP-formats-if-swISP-is-acti.patch
b3ba41f81f30979e9b2bd41f5068cd720a11cde2e2a2e31a875493ad9e299cb3dd7b81b5862bea71201001533c6bde18e3d025f65df23e73af3b9363857654a2 0005-pipeline-simple-Increase-buffer-count-to-four.patch
22167a4eceb6d1b40b0b7c45fdf116c71684f5340de7f767535cb8e160ad9d2ae0f00cb3d461f73a344520a48a4641cf46226841d78bee06bfbfd2a91337f754 qcam.desktop
cb4eb19eec766f1b8667a8b7c9d5f7d44a2dce79fddfdf3b6e3d1849066cebe79f82566bdcf6659c7ddf4faaf233d5adac10cda636935785e5305e2b7e9b34a9 90-libcamera.rules
"