Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdc8d364 authored by puneet's avatar puneet Committed by Gerrit - the friendly Code Review server
Browse files

drivers: iio: imu: fixed asm330 early buff bugs



Changed watermark level to 30 so that we can get interrupt for
every 100ms and changed wrongly assinged data

CRs-Fixed: 2310111
Change-Id: I3d8c4c7902add3fd8bf08c34e55d7e82a8fd490f
Signed-off-by: default avatarpuneet <puneet@codeaurora.org>
parent a78dabc5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -225,8 +225,8 @@ static void store_acc_gyro_boot_sample(struct st_asm330lhh_sensor *sensor,
			<  sensor->max_buffer_time) {
		if (sensor->bufsample_cnt < ASM_MAXSAMPLE) {
			sensor->asm_samplist[sensor->bufsample_cnt]->xyz[0] = x;
			sensor->asm_samplist[sensor->bufsample_cnt]->xyz[1] = x;
			sensor->asm_samplist[sensor->bufsample_cnt]->xyz[2] = x;
			sensor->asm_samplist[sensor->bufsample_cnt]->xyz[1] = y;
			sensor->asm_samplist[sensor->bufsample_cnt]->xyz[2] = z;
			sensor->asm_samplist[sensor->bufsample_cnt]->tsec =
				ktime_to_timespec(sensor->timestamp).tv_sec;
			sensor->asm_samplist[sensor->bufsample_cnt]->tnsec =
+1 −1
Original line number Diff line number Diff line
@@ -847,7 +847,7 @@ static void st_asm330lhh_enable_acc_gyro(struct st_asm330lhh_hw *hw)
			continue;
		sensor = iio_priv(hw->iio_devs[i]);
		sensor->odr = 104;
		sensor->watermark = 3;
		sensor->watermark = 30;
		st_asm330lhh_update_fifo(hw->iio_devs[i], false);

		if (sensor->id == ST_ASM330LHH_ID_ACC)