[Treble-Enabled Device Development A/AB ROMS] andythedev:
Unfortunately I'm not able to use this GSI on my Xiaomi Mi Mix 2. Even with media volume turned off, there is a loud cracking sound whenever a video is played (normal audio is fine however).

Here's the audio related logcats:

05-06 12:28:49.861 943 8548 D audio_hw_primary: select_devices for use case (deep-buffer-playback)
05-06 12:28:49.861 943 8548 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
05-06 12:28:49.861 943 8548 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 24, samplerate 48000 channels 2, backend_idx 0 usecase = 0 device (speaker)
05-06 12:28:49.861 943 8548 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
05-06 12:28:49.861 943 8548 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 2
05-06 12:28:49.861 943 8548 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 24, samplerate 48000 channels 2, backend_idx 0 usecase = 0 device (speaker)
05-06 12:28:49.861 943 8548 D msm8974_platform: platform_check_codec_backend_cfg:napb: (0) - (low-latency-playback)id (1) sr 48000 bw (24) ch (2) device speaker
05-06 12:28:49.861 943 8548 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: reset bitwidth to 24 (based on supported value for this platform)
05-06 12:28:49.861 943 8548 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
05-06 12:28:49.861 943 8548 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 24 and sample rate: 48000
05-06 12:28:49.861 943 8548 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
05-06 12:28:49.861 943 8548 D audio_hw_primary: check_usecases_codec_backend:becf: (61) check_usecases curr device: speaker, usecase device:speaker backends match 1
05-06 12:28:49.861 943 8548 E msm8974_platform: platform_check_backends_match: Invalid snd_device =
05-06 12:28:49.861 943 8548 D audio_hw_primary: check_usecases_codec_backend:becf: (61) check_usecases curr device: speaker, usecase device: backends match 0
05-06 12:28:49.861 943 8548 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
05-06 12:28:49.861 943 8548 D hardware_info: hw_info_append_hw_type : device_name = speaker
05-06 12:28:49.861 943 8548 I audio_hw_utils: audio_extn_utils_update_stream_output_app_type_cfg Allowing 24-bit playback on speaker ONLY at default sampling rate
05-06 12:28:49.861 943 8548 E audio_hw_dolby: audio_extn_dolby_ds2_set_endpoint: Dolby set endpint :0x2
05-06 12:28:49.861 943 8548 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 0 of type 0 for Event 3, with Raise=1
05-06 12:28:49.861 943 8548 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device speaker
05-06 12:28:49.861 943 8548 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
05-06 12:28:49.862 943 8548 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
05-06 12:28:49.862 943 8548 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69937, acdb_dev_id 36, sample_rate 48000, snd_device_be_idx 39
05-06 12:28:49.862 943 8548 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 36, path = 0, app id = 0x11131, sample rate = 48000
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_asm_topology
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
05-06 12:28:49.862 2750 2751 E ANDR-PERF-OPTSHANDLER: Failed to read /proc/sys/kernel/sched_boost
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_adm_topology
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
05-06 12:28:49.862 2750 2751 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [3, 0]
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_audtable
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_audvoltable
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_audstrmtable
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_afe_topology
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 36, Topology Id 112fc
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_afe_cal
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
05-06 12:28:49.862 943 8548 D : Failed to fetch the lookup information of the device 00000024
05-06 12:28:49.862 943 8548 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
05-06 12:28:49.862 943 8548 D : Failed to fetch the lookup information of the device 00000024
05-06 12:28:49.862 943 8548 E ACDB-LOADER: Error: ACDB AFE returned = -19
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 36 path = 0
05-06 12:28:49.862 943 8548 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
05-06 12:28:49.863 943 8548 D audio_hw_primary: enable_audio_route: apply mixer and update path: deep-buffer-playback speaker
05-06 12:28:49.863 943 8548 D audio_route: Apply path: deep-buffer-playback speaker
05-06 12:28:49.864 943 8548 D audio_hw_primary: select_devices: done
05-06 12:28:49.867 794 832 W GrallocMapperPassthrough: buffer descriptor with invalid usage bits 0x2000
05-06 12:28:49.870 7043 7051 W System : A resource failed to call dispose.
05-06 12:28:49.870 7043 7051 W System : A resource failed to call end.
05-06 12:28:49.870 7043 7051 W System : A resource failed to call end.
05-06 12:28:49.870 942 942 W AshmemAllocator: ashmem_create_region(15360) returning hidl_memory(0x782562b540, 15360)
05-06 12:28:49.873 942 942 W AshmemAllocator: ashmem_create_region(15360) returning hidl_memory(0x782562b540, 15360)
05-06 12:28:49.874 943 1261 E DSP-Effect: Invalid input format (need 16-bit PCM): 0x5
05-06 12:28:49.874 943 1261 E DSP-Effect: Invalid output format (need 16-bit PCM): 0x5

Edit: Quick note, I'm not having this issue in PHH Treble, Pixel Experience or AospExtended GSI ROMs so it seems to be specific to RR.