Files
pmaports-rtwo/device/community/linux-pine64-pinephonepro/megi_patches/0005-ASoC-codecs-rt5640-Keep-the-codec-enabled-when-idle.patch
T
Rudraksha Gupta bbd72c2711 linux-pine64-pinephonepro: update to v7.1
The reason why we have patches instead of a separate repo are because of
the following reasons:

    1. We don't want to make a repo to which users contribute to. While
        people haven't tried to commit to my repository yet, this is
        yet another incentive for people to upstream into Linux kernel
        mainline. Most of the functionality is here. We just need to
        upstream it.
    2. I assume that all the patches here aren't needed. This calls
        for a scream test. People who find functionalality missing will
        open an issue. It becomes trivial to add/remove patches from
        the `source=...` var rather than repackaging the entire kernel.
        The next commit aims to remove a lot of patches and see if there
        are people who rely on said functionality. If not, there is no
        requirement to upstream it.

Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9136>
2026-08-04 09:06:21 +00:00

29 lines
931 B
Diff

From 801e51af0f5dc01654220afd90a8844c8a7c0a3f Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Sat, 29 Jul 2023 17:33:24 +0200
Subject: [PATCH 05/84] ASoC: codecs: rt5640: Keep the codec enabled when idle
This makes analog audio work even without any i2s streams being enabled.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
sound/soc/codecs/rt5640.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 1553a0b1f936..d6859a079538 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -2954,6 +2954,8 @@ static const struct snd_soc_component_driver soc_component_dev_rt5640 = {
.num_dapm_widgets = ARRAY_SIZE(rt5640_dapm_widgets),
.dapm_routes = rt5640_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(rt5640_dapm_routes),
+ .suspend_bias_off = 1,
+ .idle_bias_on = 1,
.use_pmdown_time = 1,
.endianness = 1,
};
--
2.55.0