sdm: Move display state and input validation in appropriate place

1. Perform display specific settings only if the display state and
   input parameters are valid.
2. Set and reset pending_commit on prepare and commit respectively.

Change-Id: I1f2093f6a24e7ee115dd01da6796f78af618bc02
CRs-Fixed: 1005180
8 files changed