From e6a7cd6a143f13c1715581b6d959c9bafd29d76e Mon Sep 17 00:00:00 2001 From: Tad Date: Thu, 2 Jun 2022 21:48:48 -0400 Subject: [PATCH] Tiny fix Signed-off-by: Tad --- .../0001-Unused-sm8150.patch | 10 +++++----- Scripts/LineageOS-19.1/Patch.sh | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Patches/LineageOS-19.1/android_hardware_qcom_audio/0001-Unused-sm8150.patch b/Patches/LineageOS-19.1/android_hardware_qcom_audio/0001-Unused-sm8150.patch index 069c737a..8013825d 100644 --- a/Patches/LineageOS-19.1/android_hardware_qcom_audio/0001-Unused-sm8150.patch +++ b/Patches/LineageOS-19.1/android_hardware_qcom_audio/0001-Unused-sm8150.patch @@ -21,10 +21,10 @@ Change-Id: I694c683c9bfde60343f0f6ea8d806bc5e24437e6 2 files changed, 6 insertions(+) diff --git a/hal/audio_extn/audio_extn.h b/hal/audio_extn/audio_extn.h -index da986ad63..82320356e 100644 +index 85502ad91..95890ab12 100755 --- a/hal/audio_extn/audio_extn.h +++ b/hal/audio_extn/audio_extn.h -@@ -834,7 +834,11 @@ bool audio_extn_utils_is_dolby_format(audio_format_t format); +@@ -860,7 +860,11 @@ bool audio_extn_utils_is_dolby_format(audio_format_t format); int audio_extn_utils_get_bit_width_from_string(const char *); int audio_extn_utils_get_sample_rate_from_string(const char *); int audio_extn_utils_get_channels_from_string(const char *); @@ -37,10 +37,10 @@ index da986ad63..82320356e 100644 int audio_extn_utils_get_vendor_enhanced_info(); int audio_extn_utils_get_app_sample_rate_for_device(struct audio_device *adev, diff --git a/hal/audio_extn/utils.c b/hal/audio_extn/utils.c -index 0ba2f4f82..d179f4f03 100644 +index 756faf544..0e25d3a39 100755 --- a/hal/audio_extn/utils.c +++ b/hal/audio_extn/utils.c -@@ -3072,6 +3072,7 @@ int audio_extn_utils_get_channels_from_string(const char *id_string) +@@ -3272,6 +3272,7 @@ int audio_extn_utils_get_channels_from_string(const char *id_string) return -EINVAL; } @@ -48,7 +48,7 @@ index 0ba2f4f82..d179f4f03 100644 void audio_extn_utils_release_snd_device(snd_device_t snd_device) { audio_extn_dev_arbi_release(snd_device); -@@ -3080,6 +3081,7 @@ void audio_extn_utils_release_snd_device(snd_device_t snd_device) +@@ -3280,6 +3281,7 @@ void audio_extn_utils_release_snd_device(snd_device_t snd_device) audio_extn_listen_update_device_status(snd_device, LISTEN_EVENT_SND_DEVICE_FREE); } diff --git a/Scripts/LineageOS-19.1/Patch.sh b/Scripts/LineageOS-19.1/Patch.sh index a4383de2..34aaaa3c 100644 --- a/Scripts/LineageOS-19.1/Patch.sh +++ b/Scripts/LineageOS-19.1/Patch.sh @@ -217,6 +217,10 @@ if enterAndClear "hardware/qcom-caf/sm8250/audio"; then applyPatch "$DOS_PATCHES/android_hardware_qcom_audio/0001-Unused-sm8150.patch"; #audio_extn: Fix unused parameter warning in utils.c (codeworkx) fi; +if enterAndClear "hardware/qcom-caf/sm8350/audio"; then +applyPatch "$DOS_PATCHES/android_hardware_qcom_audio/0001-Unused-sm8150.patch"; #audio_extn: Fix unused parameter warning in utils.c (codeworkx) +fi; + if enterAndClear "libcore"; then applyPatch "$DOS_PATCHES/android_libcore/0001-Network_Permission.patch"; #Expose the NETWORK permission (GrapheneOS) if [ "$DOS_GRAPHENE_CONSTIFY" = true ]; then applyPatch "$DOS_PATCHES/android_libcore/0002-constify_JNINativeMethod.patch"; fi; #Constify JNINativeMethod tables (GrapheneOS)