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

Commit 66c05325 authored by Soumya Managoli's avatar Soumya Managoli Committed by Gerrit - the friendly Code Review server
Browse files

dsp: Remove lock in voice_map_cal_memory

voice_map_cal_memory is already under
locked context of common_lock from fn
voc_register_vocproc_vol_table from where
it is invoked.
Remove locking the same lock again in
voice_map_cal_memory to avoid deadlock.

Change-Id: Ibd6c7169377418c7bda3310a0e422279fd4e7295
parent 5fb54fcd
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -3850,7 +3850,6 @@ static int voice_map_cal_memory(struct cal_block_data *cal_block,
		goto done;
	}

	mutex_lock(&common.common_lock);
	v = &common.voice[voc_index];

	result = voice_map_memory_physical_cmd(v,
@@ -3864,12 +3863,10 @@ static int voice_map_cal_memory(struct cal_block_data *cal_block,
			&cal_block->cal_data.paddr,
			cal_block->map_data.map_size);

		goto done_unlock;
		goto done;
	}

	cal_block->map_data.q6map_handle = common.cal_mem_handle;
done_unlock:
	mutex_unlock(&common.common_lock);
done:
	return result;
}