cam: kms_sink: Print display pipeline configuration
It can be useful, for diagnosis purpose, to know what plane and CRTC the KMS sink auto-selects. Print the display pipeline configuration at start time. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
parent
3c059b9164
commit
1de0f90dd4
1 changed files with 15 additions and 6 deletions
|
@ -174,24 +174,33 @@ int KMSSink::configurePipeline(const libcamera::PixelFormat &format)
|
||||||
crtc_ = crtc;
|
crtc_ = crtc;
|
||||||
plane_ = plane;
|
plane_ = plane;
|
||||||
format_ = format;
|
format_ = format;
|
||||||
return 0;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plane->supportsFormat(xFormat)) {
|
if (plane->supportsFormat(xFormat)) {
|
||||||
crtc_ = crtc;
|
crtc_ = crtc;
|
||||||
plane_ = plane;
|
plane_ = plane;
|
||||||
format_ = xFormat;
|
format_ = xFormat;
|
||||||
return 0;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cerr
|
if (!crtc_) {
|
||||||
<< "Unable to find display pipeline for format "
|
std::cerr
|
||||||
<< format.toString() << std::endl;
|
<< "Unable to find display pipeline for format "
|
||||||
|
<< format.toString() << std::endl;
|
||||||
|
|
||||||
return -EPIPE;
|
return -EPIPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::cout
|
||||||
|
<< "Using KMS plane " << plane_->id() << ", CRTC " << crtc_->id()
|
||||||
|
<< ", connector " << connector_->name()
|
||||||
|
<< " (" << connector_->id() << ")" << std::endl;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int KMSSink::start()
|
int KMSSink::start()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue