[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] musical_chairs:
Here I am, asking for help in my own thread...

Video camera is not using the correct clock source. Immediately on bootup, videos record properly. If the device sleeps, video will be later than audio by the sleep time. Audio plays at the beginning of the video (image is frozen), and moving video is at the end.

Logcat is showing the following error:

12-13 19:17:45.520 0 0 E [ 1.514286,1] /soc/qcom,cam_smmu/msm_cam_smmu_cb1: could not get #iommu-cells for /soc/qcom,iommu@1e00000
12-13 19:17:45.520 0 0 E : [ 1.514895,1] CAM-SMMU cam_populate_smmu_context_banks:1586 Invalid pointer of ctx : vfe_secure rc = -517
12-13 19:17:45.520 0 0 E : [ 1.514903,1] CAM-SMMU cam_smmu_probe:1636 Error: populating context banks
12-13 19:17:45.520 0 0 W [ 1.514917,1] msm_cam_smmu: probe of soc:qcom,cam_smmu:msm_cam_smmu_cb2 failed with error -12
12-13 19:17:45.520 0 0 E [ 1.514949,1] /soc/qcom,cam_smmu/msm_cam_smmu_cb3: could not get #iommu-cells for /soc/qcom,iommu@1e00000
12-13 19:17:45.520 0 0 E [ 1.515237,1] /soc/qcom,cam_smmu/msm_cam_smmu_cb4: could not get #iommu-cells for /soc/qcom,iommu@1e00000
12-13 19:17:45.520 0 0 E : [ 1.516102,1] CAM-SMMU cam_populate_smmu_context_banks:1586 Invalid pointer of ctx : vfe_secure rc = -517
12-13 19:17:45.520 0 0 E : [ 1.516109,1] CAM-SMMU cam_smmu_probe:1636 Error: populating context banks
12-13 19:17:45.520 0 0 W [ 1.516121,1] msm_cam_smmu: probe of soc:qcom,cam_smmu:msm_cam_smmu_cb2 failed with error -12
12-13 19:17:45.520 0 0 E [ 1.517721,1] msm_camera_get_dt_vreg_data: 1201 number of entries is 0 or not present in dts
12-13 19:17:45.520 0 0 E [ 1.519965,1] msm_camera_get_dt_vreg_data: 1201 number of entries is 0 or not present in dts
12-13 19:17:45.520 0 0 E [ 1.520298,1] msm_camera_get_dt_vreg_data: 1201 number of entries is 0 or not present in dts
12-13 19:17:45.520 0 0 E [ 1.521149,1] msm_camera_get_dt_vreg_data: 1201 number of entries is 0 or not present in dts
12-13 19:17:45.520 0 0 E [ 1.521409,1] msm_camera_get_dt_vreg_data: 1201 number of entries is 0 or not present in dts
12-13 19:17:45.520 0 0 E [ 1.521657,1] msm_camera_get_dt_vreg_data: 1201 number of entries is 0 or not present in dts
12-13 19:17:45.520 0 0 I [ 1.522825,1] msm_actuator_platform_probe: 2088 No valid actuator GPIOs data
12-13 19:17:45.520 0 0 E : [ 1.523701,1] msm_eeprom_platform_probe failed 2192
12-13 19:17:45.520 0 0 E : [ 1.524066,1] msm_eeprom_platform_probe failed 2192
12-13 19:17:45.520 0 0 E [ 1.525104,1] msm_flash_get_pmic_source_info: 989 alternate current: read failed
12-13 19:17:45.520 0 0 E [ 1.525113,1] msm_flash_get_pmic_source_info: 1009 alternate max-current: read failed
12-13 19:17:45.520 0 0 E [ 1.525120,1] msm_flash_get_pmic_source_info: 1029 alternate duration: read failed
12-13 19:17:45.520 0 0 E [ 1.525130,1] msm_flash_get_pmic_source_info: 989 alternate current: read failed
12-13 19:17:45.520 0 0 E [ 1.525136,1] msm_flash_get_pmic_source_info: 1009 alternate max-current: read failed
12-13 19:17:45.520 0 0 E [ 1.525143,1] msm_flash_get_pmic_source_info: 1029 alternate duration: read failed
12-13 19:17:45.520 0 0 E [ 1.525155,1] msm_flash_get_pmic_source_info: 1099 alternate current: read failed
12-13 19:17:45.520 0 0 E [ 1.525162,1] msm_flash_get_pmic_source_info: 1119 alternate current: read failed
12-13 19:17:45.520 0 0 E [ 1.525172,1] msm_flash_get_pmic_source_info: 1099 alternate current: read failed
12-13 19:17:45.520 0 0 E [ 1.525178,1] msm_flash_get_pmic_source_info: 1119 alternate current: read failed
12-13 19:17:45.520 0 0 I [ 1.525186,1] msm_flash_get_dt_data: 1192 No valid flash GPIOs data
12-13 19:17:45.520 0 0 E [ 1.525192,1] msm_camera_get_dt_vreg_data: 1201 number of entries is 0 or not present in dts
12-13 19:17:45.520 0 0 E : [ 1.526443,1] adp1660 i2c_add_driver success
12-13 19:17:45.520 0 0 E : [ 1.528211,1] msm_camera_get_dt_gpio_set_tbl failed 794
12-13 19:17:45.520 0 0 E : [ 1.528527,1] msm_camera_get_dt_gpio_set_tbl failed 794
12-13 19:17:45.520 0 0 W : [ 1.531600,1] ------------[ cut here ]------------
12-13 19:17:45.520 0 0 W [ 1.531614,1] WARNING: CPU: 1 PID: 1 at /media/Data/android/LOS18/kernel/motorola/msm8953/drivers/clk/msm/clock-local2.c:234 rcg_clk_enable+0x98/0x9c()
12-13 19:17:45.520 0 0 W : [ 1.531620,1] Attempting to prepare camss_top_ahb_clk_src before setting its rate. Set the rate first!
12-13 19:17:45.520 0 0 W : [ 1.531626,1] Modules linked in:
12-13 19:17:45.520 0 0 W [ 1.531636,1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.18.140-perf-g7dcd956f3beb #2
12-13 19:17:45.520 0 0 W : [ 1.531641,1] Hardware name: james (DT)
12-13 19:17:45.520 0 0 F : [ 1.531646,1] Call trace:
12-13 19:17:45.520 0 0 W : [ 1.531655,1] [<ffffffc00008b8fc>] dump_backtrace+0x0/0x2d0
12-13 19:17:45.520 0 0 W : [ 1.531662,1] [<ffffffc00008b8f4>] show_stack+0x14/0x1c
12-13 19:17:45.520 0 0 W : [ 1.531670,1] [<ffffffc00039f7e8>] dump_stack+0xac/0xe4
12-13 19:17:45.520 0 0 W : [ 1.531678,1] [<ffffffc0000aa15c>] warn_slowpath_common+0xa0/0xe4
12-13 19:17:45.520 0 0 W : [ 1.531685,1] [<ffffffc0000aa098>] warn_slowpath_fmt+0x50/0x74
12-13 19:17:45.520 0 0 W : [ 1.531692,1] [<ffffffc000ac3590>] rcg_clk_enable+0x98/0x9c
12-13 19:17:45.520 0 0 W : [ 1.531699,1] [<ffffffc000ac0284>] clk_enable+0x180/0x1bc
12-13 19:17:45.520 0 0 W : [ 1.531706,1] [<ffffffc000ac019c>] clk_enable+0x98/0x1bc
12-13 19:17:45.520 0 0 W : [ 1.531715,1] [<ffffffc0008723f4>] msm_camera_clk_enable+0xd4/0x238
12-13 19:17:45.520 0 0 W : [ 1.531722,1] [<ffffffc00089c000>] cpp_init_hardware+0x7c/0x4bc
12-13 19:17:45.520 0 0 W : [ 1.531729,1] [<ffffffc00089bae8>] cpp_probe+0x318/0x670
12-13 19:17:45.520 0 0 W : [ 1.531737,1] [<ffffffc0005c73f4>] platform_drv_probe+0x3c/0x88
12-13 19:17:45.520 0 0 W : [ 1.531744,1] [<ffffffc0005c4f7c>] driver_probe_device+0xc8/0x1f8
12-13 19:17:45.520 0 0 W : [ 1.531750,1] [<ffffffc0005c52b8>] __driver_attach+0x64/0x90
12-13 19:17:45.520 0 0 W : [ 1.531759,1] [<ffffffc0005c34dc>] bus_for_each_dev+0x80/0xc8
12-13 19:17:45.520 0 0 W : [ 1.531765,1] [<ffffffc0005c524c>] driver_attach+0x20/0x28
12-13 19:17:45.520 0 0 W : [ 1.531772,1] [<ffffffc0005c3c8c>] bus_add_driver+0x118/0x1e0
12-13 19:17:45.520 0 0 W : [ 1.531778,1] [<ffffffc0005c6074>] driver_register+0x8c/0xd8
12-13 19:17:45.520 0 0 W : [ 1.531785,1] [<ffffffc0005c73b0>] __platform_driver_register+0x5c/0x64
12-13 19:17:45.520 0 0 W : [ 1.531793,1] [<ffffffc0014f9610>] msm_cpp_init_module+0x18/0x20
12-13 19:17:45.520 0 0 W : [ 1.531800,1] [<ffffffc000082b78>] do_one_initcall+0xd8/0x1b0
12-13 19:17:45.520 0 0 W : [ 1.531808,1] [<ffffffc0014b7bc0>] kernel_init_freeable+0x144/0x1d4
12-13 19:17:45.520 0 0 W : [ 1.531816,1] [<ffffffc000de2c64>] kernel_init+0x10/0x124
12-13 19:17:45.520 0 0 W : [ 1.531840,1] ---[ end trace 3c7185295746ec5f ]---

I appreciate any help or suggestions anyone can give me!