local: Add workaround for drivers which expect length in bytes

Some broken drivers expect the buffer length to be specified in bytes rather
than in samples. Add a workaround for those drivers.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>