Add EFFECT_CMD_SET_PARAM parameter checking

Bug: 30204301
Change-Id: Ib9c3ee1c2f23c96f8f7092dd9e146bc453d7a290
(cherry picked from commit e4a1d91501d47931dbae19c47815952378787ab6)

bool AudioFlinger::EffectModule::isProcessEnabled() const
{
 if (mStatus != NO_ERROR) {
 return false;
 }

 switch (mState) {
 case RESTART:
 case ACTIVE:
 case STOPPING:
 case STOPPED:
 return true;
 case IDLE:
 case STARTING:
 case DESTROYED:
 default:
 return false;
 }
}

bool AudioFlinger::EffectModule::isProcessEnabled() const
{
 if (mStatus != NO_ERROR) {
 return false;
 }

 switch (mState) {
 case RESTART:
 case ACTIVE:
 case STOPPING:
 case STOPPED:
 return true;
 case IDLE:
 case STARTING:
 case DESTROYED:
 default:
 return false;
 }
}
