This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

saLoopBack VIDIOC_QBUF Failure

Other Parts Discussed in Thread: TVP7002

Hi,

When I run the saLoopBack  application on the EVM I get VIDIOC_QBUF error "ti81xxvin ti81xxvin: buffer_prepare:offset is not aligned to 16 bytes
VIDIOC_QBUF" looking athe capture driver its looking if its alligned or not. Is there any mmap based capture application from tvp7002 ?


Thanks And Regards,

Mike

  • Hi,

    Can any one please point me to right direction: I get following errors from capture side ' ti81xxvin ti81xxvin: buffer_prepare:offset is not aligned to 16 bytes VIDIOC_QBUF'

    Following is complete log:

    ./saLoopBack
    Driver Name: ti81xxvin
    Driver bus info: TI81xx Platform
    Driver is capable of d[ 539.160000] VPSS_DCTRL: venc 1 already stop
    oing capture
    saLoopBack:
    Mode set is 1080P60
    [ 539.330000] hdmi: Enter HDMI_W1_StopVideoFrame()
    [ 539.340000] hdmi: *** Set PHY power mode to 1
    [ 539.340000] hdmi: *** Set PHY power mode to 2
    [ 539.980000] found best resolution: 1920x1080 (28)
    [ 539.980000] Extension block present db 3 22
    [ 539.990000] 84
    [ 539.990000] Extension block present db 2 22
    [ 539.990000] 84
    [ 540.000000] Extension block present db 1 22
    [ 540.000000] 84
    [ 540.000000] Extension block present db 3 22
    [ 540.010000] 84
    [ 540.010000] Extension block present db 3 22
    [ 540.010000] 84
    [ 540.010000] hdmi: Enter HDMI_W1_GlobalInitVars()
    [ 540.370000] hdmi: Enter HDMI_Core_GlobalInitVars()
    [ 540.480000] hdmi: Enter HDMI_W1_ConfigVideoResolutionTiming()
    [ 540.480000] hdmi: Enter HDMI_W1_ConfigVideoInterface()
    [ 540.490000] hdmi: Enter DSS_HDMI_CORE_SW_RESET_ASSERT ()
    [ 540.490000] hdmi: Enter DSS_HDMI_CORE_POWER_DOWN_DISABLE()
    [ 540.500000] hdmi: Enter DSS_HDMI_CORE_SW_RESET_RELEASE()
    [ 540.500000] hdmi: Enter HDMI_W1_StartVideoFrame ()
    [ 540.510000] hdmi: Irqenable 60000011
    [ 540.510000] hdmi: 40 hpd
    [ 540.510000] hdmi: -------------DEBUG-------------------
    [ 540.510000] hdmi: 1 hdmi_wp_irqstatus
    [ 540.510000] hdmi: 1 hdmi_core_intr_state
    [ 540.510000] hdmi: 40 hdmi_core_intr1
    [ 540.510000] hdmi: 3 hdmi_core_intr2
    [ 540.510000] hdmi: f hdmi_core_intr3
    [ 540.510000] hdmi: 83 hdmi_core_sys_sys_stat
    [ 540.510000] hdmi: -------------DEBUG-------------------
    =============================================================
    Capture Format:
    =============================================================
    fmt.type = 1
    fmt.width = 1920
    fmt.height = 1080
    fmt.pixelformat = 1448695129
    fmt.bytesperline = 3840
    fmt.sizeimage = 4147200
    =============================================================
    [ 540.610000] ti81xxvin ti81xxvin: buffer_prepare:offset is not aligned to 16 bytes
    VIDIOC_QBUF
    : Invalid argument
    Error in queuing capture buffers
    [ 540.690000] hdmi: Enter DSS_HDMI_CORE_SW_RESET_ASSERT ()
    [ 540.690000] hdmi: Enter HDMI_W1_StopVideoFrame()
    [ 540.700000] hdmi: *** Set PHY power mode to 0
    [ 540.700000] hdmi: *** Set PHY power mode to 0
    [ 540.720000] VPSS_GRPX : please open fb0 node first.
    sh: line 0: echo: write error: Invalid argument
    [ 540.730000] hdmi: Enter HDMI_W1_StopVideoFrame()
    [ 540.740000] hdmi: *** Set PHY power mode to 1
    [ 540.740000] hdmi: *** Set PHY power mode to 2
    [ 541.380000] found best resolution: 1920x1080 (28)
    [ 541.380000] Extension block present db 3 22
    [ 541.390000] 84
    [ 541.390000] Extension block present db 2 22
    [ 541.390000] 84
    [ 541.400000] Extension block present db 1 22
    [ 541.400000] 84
    [ 541.400000] Extension block present db 3 22
    [ 541.410000] 84
    [ 541.410000] Extension block present db 3 22
    [ 541.410000] 84
    [ 541.410000] hdmi: Enter HDMI_W1_GlobalInitVars()
    [ 541.770000] hdmi: Enter HDMI_Core_GlobalInitVars()
    [ 541.880000] hdmi: Enter HDMI_W1_ConfigVideoResolutionTiming()
    [ 541.880000] hdmi: Enter HDMI_W1_ConfigVideoInterface()
    [ 541.890000] hdmi: Enter DSS_HDMI_CORE_SW_RESET_ASSERT ()
    [ 541.890000] hdmi: Enter DSS_HDMI_CORE_POWER_DOWN_DISABLE()
    [ 541.900000] hdmi: Enter DSS_HDMI_CORE_SW_RESET_RELEASE()
    [ 541.900000] hdmi: Enter HDMI_W1_StartVideoFrame ()
    [ 541.910000] hdmi: Irqenable 60000011
    [ 541.910000] hdmi: 40 hpd
    [ 541.910000] hdmi: -------------DEBUG-------------------
    [ 541.910000] hdmi: 1 hdmi_wp_irqstatus
    [ 541.910000] hdmi: 1 hdmi_core_intr_state
    [ 541.910000] hdmi: 40 hdmi_core_intr1
    [ 541.910000] hdmi: 3 hdmi_core_intr2
    [ 541.910000] hdmi: f hdmi_core_intr3
    [ 541.910000] hdmi: 83 hdmi_core_sys_sys_stat
    [ 541.910000] hdmi: -------------DEBUG-------------------

    Thanks And Regards,
    Mike
  • Mike,

    See if the below wiki page will be in help:

    processors.wiki.ti.com/.../TI81XX_PSP_VIDEO_CAPTURE_Driver_User_Guide

    Regards,
    Pavel