finepower-f1: add sound output support (!691)

This commit is contained in:
HenriDellal 2019-09-23 20:20:27 +03:00 committed by Oliver Smith
parent 0c76dd4ce3
commit 6e5723a69d
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 1393 additions and 4 deletions

View file

@ -1,15 +1,19 @@
# Reference: <https://postmarketos.org/devicepkg> # Reference: <https://postmarketos.org/devicepkg>
pkgname="device-finepower-f1" pkgname="device-finepower-f1"
pkgdesc="FinePower F1" pkgdesc="FinePower F1"
pkgver=0.1 pkgver=0.2
pkgrel=0 pkgrel=0
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="armv7" arch="armv7"
options="!check !archcheck" options="!check !archcheck"
depends="postmarketos-base linux-finepower-f1 mkbootimg mesa-dri-swrast" depends="postmarketos-base linux-finepower-f1 mkbootimg mesa-dri-swrast alsa-utils"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
source="deviceinfo" source="
deviceinfo
asound.state
asound.conf
"
build() { build() {
devicepkg_build $startdir $pkgname devicepkg_build $startdir $pkgname
@ -17,7 +21,15 @@ build() {
package() { package() {
devicepkg_package $startdir $pkgname devicepkg_package $startdir $pkgname
# ALSA
install -D -m644 "$srcdir"/asound.conf \
"$pkgdir"/etc/asound.conf
install -D -m644 "$srcdir"/asound.state \
"$pkgdir"/var/lib/alsa/asound.state
} }
sha512sums="621dbc22d55969e1682476d96f0de142c6e5db2ebd1c2787b8dd701a2d1f5c8a93a4570cbbaa408648036bdbb9904a35a5f7cb0c9e996f7ae641b5eb1cad249b deviceinfo" sha512sums="621dbc22d55969e1682476d96f0de142c6e5db2ebd1c2787b8dd701a2d1f5c8a93a4570cbbaa408648036bdbb9904a35a5f7cb0c9e996f7ae641b5eb1cad249b deviceinfo
b942baf24085dd412dd0aecd1cbf96c2e4b65f96f443a0dcc67c6bd87a23f7cc612289bcecdef36280934f01ace9ba80beefe86f82d303d0ebe18e48776d2628 asound.state
369df19f9bf7546236b81a33c00b6384e88e979c4711fead3749f8e60f4cd99f37b31baf1f00d05a821cb71ca2f440648e13083653f1a4ec0c178c7c1c415a58 asound.conf"

View file

@ -0,0 +1,9 @@
pcm.!default {
type hw
card sprdphone
}
ctl.!default {
type hw
card sprdphone
}

File diff suppressed because it is too large Load diff