msm: camera: Fix for bandwidth update

Bandwidth should be calculated using all clients state,
instead of the state of the caller.

Change-Id: I28f78c9753dd58c821aa25afd28eb4ed83081e81
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
This commit is contained in:
Kevin Chan 2013-04-12 18:49:11 -07:00 committed by Iliyan Malchev
parent e66d01dc6d
commit 6b4e25c7f6

View file

@ -121,7 +121,7 @@ int msm_isp_update_bandwidth(enum msm_isp_hw_client client,
path->vectors[0].ab = MSM_ISP_MIN_AB;
path->vectors[0].ib = MSM_ISP_MIN_IB;
for (i = 0; i < MAX_ISP_CLIENT; i++) {
if (isp_bandwidth_mgr.client_info[client].active) {
if (isp_bandwidth_mgr.client_info[i].active) {
path->vectors[0].ab +=
isp_bandwidth_mgr.client_info[i].ab;
path->vectors[0].ib +=