[LG V20 ROMs, Kernels, Recoveries, & Other Developm] itchydroid:
no speaker output for AAC encoded audio (M4A)

First off,

My first post on the forum :). But have been using and following the threads here for years. More so recently since I switched to my first android phone ever from Apple in well over a decade. I want to thank x86cpu and all others devs who donate their time and effort. Now down to the issue:

There is no sound and audo no audio playback for any songs that are aac encoded from the speaker. The stock music player (Eleven), along with others various players from FDroid seem to not play m4a files thru the speaker. VLC and Oddesey are two players that do play them fine through the speaker (perhaps because they have their own aac libraries bundled ?!?!?). But, as soon as I connect my bluetooth headphones, they are playing fine.

adb locat goes beserk as soon as I click play on an m4a when not using headset so here is a (hopefully relevent) snippet:

08-21 13:29:18.128 533 14203 D audio_route: Apply path: vi-feedback
08-21 13:29:18.128 533 14203 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 46 of type 1 for Event 3, with Raise=0
08-21 13:29:18.128 533 14203 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->in_snd_device vi-feedback
08-21 13:29:18.128 533 14203 E voice : voice_is_in_call_rec_stream: input stream is NULL
08-21 13:29:18.128 533 14203 D msm8974_platform: platform_split_snd_device: snd_device(117) num devices(0) new_snd_devices(0)
08-21 13:29:18.128 533 14203 E audio_hw_utils: send_app_type_cfg_for_device: Could not get ctl for mixer cmd - Audio Stream Capture 42 App Type Cfg
08-21 13:29:18.128 533 14203 E voice : voice_is_in_call_rec_stream: input stream is NULL
08-21 13:29:18.128 533 14203 D msm8974_platform: platform_split_snd_device: snd_device(117) num devices(1) new_snd_devices(0)
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 102, path = 1, app id = 0x11132, sample rate = 48000
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_asm_topology
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_adm_topology
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_audtable
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_audvoltable
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
08-21 13:29:18.129 533 14203 D : Failed to fetch the lookup information of the device 00000066
08-21 13:29:18.129 533 14203 E ACDB-LOADER: Error: ACDB AudProc vol returned = -19
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_audstrmtable
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_afe_topology
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 102, Topology Id 1025c
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_afe_cal
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 102 path = 1
08-21 13:29:18.129 533 14203 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
08-21 13:29:18.129 533 14203 D audio_hw_primary: enable_audio_route: apply mixer and update path: spkr-vi-record
08-21 13:29:18.129 533 14203 D audio_route: Apply path: spkr-vi-record
08-21 13:29:18.174 533 14203 E voice : voice_is_in_call_rec_stream: input stream is NULL
08-21 13:29:18.174 533 14203 D msm8974_platform: platform_split_snd_device: snd_device(67) num devices(1) new_snd_devices(0)
08-21 13:29:18.174 533 14203 D msm8974_platform: Resetting app type for Tx path to default
08-21 13:29:18.174 533 14203 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 8000
08-21 13:29:18.174 533 14203 D ACDB-LOADER: ACDB -> send_asm_topology
08-21 13:29:18.174 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
08-21 13:29:18.174 533 14203 D ACDB-LOADER: ACDB -> send_adm_topology
08-21 13:29:18.174 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
08-21 13:29:18.174 533 14203 D ACDB-LOADER: ACDB -> send_audtable
08-21 13:29:18.174 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
08-21 13:29:18.175 533 14203 D : Failed to fetch the lookup information of the device 00000004
08-21 13:29:18.175 533 14203 E ACDB-LOADER: Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
08-21 13:29:18.175 533 14203 D : Failed to fetch the lookup information of the device 00000004
08-21 13:29:18.175 533 14203 E ACDB-LOADER: Error: ACDB audproc returned = -19
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> send_audvoltable
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
08-21 13:29:18.175 533 14203 D : Failed to fetch the lookup information of the device 00000004
08-21 13:29:18.175 533 14203 E ACDB-LOADER: Error: ACDB AudProc vol returned = -19
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> send_audstrmtable
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> send_afe_topology
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> send_afe_cal
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
08-21 13:29:18.175 533 14203 D : Failed to fetch the lookup information of the device 00000004
08-21 13:29:18.175 533 14203 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
08-21 13:29:18.175 533 14203 D : Failed to fetch the lookup information of the device 00000004
08-21 13:29:18.175 533 14203 E ACDB-LOADER: Error: ACDB AFE returned = -19
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 4 path = 1
08-21 13:29:18.175 533 14203 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
08-21 13:29:18.175 533 14203 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 3 of type 0 for Event 3, with Raise=1
08-21 13:29:18.175 533 14203 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: concurrency active 0, tx 0, rx 1, concurrency session_allowed 1
08-21 13:29:18.175 533 14203 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device speaker
08-21 13:29:18.175 533 14203 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
08-21 13:29:18.176 533 14203 E msm8974_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
08-21 13:29:18.176 533 14203 E audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device speaker-protected ret=-14
08-21 13:29:18.176 533 14203 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
08-21 13:29:18.176 533 14203 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69936, acdb_dev_id 101, sample_rate 48000, snd_device_be_idx -14
08-21 13:29:18.176 594 14202 D NuPlayerDriver: notifyListener_l(0xed219100), (1, 0, 0, -1), loop setting(0, 0)
08-21 13:29:18.177 533 14203 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 101, path = 0, app id = 0x11130, sample rate = 48000
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_asm_topology
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_adm_topology
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_audtable
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_audvoltable
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 1
08-21 13:29:18.177 533 14203 D : Failed to fetch the lookup information of the device 00000065
08-21 13:29:18.177 533 14203 E ACDB-LOADER: Error: ACDB AudProc vol returned = -19
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_audstrmtable
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 536
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_afe_topology
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 101, Topology Id 1025d
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_afe_cal
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 101 path = 0
08-21 13:29:18.177 533 14203 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
08-21 13:29:18.178 533 14203 D audio_hw_primary: enable_audio_route: apply mixer and update path: compress-offload-playback
08-21 13:29:18.178 533 14203 D audio_route: Apply path: compress-offload-playback
08-21 13:29:18.184 533 14203 D audio_hw_primary: select_devices: done
08-21 13:29:18.185 533 14203 D msm8974_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map9
08-21 13:29:18.185 533 14203 D msm8974_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2
08-21 13:29:18.224 584 923 E /vendor/bin/adsprpcd: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:693:Error 45: fopen failed for HeaacDecoderModule.so.1. (No such file or directory)
08-21 13:29:18.271 533 14203 E audio_hw_primary: start_output_stream: cannot set device: Out of memory
08-21 13:29:18.271 533 14203 W offload_visualizer: visualizer_hal_stop_output output not started
08-21 13:29:18.271 533 14203 W offload_effect_bundle: offload_effects_bundle_hal_stop_output output not started
08-21 13:29:18.271 533 14203 D audio_hw_primary: disable_audio_route: reset and update mixer path: compress-offload-playback
08-21 13:29:18.273 533 14203 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 3 of type 0 for Event 2, with Raise=1
08-21 13:29:18.273 533 14203 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: concurrency active 0, tx 0, rx 0, concurrency session_allowed 1
08-21 13:29:18.273 533 14203 D hardware_info: hw_info_append_hw_type : device_name = speaker
08-21 13:29:18.273 533 14203 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
08-21 13:29:18.285 533 14203 D hardware_info: hw_info_append_hw_type : device_name = vi-feedback
08-21 13:29:18.285 533 14203 D audio_hw_primary: disable_snd_device: snd_device(117: vi-feedback)
08-21 13:29:18.285 533 14203 D msm8974_platform: platform_split_snd_device: snd_device(117) num devices(0) new_snd_devices(0)
08-21 13:29:18.285 533 14203 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x75 of type 1 for Event 0, with Raise=0
08-21 13:29:18.285 533 14203 D audio_hw_primary: disable_audio_route: reset and update mixer path: spkr-vi-record
08-21 13:29:18.285 533 14203 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 46 of type 1 for Event 2, with Raise=0
08-21 13:29:18.292 533 14203 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 0, with Raise=0
08-21 13:29:18.344 533 14203 D audio_hw_primary: start_output_stream: enter: stream(0xe72a0000)usecase(3: compress-offload-playback) devices(0x2)
08-21 13:29:18.345 533 14203 D audio_hw_primary: select_devices for use case (compress-offload-playback)
08-21 13:29:18.345 533 14203 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
08-21 13:29:18.345 533 14203 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 44100 channels 2, backend_idx 0 usecase = 3 device (speaker)
08-21 13:29:18.345 533 14203 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
08-21 13:29:18.345 533 14203 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 2
08-21 13:29:18.345 533 14203 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 44100 channels 2, backend_idx 0 usecase = 3 device (speaker)
08-21 13:29:18.345 533 14203 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
08-21 13:29:18.345 533 14203 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000

Im using 20180813 non-SS build with gamma v26 and latest MindTheGaaps on my H918.

Cheers