Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video recording doesn't work #4

Closed
b100dian opened this issue Jun 2, 2021 · 5 comments
Closed

Video recording doesn't work #4

b100dian opened this issue Jun 2, 2021 · 5 comments
Labels
bug Something isn't working major Big failure
Milestone

Comments

@b100dian
Copy link
Contributor

b100dian commented Jun 2, 2021

Recording drops frames and freezes at stopping.
https://pastebin.ubuntu.com/p/QtgGkSsWFs/

(After adding miniaudiopolicyservice it at least doesn't require reboot to use the camera)

@b100dian b100dian added bug Something isn't working major Big failure labels Jun 2, 2021
@b100dian b100dian added this to the prerelease milestone Jun 2, 2021
@b100dian
Copy link
Contributor Author

Camera logcat and gst_debug=3 without making a pic or recording: https://pastebin.ubuntu.com/p/NsnrgkwZF9/
https://pastebin.ubuntu.com/p/FV6vWSpPvc/

@b100dian
Copy link
Contributor Author

GST_DEBUG=4 https://pastebin.ubuntu.com/p/N5cFdYsW2Y/

@b100dian
Copy link
Contributor Author

@b100dian b100dian modified the milestones: prerelease, public Aug 13, 2021
@b100dian
Copy link
Contributor Author

Food for thought, journalctl on boot, grep for ailure and rror:

Command 'write /sys/devices/virtual/npu/msm_npu/boot 1' action=early-boot (/vendor/etc/init/hw/init.qcom.rc:76) took 1ms and failed:
Unable to write to file '/sys/devices/virtual/npu/msm_npu/boot': open() failed: Permission denied

Dec 24 01:53:36 MiNote10 droid-hal-init: Command 'write /dev/cpuset/camera-daemon/cpus 0-7' action=boot (/vendor/etc/init/hw/init.target.rc:153) took 0ms and failed: Unable to write to file '/dev/cpuset/camera-daemon/cpus': open() failed: Permission denied
Dec 24 01:53:36 MiNote10 droid-hal-init: Command 'write /dev/cpuset/camera-daemon/mems 0' action=boot (/vendor/etc/init/hw/init.target.rc:154) took 0ms and failed: Unable to write to file '/dev/cpuset/camera-daemon/mems': open() failed: Permission denied
Dec 24 01:53:36 MiNote10 kernel: va_macro va-macro: va_macro_probe: could not find 0 entry in dt
Dec 24 01:53:36 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: populate_snd_card_dailinks: No DT match for tavil codec
Dec 24 01:53:36 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: populate_snd_card_dailinks: No DT match for tasha codec
Dec 24 01:53:36 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: populate_snd_card_dailinks: hw_platform is 6.
Dec 24 01:53:36 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: populate_snd_card_dailinks: hardware is HARDWARE_PLATFORM_DAVINCI.
Dec 24 01:53:36 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: msm_init_aux_dev: Max WSA devices is 0 for this target?
Dec 24 01:53:36 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: msm_init_aux_dev: failed to find 1 components. Found only 0
Dec 24 01:53:38 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: ASoC: no source widget found for WSA_SPK1 OUT
Dec 24 01:53:38 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: ASoC: Failed to add route WSA_SPK1 OUT -> direct -> SpkrLeft IN
Dec 24 01:53:38 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: ASoC: no source widget found for WSA_SPK2 OUT
Dec 24 01:53:38 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: ASoC: Failed to add route WSA_SPK2 OUT -> direct -> SpkrRight IN
Dec 24 01:53:38 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: ASoC: no sink widget found for WSA_SPK1 OUT
Dec 24 01:53:38 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: ASoC: Failed to add route VA_MCLK -> direct -> WSA_SPK1 OUT
Dec 24 01:53:38 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: ASoC: no sink widget found for WSA_SPK2 OUT
Dec 24 01:53:38 MiNote10 kernel: sm6150-asoc-snd soc:qcom,msm-audio-apr:qcom,q6core-audio:sound: ASoC: Failed to add route VA_MCLK -> direct -> WSA_SPK2 OUT
Dec 24 01:53:45 MiNote10 kernel: msm_audio_ion_import: dma_buf =0000000000000000, fd=20
Dec 24 01:53:45 MiNote10 kernel: msm_audio_ion_import: dma_buf_get failed
Dec 24 01:53:45 MiNote10 kernel: cal_block_ion_alloc: audio ION import failed, rc = -22
Dec 24 01:53:45 MiNote10 kernel: realloc_memory: realloc_memory failed!
Dec 24 01:53:45 MiNote10 kernel: voice_alloc_cal: Cal_utils_alloc_block failed, ret = -12, cal type = 2!
Dec 24 01:53:45 MiNote10 kernel: call_allocs: alloc failed!

https://programmersought.com/article/94393970923/

Dec 24 01:53:29 MiNote10 kernel: qcom,qpnp-revid: probe of c440000.qcom,spmi:qcom,pm8009@a:qcom,revid@100 failed with error -22
...
Dec 24 01:53:29 MiNote10 kernel: qcom-spmi-gpio: probe of c440000.qcom,spmi:qcom,pm8009@a:pinctrl@c000 failed with error -5
Dec 24 01:53:29 MiNote10 kernel: iommu: Adding device ae00000.qcom,mdss_rotator:qcom,smmu_rot_unsec_cb to group 17
Dec 24 01:53:29 MiNote10 kernel: sde_smmu_probe: <SDEROT_INFO> iommu v2 domain[0] mapping and clk register successful!
Dec 24 01:53:29 MiNote10 kernel: iommu: Adding device ae00000.qcom,mdss_rotator:qcom,smmu_rot_sec_cb to group 18
Dec 24 01:53:29 MiNote10 kernel: sde_smmu_probe: <SDEROT_INFO> iommu v2 domain[1] mapping and clk register successful!
Dec 24 01:53:29 MiNote10 kernel: iommu: Adding device 9800000.qcom,msm_npu to group 19
Dec 24 01:53:29 MiNote10 kernel: msm_npu 9800000.qcom,msm_npu: Unable to startup the chan (-11)
Dec 24 01:53:29 MiNote10 kernel: msm_npu: aop mailbox is not available
Dec 24 01:53:29 MiNote10 kernel: msm_vidc:  err: Failed to get platform resources
Dec 24 01:53:29 MiNote10 kernel: msm_vidc:  err: Failed to init core
Dec 24 01:53:29 MiNote10 kernel: msm_vidc_v4l2: probe of aa00000.qcom,vidc0 failed with error -22
Dec 24 01:53:29 MiNote10 kernel: msm-auxpcm-dev soc:qcom,msm-sen-auxpcm: msm_auxpcm_dev_probe: invalid DT intf name senary
Dec 24 01:53:29 MiNote10 kernel: msm-dai-tdm soc:qcom,msm-dai-tdm-sen-rx: msm_dai_tdm_q6_probe: group id not supported 0x9150
Dec 24 01:53:29 MiNote10 kernel: msm-dai-tdm: probe of soc:qcom,msm-dai-tdm-sen-rx failed with error -22
Dec 24 01:53:29 MiNote10 kernel: msm-dai-tdm soc:qcom,msm-dai-tdm-sen-tx: msm_dai_tdm_q6_probe: group id not supported 0x9151
Dec 24 01:53:29 MiNote10 kernel: msm-dai-tdm: probe of soc:qcom,msm-dai-tdm-sen-tx failed with error -22
Dec 24 01:53:39 MiNote10 kernel: CAM_INFO: (4791  4791) CAM-SENSOR: cam_sensor_driver_cmd: 739 Probe success,slot:1,slave_addr:0x20,sensor_id:0x20c7
Dec 24 01:53:39 MiNote10 kernel: CAM_INFO: (4791  4791) CAM: cam_res_mgr_shared_pinctrl_put: 277 Need hold put this pinctrl
Dec 24 01:53:39 MiNote10 kernel: cdc_dma_tx_ch_put: cdc_dma_tx_ch = 1
Dec 24 01:53:39 MiNote10 kernel: msm_routing_ec_ref_rx_put: update state!
Dec 24 01:53:39 MiNote10 kernel: adm_ec_ref_rx_id: ec_ref_rx:65535
Dec 24 01:53:39 MiNote10 kernel: __q6asm_cmd: token = 0x100, stream_id  1, session 0x1
Dec 24 01:53:39 MiNote10 kernel: __q6asm_cmd: CMD_CLOSE
Dec 24 01:53:39 MiNote10 kernel: __q6asm_cmd: session[1]opcode[0x10bcd]
Dec 24 01:53:39 MiNote10 kernel: q6asm_callback: session 1 opcode 0x110e8 token 0x100 Payload = [0x10bcd] src 257 dest 257
Dec 24 01:53:39 MiNote10 kernel: q6asm_callback: session 1 opcode 0x110e8 token 0x100 Payload = [0x10bcd] stat 0x1 src 257 dest 257
Dec 24 01:53:39 MiNote10 kernel: q6asm_callback: cmd = 0x10bcd returned error = 0x1
Dec 24 01:53:39 MiNote10 kernel: __q6asm_cmd: DSP returned error[ADSP_EFAILED] opcode 68557
Dec 24 01:53:49 MiNote10 kernel: q6core_get_avcs_fwk_version: AVCS FWK version query already attempted
Dec 24 01:53:49 MiNote10 kernel: afe_find_cal_topo_id_by_port: top_id:1000b910 acdb_id:10011 afe_port:45106
Dec 24 01:53:49 MiNote10 kernel: afe_get_cal_topology_id: port_id = 45106 acdb_id = 10011 topology_id = 268482832 ret=0
Dec 24 01:53:49 MiNote10 kernel: afe_q6_interface_prepare:
Dec 24 01:53:49 MiNote10 kernel: afe_callback_debug_print: code = 0x110e8 PL#0[0x100fa], PL#1[0x0], size = 8
Dec 24 01:53:49 MiNote10 kernel: afe_callback:opcode = 0x110e8 cmd = 0x100fa status = 0x0 token=170
Dec 24 01:53:49 MiNote10 kernel: rtac_make_afe_callback:cmd_state = 0
Dec 24 01:53:49 MiNote10 kernel: afe_callback: port_id = 0x0
Dec 24 01:53:49 MiNote10 kernel: afe_callback: default case 0x0
Dec 24 01:53:49 MiNote10 kernel: afe_apr_send_pkt: leave 0
Dec 24 01:53:49 MiNote10 kernel: afe_send_port_topology_id: AFE set topology id 0x1000b910  enable for port 0xb032 ret 0
Dec 24 01:53:49 MiNote10 kernel: afe_send_cal: port_id=0xb032
Dec 24 01:53:49 MiNote10 kernel: send_afe_cal_type:
Dec 24 01:53:49 MiNote10 kernel: send_afe_cal_type: Sending cal_index cal 0
Dec 24 01:53:49 MiNote10 kernel: afe_send_cal_block: AFE cal sent for device port = 0xb032, cal size = 2376, cal addr = 0x0000000000000000
Dec 24 01:53:49 MiNote10 kernel: afe_q6_interface_prepare:
Dec 24 01:53:49 MiNote10 kernel: afe_callback_debug_print: code = 0x110e8 PL#0[0x100fa], PL#1[0x2], size = 8
Dec 24 01:53:49 MiNote10 kernel: afe_callback:opcode = 0x110e8 cmd = 0x100fa status = 0x2 token=170
Dec 24 01:53:49 MiNote10 kernel: afe_callback: cmd = 0x100fa returned error = 0x2
Dec 24 01:53:49 MiNote10 kernel: rtac_make_afe_callback:cmd_state = 0
Dec 24 01:53:49 MiNote10 kernel: afe_callback: port_id = 0x0
Dec 24 01:53:49 MiNote10 kernel: afe_callback: default case 0x0
Dec 24 01:53:49 MiNote10 kernel: afe_apr_send_pkt: DSP returned error[ADSP_EBADPARAM]

@b100dian
Copy link
Contributor Author

b100dian commented Nov 3, 2022

Fixed by applying mer-hybris/hybris-patches@11edba3

@b100dian b100dian closed this as completed Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major Big failure
Projects
None yet
Development

No branches or pull requests

1 participant