[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] BugOfSilence:
I have installed Lineage OS lineage-16.0-20190807 on a fresh Moto X4 4GB today. Almost everything is working very nicely. However, there seems to be an issue with audio for me. Ringtones and Notification sounds work, but other audio does not play back properly. Playing back a 6 second file will take minutes and no audible sound is produced. I saw some audio related changes in the changelog and tried downgrading to 20190730, but nothing changed. In logcat and dmesg, I found some concerning output respectively.

dmesg contains many repetitions of this:

[ 441.804571] msm_audio_ion_free Invalid params
[ 441.804887] msm-pcm-dsp soc:qcom,msm-pcm: ASoC: platform prepare error: -12
[ 441.804897] soc_pcm_prepare: Issue stop stream for codec_dai due to op failure -12 = ret
[ 441.807392] SDM660 Media1: ASoC: prepare FE SDM660 Media1 failed
[ 442.033754] q6asm_callback: cmd = 0x10db3 returned error = 0x3
[ 442.033975] __q6asm_open_write: DSP returned error[ADSP_EUNSUPPORTED]
[ 442.033984] msm_pcm_playback_prepare: q6asm_open_write_with_retry failed (-38)
[ 442.034691] msm_audio_ion_free Invalid params
[ 442.034969] msm-pcm-dsp soc:qcom,msm-pcm: ASoC: platform prepare error: -12
[ 442.034975] soc_pcm_prepare: Issue stop stream for codec_dai due to op failure -12 = ret
[ 442.036001] SDM660 Media1: ASoC: prepare FE SDM660 Media1 failed
[ 442.271795] q6asm_callback: cmd = 0x10db3 returned error = 0x3
[ 442.271858] __q6asm_open_write: DSP returned error[ADSP_EUNSUPPORTED]

In logcat, I found this:

08-09 22:45:19.958 779 5670 D audio_hw_primary: enable_audio_route: apply mixer and update path: deep-buffer-playback
08-09 22:45:19.958 779 5670 D audio_route: Apply path: deep-buffer-playback
08-09 22:45:19.960 779 5670 D audio_hw_primary: select_devices: done
08-09 22:45:20.004 779 5670 E audio_hw_primary: start_output_stream: pcm_prepare returned -1
08-09 22:45:20.053 779 5670 D audio_hw_primary: disable_audio_route: reset and update mixer path: deep-buffer-playback
08-09 22:45:20.055 779 5670 D hardware_info: hw_info_append_hw_type : device_name = speaker
08-09 22:45:20.055 779 5670 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
08-09 22:45:20.055 779 5670 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
08-09 22:45:20.128 779 5670 D audio_hw_primary: out_standby: enter: stream (0xf1815000) usecase(0: deep-buffer-playback)
08-09 22:45:20.128 779 5670 D audio_hw_primary: out_standby: exit
08-09 22:45:20.193 779 5670 D audio_hw_primary: start_output_stream: enter: stream(0xf1815000)usecase(0: deep-buffer-playback) devices(0x2)
08-09 22:45:20.193 779 5670 D audio_hw_primary: select_devices for use case (deep-buffer-playback)
08-09 22:45:20.193 779 5670 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
08-09 22:45:20.193 779 5670 I msm8916_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 0 device (speaker)
08-09 22:45:20.193 779 5670 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
08-09 22:45:20.193 779 5670 I msm8916_platform: platform_check_and_set_codec_backend_cfg: becf: new_snd_devices[0] is speaker
08-09 22:45:20.194 779 5670 I msm8916_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 current bit width: 16 sample rate: 48000 channels: 2 usecase 0 device (speaker)
08-09 22:45:20.194 779 5670 D msm8916_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
08-09 22:45:20.194 779 5670 D msm8916_platform: platform_check_codec_backend_cfg:becf: afe: only 48KHZ sample rate is supported Configure afe to default Sample Rate(48k)
08-09 22:45:20.194 779 5670 I msm8916_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 sample rate: 48000 channels: 2
08-09 22:45:20.194 779 5670 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
08-09 22:45:20.194 779 5670 E msm8916_platform: platform_check_backends_match: Invalid snd_device =
08-09 22:45:20.194 779 5670 D audio_hw_primary: check_usecases_codec_backend:becf: (65) check_usecases curr device: speaker, usecase device: backends match 0
08-09 22:45:20.194 779 5670 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
08-09 22:45:20.194 779 5670 D hardware_info: hw_info_append_hw_type : device_name = speaker
08-09 22:45:20.194 779 5670 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
08-09 22:45:20.194 779 5670 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)
08-09 22:45:20.194 779 5670 D audio_route: Apply path: speaker
08-09 22:45:20.208 779 5670 W audio_hw_utils: audio_extn_utils_update_stream_output_app_type_cfg: App type could not be selected. Falling back to default
08-09 22:45:20.208 779 5670 E audio_hw_dolby: audio_extn_dolby_ds2_set_endpoint: dap_hal_set_hw_info is NULL
08-09 22:45:20.208 779 5670 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device speaker
08-09 22:45:20.208 779 5670 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
08-09 22:45:20.210 779 5670 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
08-09 22:45:20.210 779 5670 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69936, acdb_dev_id 14, sample_rate 48000, snd_device_be_idx 2
08-09 22:45:20.211 779 5670 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> send_asm_topology
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> send_adm_topology
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> send_audtable
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
08-09 22:45:20.211 779 5670 D : ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
08-09 22:45:20.211 779 5670 D : ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> send_audvoltable
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
08-09 22:45:20.211 779 5670 D : ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
08-09 22:45:20.211 779 5670 D : ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
08-09 22:45:20.211 779 5670 D ACDB-LOADER: ACDB -> send_audstrmtable
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> send_afe_topology
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fc
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> send_afe_cal
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
08-09 22:45:20.212 779 5670 D : ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
08-09 22:45:20.212 779 5670 D : Failed to fetch the lookup information of the device 0000000E
08-09 22:45:20.212 779 5670 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
08-09 22:45:20.212 779 5670 D : ACDBFILE_MGR:Read the devices count as zero, please check the acdb file
08-09 22:45:20.212 779 5670 D : Failed to fetch the lookup information of the device 0000000E
08-09 22:45:20.212 779 5670 E ACDB-LOADER: Error: ACDB AFE returned = -19
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 14 path = 0
08-09 22:45:20.212 779 5670 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
08-09 22:45:20.212 779 5670 D audio_hw_primary: enable_audio_route: apply mixer and update path: deep-buffer-playback

If I plug in headphones, the speaker device changes to headphones in the output above, but is otherwise similar.

Can anybody reproduce this issue or has a suggestion on how to fix it? Not being able to make phone calls or listen to music is kind of a big deal for me.

Another issue is that apparently the fingerprint reader cannot be used. There are no settings relating to it anywhere.