Fix MSM8905 WCD 48 kHz interpolators, ADSP clock retention, and boot audio sync

Ensure LPASS_CDC_RX1/2/3_B5_CTL and TX1/2_CLK_FS_CTL are always reprogrammed for 48 kHz on MSM8905 (Q6_ADSP_VERSION_2_6) targets (nokia-beatles, nokia-argon, nokia-coconut), preserve INT_DIGITAL_CDC_CLK on ADSP < 2.7, eliminate unclocked debugfs AHB reads, harden PipeWire boot sink/unity sync, and update rebuilt a1125 (ampere) image checksums.
This commit is contained in:
Luxferre committed 2026-11-24 09:21:01 +02:00
1 parent 4f73c28e5e
commit aba38a58f2
21 files changed
+568 -104

No files matched your search

Binary file not shown.
+28 -3
View File
@@ -573,8 +573,19 @@ bananarchy_set_sink_volume() {
export XDG_RUNTIME_DIR
fi
if command -v wpctl >/dev/null 2>&1; then
sink="$(wpctl status 2>/dev/null | sed -n '/Sinks:/,/Sources:/p' \
| sed -n 's/^[^0-9]*\([0-9][0-9]*\)\..*/\1/p' | head -n 1)"
wpctl set-volume @DEFAULT_AUDIO_SINK@ "${pct}%" >/dev/null 2>&1 || true
if [ "$pct" -le 0 ]; then
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1 >/dev/null 2>&1 || true
else
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 >/dev/null 2>&1 || true
fi
sinks_sec="$(wpctl status 2>/dev/null | sed -n '/Sinks:/,/Sources:/p')"
sink="$(printf '%s\n' "$sinks_sec" \
| sed -n 's/^[^0-9*]*\*[[:space:]]*\([0-9][0-9]*\)\..*/\1/p' | head -n 1)"
if [ -z "$sink" ]; then
sink="$(printf '%s\n' "$sinks_sec" \
| sed -n 's/^[^0-9]*\([0-9][0-9]*\)\..*/\1/p' | head -n 1)"
fi
if [ -n "$sink" ]; then
wpctl set-volume "$sink" "${pct}%" >/dev/null 2>&1 || true
if [ "$pct" -le 0 ]; then
@@ -582,10 +593,14 @@ bananarchy_set_sink_volume() {
else
wpctl set-mute "$sink" 0 >/dev/null 2>&1 || true
fi
return 0
fi
fi
pactl set-sink-volume @DEFAULT_SINK@ "${pct}%" >/dev/null 2>&1 || true
if [ "$pct" -le 0 ]; then
pactl set-sink-mute @DEFAULT_SINK@ 1 >/dev/null 2>&1 || true
else
pactl set-sink-mute @DEFAULT_SINK@ 0 >/dev/null 2>&1 || true
fi
}
apply_vol_out() {
@@ -880,6 +895,16 @@ sync_pipewire_profile() {
else
rm -f /tmp/sxmo_bt_connecting 2>/dev/null || true
sink_name="alsa_output.platform-7702000.sound.HiFi__${out_dev}__sink"
if [ -d /proc/asound/card0 ] && command -v pactl >/dev/null 2>&1; then
_sw=0
while [ "$_sw" -lt 10 ]; do
if pactl list short sinks 2>/dev/null | grep -Fq "$sink_name"; then
break
fi
sleep 0.05
_sw=$(( _sw + 1 ))
done
fi
pactl set-default-sink "$sink_name" >/dev/null 2>&1 || true
move_streams_to_sink "$sink_name"
fi