<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processorsのトピックimx8qxp, open the Android camera application, the preview interface has no content</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253223#M171625</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Who can help me?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SDK：Android Q10.0.0_2.2.0_AUTO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;nvp6324 connect 4 cameras&lt;BR /&gt;The evs function of the product mek_8q_car-userdebug has been adjusted, but the camera apk cannot be used to open the camera.&lt;BR /&gt;Therefore, I switched the product to mek_8q-userdebug to test the traditional method of using the camera, and I am currently experiencing problems:&lt;BR /&gt;The camera apk opens and previews no content.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="relax-wu_0-1616980476967.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140813iD8E74715444558AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="relax-wu_0-1616980476967.png" alt="relax-wu_0-1616980476967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Core video information&lt;/P&gt;&lt;LI-CODE lang="c"&gt;mek_8q:/ # ls sys/class/video4linux/
v4l-subdev0 v4l-subdev2 v4l-subdev4 video0 video12 video2
v4l-subdev1 v4l-subdev3 v4l-subdev5 video1 video13 video3
mek_8q:/ # cat sys/class/video4linux/video0/name
mxc_isi.0.capture
mek_8q:/ # cat sys/class/video4linux/video1/name
mxc_isi.1.capture
mek_8q:/ # cat sys/class/video4linux/video12/name
vpu decoder
mek_8q:/ # cat sys/class/video4linux/video13/name
vpu encoder
mek_8q:/ # cat sys/class/video4linux/video2/name
mxc_isi.2.capture
mek_8q:/ # cat sys/class/video4linux/video3/name
mxc_isi.3.capture
mek_8q:/ #&lt;/LI-CODE&gt;&lt;P&gt;main error log&lt;/P&gt;&lt;LI-CODE lang="c"&gt;03-26 02:12:12.937   433  2408 E Camera3-Stream: getBuffer: wait for output buffer return timed out after 8000ms (max_buffers 2)
03-26 02:12:12.938   433  2408 V Camera3-Stream: getBuffer: Already dequeued max output buffers (2), wait for next returned one.&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class="md-plain md-expand"&gt;logcat_boot.log is the log of Android boot。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="md-plain md-expand"&gt;logcat_preview.log is the log of camera apk preview.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 01:22:27 GMT</pubDate>
    <dc:creator>relax-wu</dc:creator>
    <dc:date>2021-03-29T01:22:27Z</dc:date>
    <item>
      <title>imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253223#M171625</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Who can help me?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SDK：Android Q10.0.0_2.2.0_AUTO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;nvp6324 connect 4 cameras&lt;BR /&gt;The evs function of the product mek_8q_car-userdebug has been adjusted, but the camera apk cannot be used to open the camera.&lt;BR /&gt;Therefore, I switched the product to mek_8q-userdebug to test the traditional method of using the camera, and I am currently experiencing problems:&lt;BR /&gt;The camera apk opens and previews no content.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="relax-wu_0-1616980476967.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/140813iD8E74715444558AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="relax-wu_0-1616980476967.png" alt="relax-wu_0-1616980476967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Core video information&lt;/P&gt;&lt;LI-CODE lang="c"&gt;mek_8q:/ # ls sys/class/video4linux/
v4l-subdev0 v4l-subdev2 v4l-subdev4 video0 video12 video2
v4l-subdev1 v4l-subdev3 v4l-subdev5 video1 video13 video3
mek_8q:/ # cat sys/class/video4linux/video0/name
mxc_isi.0.capture
mek_8q:/ # cat sys/class/video4linux/video1/name
mxc_isi.1.capture
mek_8q:/ # cat sys/class/video4linux/video12/name
vpu decoder
mek_8q:/ # cat sys/class/video4linux/video13/name
vpu encoder
mek_8q:/ # cat sys/class/video4linux/video2/name
mxc_isi.2.capture
mek_8q:/ # cat sys/class/video4linux/video3/name
mxc_isi.3.capture
mek_8q:/ #&lt;/LI-CODE&gt;&lt;P&gt;main error log&lt;/P&gt;&lt;LI-CODE lang="c"&gt;03-26 02:12:12.937   433  2408 E Camera3-Stream: getBuffer: wait for output buffer return timed out after 8000ms (max_buffers 2)
03-26 02:12:12.938   433  2408 V Camera3-Stream: getBuffer: Already dequeued max output buffers (2), wait for next returned one.&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class="md-plain md-expand"&gt;logcat_boot.log is the log of Android boot。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="md-plain md-expand"&gt;logcat_preview.log is the log of camera apk preview.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 01:22:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253223#M171625</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-03-29T01:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253866#M171742</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Can you offer the kernel log?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 01:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253866#M171742</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-03-30T01:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253930#M171751</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for your reply,&lt;BR /&gt;&amp;nbsp; Please.&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 03:06:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253930#M171751</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-03-30T03:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253981#M171760</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error happened in CameraHAL.Failed in below command.You need see if your camera support&amp;nbsp;VIDIOC_DBG_G_CHIP_IDENT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ret = ioctl(fd, VIDIOC_DBG_G_CHIP_IDENT, &amp;amp;vidChip);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 05:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1253981#M171760</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-03-30T05:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1254553#M171826</link>
      <description>&lt;P&gt;I have solved this problem，&lt;/P&gt;&lt;P&gt;ioctl(fd, VIDIOC_DBG_G_CHIP_IDENT, &amp;amp;vidChip)&lt;/P&gt;&lt;LI-CODE lang="c"&gt;--- a/android_build/vendor/nxp-opensource/kernel_imx/drivers/staging/media/imx/imx8-isi-cap.c
+++ b/android_build/vendor/nxp-opensource/kernel_imx/drivers/staging/media/imx/imx8-isi-cap.c
@@ -1170,6 +1170,15 @@ static int mxc_isi_cap_s_selection(struct file *file, void *fh,
        return 0;
 }

+static int mxc_isi_cap_g_chip_ident(struct file *file, void *fh,
+                                       struct v4l2_dbg_chip_ident *chip)
+{
+       chip-&amp;gt;match.type = V4L2_CHIP_MATCH_I2C_DRIVER;
+       strcpy(chip-&amp;gt;match.name, "nvp6324_mipi_camera");
+
+       return 0;
+}
+
 static int mxc_isi_cap_enum_framesizes(struct file *file, void *priv,
                                       struct v4l2_frmsizeenum *fsize)
 {
@@ -1285,6 +1294,7 @@ static const struct v4l2_ioctl_ops mxc_isi_capture_ioctl_ops = {

        .vidioc_g_selection             = mxc_isi_cap_g_selection,
        .vidioc_s_selection             = mxc_isi_cap_s_selection,
+       .vidioc_g_chip_ident    = mxc_isi_cap_g_chip_ident,

        .vidioc_enum_framesizes = mxc_isi_cap_enum_framesizes,
        .vidioc_enum_frameintervals = mxc_isi_cap_enum_frameintervals,&lt;/LI-CODE&gt;&lt;P&gt;The preview interface still has no content。&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 01:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1254553#M171826</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-03-31T01:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1254600#M171833</link>
      <description>&lt;P&gt;I saw another problem I was trying to solve&lt;/P&gt;&lt;LI-CODE lang="c"&gt;E FslCameraHAL: onDeviceConfigureLocked: VIDIOC_S_PARM Failed: Not a typewriter
E FslCameraHAL: handleConfigureLocked onDeviceConfigure failed&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Mar 2021 02:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1254600#M171833</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-03-31T02:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1254820#M171866</link>
      <description>&lt;P&gt;Please help to see how to solve it。&lt;/P&gt;&lt;P&gt;Here is the main problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ret = ioctl(mDev, VIDIOC_S_PARM, &amp;amp;param);
if (ret &amp;lt; 0) {
    ALOGE("%s: VIDIOC_S_PARM Failed: %s", __func__, strerror(errno));
    return ret;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;E FslCameraHAL: onDeviceConfigureLocked: VIDIOC_S_PARM Failed: Not a typewriter
E FslCameraHAL: handleConfigureLocked onDeviceConfigure failed&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//vendor/nxp-opensource/kernel_imx/drivers/staging/media/imx/imx8-isi-cap.c
static int mxc_isi_cap_s_parm(struct file *file, void *fh,
			      struct v4l2_streamparm *a)
{
	struct mxc_isi_cap_dev *isi_cap = video_drvdata(file);
	struct v4l2_subdev *sd;

	sd = mxc_get_remote_subdev(isi_cap, __func__);
	if (!sd)
		return -ENODEV;

	return v4l2_s_parm_cap(video_devdata(file), sd, a);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did not call nvp6324_s_parm。&lt;/P&gt;&lt;P&gt;The following three functions are called&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;.enum_frame_size = nvp6324_enum_framesizes,
.get_fmt = nvp6324_get_fmt,
.set_fmt = nvp6324_set_fmt,&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:20:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1254820#M171866</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-03-31T08:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1255465#M171915</link>
      <description>&lt;P&gt;I will consult with software team.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 03:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1255465#M171915</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-04-01T03:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1255500#M171921</link>
      <description>&lt;P&gt;thank you very much&lt;BR /&gt;The relevant documents are as follows:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//HAL
//vendor/nxp-opensource/imx/libcamera3/ImxCamera.cpp
ImxCamera::ImxCameraDMAStream::onDeviceConfigureLocked()
	ret = ioctl(mDev, VIDIOC_S_PARM, &amp;amp;param);
    if (ret &amp;lt; 0) {
        ALOGE("%s: VIDIOC_S_PARM Failed: %s", __func__, strerror(errno));
        return ret;
    }

//kernel
//vendor/nxp-opensource/kernel_imx/drivers/staging/media/imx/imx8-isi-cap.c
static int mxc_isi_cap_s_parm(struct file *file, void *fh,
			      struct v4l2_streamparm *a)
{
	struct mxc_isi_cap_dev *isi_cap = video_drvdata(file);
	struct v4l2_subdev *sd;

	sd = mxc_get_remote_subdev(isi_cap, __func__);
	if (!sd)
		return -ENODEV;

	return v4l2_s_parm_cap(video_devdata(file), sd, a);
}
//vendor/nxp-opensource/kernel_imx/drivers/media/platform/imx8/nvp6324/nvp6324_video.c
static int nvp6324_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *a)
{
    ......
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Apr 2021 05:15:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1255500#M171921</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-04-01T05:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: imx8qxp, open the Android camera application, the preview interface has no content</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1256860#M172091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;nxf65025&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Is there any good news?&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 01:39:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8qxp-open-the-Android-camera-application-the-preview/m-p/1256860#M172091</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-04-06T01:39:16Z</dc:date>
    </item>
  </channel>
</rss>

