diff --git a/device/testing/device-samsung-i9100/APKBUILD b/device/testing/device-samsung-i9100/APKBUILD index 365de6f32..5f3c6794c 100644 --- a/device/testing/device-samsung-i9100/APKBUILD +++ b/device/testing/device-samsung-i9100/APKBUILD @@ -1,7 +1,7 @@ # Reference: 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 +" diff --git a/device/testing/device-samsung-i9100/device-samsung-i9100-media-pipeline.post-install b/device/testing/device-samsung-i9100/device-samsung-i9100-media-pipeline.post-install new file mode 100644 index 000000000..8b1aa8288 --- /dev/null +++ b/device/testing/device-samsung-i9100/device-samsung-i9100-media-pipeline.post-install @@ -0,0 +1,4 @@ +#!/bin/sh + +# Enable media-pipeline init script +rc-update add media-pipeline default diff --git a/device/testing/device-samsung-i9100/media-pipeline.initd b/device/testing/device-samsung-i9100/media-pipeline.initd new file mode 100644 index 000000000..425779c0f --- /dev/null +++ b/device/testing/device-samsung-i9100/media-pipeline.initd @@ -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]" +}