hal: cirrus_playback: enable speaker protection for c1
This enables speaker protection for C1 device as well since C1 device
uses 'sdm845-tavil-c1-snd-card' as sound card name.
Bug: 71645808
Change-Id: I3a4b2c4483e25f59ae18990dceab416a31a1f257
Signed-off-by: David Lin <dtwlin@google.com>
diff --git a/hal/audio_extn/cirrus_playback.c b/hal/audio_extn/cirrus_playback.c
old mode 100755
new mode 100644
index 676e7ad..5e46767
--- a/hal/audio_extn/cirrus_playback.c
+++ b/hal/audio_extn/cirrus_playback.c
@@ -436,7 +436,8 @@
snd_split_handle = audio_extn_get_snd_card_split();
/* FIXME: REMOVE THIS AFTER B1C1 P1.0 SUPPORT */
- if (!strcmp(snd_split_handle->form_factor, "tdm")) {
+ if (!strcmp(snd_split_handle->form_factor, "tdm") ||
+ !strcmp(snd_split_handle->form_factor, "c1")) {
handle.spkr_prot_enable = true;
} else {
handle.spkr_prot_enable = false;