snd_pcm_attach_substream
int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file,
err = snd_pcm_attach_substream(pcm, stream, file, &substream);