bug: add offsets at END and not only at START

These additions were overlooked in b7b800ae
parent 4ba9c123
......@@ -442,6 +442,8 @@ static void __fd_zio_output(struct fd_dev *fd, int index1_4, uint32_t *attrs)
if (mode == FD_OUT_MODE_DELAY) {
fd_apply_offset(attrs + FD_ATTR_OUT_START_H,
fd->calib.tdc_zero_offset);
fd_apply_offset(attrs + FD_ATTR_OUT_END_H,
fd->calib.tdc_zero_offset);
}
fd_apply_offset(attrs + FD_ATTR_OUT_START_H,
......@@ -450,6 +452,12 @@ static void __fd_zio_output(struct fd_dev *fd, int index1_4, uint32_t *attrs)
fd_apply_offset(attrs + FD_ATTR_OUT_START_H,
fd->ch_user_offset[ch]);
fd_apply_offset(attrs + FD_ATTR_OUT_END_H,
fd->calib.zero_offset[ch]);
fd_apply_offset(attrs + FD_ATTR_OUT_END_H,
fd->ch_user_offset[ch]);
fd_ch_writel(fd, ch, fd->ch[ch].frr_cur, FD_REG_FRR);
fd_ch_writel(fd, ch, attrs[FD_ATTR_OUT_START_H], FD_REG_U_STARTH);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment