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.

Unable to start streaming: Broken pipe (32).


Hi, All.
To grab an image with ov7675/ov7670 sensor, I use media-ctl to configure isp pipeline.
my pipeline configuration: ov7670 -> CCDC -> preview -> preview output,following “a ov7690 configuration”.
my configuration shell script:

#!/bin/sh
media-ctl -v -r
media-ctl -v -f '"ov7670 2-0021":0 [SBGGR8 320x240], "OMAP3 ISP CCDC":1 [SBGGR8 320x240],"OMAP3 ISP preview":1 [UYVY 320x240]'
media-ctl -v -l '"ov7670 2-0021":0 -> "OMAP3 ISP CCDC":0 [1]'
media-ctl -v -l '"OMAP3 ISP CCDC":2 -> "OMAP3 ISP preview":0 [1]'
media-ctl -v -l '"OMAP3 ISP preview":1 -> "OMAP3 ISP preview output":0 [1]'

command “media-ctl -p“‘s outputing seems ok.

Opening media device /dev/media0
Enumerating entities
Found 16 entities
Enumerating pads and links
Media controller API version 0.0.0

Media device information
------------------------
driver          omap3isp
model           TI OMAP3 ISP
serial          
bus info        
hw revision     0xf0
driver version  0.0.0

Device topology
- entity 1: OMAP3 ISP CCP2 (2 pads, 2 links)
            type V4L2 subdev subtype Unknown
            device node name /dev/v4l-subdev0
        pad0: Sink [SGRBG10 4096x4096]
                <- "OMAP3 ISP CCP2 input":0 []
        pad1: Source [SGRBG10 4096x4096]
                -> "OMAP3 ISP CCDC":0 []

- entity 2: OMAP3 ISP CCP2 input (1 pad, 1 link)
            type Node subtype V4L
            device node name /dev/video0
        pad0: Source 
                -> "OMAP3 ISP CCP2":0 []
- entity 3: OMAP3 ISP CSI2a (2 pads, 2 links)
            type V4L2 subdev subtype Unknown
            device node name /dev/v4l-subdev1
        pad0: Sink [SGRBG10 4096x4096]
        pad1: Source [SGRBG10 4096x4096]
                -> "OMAP3 ISP CSI2a output":0 []
                -> "OMAP3 ISP CCDC":0 []

- entity 4: OMAP3 ISP CSI2a output (1 pad, 1 link)
            type Node subtype V4L
            device node name /dev/video1
        pad0: Sink 
                <- "OMAP3 ISP CSI2a":1 []

- entity 5: OMAP3 ISP CCDC (3 pads, 9 links)
            type V4L2 subdev subtype Unknown
            device node name /dev/v4l-subdev2
        pad0: Sink [SBGGR8 320x240]
                <- "OMAP3 ISP CCP2":1 []
                <- "OMAP3 ISP CSI2a":1 []
                <- "ov7670 2-0021":0 [ENABLED]
        pad1: Source [SBGGR8 320x240]
                -> "OMAP3 ISP CCDC output":0 []
                -> "OMAP3 ISP resizer":0 []
        pad2: Source [SBGGR8 320x239]
                -> "OMAP3 ISP preview":0 [ENABLED]
                -> "OMAP3 ISP AEWB":0 [ENABLED,IMMUTABLE]
                -> "OMAP3 ISP AF":0 [ENABLED,IMMUTABLE]
                -> "OMAP3 ISP histogram":0 [ENABLED,IMMUTABLE]

- entity 6: OMAP3 ISP CCDC output (1 pad, 1 link)
            type Node subtype V4L
            device node name /dev/video2
        pad0: Sink 
                <- "OMAP3 ISP CCDC":1 []

- entity 7: OMAP3 ISP preview (2 pads, 4 links)
            type V4L2 subdev subtype Unknown
            device node name /dev/v4l-subdev3
        pad0: Sink [SGRBG10 320x240 (8,4)/306x232]
                <- "OMAP3 ISP CCDC":2 [ENABLED]
                <- "OMAP3 ISP preview input":0 []
        pad1: Source [UYVY 306x232]
                -> "OMAP3 ISP preview output":0 [ENABLED]
                -> "OMAP3 ISP resizer":0 []

- entity 8: OMAP3 ISP preview input (1 pad, 1 link)
            type Node subtype V4L
            device node name /dev/video3
        pad0: Source 
                -> "OMAP3 ISP preview":0 []

- entity 9: OMAP3 ISP preview output (1 pad, 1 link)
            type Node subtype V4L
            device node name /dev/video4
        pad0: Sink 
                <- "OMAP3 ISP preview":1 [ENABLED]

- entity 10: OMAP3 ISP resizer (2 pads, 4 links)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev4
        pad0: Sink [YUYV 306x232 (0,0)/306x232]
                <- "OMAP3 ISP CCDC":1 []
                <- "OMAP3 ISP preview":1 []
                <- "OMAP3 ISP resizer input":0 []
        pad1: Source [YUYV 320x240]
                -> "OMAP3 ISP resizer output":0 []
- entity 11: OMAP3 ISP resizer input (1 pad, 1 link)
             type Node subtype V4L
             device node name /dev/video5
        pad0: Source 
                -> "OMAP3 ISP resizer":0 []

- entity 12: OMAP3 ISP resizer output (1 pad, 1 link)
             type Node subtype V4L
             device node name /dev/video6
        pad0: Sink 
                <- "OMAP3 ISP resizer":1 []

- entity 13: OMAP3 ISP AEWB (1 pad, 1 link)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev5
        pad0: Sink 
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]

- entity 14: OMAP3 ISP AF (1 pad, 1 link)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev6
        pad0: Sink 
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]

- entity 15: OMAP3 ISP histogram (1 pad, 1 link)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev7
        pad0: Sink 
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]

- entity 16: ov7670 2-0021 (1 pad, 1 link)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev8
        pad0: Source [SBGGR8 320x240]
                -> "OMAP3 ISP CCDC":0 [ENABLED]

But when grabing picture, yavta report a error “Unable to start streaming: Broken pipe (32)”,and exit. I checked error -32 EPIPE, it means “The driver implements pad-level format configuration and the pipeline configuration is invalid”, why?

#yavta -f UYVY -f UYVY -s 306x232 -c=1 --stdout /dev/video4
Device /dev/video4 opened.
Device `OMAP3 ISP preview output' on `media' is a video capture device.
Video format set: UYVY (59565955) 306x232 (stride 640) buffer size 148480
Video format: UYVY (59565955) 306x232 (stride 640) buffer size 148480
8 buffers requested.
length: 148480 offset: 0
Buffer 0 mapped at address 0x4006a000.
length: 148480 offset: 151552
Buffer 1 mapped at address 0x40291000.
length: 148480 offset: 303104
Buffer 2 mapped at address 0x402c5000.
length: 148480 offset: 454656
Buffer 3 mapped at address 0x403c6000.
length: 148480 offset: 606208
Buffer 4 mapped at address 0x4046b000.
length: 148480 offset: 757760
Buffer 5 mapped at address 0x404ad000.
length: 148480 offset: 909312
Buffer 6 mapped at address 0x404f4000.
length: 148480 offset: 1060864
Buffer 7 mapped at address 0x405eb000.
Unable to start streaming: Broken pipe (32).
8 buffers released.