- int snd_pcm_new(struct snd_card * card, const char * id, int device, int playback_count, int capture_count, struct snd_pcm ** rpcm);
- the card instance
- the id string
- the device index (zero based)
- the number of substreams for playback
- the number of substreams for capture
- the pointer to store the new pcm instance
Creates a new PCM instance.
The pcm operators have to be set afterwards to the new instance via snd_pcm_set_ops.
Zero if successful, or a negative error code on failure.