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:
@@ -3029,6 +3029,11 @@ static int iris_vidioc_s_ctrl(struct file *file, void *priv,
|
||||
case V4L2_CID_PRIVATE_IRIS_ANTENNA:
|
||||
temp_val = ctrl->value;
|
||||
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;
|
||||
case V4L2_CID_RDS_TX_PTY:
|
||||
radio->pty = ctrl->value;
|
||||
|
||||
Reference in New Issue
Block a user