Refactor audio device.

Change-Id: Ia14c136d1a38e4c5fbc3f2d00b0d73692943a287