1SND_PCM_NEW_INTERNAL(9) PCM API SND_PCM_NEW_INTERNAL(9)
2
3
4
6 snd_pcm_new_internal - create a new internal PCM instance
7
9 int snd_pcm_new_internal(struct snd_card * card, const char * id,
10 int device, int playback_count,
11 int capture_count, 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 - shared with normal PCMs)
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 internal PCM instance with no userspace device or procfs
34 entries. This is used by ASoC Back End PCMs in order to create a PCM
35 that will only be used internally by kernel drivers. i.e. it cannot be
36 opened by userspace. It provides existing ASoC components drivers with
37 a substream and access to any private data.
38
39 The pcm operators have to be set afterwards to the new instance via
40 snd_pcm_set_ops.
41
43 Zero if successful, or a negative error code on failure.
44
46Kernel Hackers Manual 3.10 June 2019 SND_PCM_NEW_INTERNAL(9)