audio_hw: Clean up out_write and in_read frame computation
am: 928efbe7e5

Change-Id: I64b5ada74b8f790ee2a37b4a0a4b070ada9e8818