vendor: Add TARGET_OMX_LEGACY_RESCALING flag
Change-Id: Ib755dda84a9d5a1994da2dccdb3571c45c95b6ce
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index e73b350..4c5b29d 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -27,6 +27,9 @@
Qti_flac_decoder struct {
Cflags []string
}
+ Use_legacy_rescaling struct {
+ Cflags []string
+ }
}
type ProductVariables struct {
@@ -40,4 +43,5 @@
Cant_reallocate_omx_buffers *bool `json:",omitempty"`
Qcom_bsp_legacy *bool `json:",omitempty"`
Qti_flac_decoder *bool `json:",omitempty"`
+ Use_legacy_rescaling *bool `json:",omitempty"`
}
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 8987c71..d2c7662 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -14,6 +14,7 @@
echo ' "QTIMediaPath": "$(call project-path-for,qcom-media)",'; \
echo ' "Cant_reallocate_omx_buffers": $(if $(filter omap4,$(TARGET_BOARD_PLATFORM)),true,false),'; \
echo ' "Qcom_bsp_legacy": $(if $(filter msm7x27a msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),true,false),'; \
- echo ' "Qti_flac_decoder": $(if $(strip $(AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER)),true,false)'; \
+ echo ' "Qti_flac_decoder": $(if $(strip $(AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER)),true,false),'; \
+ echo ' "Use_legacy_rescaling": $(if $(strip $(TARGET_OMX_LEGACY_RESCALING)),true,false)'; \
echo '},'; \
echo '') > $(SOONG_VARIABLES_TMP)