[OnePlus 3 Themes, Apps, and Mods] Immortalis:
Can confirm this, the default audio route used to record audio in camcorder is audio-record, rather than handset-stereo-dmic-ef, resulting with crappy, muffled audio:

07-09 20:35:21.402 2065 18452 I MediaCodecSource: MediaCodecSource (audio) starting
07-09 20:35:21.404 2869 18243 E mm-camera: <STATS_AEC ><ERROR> 2161: aec_port_callback: AEC_UPDATE_DBG: PORT_CB: WARNING: threading issue: SOF_ID:1175 OutputFrameId:1173 output_index=1 -> Debug
07-09 20:35:21.408 2762 4838 D audio_hw_primary: in_set_parameters: enter: kvpairs=input_source=5;routing=-2147483520
07-09 20:35:21.411 2761 2855 I SoundTriggerHwService::Module: onCallbackEvent no clients
07-09 20:35:21.412 2065 18452 I MediaCodecSource: MediaCodecSource (audio) started
07-09 20:35:21.414 18187 18209 V LegacyCameraImpl: applyThumbnailSize() - Thumbnail image size : 256x144
07-09 20:35:21.414 18187 18209 V LegacyCameraImpl: applyZoom() - Zoom: 0
07-09 20:35:21.414 18187 18209 D CameraThread: [Property] VideoCaptureState(id=88) : STARTING -> CAPTURING
07-09 20:35:21.415 18187 18209 D CameraThread: getFreeSpace() - m_SystemReserveDiskSpace : 0
07-09 20:35:21.415 2762 18471 D audio_hw_primary: start_input_stream: enter: stream(0xea64ce00)usecase(18: audio-record)
07-09 20:35:21.416 2762 18471 D audio_hw_primary: select_devices for use case (audio-record)
07-09 20:35:21.416 2762 18471 D audio_hw_primary: select_devices: out_snd_device(0: ) in_snd_device(115: handset-stereo-dmic-ef)
07-09 20:35:21.416 2762 18471 I msm8974_platform: platform_check_and_set_capture_codec_backend_cfg:txbecf: afe: bitwidth 16, samplerate 48000, channel 2 format 1, backend_idx 7 usecase = 18 device (handset-stereo-dmic-ef)
07-09 20:35:21.416 2762 18471 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 7 current bit width: 16 and sample rate: 48000, channels 2 format 1
07-09 20:35:21.416 2762 18471 W msm8974_platform: platform_get_backend_index:napb: Invalid device - 0
07-09 20:35:21.416 506 566 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
07-09 20:35:21.416 2762 18471 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 7 updated bit width: 16 and sample rate: 48000
07-09 20:35:21.416 2762 18471 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec backend needs to be updated. new bit width: 16 new sample rate: 48000 new channel: 2 new format: 0
07-09 20:35:21.416 2762 18471 I msm8974_platform: platform_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2 format 0, backend_idx 7 device (handset-stereo-dmic-ef)
07-09 20:35:21.416 2762 18471 D audio_hw_primary: check_usecases_capture_codec_backend:becf: force routing 0
07-09 20:35:21.416 2762 18471 D hardware_info: hw_info_append_hw_type : device_name = handset-stereo-dmic-ef
07-09 20:35:21.416 2762 18471 D msm8974_platform: platform_split_snd_device: snd_device(115) num devices(0) new_snd_devices(0)
07-09 20:35:21.416 2762 18471 D audio_hw_primary: enable_snd_device: snd_device(115: handset-stereo-dmic-ef)
07-09 20:35:21.416 2762 18471 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x73 of type 1 for Event 1, with Raise=1
07-09 20:35:21.416 2762 18471 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: concurrency active 0, tx 1, rx 0, concurrency session_allowed 0
07-09 20:35:21.416 2762 18471 D audio_route: Apply path: handset-stereo-dmic-ef
07-09 20:35:21.421 472 18220 E QCamera : <HAL><ERROR> setPreviewFpsRange: 2530: Adjust Requested FpsRange Values:(15000, 30000)
07-09 20:35:21.428 2762 10162 I DlbEffectGlobalDap: process() called [241000] times
07-09 20:35:21.429 2869 18238 I mm-camera: <ISP >< INFO> 2561: ltm47_store_hw_update: disabling IP
07-09 20:35:21.431 472 18220 I QCamera2HWI: processAEInfo update AE State:0
07-09 20:35:21.435 2762 18471 W audio_hw_utils: audio_extn_utils_update_stream_input_app_type_cfg: App type could not be selected. Falling back to default
07-09 20:35:21.435 2762 18471 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 18 of type 1 for Event 3, with Raise=0
07-09 20:35:21.435 2762 18471 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->in_snd_device handset-stereo-dmic-ef
07-09 20:35:21.435 2762 18471 D msm8974_platform: platform_split_snd_device: snd_device(115) num devices(0) new_snd_devices(0)
07-09 20:35:21.435 2762 18471 E msm8974_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
07-09 20:35:21.435 2762 18471 E audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device handset-stereo-dmic-ef ret=-14
07-09 20:35:21.435 2762 18471 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
07-09 20:35:21.435 2762 18471 I audio_hw_utils: send_app_type_cfg_for_device CAPTURE app_type 69938, acdb_dev_id 34, sample_rate 48000, snd_device_be_idx -14
07-09 20:35:21.435 2762 18471 D msm8974_platform: platform_split_snd_device: snd_device(115) num devices(1) new_snd_devices(0)
07-09 20:35:21.435 2762 18471 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 34, path = 1, app id = 0x11132, sample rate = 48000
07-09 20:35:21.436 2762 18471 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
07-09 20:35:21.436 2762 18471 D : Failed to fetch the lookup information of the device 00000022
07-09 20:35:21.436 2762 18471 E ACDB-LOADER: Error: ACDB AudProc vol returned = -19
07-09 20:35:21.436 2762 18471 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
07-09 20:35:21.436 2762 18471 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
07-09 20:35:21.436 2762 18471 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 34, Topology Id 112fb
07-09 20:35:21.436 2762 18471 D : Failed to fetch the lookup information of the device 00000022
07-09 20:35:21.436 2762 18471 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
07-09 20:35:21.436 2762 18471 D : Failed to fetch the lookup information of the device 00000022
07-09 20:35:21.436 2762 18471 E ACDB-LOADER: Error: ACDB AFE returned = -19
07-09 20:35:21.436 2762 18471 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 34 path = 1
07-09 20:35:21.436 2762 18471 D audio_hw_primary: enable_audio_route: apply mixer and update path: audio-record
07-09 20:35:21.436 2762 18471 D audio_route: Apply path: audio-record
07-09 20:35:21.437 2762 18471 D audio_hw_primary: select_devices: done
07-09 20:35:21.448 472 18465 I QCamera : <HAL><INFO> video_stream_cb_routine: 1936: [KPI Perf] : PROFILE_FIRST_RECORD_FRAME
07-09 20:35:21.448 472 18465 E QCamera : <HAL><ERROR> video_stream_cb_routine: 2107: Video frame video_mem 0xe6a308e4, TimeStamp : 8050926701000 batch = 0 index = 0
07-09 20:35:21.462 2869 18238 I mm-camera: <ISP >< INFO> 2561: ltm47_store_hw_update: disabling IP
07-09 20:35:21.476 2762 18471 D audio_hw_primary: start_input_stream: exit
07-09 20:35:21.483 472 18465 E QCamera : <HAL><ERROR> video_stream_cb_routine: 2107: Video frame video_mem 0xe6a308e4, TimeStamp : 8050960025000 batch = 0 index = 1
07-09 20:35:21.498 2869 18238 I mm-camera: <ISP >< INFO> 2561: ltm47_store_hw_update: disabling IP
07-09 20:35:21.520 472 18465 E QCamera : <HAL><ERROR> video_stream_cb_routine: 2107: Video frame video_mem 0xe6a308e4, TimeStamp : 8050993348000 batch = 0 index = 2
07-09 20:35:21.532 2869 18238 I mm-camera: <ISP >< INFO> 2561: ltm47_store_hw_update: disabling IP
07-09 20:35:21.556 472 18465 E QCamera : <HAL><ERROR> video_stream_cb_routine: 2107: Video frame video_mem 0xe6a308e4, TimeStamp : 8051026673000 batch = 0 index = 3
07-09 20:35:21.564 2869 18238 I mm-camera: <ISP >< INFO> 2561: ltm47_store_hw_update: disabling IP
07-09 20:35:21.583 2065 18389 D AudioTrack: stop() called with 26080 frames delivered

[MENTION=4732904]abhi08638[/MENTION] [MENTION=2760454]chdloc[/MENTION]