From 9d2cd7106f9c2106edef13e0a8297e601e684def Mon Sep 17 00:00:00 2001 From: wei wang Date: Mon, 30 Jul 2018 06:56:33 +0000 Subject: darwin:modify audio_policy.config for darwin PD# 164520 1.remove spdif_out becuase soundbar has no spdifout 2.add volume gain for spdifin volume adjust Change-Id: Ibd1c8d6cfb12aace090b7dae725ad30406050e9e --- diff --git a/darwin.mk b/darwin.mk index c954de5..84a735c 100644 --- a/darwin.mk +++ b/darwin.mk @@ -39,7 +39,7 @@ $(call inherit-product-if-exists, vendor/google/products/gms.mk) PRODUCT_PROPERTY_OVERRIDES += \ sys.fb.bits=32 \ - ro.hdmi.device_type=0 + ro.hdmi.device_type=5 PRODUCT_NAME := darwin PRODUCT_DEVICE := darwin diff --git a/files/audio_policy.conf b/files/audio_policy.conf index a5992e4..a133ce4 100644 --- a/files/audio_policy.conf +++ b/files/audio_policy.conf @@ -35,7 +35,7 @@ audio_hw_modules { primary { global_configuration { - attached_output_devices speaker|SPDIF + attached_output_devices speaker default_output_device AUDIO_DEVICE_OUT_SPEAKER attached_input_devices hdmi_in|line_in|tuner|spdif_in|buimic_in audio_hal_version 3.0 @@ -94,6 +94,15 @@ audio_hw_modules { } spdif_in { type AUDIO_DEVICE_IN_SPDIF + gains { + gain_1 { + mode AUDIO_GAIN_MODE_JOINT + min_value_mB 0 + max_value_mB 100 + default_value_mB 50 + step_value_mB 1 + } + } } hdmi_out { type AUDIO_DEVICE_OUT_AUX_DIGITAL @@ -130,7 +139,7 @@ audio_hw_modules { primary { sampling_rates 48000 channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT + formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_32_BIT devices speaker|hdmi_arc|SPDIF|wired_headphone|wired_headset|BT_sco|BT_sco_headset flags AUDIO_OUTPUT_FLAG_PRIMARY } @@ -164,7 +173,7 @@ audio_hw_modules { primary { sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO - formats AUDIO_FORMAT_PCM_16_BIT + formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_32_BIT devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|hdmi_in|line_in|tuner|spdif_in } } -- cgit