Skip to content
Snippets Groups Projects
Unverified Commit 195114e4 authored by Dang Huynh's avatar Dang Huynh
Browse files

xiaomi-santoni: Added pulseaudio files and silenced substream kernel messages

parent ec64c2b2
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,9 @@ pkgrel=6
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
install="$pkgname.post-install"
options="!check !archcheck"
depends="postmarketos-base linux-xiaomi-santoni mkbootimg mesa-dri-swrast msm-fb-refresher mdss-fb-init-hack pulseaudio pulseaudio-alsa alsa-utils adsp-audio"
depends="postmarketos-base linux-xiaomi-santoni mkbootimg mesa-dri-swrast msm-fb-refresher mdss-fb-init-hack pulseaudio pulseaudio-alsa alsa-plugins-pulse alsa-utils adsp-audio"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo
......@@ -18,6 +19,7 @@ source="deviceinfo
100-charging.rules
charging.sh
discharging.sh
asound.conf
msm8920-sku7-snd-card.conf"
build() {
......@@ -35,6 +37,8 @@ package() {
"$pkgdir"/usr/share/alsa/ucm/msm8920-sku7-snd-card/msm8920-sku7-snd-card.conf
install -D -m644 "$srcdir"/90-device-xiaomi-santoni-audio.rules \
"$pkgdir"/etc/udev/rules.d/90-device-xiaomi-santoni-audio.rules
install -D -m644 "$srcdir"/asound.conf \
"$pkgdir"/etc/asound.conf
install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
install -Dm644 "$srcdir"/directfbrc "$pkgdir"/etc/directfbrc
......@@ -61,4 +65,5 @@ b634d13cac1f10535a31c142c7391986ab402ae9910d8093989920f4c2dbd63722ee8595f11962bf
9b9a0b0e196133c4c5412fc4a794270d7c7ac41fe67f9c0c81e35a31f22f478f28d1e2fa4825bdd711e1309e90354fb37ed398825cfcf85fd29bc4078b17ea84 100-charging.rules
c4853babd5cd6371297e5e5d64364c064d540cd4beaba06d79b1001fe5c78fe3ee8bc5f6f4ba3e383743a09263028abc55f41bad45240b1c505e27ed087725c9 charging.sh
6012be4184af6c4f12f9b20a6f2d377ebd72b9b334df4fbb921ed9d8da865633631f77d19b02748ebee70442e2f3ffcb6af511ee5deaa40635bc53730c301076 discharging.sh
b1f374547e9a0ebb99c0740af50ed17d40dfa1e283046ca2aad42a8e31604fee2916612e0579b2dbf1c6cd88a1d2c6117fec7754e745f654a705f8e5073aba92 asound.conf
6cbe9079b6eb1fc889fbb13d8b3da620b39abde3e93e2301601e5416fda8b768aa11876238378af6571ddc3c4ce662dd49f1491cbe8b96153451ffdc7b761926 msm8920-sku7-snd-card.conf"
# Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
}
ctl.!default {
type pulse
fallback "sysdefault"
}
# vim:set ft=alsaconf:
#!/bin/sh
# We make sure that tsched has not mentioned anywhere in the default pa config
[ "`grep -c tsched /etc/pulse/default.pa`" -lt "1" ] && sed -i 's/load-module module-udev-detect/load-module module-udev-detect tsched=0/g' /etc/pulse/default.pa
......@@ -22,6 +22,7 @@ _config="config-${_flavor}.${arch}"
source="
$pkgname-$_commit.tar.gz::https://github.com/Danct12/${_repository}/archive/${_commit}.tar.gz
fix-xorg-mdss-update-fb-info.patch
disable-substream-runtime-errors.patch
$_config
"
builddir="$srcdir/${_repository}-${_commit}"
......@@ -71,4 +72,5 @@ package() {
sha512sums="e1625f50d4da7c4a93916778ac75fbe737e846e4dcba4d6e2fb6c5fd0f996998bba77cecb88b9186a8078c58cca399e901a65f33ae41844f40352a75311974b5 linux-xiaomi-santoni-3a71e7bf4e267af80b35fbaf2c51bb41d9ab9f7a.tar.gz
a277af28a718f5caf94257005393aa92d62c96110a8ec6368ff62f2e0d871b69c56c4ce00174db637204d53fa63ad3a79b8d6141713dca0878e1f06fe0379caa fix-xorg-mdss-update-fb-info.patch
14ee08e4f93befeaabfb35e6bf0b8bb5b2eecba1c21ce4498499c377c2cf4d5fccbfe85e14ca92c704d067386ec08a06805ab886f0ec7691471cf379838545aa disable-substream-runtime-errors.patch
cda421f78eb8117f7f0ec94ca9d3d7d0ff6c221c0bee1c1cbf9e6f1acacb56e4c37e35760c9b3d6150ab590f9b28066315d415c7331d9ee914132d2d2dd8a6a0 config-xiaomi-santoni.aarch64"
From 408331eace24ef1ee4e830502b3355799122c984 Mon Sep 17 00:00:00 2001
From: Danct12 <danct12@disroot.org>
Date: Fri, 3 May 2019 01:19:24 +0700
Subject: [PATCH] Disable substream runtime not found errors
---
sound/soc/msm/qdsp6v2/msm-pcm-loopback-v2.c | 4 ++--
sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.c | 4 ++--
sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-loopback-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-loopback-v2.c
index 827d079d3968..eff8244065a9 100644
--- a/sound/soc/msm/qdsp6v2/msm-pcm-loopback-v2.c
+++ b/sound/soc/msm/qdsp6v2/msm-pcm-loopback-v2.c
@@ -490,7 +490,7 @@ static int msm_pcm_volume_ctl_put(struct snd_kcontrol *kcontrol,
pr_debug("%s: volume : 0x%x\n", __func__, volume);
if ((!substream) || (!substream->runtime)) {
- pr_err("%s substream or runtime not found\n", __func__);
+ //pr_err("%s substream or runtime not found\n", __func__);
rc = -ENODEV;
goto exit;
}
@@ -516,7 +516,7 @@ static int msm_pcm_volume_ctl_get(struct snd_kcontrol *kcontrol,
pr_debug("%s\n", __func__);
if ((!substream) || (!substream->runtime)) {
- pr_err("%s substream or runtime not found\n", __func__);
+ //pr_err("%s substream or runtime not found\n", __func__);
rc = -ENODEV;
goto exit;
}
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.c b/sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.c
index 289049c7fac2..a256bd1c7bf1 100644
--- a/sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.c
+++ b/sound/soc/msm/qdsp6v2/msm-pcm-q6-noirq.c
@@ -579,7 +579,7 @@ static int msm_pcm_volume_ctl_get(struct snd_kcontrol *kcontrol,
return -ENODEV;
}
if (!substream->runtime) {
- pr_err("%s substream runtime not found\n", __func__);
+ //pr_err("%s substream runtime not found\n", __func__);
return 0;
}
prtd = substream->runtime->private_data;
@@ -604,7 +604,7 @@ static int msm_pcm_volume_ctl_put(struct snd_kcontrol *kcontrol,
return -ENODEV;
}
if (!substream->runtime) {
- pr_err("%s substream runtime not found\n", __func__);
+ //pr_err("%s substream runtime not found\n", __func__);
return 0;
}
prtd = substream->runtime->private_data;
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c
index e505f416ab2c..7f2fe3b55b98 100644
--- a/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c
+++ b/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c
@@ -1137,7 +1137,7 @@ static int msm_pcm_volume_ctl_get(struct snd_kcontrol *kcontrol,
return -ENODEV;
}
if (!substream->runtime) {
- pr_err("%s substream runtime not found\n", __func__);
+ //pr_err("%s substream runtime not found\n", __func__);
return 0;
}
prtd = substream->runtime->private_data;
@@ -1162,7 +1162,7 @@ static int msm_pcm_volume_ctl_put(struct snd_kcontrol *kcontrol,
return -ENODEV;
}
if (!substream->runtime) {
- pr_err("%s substream runtime not found\n", __func__);
+ //pr_err("%s substream runtime not found\n", __func__);
return 0;
}
prtd = substream->runtime->private_data;
@@ -1682,7 +1682,7 @@ static int msm_pcm_chmix_cfg_ctl_put(struct snd_kcontrol *kcontrol,
return -ENODEV;
}
if (!substream->runtime) {
- pr_err("%s substream runtime not found\n", __func__);
+ //pr_err("%s substream runtime not found\n", __func__);
ret = -EINVAL;
goto done;
}
--
2.21.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment