Reworked device opening, only open the device with the access that we currently needs. Avoids transmitting recording data on playback with padsp.