1SND_PCM_NEW(9) PCM API SND_PCM_NEW(9)
2
3
4
6 snd_pcm_new - create a new PCM instance
7
9 int snd_pcm_new(struct snd_card * card, const char * id, int device,
10 int playback_count, int capture_count,
11 struct snd_pcm ** rpcm);
12
14 card
15 the card instance
16
17 id
18 the id string
19
20 device
21 the device index (zero based)
22
23 playback_count
24 the number of substreams for playback
25
26 capture_count
27 the number of substreams for capture
28
29 rpcm
30 the pointer to store the new pcm instance
31
33 Creates a new PCM instance.
34
35 The pcm operators have to be set afterwards to the new instance via
36 snd_pcm_set_ops.
37
38 Returns zero if successful, or a negative error code on failure.
39
41Kernel Hackers Manual 2.6. November 2011 SND_PCM_NEW(9)