Commit f1b9630
committed
media: i2c: imx477: Disable temperature sensor when enabling XVS
On IMX477 it appears that the on-chip temperature sensor causes
XVS (external sync out) to pulse every ~2ms when not streaming.
So now we do a little dance: Temperature sensor is enabled during
common register setup, giving it time to warm up (almost literally;
otherwise the first frame's reading might be 0C), disabled before
enabling sync out, then enabled again once the camera is streaming.
We already took care to disable XVS output in stop_streaming()
(though previously it wasn't understood why this was needed).
Signed-off-by: Nick Hollinghurst <[email protected]>1 parent c8c70b6 commit f1b9630
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
1833 | 1836 | | |
1834 | 1837 | | |
1835 | 1838 | | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
1836 | 1842 | | |
1837 | 1843 | | |
1838 | 1844 | | |
| |||
1843 | 1849 | | |
1844 | 1850 | | |
1845 | 1851 | | |
1846 | | - | |
1847 | | - | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
1848 | 1861 | | |
1849 | 1862 | | |
1850 | 1863 | | |
| |||
0 commit comments