audio: fix the acdb id for FE app_type setting

If we enable speaker protection and then set different acdb id
for SND_DEVICE_OUT_SPEAKER and SND_DEVICE_OUT_SPEAKER_PROTECTED,
it will cause acdb id and data mismatch in kernel side.

This patch ensures the acdb id in app_type setting will be the same
with the the one that audio HAL sets to acdbloader.

Bug: 73724040
Bug: 76196800
Test: manual audio test
Change-Id: I09b86a7fd9940e5080153e99b7a5b9a524ab93d2
Signed-off-by: carterhsu <carterhsu@android.com>
Signed-off-by: David Lin <dtwlin@google.com>
diff --git a/hal/audio_extn/utils.c b/hal/audio_extn/utils.c
index 6139add..7bf274e 100644
--- a/hal/audio_extn/utils.c
+++ b/hal/audio_extn/utils.c
@@ -333,7 +333,8 @@
     struct stream_in *in;
 
     if (usecase->type == PCM_PLAYBACK) {
-        return platform_get_snd_device_acdb_id(usecase->out_snd_device);
+        return platform_get_snd_device_acdb_id(
+                audio_extn_get_spkr_prot_snd_device(usecase->out_snd_device));
     } else if(usecase->type == PCM_CAPTURE) {
         return platform_get_snd_device_acdb_id(usecase->in_snd_device);
     }