fix SIGFPE in hwcomposer caused by modulo by zero

Change-Id: Ibc03dabe6b31db325b949c6f6bc58a4194d829ce
fix pvr build for kernel optimize for size

Change-Id: I780bc3b44a03be59912a9d2e6ee1b46e683b785f
Fix headset microphone operations

Change-Id: I5aa821b3c54dda800a74035b0b6ed357e15b5fe4