diff --git a/configs/audio/audio_effects.xml b/configs/audio/audio_effects.xml new file mode 100644 index 0000000..6af7c70 --- /dev/null +++ b/configs/audio/audio_effects.xml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/audio_effects_haptic.xml b/configs/audio/audio_effects_haptic.xml new file mode 100644 index 0000000..c6c118a --- /dev/null +++ b/configs/audio/audio_effects_haptic.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/configs/audio/audio_effects_sec.xml b/configs/audio/audio_effects_sec.xml new file mode 100644 index 0000000..1c08a16 --- /dev/null +++ b/configs/audio/audio_effects_sec.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/audio_effects_spatializer.xml b/configs/audio/audio_effects_spatializer.xml new file mode 100644 index 0000000..9a92f87 --- /dev/null +++ b/configs/audio/audio_effects_spatializer.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml new file mode 100644 index 0000000..66c0445 --- /dev/null +++ b/configs/audio/audio_policy_configuration.xml @@ -0,0 +1,124 @@ + + + + + + + Earpiece + Speaker + Built-In Mic + Built-In Back Mic + Voice Call Mic + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Remote Submix In + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/audio_policy_configuration_base.xml b/configs/audio/audio_policy_configuration_base.xml new file mode 100644 index 0000000..f5639e0 --- /dev/null +++ b/configs/audio/audio_policy_configuration_base.xml @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + + + + + + Earpiece + Speaker + Telephony Tx + Built-In Mic + Built-In Back Mic + Built-In 2 Mic + Telephony Rx + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/audio_policy_volumes.xml b/configs/audio/audio_policy_volumes.xml new file mode 100644 index 0000000..32912b8 --- /dev/null +++ b/configs/audio/audio_policy_volumes.xml @@ -0,0 +1,205 @@ + + + + + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + + + + + 1,-2970 + 33,-2010 + 66,-1020 + 100,0 + + + + + + + + + + + + 0,-2970 + 33,-2010 + 66,-1020 + 100,0 + + + + + + + 1,-2970 + 33,-2010 + 66,-1020 + 100,0 + + + + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/dax3_media_codecs_dolby_audio.xml b/configs/audio/dax3_media_codecs_dolby_audio.xml new file mode 100644 index 0000000..3531e8b --- /dev/null +++ b/configs/audio/dax3_media_codecs_dolby_audio.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/sec_audio_volume_curve.xml b/configs/audio/sec_audio_volume_curve.xml new file mode 100644 index 0000000..de27b76 --- /dev/null +++ b/configs/audio/sec_audio_volume_curve.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/configs/audio/situation_audio_policy_volumes_sec.xml b/configs/audio/situation_audio_policy_volumes_sec.xml new file mode 100644 index 0000000..94cd2e1 --- /dev/null +++ b/configs/audio/situation_audio_policy_volumes_sec.xml @@ -0,0 +1,240 @@ + + + + + + 0, 97, 137, 193, 289, 433, 648, 969, 1450 + + + 40, 73, 103, 145, 205, 289, 408, 576, 814 + + + 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170 + + + 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170 + + + 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050 + + + 132, 187, 264, 373, 527, 745, 1053, 1487, 2100 + + + + + 0, 137, 193, 273, 386, 545, 770, 1087, 1536 + + + 97, 137, 193, 273, 386, 545, 770, 1087, 1536 + + + 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050 + + + 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050 + + + 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050 + + + 132, 187, 264, 373, 527, 745, 1053, 1487, 2100 + + + + + 0, 137, 193, 273, 386, 545, 770, 1087, 1536 + + + 97, 137, 193, 273, 386, 545, 770, 1087, 1536 + + + 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050 + + + 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050 + + + 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050 + + + 132, 187, 264, 373, 527, 745, 1053, 1487, 2100 + + + + + 0, 365, 515, 728, 1029, 1453, 2053, 2900, 4096 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 179, 201, 225, 252, 283, 317, 356, 399, 502, 632, 796, 1002, 1262, 1589, 2000 + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 14, 16, 18, 20, 23, 26, 29, 33, 41, 51, 64, 80, 101, 127, 160 + + + 0, 41, 52, 65, 82, 103, 129, 183, 258, 365, 516, 729, 1029, 1454, 2053, 2900 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 44, 49, 55, 62, 70, 79, 89, 100, 126, 158, 199, 250, 315, 397, 500 + + + 0, 4, 5, 6, 7, 9, 11, 16, 22, 31, 44, 62, 88, 125, 175, 250 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 26, 29, 33, 37, 42, 47, 53, 60, 75, 95, 119, 150, 189, 238, 300 + + + 0, 3, 4, 5, 6, 7, 9, 12, 16, 21, 29, 39, 53, 71, 95, 130 + + + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 49, 55, 62, 70, 78, 87, 98, 110, 138, 174, 219, 276, 347, 437, 550 + + + 0, 28, 35, 44, 56, 71, 89, 126, 178, 251, 355, 502, 709, 1002, 1416, 2000 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 12, 13, 15, 17, 19, 21, 24, 27, 34, 43, 54, 68, 85, 107, 135 + + + 0, 41, 52, 65, 82, 103, 129, 183, 258, 365, 516, 729, 1029, 1454, 2053, 2900 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 16, 18, 20, 23, 26, 29, 32, 36, 45, 57, 72, 91, 114, 143, 180 + + + 0, 41, 52, 65, 82, 103, 129, 183, 258, 365, 516, 729, 1029, 1454, 2053, 2900 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 34, 38, 43, 48, 54, 61, 68, 76, 96, 121, 152, 191, 240, 302, 380 + + + 0, 10, 13, 16, 20, 25, 31, 44, 62, 88, 125, 175, 250, 350, 500, 700 + + + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 10, 11, 12, 14, 16, 18, 20, 23, 29, 36, 45, 57, 72, 91, 115 + + + 0, 10, 13, 16, 20, 25, 31, 44, 62, 88, 125, 175, 250, 350, 500, 700 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 10, 12, 14, 16, 18, 20, 22, 25, 31, 38, 48, 60, 75, 95, 120 + + + 0, 18, 23, 29, 37, 46, 58, 82, 116, 164, 231, 326, 461, 651, 920, 1300 + + + + + 0, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 0, 8, 9, 10, 11, 12, 14, 16, 18, 23, 29, 36, 45, 57, 72, 91 + + + 0, 41, 52, 65, 82, 103, 129, 183, 258, 365, 516, 729, 1029, 1454, 2053, 2900 + + + + + 0, 7, 13, 23, 41, 73, 129, 230, 365, 515, 728, 1029, 1453, 2053, 2900, 4096 + + + + + 0, 89, 100, 112, 126, 141, 158, 177, 199, 251, 316, 398, 501, 631, 794, 1000 + + + + + 3, 3, 8, 15, 23, 32, 45, 63, 89, 126, 178, 251, 355, 501, 708, 1000 + + + 20, 28, 35, 43, 50, 63, 75, 90, 105, 123, 140, 160, 185, 195, 210, 220 + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 + + + 4, 5, 7, 9, 12, 16, 22, 30, 40, 53, 71, 95, 127, 169, 225, 300 + + + + diff --git a/configs/audio/sku_pineapple/audio_effects.conf b/configs/audio/sku_pineapple/audio_effects.conf new file mode 100644 index 0000000..7dce3dd --- /dev/null +++ b/configs/audio/sku_pineapple/audio_effects.conf @@ -0,0 +1,360 @@ +# List of effect libraries to load. Each library element must contain a "path" element +# giving the full path of the library .so file. +# libraries { +# { +# path +# } +# } +libraries { + bundle { + path /vendor/lib/soundfx/libbundlewrapper.so + } + reverb { + path /vendor/lib/soundfx/libreverbwrapper.so + } + qcbassboost { + path /vendor/lib/soundfx/libqcbassboost.so + } + qcvirt { + path /vendor/lib/soundfx/libqcvirt.so + } + qcreverb { + path /vendor/lib/soundfx/libqcreverb.so + } + visualizer_sw { + path /vendor/lib/soundfx/libvisualizer.so + } + visualizer_hw { + path /vendor/lib/soundfx/libqcomvisualizer.so + } + downmix { + path /vendor/lib/soundfx/libdownmix.so + } + loudness_enhancer { + path /vendor/lib/soundfx/libldnhncr.so + } + dynamics_processing { + path /vendor/lib/soundfx/libdynproc.so + } + proxy { + path /vendor/lib/soundfx/libeffectproxy.so + } + offload_bundle { + path /vendor/lib/soundfx/libqcompostprocbundle.so + } + audio_pre_processing { + path /vendor/lib/soundfx/libqcomvoiceprocessing.so + } + volume_listener { + path /vendor/lib/soundfx/libvolumelistener.so + } + audiosphere { + path /vendor/lib/soundfx/libasphere.so + } +} + +# Default pre-processing library. Add to audio_effect.conf "libraries" section if +# audio HAL implements support for default software audio pre-processing effects +# +# pre_processing { +# path /vendor/lib/soundfx/libaudiopreprocessing.so +# } + +# list of effects to load. Each effect element must contain a "library" and a "uuid" element. +# The value of the "library" element must correspond to the name of one library element in the +# "libraries" element. +# The name of the effect element is indicative, only the value of the "uuid" element +# designates the effect. +# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the +# generic effect type UUID. +# effects { +# { +# library +# uuid +# } +# ... +# } + +effects { + +# additions for the proxy implementation +# Proxy implementation + #effectname { + #library proxy + #uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx + + # SW implemetation of the effect. Added as a node under the proxy to + # indicate this as a sub effect. + #libsw { + #library libSW + #uuid yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy + #} End of SW effect + + # HW implementation of the effect. Added as a node under the proxy to + # indicate this as a sub effect. + #libhw { + #library libHW + #uuid zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz + #}End of HW effect + #} End of effect proxy + + bassboost { + library proxy + uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b + + libsw { + library qcbassboost + uuid 23aca180-44bd-11e2-bcfd-0800200c9a66 + } + + libhw { + library offload_bundle + uuid 2c4a8c24-1581-487f-94f6-0002a5d5c51b + } + } + virtualizer { + library proxy + uuid d3467faa-acc7-4d34-acaf-0002a5d5c51b + + libsw { + library qcvirt + uuid e6c98a16-22a3-11e2-b87b-f23c91aec05e + } + + libhw { + library offload_bundle + uuid 509a4498-561a-4bea-b3b1-0002a5d5c51b + } + } + equalizer { + library proxy + uuid c8e70ecd-48ca-456e-8a4f-0002a5d5c51b + + libsw { + library bundle + uuid ce772f20-847d-11df-bb17-0002a5d5c51b + } + + libhw { + library offload_bundle + uuid a0dac280-401c-11e3-9379-0002a5d5c51b + } + } + volume { + library bundle + uuid 119341a0-8469-11df-81f9-0002a5d5c51b + } + reverb_env_aux { + library proxy + uuid 48404ac9-d202-4ccc-bf84-0002a5d5c51b + + libsw { + library qcreverb + uuid a8c1e5f3-293d-43cd-95ec-d5e26c02e217 + } + + libhw { + library offload_bundle + uuid 79a18026-18fd-4185-8233-0002a5d5c51b + } + } + reverb_env_ins { + library proxy + uuid b707403a-a1c1-4291-9573-0002a5d5c51b + + libsw { + library qcreverb + uuid 791fff8b-8129-4655-83a4-59bc61034c3a + } + + libhw { + library offload_bundle + uuid eb64ea04-973b-43d2-8f5e-0002a5d5c51b + } + } + reverb_pre_aux { + library proxy + uuid 1b78f587-6d1c-422e-8b84-0002a5d5c51b + + libsw { + library qcreverb + uuid 53ef1db5-c0c0-445b-b060-e34d20ebb70a + } + + libhw { + library offload_bundle + uuid 6987be09-b142-4b41-9056-0002a5d5c51b + } + } + reverb_pre_ins { + library proxy + uuid f3e178d2-ebcb-408e-8357-0002a5d5c51b + + libsw { + library qcreverb + uuid b08a0e38-22a5-11e2-b87b-f23c91aec05e + } + + libhw { + library offload_bundle + uuid aa2bebf6-47cf-4613-9bca-0002a5d5c51b + } + } + visualizer { + library proxy + uuid 1d0a1a53-7d5d-48f2-8e71-27fbd10d842c + + libsw { + library visualizer_sw + uuid d069d9e0-8329-11df-9168-0002a5d5c51b + } + + libhw { + library visualizer_hw + uuid 7a8044a0-1a71-11e3-a184-0002a5d5c51b + } + } + downmix { + library downmix + uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f + } + hw_acc { + library offload_bundle + uuid 7d1580bd-297f-4683-9239-e475b6d1d69f + } + loudness_enhancer { + library loudness_enhancer + uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c + } + dynamics_processing { + library dynamics_processing + uuid e0e6539b-1781-7261-676f-6d7573696340 + } + aec { + library audio_pre_processing + uuid 0f8d0d2a-59e5-45fe-b6e4-248c8a799109 + } + ns { + library audio_pre_processing + uuid 1d97bb0b-9e2f-4403-9ae3-58c2554306f8 + } + music_helper { + library volume_listener + uuid 08b8b058-0590-11e5-ac71-0025b32654a0 + } + ring_helper { + library volume_listener + uuid 0956df94-0590-11e5-bdbe-0025b32654a0 + } + alarm_helper { + library volume_listener + uuid 09f303e2-0590-11e5-8fdb-0025b32654a0 + } + # voice_helper is called when stream type is voice_call in VoIP usecase + voice_helper { + library volume_listener + uuid 0ace5c08-0590-11e5-ae9e-0025b32654a0 + } + notification_helper { + library volume_listener + uuid 0b776dde-0590-11e5-81ba-0025b32654a0 + } + audiosphere { + library audiosphere + uuid 184e62ab-2d19-4364-9d1b-c0a40733866c + } +} + +# additional effect from vendor +# UUID generated using version 1 + +output_session_processing { + music { + music_helper { + } + } + ring { + ring_helper { + } + } + alarm { + alarm_helper { + } + } + # stream type voice_call is used for VoIP call + voice_call { + voice_helper { + } + } + notification { + notification_helper { + } + } +} + +# Added aec, ns effects for voice_communication, which are supported by the board + +pre_processing { + voice_communication { + aec { + } + ns { + } + } +} + +# Default pre-processing effects. Add to audio_effect.conf "effects" section if +# audio HAL implements support for them. +# +# agc { +# library pre_processing +# uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b +# } +# aec { +# library pre_processing +# uuid bb392ec0-8d4d-11e0-a896-0002a5d5c51b +# } +# ns { +# library pre_processing +# uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b +# } + +# Audio preprocessor configurations. +# The pre processor configuration consists in a list of elements each describing +# pre processor settings for a given input source. Valid input source names are: +# "mic", "camcorder", "voice_recognition", "voice_communication" +# Each input source element contains a list of effects elements. The name of the effect +# element must be the name of one of the effects in the "effects" list of the file. +# Each effect element may optionally contain a list of parameters and their +# default value to apply when the pre processor effect is created. +# A parameter is defined by a "param" element and a "value" element. Each of these elements +# consists in one or more elements specifying a type followed by a value. +# The types defined are: "int", "short", "float", "bool" and "string" +# When both "param" and "value" are a single int, a simple form is allowed where just +# the param and value pair is present in the parameter description +# pre_processing { +# { +# { +# { +# param { +# int|short|float|bool|string +# [ int|short|float|bool|string ] +# ... +# } +# value { +# int|short|float|bool|string +# [ int|short|float|bool|string ] +# ... +# } +# } +# { } +# ... +# } +# ... +# } +# ... +# } + +# +# TODO: add default audio pre processor configurations after debug and tuning phase +# diff --git a/configs/audio/sku_pineapple/audio_effects.xml b/configs/audio/sku_pineapple/audio_effects.xml new file mode 100644 index 0000000..6af7c70 --- /dev/null +++ b/configs/audio/sku_pineapple/audio_effects.xml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/sku_pineapple_qssi/audio_policy_configuration.xml b/configs/audio/sku_pineapple_qssi/audio_policy_configuration.xml new file mode 100644 index 0000000..58d6547 --- /dev/null +++ b/configs/audio/sku_pineapple_qssi/audio_policy_configuration.xml @@ -0,0 +1,542 @@ + + + + + + + + + + + + + + + + + + + Earpiece + Speaker + Telephony Tx + Built-In Mic + Built-In Back Mic + FM Tuner + Telephony Rx + Echo Reference + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/usecaseKvManager.xml b/configs/audio/usecaseKvManager.xml new file mode 100644 index 0000000..f7b1980 --- /dev/null +++ b/configs/audio/usecaseKvManager.xml @@ -0,0 +1,2131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + > + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/device.mk b/device.mk index 5bbbdb7..85808c7 100644 --- a/device.mk +++ b/device.mk @@ -57,20 +57,44 @@ PRODUCT_PACKAGES += \ vendor.qti.hardware.pal@1.0.vendor AUDIO_HAL_DIR := hardware/qcom-caf/sm8650/audio/primary-hal +AUDIO_PAL_DIR := hardware/qcom-caf/sm8650/audio/pal PRODUCT_COPY_FILES += \ - $(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ - $(AUDIO_HAL_DIR)/configs/pineapple/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.conf \ $(AUDIO_HAL_DIR)/configs/pineapple/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.xml \ + $(AUDIO_HAL_DIR)/configs/pineapple/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.conf \ + $(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ + $(AUDIO_HAL_DIR)/configs/common/bluetooth_qti_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_audio_policy_configuration.xml \ + $(AUDIO_HAL_DIR)/configs/common/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml \ $(AUDIO_HAL_DIR)/configs/pineapple/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \ + $(AUDIO_PAL_DIR)/configs/pineapple/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \ + $(AUDIO_HAL_DIR)/configs/pineapple/mem_logger_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mem_logger_config.xml \ + $(LOCAL_PATH)/configs/audio/audio_effects_haptic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects_haptic.xml \ + $(LOCAL_PATH)/configs/audio/audio_effects_sec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects_sec.xml \ + $(LOCAL_PATH)/configs/audio/audio_effects_spatializer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects_spatializer.xml \ + $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ + $(LOCAL_PATH)/configs/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ + $(LOCAL_PATH)/configs/audio/dax3_media_codecs_dolby_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dax3_media_codecs_dolby_audio.xml \ + $(LOCAL_PATH)/configs/audio/situation_audio_policy_volumes_sec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/situation_audio_policy_volumes_sec.xml \ + $(LOCAL_PATH)/configs/audio/usecaseKvManager.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager.xml + #$(LOCAL_PATH)/configs/audio/sku_pineapple/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.conf \ + #$(LOCAL_PATH)/configs/audio/sku_pineapple/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.xml \ + #$(LOCAL_PATH)/configs/audio/audio_policy_configuration_base.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_base.xml \ + #$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ PRODUCT_COPY_FILES += \ + frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ + frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \ frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \ frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml +# Bluetooth +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ + frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml + # Boot animation TARGET_SCREEN_HEIGHT := 3120 TARGET_SCREEN_WIDTH := 1440 @@ -132,7 +156,13 @@ PRODUCT_PACKAGES += \ # Media PRODUCT_PACKAGES += \ - libavservices_minijail.vendor + libavservices_minijail \ + libpalclient + +PRODUCT_COPY_FILES += \ + $(AUDIO_HAL_DIR)/configs/common/codec2/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \ + $(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.base-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.base-arm64.policy \ + $(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.ext-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.ext-arm64.policy # Overlays DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay diff --git a/extract-files.py b/extract-files.py index cf27368..b74e655 100755 --- a/extract-files.py +++ b/extract-files.py @@ -61,6 +61,8 @@ blob_fixups: blob_fixups_user_type = { .binary_regex_replace(b'ril.dds.call.ongoing', b'vendor.calls.slot_id') # mov x3, x21 -> mov x3, #0 .sig_replace('bf c2 00 f8 76 0e 40 f9 80 0e 40 f9 e1 03 16 aa 82 0c 80 52 e3 03 15 aa 24 00 80 52 08 00 40 f9', 'bf c2 00 f8 76 0e 40 f9 80 0e 40 f9 e1 03 16 aa 82 0c 80 52 03 00 80 d2 24 00 80 52 08 00 40 f9'), + 'vendor/lib64/libqcodec2_core.so': blob_fixup() + .add_needed('libcodec2_shim.so'), } # fmt: skip module = ExtractUtilsModule( diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml new file mode 100644 index 0000000..9219094 --- /dev/null +++ b/overlay/packages/apps/Settings/res/values/config.xml @@ -0,0 +1,36 @@ + + + + + + 3 + diff --git a/proprietary-files.txt b/proprietary-files.txt index c941d07..1128c2d 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -50,14 +50,7 @@ vendor/lib64/vendor.qti.hardware.ListenSoundModel@1.0.so vendor/lib64/vendor.qti.hardware.pal@1.0-impl.so vendor/lib64/vendor.samsung.hardware.audio@1.0.so -# Audio FX modules -vendor/lib64/soundfx/libasphere.so -vendor/lib64/soundfx/libquasar.so -vendor/lib64/soundfx/libshoebox.so - -# Audio XML -vendor/etc/audio/sku_pineapple/audio_effects.conf -vendor/etc/audio/sku_pineapple/audio_effects.xml +# Audio configs vendor/etc/audio/sku_pineapple/mixer_paths.xml vendor/etc/audio/sku_pineapple/mixer_paths_pineapple_cdp.xml vendor/etc/audio/sku_pineapple/mixer_paths_pineapple_cdp_wsa883x.xml @@ -69,21 +62,16 @@ vendor/etc/audio/sku_pineapple/resourcemanager_pineapple_cdp.xml vendor/etc/audio/sku_pineapple/resourcemanager_pineapple_mtp.xml vendor/etc/audio/sku_pineapple/resourcemanager_pineapple_qrd.xml vendor/etc/audio/sku_pineapple/resourcemanager_pineapple_qrd_sku2.xml -vendor/etc/audio_effects.xml -vendor/etc/audio_policy_volumes.xml -vendor/etc/bluetooth_audio_policy_configuration.xml -vendor/etc/bluetooth_qti_audio_policy_configuration.xml -vendor/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml -vendor/etc/card-defs.xml -vendor/etc/default_volume_tables.xml -vendor/etc/hearing_aid_audio_policy_configuration.xml -vendor/etc/mem_logger_config.xml -vendor/etc/situation_audio_policy_volumes_sec.xml -vendor/etc/usecaseKvManager.xml + +# Audio FX modules +vendor/lib64/soundfx/libasphere.so +vendor/lib64/soundfx/libquasar.so +vendor/lib64/soundfx/libshoebox.so # Bluetooth vendor/bin/hw/android.hardware.bluetooth@1.1-service-qti vendor/etc/init/android.hardware.bluetooth@1.1-service-qti.rc +vendor/etc/vintf/manifest/bluetooth_audio.xml vendor/etc/vintf/manifest/bttpi-saidl.xml vendor/lib64/hw/android.hardware.bluetooth@1.0-impl-qti.so vendor/lib64/hw/android.hardware.bluetooth@1.1-impl-qti.so @@ -94,6 +82,7 @@ vendor/lib64/lib_bt_ble.so vendor/lib64/lib_bt_bundle.so vendor/lib64/libbtnv.so vendor/lib64/libsoc_helper.so +vendor/lib64/vendor.qti.hardware.bttpi-V3-ndk.so vendor/lib64/vendor.samsung.hardware.bluetooth.audio-V2-ndk.so vendor/lib64/vendor.samsung.hardware.bluetooth@2.0.so @@ -113,6 +102,17 @@ vendor/lib64/libsehbluetooth_audio_session_aidl.so vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.0.so vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.1.so vendor/lib64/vendor.qti.hardware.fm@1.0.so +vendor/lib64/vendor.samsung.hardware.bluetooth.audio-impl.so + +# Camera +vendor/lib64/libOpenCv.camera.samsung.so +vendor/lib64/libexifa.camera.samsung.so +vendor/lib64/libimagecodec_native.quram.so +vendor/lib64/libos.so +vendor/lib64/libpadm.so +vendor/lib64/libphotohdr.so +vendor/lib64/libsynx.so +vendor/lib64/libthreadutils.so # Camera firmware vendor/firmware/CAMERA_ICP.b00 @@ -361,6 +361,13 @@ vendor/lib64/libdrmfs.so vendor/lib64/vendor.qti.hardware.qseecom-V1-ndk.so vendor/lib64/vendor.qti.hardware.qseecom@1.0.so +# EVA +vendor/etc/eva/facedetection/bias.dat +vendor/etc/eva/facedetection/weight.dat +vendor/lib64/libcv_common.so +vendor/lib64/libeva.so +vendor/lib64/libeva_util.so + # Fingerprint vendor/etc/init/init.fingerprint.rc vendor/lib64/libegis_fp_normal_sensor_test.so @@ -605,6 +612,54 @@ vendor/lib64/vendor.samsung.hardware.security.hermes-V1-ndk.so vendor/lib64/libhypervintf.so vendor/lib64/vendor.samsung.hardware.hyper-V2-ndk.so +# Media +system_ext/lib64/libmmosal.so +system_ext/lib64/libmmparser_lite.so +vendor/bin/hw/vendor.qti.media.c2@1.0-service +vendor/bin/init.qti.media.sh +vendor/etc/init/init.qti.media.rc +vendor/etc/init/vendor.qti.media.c2@1.0-service.rc +vendor/etc/media_codecs_performance_pineapple.xml +vendor/etc/media_codecs_performance_pineapple_vendor.xml +vendor/etc/media_codecs_pineapple_vendor.xml +vendor/etc/media_pineapple/video_system_specs.json +vendor/etc/media_profiles.xml +vendor/etc/media_profiles_V1_0.xml +vendor/etc/media_profiles_pineapple.xml +vendor/etc/seccomp_policy/codec2.vendor.base-arm64.policy +vendor/etc/seccomp_policy/codec2.vendor.ext-arm64.policy +vendor/lib64/libQcelp13SwCodec.so +vendor/lib64/libc2filterplugin.so +vendor/lib64/libheifcapture.so +vendor/lib64/libmmosal_vendor.so +vendor/lib64/libqc2audio_base.so +vendor/lib64/libqc2audio_basecodec.so +vendor/lib64/libqc2audio_core.so +vendor/lib64/libqc2audio_hooks.so +vendor/lib64/libqc2audio_hwaudiocodec.so;DISABLE_CHECKELF +vendor/lib64/libqc2audio_platform.so +vendor/lib64/libqc2audio_swaudiocodec.so +vendor/lib64/libqc2audio_utils.so +vendor/lib64/libqcodec2_base.so +vendor/lib64/libqcodec2_basecodec.so +vendor/lib64/libqcodec2_core.so +vendor/lib64/libqcodec2_cvpfilter.so +vendor/lib64/libqcodec2_filterbase.so +vendor/lib64/libqcodec2_hooks.so +vendor/lib64/libqcodec2_imgtxrfilter.so +vendor/lib64/libqcodec2_mockfilter.so +vendor/lib64/libqcodec2_platform.so +vendor/lib64/libqcodec2_streaminteg_filter.so +vendor/lib64/libqcodec2_utils.so +vendor/lib64/libqcodec2_v4l2codec.so +vendor/lib64/libsavscmn.so +vendor/lib64/libsavsvc.so +vendor/lib64/libsec2imageformatfilter.so +vendor/lib64/libsimba.media.samsung.so +vendor/lib64/libstagefright_foundation_vendor.so +vendor/lib64/libvideotxr.so +vendor/lib64/qti.video.utils.videobufferlayout.so + # Memory vendor/lib64/libvmmem.so @@ -760,7 +815,6 @@ vendor/lib64/libtlpd_crypto.so vendor/lib64/libtlpd_internal.so vendor/lib64/libtlpd_logger.so vendor/lib64/libvkmanager_vendor.so -vendor/lib64/vendor.qti.hardware.bttpi-V3-ndk.so vendor/lib64/vendor.samsung.hardware.radio-V1-ndk.so vendor/lib64/vendor.samsung.hardware.radio.bridge-V1-ndk.so vendor/lib64/vendor.samsung.hardware.radio.channel-V1-ndk.so @@ -946,8 +1000,10 @@ vendor/bin/hw/android.hardware.usb-service.qti # Ultra-wideband vendor/etc/libuwb-nxp.conf -# Vibrator +# Vibration vendor/bin/hw/vendor.samsung.hardware.vibrator-service +vendor/etc/Hapticsconfig.xml +vendor/etc/audio_effects_haptic.xml vendor/etc/init/vendor.samsung.hardware.vibrator-default.rc vendor/etc/vintf/manifest/vendor.samsung.hardware.vibrator-default.xml vendor/lib64/vendor.samsung.hardware.vibrator-V5-ndk.so