radio: iris: Return proper antenna type for get antenna IOCTL

FM TX UI turns off due to the invalid return value in response
to GetAntenna on FM TX Restart.Save the type of the antenna that
is set as part of SetAntenna.Return that in response to getAntenna.

Change-Id: I35cf0ca36ed60a3c94b4bc98e020053763b24c88
CRs-Fixed: 332432
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
This commit is contained in:
Srinivasa Rao Uppala
2012-01-23 20:11:13 +05:30
parent 749ce60bb4
commit 2f51a97c59

View File

@@ -3029,6 +3029,11 @@ static int iris_vidioc_s_ctrl(struct file *file, void *priv,
case V4L2_CID_PRIVATE_IRIS_ANTENNA: case V4L2_CID_PRIVATE_IRIS_ANTENNA:
temp_val = ctrl->value; temp_val = ctrl->value;
retval = hci_fm_set_antenna(&temp_val, radio->fm_hdev); retval = hci_fm_set_antenna(&temp_val, radio->fm_hdev);
if (retval < 0) {
FMDERR("Set Antenna failed retval = %x", retval);
return retval;
}
radio->g_antenna = ctrl->value;
break; break;
case V4L2_CID_RDS_TX_PTY: case V4L2_CID_RDS_TX_PTY:
radio->pty = ctrl->value; radio->pty = ctrl->value;