let PCM device share some codes between playback and capture