radio: iris: Maintain different FM states
Unexpected disabled event gets queued when FM is turned
on after turning off FM, sending SSR command. FM fails
to turn on as this causes mismatch of fm states in upper layer.
Maintain different states FM OFF, FM RECV TURNING ON, FM
TRANS TURNING ON, FM_OFF, FM CALIBRATION and only queue
unexpected disabled event when either RECV or TRANS is enabled
CRs-Fixed: 518378
Change-Id: Iffa55bef3dc5ce605cf270ad41f4c9a8b8d70392
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
diff --git a/include/media/radio-iris.h b/include/media/radio-iris.h
index 419e055..d28a8c0 100644
--- a/include/media/radio-iris.h
+++ b/include/media/radio-iris.h
@@ -627,7 +627,9 @@
FM_TRANS,
FM_RESET,
FM_CALIB,
- FM_TURNING_OFF
+ FM_TURNING_OFF,
+ FM_RECV_TURNING_ON,
+ FM_TRANS_TURNING_ON,
};
enum emphasis_type {