[OnePlus 3 & 3T Cross Device Development] pvdl1984:
Does anyone have any idea why the microphone of headsets in this rom don't work (or are very quiet)? I looked at the logs but didn't see anything weird (although not sure what I'm looking for). I also tried the Android headphone fix for magisk.

04-21 15:23:09.935 787 1367 I WiredAccessoryManager: MSG_NEW_DEVICE_STATE
04-21 15:23:09.937 677 30193 D AudioPolicyManagerCustom: setDeviceConnectionStateInt() device: 0x4, state 1, address name
04-21 15:23:09.938 522 20241 D audio_hw_primary: adev_set_parameters: enter: connect=4
04-21 15:23:09.939 522 20241 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-21 15:23:09.940 677 30193 I AudioFlinger: openOutput() this 0xe2f3d000, module 10 Device 4, SamplingRate 8000, Format 0x000006, Channels 1, flags 1
04-21 15:23:09.940 522 26049 D audio_hw_primary: adev_open_output_stream: enter: format(0x6) sample_rate(8000) channel_mask(0x1) devices(0x4) flags(0x1) stream_handle(0xe8b43800)
04-21 15:23:09.940 522 26049 I audio_hw_utils: PCM offload Fragment size to 960 bytes
04-21 15:23:09.941 522 26049 D audio_hw_primary: adev_open_output_stream: Stream (0xe8b43800) picks up usecase (compress-offload-playback2)
04-21 15:23:09.946 677 30193 I AudioFlinger: HAL output buffer size 320 frames, normal sink buffer size 320 frames
04-21 15:23:09.947 677 4595 I AudioFlinger: AudioFlinger's thread 0xe178c000 tid=4595 ready to run
04-21 15:23:09.949 522 26049 D audio_hw_primary: out_standby: enter: stream (0xe8b43800) usecase(4: compress-offload-playback2)
04-21 15:23:09.949 522 26049 D audio_hw_primary: out_standby: exit
04-21 15:23:09.953 677 30193 I AudioFlinger: openOutput() this 0xe2f3d000, module 10 Device 4, SamplingRate 8000, Format 0x1000000, Channels 1, flags 31
04-21 15:23:09.953 522 26049 D audio_hw_primary: adev_open_output_stream: enter: format(0x1000000) sample_rate(8000) channel_mask(0x1) devices(0x4) flags(0x31) stream_handle(0xe8c46800)
04-21 15:23:09.954 522 26049 D audio_hw_primary: adev_open_output_stream: Stream (0xe8c46800) picks up usecase (compress-offload-playback)
04-21 15:23:09.955 677 30193 I AudioFlinger: HAL output buffer size 65536 frames, normal sink buffer size 65536 frames
04-21 15:23:09.955 677 4598 I AudioFlinger: AudioFlinger's thread 0xe17ca000 tid=4598 ready to run
04-21 15:23:09.957 677 30193 I AudioFlinger: openOutput() this 0xe2f3d000, module 10 Device 4, SamplingRate 8000, Format 0x000001, Channels 1, flags 8001
04-21 15:23:09.957 522 26049 D audio_hw_primary: adev_open_output_stream: enter: format(0x1) sample_rate(8000) channel_mask(0x1) devices(0x4) flags(0x8001) stream_handle(0xe7ef9000)
04-21 15:23:09.957 522 26049 E audio_hw_primary: adev_open_output_stream: Primary output is already opened
04-21 15:23:09.957 522 26049 D audio_hw_primary: adev_open_output_stream: exit: ret -17
04-21 15:23:09.957 522 26049 W DeviceHAL: Device 0xe9064000 open_output_stream: File exists
04-21 15:23:09.957 677 30193 I AudioHwDevice: openOutputStream(), HAL returned sampleRate 8000, Format 0x1, channelMask 0x1, status -61
04-21 15:23:09.957 677 30193 W APM_AudioPolicyManager: checkOutputsForDevice() could not open output for device 4
04-21 15:23:09.959 522 26049 D audio_hw_primary: out_set_parameters: enter: usecase(4: compress-offload-playback2) kvpairs: closing=true
04-21 15:23:09.960 522 26049 D audio_hw_primary: out_set_parameters: enter: usecase(4: compress-offload-playback2) kvpairs: exiting=1
04-21 15:23:09.960 522 26049 D audio_hw_primary: adev_close_output_stream: enter:stream_handle(compress-offload-playback2)
04-21 15:23:09.961 522 26049 D audio_hw_primary: out_standby: enter: stream (0xe8b43800) usecase(4: compress-offload-playback2)
04-21 15:23:09.961 522 26049 D audio_hw_primary: out_standby: exit
04-21 15:23:09.962 522 26049 D audio_hw_primary: out_set_parameters: enter: usecase(3: compress-offload-playback) kvpairs: closing=true
04-21 15:23:09.964 522 26049 D audio_hw_primary: out_set_parameters: enter: usecase(3: compress-offload-playback) kvpairs: exiting=1
04-21 15:23:09.964 522 4596 E audio_hw_primary: offload_thread_loop: Compress handle is NULL
04-21 15:23:09.965 522 26049 D audio_hw_primary: adev_close_output_stream: enter:stream_handle(compress-offload-playback)
04-21 15:23:09.965 522 26049 D audio_hw_primary: out_standby: enter: stream (0xe8c46800) usecase(3: compress-offload-playback)
04-21 15:23:09.965 522 26049 D audio_hw_primary: out_standby: exit
04-21 15:23:09.968 787 787 I Telecom : WiredHeadsetManager: ACTION_HEADSET_PLUG event, plugged in: true, : WHC.oADA@IU8
04-21 15:23:09.968 677 30193 D AudioPolicyManagerCustom: setForceUse() usage 1, config 10, mPhoneState 0
04-21 15:23:09.969 787 2167 I Telecom : CallAudioRouteStateMachine: Message received: CONNECT_WIRED_HEADSET=1, arg1=0: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET@IU8
04-21 15:23:09.970 787 2167 I Telecom : Logging.Events: Non-call EVENT: AUDIO_ROUTE, Wired headset connected: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET@IU8
04-21 15:23:09.970 2675 17096 D AudioFx-AudioOutputChangeListener: onAudioOutputChanged id: 983 type: 3 name: ONEPLUS A3003 address: [android.media.AudioDeviceInfo@b3fa1fa]
04-21 15:23:09.974 677 1509 D AudioPolicyManagerCustom: setDeviceConnectionStateInt() device: 0x80000010, state 1, address name
04-21 15:23:09.975 522 20241 D qcbassboost: BassBoost_setParameter ignore set strength
04-21 15:23:09.975 522 20241 D offload_effect_bass: bass_set_parameter ignore set strength, index 1
04-21 15:23:09.978 522 26049 D audio_hw_primary: adev_set_parameters: enter: connect=-2147483632
04-21 15:23:09.978 522 26049 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-21 15:23:09.978 522 26049 W sound_trigger_hw: sound_trigger_hw_call_back: Unknown event 8
04-21 15:23:09.978 787 2167 I Telecom : CallAudioRouteStateMachine: Message received: SWITCH_HEADSET=1003, arg1=0: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_HEADSET@IU8
04-21 15:23:09.979 787 2167 I Telecom : Logging.Events: Non-call EVENT: AUDIO_ROUTE, Leaving state QuiescentEarpieceRoute: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_HEADSET@IU8
04-21 15:23:09.979 787 2167 I Telecom : Logging.Events: Non-call EVENT: AUDIO_ROUTE, Entering state QuiescentHeadsetRoute: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_HEADSET@IU8
04-21 15:23:09.980 522 26049 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(48000) channel_mask(0xc) devices(0x80000010) stream_handle(0xe9ecca80) io_handle(2214) source(1) format 1
04-21 15:23:09.980 522 26049 W audio_hw_utils: audio_extn_utils_update_stream_input_app_type_cfg: App type could not be selected. Falling back to default
04-21 15:23:09.986 522 26049 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(192000) channel_mask(0x8000000f) devices(0x80000010) stream_handle(0xe9eccfc0) io_handle(2222) source(1) format 5
04-21 15:23:09.986 522 26049 W DeviceHAL: Device 0xe9064000 open_input_stream: Invalid argument
04-21 15:23:09.986 522 26049 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(48000) channel_mask(0x8000000f) devices(0x80000010) stream_handle(0xe9eccfc0) io_handle(2222) source(1) format 1
04-21 15:23:09.986 522 26049 W audio_hw_utils: audio_extn_utils_update_stream_input_app_type_cfg: App type could not be selected. Falling back to default
04-21 15:23:09.989 677 4600 I AudioFlinger: AudioFlinger's thread 0xdfeaedc0 tid=4600 ready to run
04-21 15:23:09.990 522 26049 D audio_hw_primary: in_standby: enter: stream (0xe9ecca80) usecase(18: audio-record)
04-21 15:23:09.991 522 26049 D audio_hw_primary: in_standby: enter: stream (0xe9ecca80) usecase(18: audio-record)
04-21 15:23:09.991 677 4601 I AudioFlinger: AudioFlinger's thread 0xe038d400 tid=4601 ready to run
04-21 15:23:09.992 522 26049 D audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xe9eccfc0)
04-21 15:23:09.992 522 26049 D audio_hw_primary: in_standby: enter: stream (0xe9eccfc0) usecase(18: audio-record)
04-21 15:23:09.994 522 26049 D audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xe9ecca80)
04-21 15:23:09.995 522 26049 D audio_hw_primary: in_standby: enter: stream (0xe9ecca80) usecase(18: audio-record)
04-21 15:23:09.997 787 787 I Telecom : WiredHeadsetManager: ACTION_HEADSET_PLUG event, plugged in: true, : WHC.oADA@IVA
04-21 15:23:10.007 1849 2085 I vol.Events: writeEvent level_changed STREAM_SYSTEM 2
04-21 15:23:10.011 1849 2085 I vol.Events: writeEvent level_changed STREAM_MUSIC 6
04-21 15:23:10.043 26791 26889 D ClClient: Not sending keepalive. Current connection state=STOPPED