samsung-i9100: setup media controller pipeline (MR 2248)
This commit is contained in:
parent
91f3b92cf0
commit
be82ac495c
3 changed files with 34 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-samsung-i9100
|
||||
pkgver=4
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Samsung Galaxy SII"
|
||||
url="https://postmarketos.org"
|
||||
arch="armv7"
|
||||
|
@ -15,11 +15,13 @@ subpackages="
|
|||
$pkgname-kernel-mainline:kernel_mainline
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
$pkgname-weston:weston
|
||||
$pkgname-media-pipeline:media_pipeline
|
||||
"
|
||||
source="
|
||||
deviceinfo
|
||||
90-android-touch-dev.rules
|
||||
weston.ini
|
||||
media-pipeline.initd
|
||||
"
|
||||
|
||||
build() {
|
||||
|
@ -56,6 +58,16 @@ weston() {
|
|||
"$subpkgdir"/etc/xdg/weston/weston.ini
|
||||
}
|
||||
|
||||
sha512sums="fbd32402a31e132fbe25fd03572a62069d7b592c738821279941c8ca799e2489096e77faad8741f3bbacbb2999dfaed756e43bdfd1b76112c29b29b872d87d30 deviceinfo
|
||||
media_pipeline() {
|
||||
install_if="$pkgname-kernel-mainline"
|
||||
depends="v4l-utils"
|
||||
install="$subpkgname.post-install"
|
||||
install -Dm755 "$srcdir"/media-pipeline.initd "$subpkgdir"/etc/init.d/media-pipeline
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
fbd32402a31e132fbe25fd03572a62069d7b592c738821279941c8ca799e2489096e77faad8741f3bbacbb2999dfaed756e43bdfd1b76112c29b29b872d87d30 deviceinfo
|
||||
089635daddd88eec35451bfe98dc3713035e3623c896dd21305b990ecf422e8fbb54e010cf347919bbb3a7385f639ab119280477fe0783df3228168d97d96fc6 90-android-touch-dev.rules
|
||||
de794566118f1744d068a94e6a75b61d43f6749a4b0871a5270fa7a2048164d609c71fcffa61845c2a7dd4cb5fbeb72c0e4f8b73b382f36d6ff0bcc9b8a5ae25 weston.ini"
|
||||
de794566118f1744d068a94e6a75b61d43f6749a4b0871a5270fa7a2048164d609c71fcffa61845c2a7dd4cb5fbeb72c0e4f8b73b382f36d6ff0bcc9b8a5ae25 weston.ini
|
||||
d3f06476be583f095189557e5269866cfc9346ddbf8d78267d7562fad7f5eca6b09b81fd08cd9690ecf88105bafe8f3ebd9136b68ab5cdaa8bfff740a8bdf3d2 media-pipeline.initd
|
||||
"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Enable media-pipeline init script
|
||||
rc-update add media-pipeline default
|
15
device/testing/device-samsung-i9100/media-pipeline.initd
Normal file
15
device/testing/device-samsung-i9100/media-pipeline.initd
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
description="Set up media controller pipeline"
|
||||
|
||||
depend()
|
||||
{
|
||||
after modules
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
media-ctl --set-v4l2 "'s5p-mipi-csis.1':0[fmt:VYUY8_2X8/1600x1200]"
|
||||
media-ctl --set-v4l2 "'s5p-mipi-csis.1':1[fmt:VYUY8_2X8/1600x1200]"
|
||||
media-ctl --set-v4l2 "'FIMC.0':0[fmt:VYUY8_2X8/1600x1200]"
|
||||
}
|
Loading…
Reference in a new issue