Commit a613224
committed
Refactor: define DS5_IMU_PIPE/VC/DT constants, eliminate duplication
The IMU pipe configuration (pipe_id=3, vc_id=3, DT1=YUV422_8,
DT2=EMBED) was hardcoded in two places:
- ds5_configure() (stream-start path)
- Step 11 of ds5_hw_reset_with_recovery() (post-reset pipe restore)
Define DS5_IMU_PIPE_ID, DS5_IMU_VC_ID, DS5_IMU_DT1, DS5_IMU_DT2
constants near the GMSL CSI DT defines and use them in both locations.
If the IMU pipe parameters ever change, only one place needs updating.1 parent 9cd345a commit a613224
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
| |||
1829 | 1838 | | |
1830 | 1839 | | |
1831 | 1840 | | |
1832 | | - | |
| 1841 | + | |
1833 | 1842 | | |
1834 | 1843 | | |
1835 | 1844 | | |
| |||
3136 | 3145 | | |
3137 | 3146 | | |
3138 | 3147 | | |
3139 | | - | |
3140 | | - | |
3141 | | - | |
3142 | | - | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
3143 | 3152 | | |
3144 | 3153 | | |
3145 | 3154 | | |
| |||
0 commit comments