accessoryservices/pluggeddisplay/pluggeddisplayengine/src/tvoutconfigforhdmi.cpp
branchRCL_3
changeset 6 6bb05bdcbe09
parent 0 4e1aa6a622a0
child 17 0b0048910c20
--- a/accessoryservices/pluggeddisplay/pluggeddisplayengine/src/tvoutconfigforhdmi.cpp	Fri Mar 12 15:50:01 2010 +0200
+++ b/accessoryservices/pluggeddisplay/pluggeddisplayengine/src/tvoutconfigforhdmi.cpp	Mon Mar 15 12:45:37 2010 +0200
@@ -34,6 +34,11 @@
 // CONSTANTS
 
 // MACROS
+#define SEND_VIA_PDENGINE(event) \
+                        ((CHDMICableStatusFSM*)&iFSM)->GetPDEngine()->Input( \
+                        EPDEFSMIdHDMICableStatus, \
+                        EPDEIfTVOutConfig, \
+                        event )
 
 // LOCAL CONSTANTS AND MACROS
 
@@ -435,9 +440,8 @@
                 }
             else if ( iTvConfig->HdmiCableConnected() )
                 {
-                iFSM.Input( 
-                        EPDEIfTVOutConfig, 
-                        EIfTVOutConfigEventCableConnected );
+                    // Send connected event to FSM via PDEngine where the multiple connection(analog and hdmi) logic is handled.
+                    SEND_VIA_PDENGINE(EIfTVOutConfigEventCableConnected);
                 }
             else
                 {