File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1201,12 +1201,18 @@ static int stm32_dcmipp_stream_enable(const struct device *dev)
1201
1201
if (ret < 0 ) {
1202
1202
LOG_ERR ("Failed to start the source" );
1203
1203
if (config -> bus_type == VIDEO_BUS_TYPE_PARALLEL ) {
1204
- HAL_DCMIPP_PIPE_Stop (& dcmipp -> hdcmipp , pipe -> id );
1204
+ if (HAL_DCMIPP_PIPE_Stop (& dcmipp -> hdcmipp , pipe -> id ) != HAL_OK ) {
1205
+ ret = - EIO ;
1206
+ goto out ;
1207
+ }
1205
1208
}
1206
1209
#if defined(STM32_DCMIPP_HAS_CSI )
1207
1210
else if (config -> bus_type == VIDEO_BUS_TYPE_CSI2_DPHY ) {
1208
- HAL_DCMIPP_CSI_PIPE_Stop (& dcmipp -> hdcmipp , pipe -> id ,
1209
- DCMIPP_VIRTUAL_CHANNEL0 );
1211
+ if (HAL_DCMIPP_CSI_PIPE_Stop (& dcmipp -> hdcmipp , pipe -> id ,
1212
+ DCMIPP_VIRTUAL_CHANNEL0 ) != HAL_OK ) {
1213
+ ret = - EIO ;
1214
+ goto out ;
1215
+ }
1210
1216
}
1211
1217
#endif
1212
1218
else {
You can’t perform that action at this time.
0 commit comments