Replace platform_version_use_sound_trigger_hal with sound_trigger_hal_is_android_p

This is to facilitate making it a requirement for
soong_config_string_variables to only be set to one of
their possible values.

Bug: 220375749
Test: Presubmits
Change-Id: I3f718054f842dd196368ea4a03dc76157a21fa2d
diff --git a/Android.bp b/Android.bp
index 30c2b42..c9e764b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -25,11 +25,8 @@
     ],
 }
 
-soong_config_string_variable {
-    name: "platform_version_use_sound_trigger_hal",
-    values: [
-        "P",
-    ],
+soong_config_bool_variable {
+    name: "sound_trigger_hal_is_android_p",
 }
 
 soong_config_module_type {
@@ -38,7 +35,7 @@
     config_namespace: "knowles",
     variables: [
         "use_sound_trigger_hal",
-        "platform_version_use_sound_trigger_hal",
+        "sound_trigger_hal_is_android_p",
     ],
     properties: [
         "enabled",
@@ -59,13 +56,9 @@
                 enabled: false,
             }
         },
-        platform_version_use_sound_trigger_hal: {
-            p: {
-                proprietary: true,
-                cflags: ["-DANDROID_P"],
-            },
-            conditions_default: {
-            },
+        sound_trigger_hal_is_android_p: {
+            proprietary: true,
+            cflags: ["-DANDROID_P"],
         }
     },
 }