DivestOS/Patches/Common/android_external_sonivox/317780080.patch

101 lines
4.4 KiB
Diff
Raw Normal View History

14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
diff --git a/arm-wt-22k/lib_src/eas_wtengine.c b/arm-wt-22k/lib_src/eas_wtengine.c
index 950616e..9791fe8 100644
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
--- a/arm-wt-22k/lib_src/eas_wtengine.c
+++ b/arm-wt-22k/lib_src/eas_wtengine.c
@@ -99,6 +99,10 @@
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
ALOGE("b/26366256");
android_errorWriteLog(0x534e4554, "26366256");
return;
+ } else if (numSamples > BUFFER_SIZE_IN_MONO_SAMPLES) {
+ ALOGE("b/317780080 clip numSamples %ld -> %d", numSamples, BUFFER_SIZE_IN_MONO_SAMPLES);
+ android_errorWriteLog(0x534e4554, "317780080");
+ numSamples = BUFFER_SIZE_IN_MONO_SAMPLES;
}
pMixBuffer = pWTIntFrame->pMixBuffer;
pInputBuffer = pWTIntFrame->pAudioBuffer;
@@ -196,6 +200,10 @@
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
ALOGE("b/26366256");
android_errorWriteLog(0x534e4554, "26366256");
return;
+ } else if (numSamples > BUFFER_SIZE_IN_MONO_SAMPLES) {
+ ALOGE("b/317780080 clip numSamples %ld -> %d", numSamples, BUFFER_SIZE_IN_MONO_SAMPLES);
+ android_errorWriteLog(0x534e4554, "317780080");
+ numSamples = BUFFER_SIZE_IN_MONO_SAMPLES;
}
pOutputBuffer = pWTIntFrame->pAudioBuffer;
@@ -295,6 +303,10 @@
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
ALOGE("b/26366256");
android_errorWriteLog(0x534e4554, "26366256");
return;
+ } else if (numSamples > BUFFER_SIZE_IN_MONO_SAMPLES) {
+ ALOGE("b/317780080 clip numSamples %ld -> %d", numSamples, BUFFER_SIZE_IN_MONO_SAMPLES);
+ android_errorWriteLog(0x534e4554, "317780080");
+ numSamples = BUFFER_SIZE_IN_MONO_SAMPLES;
}
pOutputBuffer = pWTIntFrame->pAudioBuffer;
@@ -395,6 +407,10 @@
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
ALOGE("b/26366256");
android_errorWriteLog(0x534e4554, "26366256");
return;
+ } else if (numSamples > BUFFER_SIZE_IN_MONO_SAMPLES) {
+ ALOGE("b/317780080 clip numSamples %ld -> %d", numSamples, BUFFER_SIZE_IN_MONO_SAMPLES);
+ android_errorWriteLog(0x534e4554, "317780080");
+ numSamples = BUFFER_SIZE_IN_MONO_SAMPLES;
}
pAudioBuffer = pWTIntFrame->pAudioBuffer;
@@ -463,6 +479,10 @@
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
ALOGE("b/26366256");
android_errorWriteLog(0x534e4554, "26366256");
return;
+ } else if (numSamples > BUFFER_SIZE_IN_MONO_SAMPLES) {
+ ALOGE("b/317780080 clip numSamples %ld -> %d", numSamples, BUFFER_SIZE_IN_MONO_SAMPLES);
+ android_errorWriteLog(0x534e4554, "317780080");
+ numSamples = BUFFER_SIZE_IN_MONO_SAMPLES;
}
pOutputBuffer = pWTIntFrame->pAudioBuffer;
phaseInc = pWTIntFrame->frame.phaseIncrement;
@@ -611,6 +631,10 @@
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
ALOGE("b/26366256");
android_errorWriteLog(0x534e4554, "26366256");
return;
+ } else if (numSamples > BUFFER_SIZE_IN_MONO_SAMPLES) {
+ ALOGE("b/317780080 clip numSamples %ld -> %d", numSamples, BUFFER_SIZE_IN_MONO_SAMPLES);
+ android_errorWriteLog(0x534e4554, "317780080");
+ numSamples = BUFFER_SIZE_IN_MONO_SAMPLES;
}
pMixBuffer = pWTIntFrame->pMixBuffer;
diff --git a/arm-wt-22k/lib_src/eas_wtsynth.c b/arm-wt-22k/lib_src/eas_wtsynth.c
index 74f78f5..ea1fe78 100644
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
--- a/arm-wt-22k/lib_src/eas_wtsynth.c
+++ b/arm-wt-22k/lib_src/eas_wtsynth.c
@@ -484,7 +484,12 @@
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
/*lint -e{703} use shift for performance */
numSamples = (numSamples << NUM_PHASE_FRAC_BITS) - (EAS_I32) pWTVoice->phaseFrac;
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
if (pWTIntFrame->frame.phaseIncrement) {
- pWTIntFrame->numSamples = 1 + (numSamples / pWTIntFrame->frame.phaseIncrement);
+ EAS_I32 oldMethod = 1 + (numSamples / pWTIntFrame->frame.phaseIncrement);
+ pWTIntFrame->numSamples =
+ (numSamples + pWTIntFrame->frame.phaseIncrement - 1) / pWTIntFrame->frame.phaseIncrement;
+ if (oldMethod != pWTIntFrame->numSamples) {
+ ALOGE("b/317780080 old %ld new %ld", oldMethod, pWTIntFrame->numSamples);
+ }
} else {
pWTIntFrame->numSamples = numSamples;
}
@@ -492,6 +497,11 @@
14.1: Import and verify picks https://review.lineageos.org/q/topic:n-asb-2021-09 https://review.lineageos.org/q/topic:n-asb-2021-10 https://review.lineageos.org/q/topic:n-asb-2021-11 https://review.lineageos.org/q/topic:n-asb-2021-12 https://review.lineageos.org/q/topic:n-asb-2022-01 https://review.lineageos.org/q/topic:n-asb-2022-02 https://review.lineageos.org/q/topic:n-asb-2022-03 https://review.lineageos.org/q/topic:n-asb-2022-04 https://review.lineageos.org/q/topic:n-asb-2022-05 https://review.lineageos.org/q/topic:n-asb-2022-06 https://review.lineageos.org/q/topic:n-asb-2022-07 https://review.lineageos.org/q/topic:n-asb-2022-08 https://review.lineageos.org/q/topic:n-asb-2022-09 https://review.lineageos.org/q/topic:n-asb-2022-10 https://review.lineageos.org/q/topic:n-asb-2022-11 https://review.lineageos.org/q/topic:n-asb-2022-12 https://review.lineageos.org/q/topic:n-asb-2023-01 https://review.lineageos.org/q/topic:n-asb-2023-02 https://review.lineageos.org/q/topic:n-asb-2023-03 https://review.lineageos.org/q/topic:n-asb-2023-04 https://review.lineageos.org/q/topic:n-asb-2023-05 https://review.lineageos.org/q/topic:n-asb-2023-06 https://review.lineageos.org/q/topic:n-asb-2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/360899 https://review.lineageos.org/q/topic:n-asb-2023-08 https://review.lineageos.org/q/topic:n-asb-2023-09 https://review.lineageos.org/q/topic:n-asb-2023-10 https://review.lineageos.org/q/topic:n-asb-2023-11 was missing: https://review.lineageos.org/c/LineageOS/android_packages_providers_TelephonyProvider/+/376079 https://review.lineageos.org/q/topic:n-asb-2023-12 https://review.lineageos.org/q/topic:n-asb-2024-01 https://review.lineageos.org/q/topic:n-asb-2024-02 https://review.lineageos.org/q/topic:n-asb-2024-03 https://review.lineageos.org/q/topic:n-asb-2024-04 https://review.lineageos.org/q/topic:n-asb-2024-05 Signed-off-by: Tavi <tavi@divested.dev>
2024-05-07 17:45:55 -04:00
ALOGE("b/26366256");
android_errorWriteLog(0x534e4554, "26366256");
pWTIntFrame->numSamples = 0;
+ } else if (pWTIntFrame->numSamples > BUFFER_SIZE_IN_MONO_SAMPLES) {
+ ALOGE("b/317780080 clip numSamples %ld -> %d",
+ pWTIntFrame->numSamples, BUFFER_SIZE_IN_MONO_SAMPLES);
+ android_errorWriteLog(0x534e4554, "317780080");
+ pWTIntFrame->numSamples = BUFFER_SIZE_IN_MONO_SAMPLES;
}
/* sound will be done this frame */