Revert "PAL: set device rotation with parameters"

This reverts commit a8aa303f0b61a12c5be491a7cb7413303e1b2bb6.

Change-Id: I36b63aa020b81dc39e7b4870b6765e603899fd43
diff --git a/session/src/SessionAlsaUtils.cpp b/session/src/SessionAlsaUtils.cpp
index 8118ead..ce1fc9d 100644
--- a/session/src/SessionAlsaUtils.cpp
+++ b/session/src/SessionAlsaUtils.cpp
@@ -2313,7 +2313,6 @@
 
                 if (strcmp(dAttr.custom_config.custom_key, "mspp") &&
                     dAttr.id == PAL_DEVICE_OUT_SPEAKER &&
-                    dAttr.config.ch_info.channels == 2 &&
                     ((sAttr.type == PAL_STREAM_LOW_LATENCY) ||
                     (sAttr.type == PAL_STREAM_ULTRA_LOW_LATENCY) ||
                     (sAttr.type == PAL_STREAM_PCM_OFFLOAD) ||
@@ -2322,7 +2321,9 @@
                     pal_param_device_rotation_t rotation;
                     rotation.rotation_type = rm->mOrientation == ORIENTATION_270 ?
                                             PAL_SPEAKER_ROTATION_RL : PAL_SPEAKER_ROTATION_LR;
-                    status = sess->setParameters(streamHandle, 0, PAL_PARAM_ID_DEVICE_ROTATION, &rotation);
+                    status = sess->handleDeviceRotation(streamHandle, rotation.rotation_type,
+                                                    pcmDevIds.at(0), mixerHandle, builder,
+                                                    aifBackEndsToConnect);
                     if (status != 0) {
                         PAL_ERR(LOG_TAG,"handleDeviceRotation failed");
                         status = 0; //rotaton setting failed is not fatal.