1######################################################################################################## 2# (Optional) The supported features list for platform vendors to query from. 3# Platform vendors should call maxxaudio_qdsp_is_feature_supported with a string to query from the list. 4# This config has no effect in the MaxxAudioQdspHalController. It's only meaningful for platform vendors. 5# Putting any value other than 1 would be equivalent to not supported. 6######################################################################################################## 7[HAL_SUPPORTED_FEATURES] 8CUSTOM_ACTION_257=1 9 10######################################################################################################## 11# This defined the options of supported sample rates. 12# This can be configured by Waves or platform vendor. 13######################################################################################################## 14[HAL_SUPPORTED_SAMPLE_RATES] 15SR_COMMON = 48000 16 17######################################################################################################## 18# (Optional) The subtypes that applies to different angles(0, 90, 180, 270). Can be empty if not applicable. 19# This can be configured by Waves or platform vendor. 20######################################################################################################## 21[HAL_ORIENTATION_SUBTYPES] 22OST_SPEAKER = 0:12,90:13,180:12,270:0|13 23 24######################################################################################################## 25# This defines available preset configurations. 26# This should be configured by Waves only unless platform vendor is familiar with MPS structure. 27######################################################################################################## 28[HAL_SUPPORTED_PRESETS] 29SPEAKER_MUSIC_FOLDED_THROTTLE= OM:1,SM:3,OST:OST_SPEAKER 30SPEAKER_MUSIC_FOLDED_THROTTLE_NX= OM:1,SM:3,ST:16,OST:OST_SPEAKER 31SPEAKER_MUSIC_UNFOLDED_THROTTLE= OM:9,SM:3,OST:OST_SPEAKER 32SPEAKER_MUSIC_UNFOLDED_THROTTLE_NX= OM:9,SM:3,ST:16,OST:OST_SPEAKER 33SPEAKER_MUSIC_CLAMSHELL_THROTTLE= OM:60,SM:3,OST:OST_SPEAKER 34SPEAKER_MUSIC_CLAMSHELL_THROTTLE_NX= OM:60,SM:3,ST:16,OST:OST_SPEAKER 35SPEAKER_SAFE_MUSIC_THROTTLE = OM:10,SM:3,OST:OST_SPEAKER 36SPEAKER_SAFE_MUSIC_THROTTLE_LITE = OM:8,SM:3 37SPEAKER_MUSIC_FOLDED = OM:1,SM:2,OST:OST_SPEAKER 38SPEAKER_MUSIC_FOLDED_NX = OM:1,SM:2,ST:16,OST:OST_SPEAKER 39SPEAKER_MUSIC_UNFOLDED = OM:9,SM:2,OST:OST_SPEAKER 40SPEAKER_MUSIC_UNFOLDED_NX = OM:9,SM:2,ST:16,OST:OST_SPEAKER 41SPEAKER_MUSIC_CLAMSHELL = OM:60,SM:2,OST:OST_SPEAKER 42SPEAKER_MUSIC_CLAMSHELL_NX = OM:60,SM:2,ST:16,OST:OST_SPEAKER 43SPEAKER_SAFE_MUSIC = OM:10,SM:2,OST:OST_SPEAKER 44SPEAKER_SAFE_MUSIC_LITE = OM:8,SM:2 45 46######################################################################################################## 47# This defines available CONTROL configurations. Only define the CONTROL if you need it. 48# The numbers could vary from device to device. 49# This can be configured by Waves or platform vendor. 50######################################################################################################## 51[HAL_SUPPORTED_CONTROLS] 52SPEAKER_INSTANCE = INSTANCE:1,DEV:0,SR:SR_COMMON,PRESET:SPEAKER_MUSIC_FOLDED_THROTTLE|SPEAKER_MUSIC_FOLDED_THROTTLE_NX|SPEAKER_MUSIC_UNFOLDED_THROTTLE|SPEAKER_MUSIC_UNFOLDED_THROTTLE_NX|SPEAKER_MUSIC_CLAMSHELL_THROTTLE|SPEAKER_MUSIC_CLAMSHELL_THROTTLE_NX|SPEAKER_SAFE_MUSIC_THROTTLE|SPEAKER_MUSIC_FOLDED|SPEAKER_MUSIC_FOLDED_NX|SPEAKER_MUSIC_UNFOLDED|SPEAKER_MUSIC_UNFOLDED_NX|SPEAKER_MUSIC_CLAMSHELL|SPEAKER_MUSIC_CLAMSHELL_NX|SPEAKER_SAFE_MUSIC|SPEAKER_SAFE_MUSIC_LITE|SPEAKER_SAFE_MUSIC_THROTTLE_LITE 53 54[COEFS_CONVERTER_SETTING] 55AlgFxPath=/vendor/lib/libAlgFx_HiFi3z.so 56AlgFxPath64=/vendor/lib64/libAlgFx_HiFi3z.so 57# do not modify the following if not necessary 58#AudioFormatType=0 59#AudioFormatChannels=2 60#AudioFormatSampleRate=48000 61#AudioFormatBitsPerSample=32 62#AudioFormatSampleSize=4 63#AudioFormatIncrement=8 64 65[CUSTOM_ACTION_257] 66CASE_1=PRIORITY:0,NUMBERS:2:0|1|4:1|2:0|3:0,PRESET:SPEAKER_MUSIC_FOLDED 67CASE_2=PRIORITY:1,NUMBERS:2:0|1|4:1|2:0|3:1,PRESET:SPEAKER_MUSIC_FOLDED_NX 68CASE_3=PRIORITY:2,NUMBERS:2:0|1|4:1|2:1:0,PRESET:SPEAKER_MUSIC_CLAMSHELL 69CASE_4=PRIORITY:3,NUMBERS:2:0|1|4:1|2:1:1,PRESET:SPEAKER_MUSIC_CLAMSHELL_NX 70CASE_5=PRIORITY:4,NUMBERS:2:0|1|4:1|2:2:0,PRESET:SPEAKER_MUSIC_UNFOLDED 71CASE_6=PRIORITY:5,NUMBERS:2:0|1|4:1|2:2:1,PRESET:SPEAKER_MUSIC_UNFOLDED_NX 72CASE_7=PRIORITY:6,NUMBERS:1|2|4194304:2|3:1|2:0|1|2|3:0|1,PRESET:SPEAKER_SAFE_MUSIC_LITE 73CASE_8=PRIORITY:7,NUMBERS:1|4194304:0|1|4:1|2:0|1|2|3:0|1,PRESET:SPEAKER_SAFE_MUSIC 74CASE_9=PRIORITY:8,NUMBERS:2:0|1|4:0:0|3:0|1,PRESET:SPEAKER_MUSIC_FOLDED_THROTTLE 75CASE_10=PRIORITY:9,NUMBERS:2:0|1|4:0:0|3:0|1,PRESET:SPEAKER_MUSIC_FOLDED_THROTTLE_NX 76CASE_11=PRIORITY:10,NUMBERS:2:0|1|4:0:1:0,PRESET:SPEAKER_MUSIC_CLAMSHELL_THROTTLE 77CASE_12=PRIORITY:11,NUMBERS:2:0|1|4:0:1:0,PRESET:SPEAKER_MUSIC_CLAMSHELL_THROTTLE_NX 78CASE_13=PRIORITY:12,NUMBERS:2:0|1|4:0:2:0,PRESET:SPEAKER_MUSIC_UNFOLDED_THROTTLE 79CASE_14=PRIORITY:13,NUMBERS:2:0|1|4:0:2:0,PRESET:SPEAKER_MUSIC_UNFOLDED_THROTTLE_NX 80CASE_15=PRIORITY:14,NUMBERS:1|2|4194304:2|3:0:0|1|2|3:0|1,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE_LITE 81CASE_16=PRIORITY:15,NUMBERS:1|4194304:0|1|4:0:0|1|2|3:0|1,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE 82 83# Action 257 parameters: audio_devices_t, audio_mode_t, throttle_control_state_t, folded_type_t, sound_usage_t 84# - audio_devices_t : current active device 85# - audio_mode_t : 0 - normal, 1 - incoming, 2 - voice call, 3 - voip, 4 - call screen 86# - throttle_control_state_t: 0 - Enabled, 1 - Disabled, 2 - Bypassed 87# - folded_type_t: 0 - Close, 1 -Clamshell, 2 - Open, 3 - unknown 88# - sound_usage_t: 0 - NX_off, 1 - NX_on 89