author | wei wang <wei.wang@amlogic.com> | 2018-07-30 06:56:33 (GMT) |
---|---|---|
committer | wei wang <wei.wang@amlogic.com> | 2018-08-01 06:40:04 (GMT) |
commit | 9d2cd7106f9c2106edef13e0a8297e601e684def (patch) | |
tree | 4b6a4920cbefa8199c7ad7ee9c29b921f7e74762 | |
parent | b4be960971b45cfd78f5eb0cdf683f45c9daa280 (diff) | |
download | darwin-9d2cd7106f9c2106edef13e0a8297e601e684def.zip darwin-9d2cd7106f9c2106edef13e0a8297e601e684def.tar.gz darwin-9d2cd7106f9c2106edef13e0a8297e601e684def.tar.bz2 |
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
-rw-r--r-- | darwin.mk | 2 | ||||
-rw-r--r-- | files/audio_policy.conf | 15 |
2 files changed, 13 insertions, 4 deletions
@@ -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 } } |