1SND_CARD_PROC_NEW(9) Proc Info API SND_CARD_PROC_NEW(9)
2
3
4
6 snd_card_proc_new - create an info entry for the given card
7
9 int snd_card_proc_new(struct snd_card * card, const char * name,
10 struct snd_info_entry ** entryp);
11
13 card
14 the card instance
15
16 name
17 the file name
18
19 entryp
20 the pointer to store the new info entry
21
23 Creates a new info entry and assigns it to the given card. Unlike
24 snd_info_create_card_entry, this function registers the info entry as
25 an ALSA device component, so that it can be unregistered/released
26 without explicit call. Also, you don't have to register this entry via
27 snd_info_register, since this will be registered by snd_card_register
28 automatically.
29
30 The parent is assumed as card->proc_root.
31
32 For releasing this entry, use snd_device_free instead of
33 snd_info_free_entry.
34
35 Returns zero if successful, or a negative error code on failure.
36
38Kernel Hackers Manual 2.6. November 2011 SND_CARD_PROC_NEW(9)