indi-libcamera: Add Gain Conversion control for IMX290-family sensors#1345
Open
OLEGsandrMB wants to merge 1 commit into
Open
indi-libcamera: Add Gain Conversion control for IMX290-family sensors#1345OLEGsandrMB wants to merge 1 commit into
OLEGsandrMB wants to merge 1 commit into
Conversation
Add a Gain Conversion property for IMX290-family sensors to allow switching between Dynamic Range (LCG) and Low Noise (HCG). The driver reads the current gain conversion mode on connect, updates the UI accordingly, and writes the selected mode through the existing kernel interface. The implementation includes proper error reporting when the gain conversion mode cannot be changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a Gain Conversion property to the
indi-libcameradriver for Sony IMX290-family image sensors.The property allows switching between:
The driver reads the current gain conversion mode when the camera connects, updates the INDI property accordingly, and writes the selected mode through the existing kernel interface.
Supported sensors
This feature is intended for Sony IMX290-family sensors, such as:
Motivation
These sensors support two analog gain conversion modes.
Until now this functionality was not available through the INDI LibCamera driver.
Notes
The current implementation uses the existing kernel parameter:
/sys/module/imx290/parameters/hcg_modeWriting this parameter requires appropriate system permissions. If writing fails, the driver reports an informative error message.
A future improvement would be exposing Gain Conversion as a standard V4L2/libcamera control, removing the need for direct sysfs access.
Tested
Tested successfully on:
imx290kernel driverVerified: