Skip to content
Snippets Groups Projects
Unverified Commit ea887db5 authored by Frank Oltmanns's avatar Frank Oltmanns Committed by Oliver Smith
Browse files

linux-postmarketos-qcom-sdm845: Work-around call audio regressions (MR 5966)


Somehow enabling in-kernel PD mapper (introduced in 5b9f51b200dcb
"remoteproc: qcom: enable in-kernel PD mapper"), breaks the bottom mic
on xiaomi-beryllium (Poco F1) and distorts audio on OP6 (and possibly
OP6T). Temporarily disable it and log the rprocs in use until we better
understand what causes the issue.

Link: #3353
Link: #3320
Link: #3245
Link: #3253

Signed-off-by: default avatarFrank Oltmanns <frank@oltmanns.dev>
[ci:skip-build]: already built successfully in CI
(cherry picked from commit 399121b8)
parent 921a1143
No related branches found
No related tags found
Loading
From 7e1ea84748d49b328213db529b524216600a9419 Mon Sep 17 00:00:00 2001
From: Frank Oltmanns <frank@oltmanns.dev>
Date: Mon, 30 Dec 2024 19:12:53 +0100
Subject: [PATCH] HACK: remoteproc: qcom: disable in-kernel PD mapper
Somehow enabling in-kernel PD mapper (introduced in 5b9f51b200dcb
"remoteproc: qcom: enable in-kernel PD mapper"), breaks the bottom mic
on xiaomi-beryllium (Poco F1) and distorts audio on OP6 (and possibly
OP6T). Temporarily disable it and log the rprocs in use until we better
understand what causes the issue.
Link: pmaports#3353
Link: pmaports#3320
Link: pmaports#3245
Link: pmaports#3253
Signed-off-by: Frank Oltmanns <frank@oltmanns.dev>
---
drivers/remoteproc/qcom_common.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/remoteproc/qcom_common.c b/drivers/remoteproc/qcom_common.c
index 8c8688f99f0ab..0b4e8eb7622d9 100644
--- a/drivers/remoteproc/qcom_common.c
+++ b/drivers/remoteproc/qcom_common.c
@@ -583,6 +583,8 @@ static void pdm_notify_unprepare(struct rproc_subdev *subdev)
*/
void qcom_add_pdm_subdev(struct rproc *rproc, struct qcom_rproc_pdm *pdm)
{
+ printk(KERN_INFO "aborting qcom_add_pdm_subdev, name %s\n", rproc->name);
+ return;
pdm->dev = &rproc->dev;
pdm->index = rproc->index;
@@ -602,6 +604,8 @@ EXPORT_SYMBOL_GPL(qcom_add_pdm_subdev);
*/
void qcom_remove_pdm_subdev(struct rproc *rproc, struct qcom_rproc_pdm *pdm)
{
+ printk(KERN_INFO "aborting qcom_remove_pdm_subdev, name %s\n", rproc->name);
+ return;
rproc_remove_subdev(rproc, &pdm->subdev);
}
EXPORT_SYMBOL_GPL(qcom_remove_pdm_subdev);
--
2.47.1
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
_flavor="postmarketos-qcom-sdm845" _flavor="postmarketos-qcom-sdm845"
pkgname=linux-$_flavor pkgname=linux-$_flavor
pkgver=6.13.0_rc2 pkgver=6.13.0_rc2
pkgrel=0 pkgrel=1
pkgdesc="Mainline Kernel fork for SDM845 devices" pkgdesc="Mainline Kernel fork for SDM845 devices"
arch="aarch64" arch="aarch64"
_carch="arm64" _carch="arm64"
...@@ -24,6 +24,7 @@ _tag="sdm845-6.13-rc2-r2" ...@@ -24,6 +24,7 @@ _tag="sdm845-6.13-rc2-r2"
source=" source="
linux-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz linux-$_tag.tar.gz::https://gitlab.com/sdm845-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
$_config $_config
0001-HACK-remoteproc-qcom-disable-in-kernel-PD-mapper.patch
" "
builddir="$srcdir/linux-$_tag" builddir="$srcdir/linux-$_tag"
...@@ -73,4 +74,5 @@ package() { ...@@ -73,4 +74,5 @@ package() {
sha512sums=" sha512sums="
af8b5e960248adf5da95571e964e664c8e329bf610a567b43fa22fc8a853b6e321192cb39667492ac86d8ac48e75b1e47eb546017937c9d0aeb11485e70797d3 linux-sdm845-6.13-rc2-r2.tar.gz af8b5e960248adf5da95571e964e664c8e329bf610a567b43fa22fc8a853b6e321192cb39667492ac86d8ac48e75b1e47eb546017937c9d0aeb11485e70797d3 linux-sdm845-6.13-rc2-r2.tar.gz
80d3f1e04acbc6afb6edf5ab2ffba22e4ae04928fc3b486a137975c87cf1125b8199e417a8c2a32bd970a891c30c41a09be165810d3f9a18adaf45cd1751c9c6 config-postmarketos-qcom-sdm845.aarch64 80d3f1e04acbc6afb6edf5ab2ffba22e4ae04928fc3b486a137975c87cf1125b8199e417a8c2a32bd970a891c30c41a09be165810d3f9a18adaf45cd1751c9c6 config-postmarketos-qcom-sdm845.aarch64
a107cada98c5902aaf193bbc80d19276cf286c5094c7e8587a6d5756929d91f46b555efbf48f4b7b85c1feb8c71b989fbb49b26b2c7a8f7ec2ee1385c20b9d03 0001-HACK-remoteproc-qcom-disable-in-kernel-PD-mapper.patch
" "
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