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

Commit 3764fad4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data"

parents 05c7d0a1 c56c7864
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6041,6 +6041,7 @@ static int afe_map_cal_data(int32_t cal_type,
	}


	mutex_lock(&this_afe.afe_cmd_lock);
	atomic_set(&this_afe.mem_map_cal_index, cal_index);
	ret = afe_cmd_memory_map(cal_block->cal_data.paddr,
			cal_block->map_data.map_size);
@@ -6053,10 +6054,12 @@ static int afe_map_cal_data(int32_t cal_type,
			__func__,
			&cal_block->cal_data.paddr,
			cal_block->map_data.map_size);
		mutex_unlock(&this_afe.afe_cmd_lock);
		goto done;
	}
	cal_block->map_data.q6map_handle = atomic_read(&this_afe.
		mem_map_cal_handles[cal_index]);
	mutex_unlock(&this_afe.afe_cmd_lock);
done:
	return ret;
}