[media] bw-qcam: remove unnecessary qc_reset and qc_setscanmode calls
These are already done elsewhere. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
1888e4a974
commit
971dfc6781
@@ -421,8 +421,6 @@ static void qc_set(struct qcam *q)
|
|||||||
int val;
|
int val;
|
||||||
int val2;
|
int val2;
|
||||||
|
|
||||||
qc_reset(q);
|
|
||||||
|
|
||||||
/* Set the brightness. Yes, this is repetitive, but it works.
|
/* Set the brightness. Yes, this is repetitive, but it works.
|
||||||
* Shorter versions seem to fail subtly. Feel free to try :-). */
|
* Shorter versions seem to fail subtly. Feel free to try :-). */
|
||||||
/* I think the problem was in qc_command, not here -- bls */
|
/* I think the problem was in qc_command, not here -- bls */
|
||||||
@@ -879,10 +877,8 @@ static int qcam_s_ctrl(struct v4l2_ctrl *ctrl)
|
|||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ret == 0) {
|
if (ret == 0)
|
||||||
qc_setscanmode(qcam);
|
|
||||||
qcam->status |= QC_PARAM_CHANGE;
|
qcam->status |= QC_PARAM_CHANGE;
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user