Commit f6e64a1
sensor: label vendor by part number, not by which probe matched (#181)
detect_superpix_sensor() does not probe a vendor, it probes a register
family: 0xFD-paged, 8-bit registers, id at 0x02/0x03. The WillSemi group
(OmniVision + SuperPix since 2018-19) ships that same design under both SP
and OV/OS part numbers, so the probe matches parts from two brands — but
get_sensor_id_i2c() stamped every hit "SuperPix" because the label was
attached to the probe rather than to the id it matched.
Five of the eight ids this function recognises are OmniVision part numbers,
so ipctool emitted self-contradictory output:
vendor: SuperPix
model: OS04B10
That YAML is what `ipctool upload` ships to the OpenIPC cloud, so each
affected camera contributed a wrong vendor/model pairing to the collected
hardware data.
Set the vendor per matched id instead. The rule: the brand that owns the
part number we print — SP numbers are SuperPix, OV/OS numbers are
OmniVision — which is the only assignment that keeps the two fields
consistent with each other.
This also un-comments, legitimately, the override the OS04D10 case already
wanted ("Need to overwrite vendor somehow or move this to OV detect
function") — with the vendor set inside the probe there is now somewhere to
put it that the caller does not clobber.
Model strings are deliberately unchanged; see #180 for the separate question
of whether 0x2735 should print OV2735 or SP2305. Nothing consumes the sensor
vendor field programmatically (getsensoridentity() and getsensorshort()
return the model alone, `ipcinfo -v` is the chip vendor), so this is
output-only and cannot affect firmware sensor-loading scripts.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent b528231 commit f6e64a1
1 file changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
903 | 907 | | |
904 | 908 | | |
| 909 | + | |
905 | 910 | | |
906 | 911 | | |
907 | | - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
908 | 915 | | |
| 916 | + | |
909 | 917 | | |
910 | 918 | | |
911 | 919 | | |
| 920 | + | |
912 | 921 | | |
913 | 922 | | |
914 | 923 | | |
915 | | - | |
| 924 | + | |
| 925 | + | |
916 | 926 | | |
917 | 927 | | |
| 928 | + | |
918 | 929 | | |
919 | 930 | | |
920 | 931 | | |
| 932 | + | |
921 | 933 | | |
922 | 934 | | |
923 | 935 | | |
924 | 936 | | |
925 | 937 | | |
926 | | - | |
927 | | - | |
928 | 938 | | |
| 939 | + | |
929 | 940 | | |
930 | | - | |
931 | 941 | | |
932 | 942 | | |
933 | 943 | | |
| |||
959 | 969 | | |
960 | 970 | | |
961 | 971 | | |
| 972 | + | |
962 | 973 | | |
963 | 974 | | |
964 | 975 | | |
| |||
1130 | 1141 | | |
1131 | 1142 | | |
1132 | 1143 | | |
1133 | | - | |
| 1144 | + | |
| 1145 | + | |
1134 | 1146 | | |
1135 | 1147 | | |
1136 | 1148 | | |
| |||
0 commit comments