system: Update function to calculate bytes per sample for offload

Update function to calculate bytes per sample for offload format

Change-Id: I46b78024293be959ad5d1db1f583933d2ab14576
Merge remote-tracking branch 'cm/cm-11.0' into kitkat
Merge pull request #8 from AOSPA-legacy/kitkat

pulling pa-legacy changes