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

Commit 73a5a5f8 authored by Aravind Kumar's avatar Aravind Kumar Committed by Fred Oh
Browse files

ASoC: msm: qdsp6v2: fix crash issue on playback



Crash is observed on playback in adm open while checking for set
bit. Enumerator takes the size sufficient enough to hold the values
and the set_bit api expects unsigned long and manipulates bits. So
when we pass enum type of variable it crashes. Changing it to
unsigned long fixes the issue.

Change-Id: I22fefed6e719dd95719fd0f1363ba382c94c7de6
Signed-off-by: default avatarAravind Kumar <akumark@codeaurora.org>
parent 0a890bd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ struct adm_copp {
	wait_queue_head_t adm_delay_wait[AFE_MAX_PORTS][MAX_COPPS_PER_PORT];
	atomic_t adm_delay_stat[AFE_MAX_PORTS][MAX_COPPS_PER_PORT];
	uint32_t adm_delay[AFE_MAX_PORTS][MAX_COPPS_PER_PORT];
	enum adm_cal_status adm_status[AFE_MAX_PORTS][MAX_COPPS_PER_PORT];
	unsigned long adm_status[AFE_MAX_PORTS][MAX_COPPS_PER_PORT];
};

struct source_tracking_data {