Fixes: 434e01295 ("device/google-sargo: Move from testing to community (MR 5492)")
[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
The kernel-side parts necessary to get jack detection to work have been
merged as part of the 6.10 upgrade; now, update the UCM config to allow
for automatically switching to headphones and headset mic when a cable
is inserted.
[ci:skip-build]: already built successfully in CI
Applying temporary patch to work around improper inclusion of a library. See
7258fdd7d7
for more info.
[ci:skip-build]: already built successfully in CI
And add Richard as codeowner.
Also move linux-postmarketos-qcom-sdm670 and alsa-ucm-conf-qcom-sdm670
which otherwise are used by google-bonito, which remains in testing.
For that, enable the kernel config check and update the config
accordingly.
[ci:skip-vercheck]
The offending patch that has caused this dependency has been fixed:
https://git.kernel.org/torvalds/c/7258fdd7d
This essentially reverts commit fb029ff2d9.
[ci:skip-vercheck] # no rebuild needed for this
[ci:skip-build]: already built successfully in CI
- USB-OTG support for Midas boards (m0/t0) and Samsung Galaxy Tab 3 8.0
- Headset jack detection + headset mic support for Samsung Galaxy Tab 3 8.0
- Support for the Samsung Galaxy Note (q1)
- Improved charging on Tab 3 8.0 and Midas boards
- Minor improvements for Tab 3 8.0 (fix home keycode, enable fuel gauge current sensing)
- Fixed#1783
The isorec initramfs is now stores in the exynos4-mainline linux repo
and has been dropped from pmaports.
[ci:skip-build]: already built successfully in CI
Otherwise we get penguins when the device first boots up. While I have
nothing against Tux, this is a change that came as a result of the
configuration being restarted to sync with Purism's configuration, and I
think it visually clutters the boot sequence for no good reason. As
such, disable this and return to the previous behaviour.
[ci:skip-build]: already built successfully in CI
The 4k sector size is required for mobile, however we currently don't
build a split image anyway (which is also necessary). Let's just go for
512 bytes so the prebuilt images can be flashed to a USB drive.
[ci:skip-build]
I've had the kernel panic with a NULL pointer dereference in the
addrconf_rt_table function. I have no idea how it could be triggered,
but the fix is straightforward.
These files from linux-firmware-qcom are compressed now, adjust the
symlinks.
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
[ci:skip-build]: already built successfully in CI
The host tool compiled from drivers/tty/vt/conmakehash.c requires
linux/limits.h header which is not included (correctly?) inside the
kernel source tree and is instead needed to be installed on the host.
While this might not be totally correct, we need to get the package
building to avoid blocking all aarch64 packages from getting published
on our build system.
Also while we're at it, sort the list of make dependencies.
[ci:skip-vercheck]
Upstream ALSA UCM conf still does not work exactly for us, but parts of it do.
This commit incorporates those parts to reduce the diff between the two.
One of the changes is to move /usr/share/alsa/ucm2/PinePhone/* to
.../ucm2/Allwinner/A64/PinePhone/* to match upstream, and to
stop creating the symlink .../ucm2/conf.d/simple-card/PinePhone.conf
since upstream already provides it. However this means that just upgrading
device-pine64-pinephone will remove the symlink and not replace the symlink
from upstream package. Users will need to run
`apk fix --reinstall alsa-ucm-conf` to recreate it, and will not have sound
until they do.
Ref: #2115
Until this kernel is upgraded to >= 6.2, we need V=1 to work around
silent make output leading to failing builds.
[ci:skip-build]: already built successfully in CI
Add ucm configs and symlink for SOF firmware. Doing it in the firmware
subpackage because it doesn't work without linux-firmware-mediatek.
[ci:skip-build]: already built successfully in CI
The Freedreno driver requires python3 to build in the new version.
Deviations from the upstream config fragments:
- set CONFIG_CMA_SIZE_MBYTES to 256, from [1] and Matrix advice
[1] https://gitlab.com/sdm845-mainline/linux/-/merge_requests/100
[ci:skip-build] already built successfully in CI
Make room for MultiMedia4 (built-in microphone) device in q6voice.conf:
In the 6.9.3 kernel, there were four CPU endpoints in Q6ASM enabled
for audio:
0. MultiMedia1 - Built-in Earpiece and Speaker
1. MultiMedia2 - Headphones Playback (3.5 mm jack)
2. MultiMedia3 - Headset Capture (3.5 mm jack)
3. VoiceMMode1 - fake endpoint to route voice calls
In 6.10.2, an extra endpoint is added to support the built-in
microphone:
0. MultiMedia1 - Built-in Earpiece and Speaker
1. MultiMedia2 - Headphones Playback (3.5 mm jack)
2. MultiMedia3 - Headset Capture (3.5 mm jack)
3. MultiMedia4 - Built-in Microphone
4. VoiceMMode1 - fake endpoint to route voice calls
Since the device ID of VoiceMMode1 has changed, and q6voiced does
not automatically detect this by name, update the VoiceMMode1 device
ID so voice calls still work.
Be compatible with the secure name for the FastRPC device node:
There has been a security vulnerability issued at the FastRPC kernel
driver for allowing sensorspd and rootpd to be accessed on device
nodes not labelled "-secure". Be compatible with the FastRPC ADSP
device named "fastrpc-adsp-secure".
This raises CONFIG_RCU_CPU_STALL_TIMEOUT from 21s to 60s and
CONFIG_RCU_EXP_CPU_STALL_TIMEOUT from 20ms to 60ms (the value `0` means
that it is set to the regular stall timeout divided by 1000).
The original values caused frequent kernel logs of
"rcu_preempt detected expedited stalls" while running CPU-intensive stuff
like waydroid and caused such processes or others like Phosh to crash.
The kernel defaults are 21 / 0 (21s / 21ms), though the config docs note that
the latter is "normally 20ms on Android devices". For what it's worth,
Debian 12's amd64 kernel uses the kernel defaults of 21 / 0 (21s / 21ms),
while OpenSUSE TW's amd64 kernel uses 60 / 0 (60s / 60ms) just like
this commit.
Ref: #2980
This is already enabled in the pmos.config configuration file upstream,
but hasn't made its way to pmaports yet as there hasn't been an update
since that happened.
See https://gitlab.com/postmarketOS/pmaports/-/merge_requests/5380
[ci:skip-build]: already built successfully in CI