libcamera: media_device: expose media graph model name
Pipeline handlers such as the upcoming ucvideo handler need the model name to properly name the Camera objects they create. Store the model name when querying the media device info and handle it in a similar fashion as the driver name which is already retrieved. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -166,6 +166,7 @@ int MediaDevice::open()
|
||||
}
|
||||
|
||||
driver_ = info.driver;
|
||||
model_ = info.model;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -290,6 +291,12 @@ int MediaDevice::populate()
|
||||
* \return The MediaDevice deviceNode path
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn MediaDevice::model()
|
||||
* \brief Retrieve the media device model name
|
||||
* \return The MediaDevice model name
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn MediaDevice::entities()
|
||||
* \brief Retrieve the list of entities in the media graph
|
||||
|
||||
Reference in New Issue
Block a user