hal: fix fragment size calculation for compressed offload usecase

Compress offload fragment size is using duration_us provided in
offload info even if its set to -1, leading to incorrect and smaller
value which in turns results in higher power consumption.
Update check for duration us to exclude invalid values and use it for
calculating fragment size only if its within specified range.

Change-Id: Ib134a67d95fe663f5f77f688469bee1bf0ce1708
1 file changed