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
charger: Use project pathmap

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

Merge AOSPA-legacy Changes