hal: Add support for native-DSD and native sampling rates
-set passthrough flag and diable gapless for native dsd
-Select new backend for native dsd.
-Add support for e2e playback of clips with sampling rate
multiple of 44.1.
Change-Id: I6aa0ef5ea176a0923b0b88924ab046f9a11b7b12
diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c
index 2b6a1d7..1b47e7d 100644
--- a/hal/msm8960/platform.c
+++ b/hal/msm8960/platform.c
@@ -1257,3 +1257,13 @@
}
return 0;
}
+
+bool platform_check_codec_dsd_support(void *platform __unused)
+{
+ return false;
+}
+
+int platform_get_backend_index(snd_device_t snd_device __unused);
+{
+ return 0;
+}
\ No newline at end of file
diff --git a/hal/msm8960/platform.h b/hal/msm8960/platform.h
index e42af8c..07060b6 100644
--- a/hal/msm8960/platform.h
+++ b/hal/msm8960/platform.h
@@ -112,6 +112,12 @@
#define SOUND_CARD 0
#define DEFAULT_OUTPUT_SAMPLING_RATE 48000
+#define INPUT_SAMPLING_RATE_DSD64 2822400
+#define INPUT_SAMPLING_RATE_DSD128 5644800
+#define OUTPUT_SAMPLING_RATE_DSD64 176400
+#define OUTPUT_SAMPLING_RATE_DSD128 352800
+#define DSD_NATIVE_BACKEND 1
+#define PASSTHROUGH_DSD 3
#define ALL_SESSION_VSID 0xFFFFFFFF
#define DEFAULT_MUTE_RAMP_DURATION_MS 20