diff options
author | Kevin.xie <kevin.xie@starfivetech.com> | 2023-01-30 10:25:56 +0300 |
---|---|---|
committer | Kevin.xie <kevin.xie@starfivetech.com> | 2023-01-31 05:56:10 +0300 |
commit | 122bc607ec6c037e71702427190763b891eb8757 (patch) | |
tree | 5d5b6ef354622b7d943a64893b56532cda9b79b5 /drivers/media/platform/starfive/v4l2_driver/stf_isp.h | |
parent | 7f21d0a774a952097ba9a7d3c60f9f7dc202acd1 (diff) | |
download | linux-122bc607ec6c037e71702427190763b891eb8757.tar.xz |
v4l2_driver: isp: Save & resore context regs during stream on/off.
Besides, add some log in dump reg function to distinguish different groups.
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
Diffstat (limited to 'drivers/media/platform/starfive/v4l2_driver/stf_isp.h')
-rw-r--r-- | drivers/media/platform/starfive/v4l2_driver/stf_isp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/starfive/v4l2_driver/stf_isp.h b/drivers/media/platform/starfive/v4l2_driver/stf_isp.h index f8412f937354..f53a061ff86b 100644 --- a/drivers/media/platform/starfive/v4l2_driver/stf_isp.h +++ b/drivers/media/platform/starfive/v4l2_driver/stf_isp.h @@ -119,7 +119,7 @@ struct regval_t { }; struct reg_table { - const struct regval_t *regval; + struct regval_t *regval; int regval_num; }; @@ -207,6 +207,7 @@ struct stf_isp_dev { struct isp_ctrls ctrls; struct mutex setfile_lock; struct isp_setfile setfile; + struct reg_table *context_regs; }; extern int stf_isp_subdev_init(struct stfcamss *stfcamss); |