[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] stack-a:
Crashes when accessing microphone

Phone kernel crashes when any app or the dialer ui tries to access the microphone. When attached to the Debugger the kernel does not crash but delivers some environment sound independent garbage. No phone call is possible. I tested it using the past 2 versions of this rom and the past two version of firmware. Just found these few lines in kmesg:

[ 6.141444] init: No such service 'vendor.qti' for ctl.start
[ 6.161585] type=1400 audit(19758650.639:12): avc: denied { create } for pid=540 comm="init" name="seemp" scontext=u:r:vendor_init:s0 tcontext=u:object_r:seemp_data_file:s0 tclass=dir permissive=0
[ 6.161697] type=1400 audit(19758651.859:13): avc: denied { write } for pid=760 comm="thermal-engine" name="property_service" dev="tmpfs" ino=19762 scontext=u:r:thermal-engine:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
[ 6.280166] ipa ipa2_nat_del_cmd:799 Nat table not initialized
[ 6.325620] msm_dai_q6_mi2s_hw_params: dai_data->channels = 1 channel_mode = 0
[ 6.325635] msm-dai-q6-mi2s soc:qcom,msm-dai-mi2s:qcom,msm-dai-q6-mi2s-sec: ASoC: can't set soc:qcom,msm-dai-mi2s:qcom,msm- hw params: -22
[ 6.325641] SEC_MI2S_TX: ASoC: hw_params BE failed -22
[ 6.325648] SDM660 Media2: ASoC: hw_params BE failed -22
[ 6.328912] q6asm_callback: cmd = 0x10bcd returned error = 0x1
[ 6.328980] __q6asm_cmd: DSP returned error[ADSP_EFAILED] opcode 68557
[ 6.422762] init: Could not find service hosting interface android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
[ 6.423878] init: Could not find service hosting interface android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
[ 6.566720] devfreq soc:qcom,kgsl-busmon: Couldn't update frequency transition information.
[ 6.680950] QSEECOM: qseecom_load_app: App (mlipay) does'nt exist, loading apps for first time
[ 6.705328] QSEECOM: qseecom_load_app: App with id 131074 (mlipay) now loaded
[ 6.729828] QSEECOM: qseecom_unload_app: App id 131074 now unloaded
[ 6.959213] msm_qti_pp_get_rms_value_control, back not active to query rms be_idx:3
[ 6.974199] msm_voice_sound_focus_get: Error getting Sound Focus Params, err=-22
[ 6.974510] msm_voice_source_tracking_get: Error getting Source Tracking Params, err=-22
[ 6.974835] msm_audio_get_copp_idx_from_port_id: Invalid FE, exiting
[ 6.974843] msm_audio_sound_focus_get: Could not get copp idx for port_id=16385
[ 6.975159] msm_audio_get_copp_idx_from_port_id: Invalid FE, exiting
[ 6.975171] msm_audio_source_tracking_get: Could not get copp idx for port_id=16385
[ 6.975456] msm_voice_sound_focus_get: Error getting Sound Focus Params, err=-22
[ 6.975722] msm_voice_source_tracking_get: Error getting Source Tracking Params, err=-22
[ 6.976007] msm_audio_get_copp_idx_from_port_id: Invalid FE, exiting
[ 6.976017] msm_audio_sound_focus_get: Could not get copp idx for port_id=4101
[ 6.976329] msm_audio_get_copp_idx_from_port_id: Invalid FE, exiting
[ 6.976340] msm_audio_source_tracking_get: Could not get copp idx for port_id=4101
[ 6.976638] msm_voice_sound_focus_get: Error getting Sound Focus Params, err=-22
[ 6.976905] msm_voice_source_tracking_get: Error getting Source Tracking Params, err=-22
[ 6.977174] msm_audio_get_copp_idx_from_port_id: Invalid FE, exiting
[ 6.977184] msm_audio_sound_focus_get: Could not get copp idx for port_id=4149
[ 6.977487] msm_audio_get_copp_idx_from_port_id: Invalid FE, exiting
[ 6.977495] msm_audio_source_tracking_get: Could not get copp idx for port_id=4149
[ 6.982231] tas2557 6-004c: tas2557_get_Cali_prm_r0, no calibration data
[ 6.983443] msm-ext-disp-audio-codec-rx soc:qcom,msm_ext_disp:qcom,msm-ext-disp-audio-codec-rx: msm_ext_disp_audio_type_get: codec_data, get_audio_edid_blk() or get_intf_id is NULL
[ 7.016761] msm_dai_q6_slim_rx_drift_get: afe port not started. dai_data->status_mask = 0
[ 7.019640] msm_dai_q6_ext_disp_drift_get: afe port not started. status_mask = 0
[ 7.064236] msm_pcm_volume_ctl_get substream runtime not found
[ 7.065054] msm_adsp_stream_callback_get: ASM Stream PP event queue is not initialized.
[ 7.104417] msm_pcm_volume_ctl_get substream runtime not found
[ 7.105650] msm_adsp_stream_callback_get: ASM Stream PP event queue is empty.
[ 7.106920] msm_adsp_stream_callback_get: ASM Stream PP event queue is not initialized.
[ 7.126503] msm_pcm_volume_ctl_get substream runtime not found
[ 7.127257] msm_adsp_stream_callback_get: ASM Stream PP event queue is not initialized.
[ 7.128023] msm_compr_audio_effects_config_get: stream or effects inactive
[ 7.128708] msm_adsp_stream_callback_get: ASM Stream PP event queue is not initialized.
[ 7.157350] smblib_set_prop_system_temp_level val=0, chg->system_temp_level=0, LctThermal=1, lct_backlight_off= 0, IsInCall=0, hwc_check_india=0

Can anyone confirm this behavior?