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

Commit d842d95e authored by Venkateshwarlu Domakonda's avatar Venkateshwarlu Domakonda
Browse files

radio: iris: Fix the issue with multiple enable cmds



Driver sending enable cmds to controller even it is already in ON.
Send error response to enable cmd,if the controller is already ON.

CRs-Fixed: 818067
Change-Id: I4a5ad70bfe782a29dc66a42c4cad7ec6e9ecf85c
Signed-off-by: default avatarVenkateshwarlu Domakonda <vdomak@codeaurora.org>
parent fb5596bf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3945,6 +3945,11 @@ static int iris_vidioc_s_ctrl(struct file *file, void *priv,
	case V4L2_CID_PRIVATE_IRIS_STATE:
		switch (ctrl->value) {
		case FM_RECV:
			if (radio->mode != FM_OFF) {
				FMDERR("FM is not in proper state\n");
				retval = -EINVAL;
				goto END;
			}
			if (is_enable_rx_possible(radio) != 0) {
				FMDERR("%s: fm is not in proper state\n",
					 __func__);