I.MX8QXP Android P auto OS camera FslHAL3 issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I.MX8QXP Android P auto OS camera FslHAL3 issue

2,297 Views
xu_ji1
Contributor V

Hello,

When I enable Camera Hal3 on Android P auto OS,and use android camera2 app open camera,camera can not show frame,from log that get output buffer failed.Please refer to below log,and I used MAX9286 as camera connector.

03-27 17:13:48.685 4035 4071 D CAM_Camera2OneCamMgr: Getting First BACK Camera
03-27 17:13:48.688 4035 4071 I CAM_OneCamera1Opnr: Opening Camera: CameraId{Api2='0',Api1:0}
03-27 17:13:48.689 4035 4071 V CAM_ActvCamDevTrckr: Tracking active camera: null
03-27 17:13:48.692 1767 1939 I CameraService: CameraService::connect call (PID -1 "com.android.camera2", camera ID 0) for HAL version default and Camera API version 2
03-27 17:13:48.701 3932 3937 E CamComm1.0-CamModule: isSetTorchModeSupported: Module 2.4 device must support set torch API!
03-27 17:13:48.702 1767 1939 I Camera2ClientBase: Camera 0: Opened. Client: com.android.camera2 (PID 4035, UID 10047)
03-27 17:13:48.702 1767 1939 E Camera2ClientBase: Camera2ClientBase
03-27 17:13:48.702 1767 1939 E CameraDeviceClient: CameraDeviceClient 0: Opened
03-27 17:13:48.702 1767 1939 E CameraDeviceClient: CameraDeviceClient::initializeImpl
03-27 17:13:48.703 1767 1939 E Camera2ClientBase: initializeImpl: Initializing client for camera 0
03-27 17:13:48.709 1767 1939 E Camera3-Device: initialize: Initializing HIDL device for camera 0
03-27 17:13:48.709 1767 1939 E CameraProviderManager: CameraProviderManager::openSession
03-27 17:13:48.709 3932 3937 E CamDev@3.2-impl: CameraDevice::open
03-27 17:13:48.709 3932 3937 E CamComm1.0-CamModule: CameraModule::open
03-27 17:13:48.709 3932 3937 E FslCameraHAL: openDev: module=0xeecb200c, name=0, device=0xedfff5dc
03-27 17:13:48.709 3932 3937 E FslCameraHAL: openDev:0: Opening camera device
03-27 17:13:48.709 3932 3937 I FslCameraHAL: openDev
03-27 17:13:48.735 4035 4071 I CAM_Profiler: [ 51.033ms] GUARD: CaptureModule.openCameraAndStartPreview() - [50.774ms] mOneCameraOpener.open()
03-27 17:13:48.736 4035 4071 I CAM_Profiler: [ 51.033ms] GUARD: CaptureModule.openCameraAndStartPreview() - STOP
03-27 17:13:48.736 4035 4067 I CAM_OneCamCreator: Camera support level: LEGACY_JPEG
03-27 17:13:48.737 1878 1901 I chatty : uid=1000(system) android.display expire 1 line
03-27 17:13:48.754 4035 4067 I CAM_OneCamCreator: Picture Size Configuration: PictureSizeCalculator.Configuration{native size=640x480, crop=Rect(0, 0 - 640, 480)}
03-27 17:13:48.768 4035 4035 V CAM_FocusController: configurePreviewDimensions(RectF(NaN, NaN, NaN, NaN))
03-27 17:13:48.769 4035 4035 I CAM_FocusRingView: Computing center via view bounds.
03-27 17:13:48.769 4035 4035 V CAM_FocusController: configurePreviewDimensions(RectF(NaN, NaN, NaN, NaN))
03-27 17:13:48.769 4035 4035 I CAM_FocusRingView: Computing center via view bounds.
03-27 17:13:48.771 4035 4035 V CAM_FocusController: configurePreviewDimensions(RectF(NaN, NaN, NaN, NaN))
03-27 17:13:48.771 4035 4035 I CAM_FocusRingView: Computing center via view bounds.
03-27 17:13:48.771 4035 4067 D CAM_CaptureModule: onCameraOpened: com.android.camera.one.v2.initialization.GenericOneCameraImpl@65eafcc
03-27 17:13:48.775 4035 4067 D CAM_CaptureModule: starting preview ...
03-27 17:13:48.781 1767 1939 W CameraDeviceClient: createSurfaceFromGbp: Camera 0 with consumer usage flag: 256: Forcing asynchronous mode for stream
03-27 17:13:48.782 1767 1939 W CameraDeviceClient: createSurfaceFromGbp: Camera 0: Overriding format 0x1 to IMPLEMENTATION_DEFINED
03-27 17:13:48.787 3932 3937 I FslCameraHAL: configureStreams:0: stream_config 0xedfff500, num 2, streams 0xede8d000, mode 0
03-27 17:13:48.787 3932 3937 I FslCameraHAL: config 0, type 0, res 640x480, fmt 0x21, usage 0x3, maxbufs 0, priv 0x0, rotation 0
03-27 17:13:48.787 3932 3937 I FslCameraHAL: config 1, type 0, res 640x480, fmt 0x22, usage 0x100, maxbufs 0, priv 0x0, rotation 0
03-27 17:13:48.787 3932 3937 I FslCameraHAL: Stream create capture stream
03-27 17:13:48.787 3932 3937 I FslCameraHAL: stream: w:640, h:480, format:0x21, usage:0x20303, buffers:2
03-27 17:13:48.787 3932 3937 I FslCameraHAL: Stream create preview stream
03-27 17:13:48.787 3932 3937 E FslCameraHAL: getPreviewPixelFormat
03-27 17:13:48.787 3932 3937 I FslCameraHAL: stream: w:640, h:480, format:0x14, usage:0x20302, buffers:3
03-27 17:13:48.792 1767 1939 D Camera3-Device: Set real time priority for request queue thread (tid 4091)
03-27 17:13:48.810 4035 4067 V CAM_SettingsManager: listeners: [com.android.camera.app.CameraAppUI@7170831, com.android.camera.ButtonManager@a4652a2, com.android.camera.widget.IndicatorIconController@6ed6ef
03-27 17:13:48.825 4035 4096 D CAM_CommandExecutor: Executing command: com.android.camera.one.v2.commands.PreviewCommand@b1d5ef5 START
03-27 17:13:48.829 3932 3937 I FslCameraHAL: constructDefaultRequestSettings:0: type=1
03-27 17:13:48.832 4035 4035 W CAM_IndicatorIconCtrlr: Trying to sync a pano indicator that is not initialized.
03-27 17:13:48.840 4035 4035 D CAM_CaptureModule: Ready for capture.
03-27 17:13:48.841 4035 4035 V CAM_CameraAppUI: onPreviewStarted
03-27 17:13:48.856 4035 4096 D CAM_CommandExecutor: Executing command: com.android.camera.one.v2.commands.PreviewCommand@b1d5ef5 END
03-27 17:13:48.856 3932 3937 I FslCameraHAL: configureStreams:0: stream_config 0xedfff500, num 2, streams 0xede8d008, mode 0
03-27 17:13:48.857 3932 3937 I FslCameraHAL: config 0, type 0, res 640x480, fmt 0x21, usage 0x3, maxbufs 1, priv 0xeded5000, rotation 0
03-27 17:13:48.857 3932 3937 I FslCameraHAL: config 1, type 0, res 640x480, fmt 0x14, usage 0x100, maxbufs 2, priv 0xeded50e0, rotation 0
03-27 17:13:48.858 1767 4091 D Camera3-Device: Set real time priority for request queue thread (tid 4091)
03-27 17:13:48.861 2028 2052 I CAR.AM : onForegroundActivitiesChanged uid 10042 pid 2621 fg false
03-27 17:13:48.909 1767 4091 I display : open gpu gralloc module!
03-27 17:13:48.919 3932 3938 D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
03-27 17:13:48.921 3932 3938 D vndksupport: Loading /vendor/lib/hw/gralloc.imx8.so from current namespace instead of sphal namespace.
03-27 17:13:48.923 1652 1758 W SurfaceFlinger: Attempting to set client state on removed layer: Splash Screen com.android.camera2#0
03-27 17:13:48.923 1652 1758 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen com.android.camera2#0
03-27 17:13:48.934 3932 3938 I display : open gpu gralloc module!
03-27 17:13:48.935 3932 3938 D vndksupport: Loading /vendor/lib/hw/gralloc_viv.imx8.so from current namespace instead of sphal namespace.
03-27 17:13:48.937 3932 3938 I FslCameraHAL: configure: w:640, h:480, sensor format:0x14, stream format:0x14, fps:30, num:3
03-27 17:13:48.937 3932 3935 E FslCameraHAL: onDeviceConfigureLocked
03-27 17:13:48.937 3932 3935 E FslCameraHAL: Width * Height 640 x 480 format YUYV, fps: 30
03-27 17:13:48.937 3932 3935 I FslCameraHAL: onDeviceStartLocked
03-27 17:13:49.679 3932 3938 I FslCameraHAL: configure: w:640, h:480, sensor format:0x14, stream format:0x14, fps:30, num:3
03-27 17:13:49.685 4035 4035 V CAM_CaptureModule: AF status is state:INACTIVE
03-27 17:13:50.718 2621 2621 W ViewRootImpl[AppGridActivity]: Cancelling event due to no window focus: MotionEvent { action=ACTION_CANCEL, actionButton=0, id[0]=0, x[0]=1552.2706, y[0]=316.12103, toolType[0
03-27 17:13:52.680 1767 4091 E Camera3-Stream: getBuffer: wait for output buffer return timed out after 3000ms (max_buffers 2)
03-27 17:13:52.681 1767 4091 E Camera3-Device: RequestThread: Can't get output buffer, skipping request: Connection timed out (-110)
03-27 17:13:55.681 1767 4091 E Camera3-Stream: getBuffer: wait for output buffer return timed out after 3000ms (max_buffers 2)
03-27 17:13:55.681 1767 4091 E Camera3-Device: RequestThread: Can't get output buffer, skipping request: Connection timed out (-110)

15 Replies

1,385 Views
zoro
Contributor II

i have the same issue.b45499

0 Kudos

1,385 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You can also refer to the above reply.

0 Kudos

1,385 Views
dhty2015
Contributor II

到现在我也没有搞清楚 有EVS 功能和没有EVS功能的区别,是硬件版本不同,还是仅仅系统,或者两者都有~

0 Kudos

1,385 Views
xu_ji1
Contributor V

Hello,

I think it is not related with HW,only SW side.

Thanks

0 Kudos

1,385 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

When I get update I will send it here.

0 Kudos

1,385 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi,

I have sent your question to our expert team, and I am waiting for their reply, once I get the reply, I will send to you as soon as possible. Here you also can try to contact the local FAE.

Have a nice day

Rita

0 Kudos

1,385 Views
xu_ji1
Contributor V

Hi,

Thanks,waiting for your expert team feedback

0 Kudos

1,385 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Xu Ji,

Our experts are working on this, when I get reply I will send to you as soon as possible.

Have a nice day

Rita

0 Kudos

1,385 Views
xu_ji1
Contributor V

Hello,

This issue is not resolved,pls continue tracing.

Thanks

0 Kudos

1,385 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi,

Update from our expert team. Reply is as following:

It is not standard features for android automotive. If they want to use camera HAL, please use related android release. For android automotive, we only support EVS hal.

Have a great day,
Rita

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,385 Views
xu_ji1
Contributor V

Hi, Wang

Which android release enable Camera HAL?Why android automotive only support EVS hal,If both support Camera HAL and EVS HAL,what is the problem or limited?

Thanks

0 Kudos

1,385 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You can download from our website i.MX 8QuadXPlus Multisensory Enablement Kit | NXP 

0 Kudos

1,385 Views
xu_ji1
Contributor V

Hi,

Please give answer about my question:Why android automotive only support EVS hal,If both support Camera HAL and EVS HAL,what is the problem or limited?

Thanks

0 Kudos

1,385 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Sorry, the reply from our android expert,  for android automotive, we only support EVS hal.

0 Kudos

1,385 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

OK, Got it~~