snd_pcm_new_stream — create a new PCM stream
the pcm instance
the stream direction, SNDRV_PCM_STREAM_XXX
the number of substreams
Creates a new stream for the pcm. The corresponding stream on the pcm must have been empty before calling this, i.e. zero must be given to the argument of snd_pcm_new.
Returns zero if successful, or a negative error code on failure.