initMultiPars(sensor_port);// initialize structures for individual per-sensor parameters. Now only works for sensor registers using G_MULTI_REGSM. Should be called after/during sensor detection
frameParsInitialized[sensor_port]=1;
spin_unlock_bh(framepars_locks[sensor_port]);
UNLOCK_IBH(framepars_locks[sensor_port]);
dev_dbg(g_devfp_ptr,"%s port %d: DONE, frameParsInitialized[%d]=%ld\n",__func__,sensor_port,sensor_port,frameParsInitialized[sensor_port]);
dev_err(g_devfp_ptr," bad index=%d > %d\n",index,P_MAX_PAR);
return-ERR_FRAMEPARS_BADINDEX;
}
...
...
@@ -1193,7 +1216,6 @@ int setFramePars(int sensor_port, ///< sensor port number (0
GLOBALPARS(sensor_port,index)=val;
}elseif(pars[npar].num&FRAMEPAIR_FRAME_FUNC){
funcs2call[index]=val;
// } else {
}elseif((frame16!=findex_future)||((pars[npar].num&FRAMEPAIR_JUST_THIS)==0)){// do not write "JUST_THIS" parameters in the future otherwise they'll stick
if(pars[npar].num&FRAMEPAIR_MASK_BYTES){// combine new value with the old one