Configure audio encode parameters only for valid audio codec.

Added extra check for audio codec in profile

Change-Id: Ie1ac5259e3d544ce61af2b3ae5080ec9c6966e44