Use fixed volume for HDMI only devices

TV VIM3(L) configurations declaring AUDIO_DEFAULT_OUTPUT hdmi should
enable fixed audio volume as volume should be adjusted by the HDMI
sink.

Test: make TARGET_USE_SAMPLE_LAUNCHER=true TARGET_VIM3L=true
      dumpsys media.audio_flinger signal power is ~ 25 dB higher
Change-Id: Ice6d773dc59ddda1f43215f24335d95adb52090e
diff --git a/device-common.mk b/device-common.mk
index a1d024c..7abbe4a 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -339,6 +339,8 @@
 ifeq ($(AUDIO_DEFAULT_OUTPUT),hdmi)
 PRODUCT_COPY_FILES += \
     device/amlogic/yukawa/hal/audio/audio_policy_configuration_hdmi_only.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
+DEVICE_PACKAGE_OVERLAYS += \
+    device/amlogic/yukawa/hal/audio/overlay_hdmi_only
 else
 PRODUCT_COPY_FILES += \
     device/amlogic/yukawa/hal/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
diff --git a/hal/audio/overlay_hdmi_only/frameworks/base/core/res/res/values/config.xml b/hal/audio/overlay_hdmi_only/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..11dc6bb
--- /dev/null
+++ b/hal/audio/overlay_hdmi_only/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2020, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+**     http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+<resources>
+
+    <!-- For HDMI output only devices, volume is controlled by the HDMI sink. -->
+    <bool name="config_useFixedVolume">true</bool>
+
+</resources>