only reset dma on first open and last close