2 * Information interface for ALSA driver
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include <linux/init.h>
23 #include <linux/time.h>
25 #include <linux/slab.h>
26 #include <linux/smp_lock.h>
27 #include <linux/string.h>
28 #include <sound/core.h>
29 #include <sound/minors.h>
30 #include <sound/info.h>
31 #include <sound/version.h>
32 #include <linux/proc_fs.h>
33 #include <linux/mutex.h>
42 int snd_info_check_reserved_words(const char *str
)
44 static char *reserved
[] =
59 char **xstr
= reserved
;
62 if (!strcmp(*xstr
, str
))
66 if (!strncmp(str
, "card", 4))
71 static DEFINE_MUTEX(info_mutex
);
73 struct snd_info_private_data
{
74 struct snd_info_buffer
*rbuffer
;
75 struct snd_info_buffer
*wbuffer
;
76 struct snd_info_entry
*entry
;
77 void *file_private_data
;
80 static int snd_info_version_init(void);
81 static int snd_info_version_done(void);
82 static void snd_info_disconnect(struct snd_info_entry
*entry
);
85 /* resize the proc r/w buffer */
86 static int resize_info_buffer(struct snd_info_buffer
*buffer
,
91 nsize
= PAGE_ALIGN(nsize
);
92 nbuf
= krealloc(buffer
->buffer
, nsize
, GFP_KERNEL
);
96 buffer
->buffer
= nbuf
;
102 * snd_iprintf - printf on the procfs buffer
103 * @buffer: the procfs buffer
104 * @fmt: the printf format
106 * Outputs the string on the procfs buffer just like printf().
108 * Returns the size of output string.
110 int snd_iprintf(struct snd_info_buffer
*buffer
, const char *fmt
, ...)
117 if (buffer
->stop
|| buffer
->error
)
119 len
= buffer
->len
- buffer
->size
;
124 res
= vsnprintf(buffer
->buffer
+ buffer
->curr
, len
, fmt
, ap
);
128 err
= resize_info_buffer(buffer
, buffer
->len
+ PAGE_SIZE
);
131 len
= buffer
->len
- buffer
->size
;
142 EXPORT_SYMBOL(snd_iprintf
);
148 static struct proc_dir_entry
*snd_proc_root
;
149 struct snd_info_entry
*snd_seq_root
;
150 EXPORT_SYMBOL(snd_seq_root
);
152 #ifdef CONFIG_SND_OSSEMUL
153 struct snd_info_entry
*snd_oss_root
;
156 static void snd_remove_proc_entry(struct proc_dir_entry
*parent
,
157 struct proc_dir_entry
*de
)
160 remove_proc_entry(de
->name
, parent
);
163 static loff_t
snd_info_entry_llseek(struct file
*file
, loff_t offset
, int orig
)
165 struct snd_info_private_data
*data
;
166 struct snd_info_entry
*entry
;
169 data
= file
->private_data
;
171 mutex_lock(&entry
->access
);
172 switch (entry
->content
) {
173 case SNDRV_INFO_CONTENT_TEXT
:
176 file
->f_pos
= offset
;
180 file
->f_pos
+= offset
;
189 case SNDRV_INFO_CONTENT_DATA
:
190 if (entry
->c
.ops
->llseek
) {
191 ret
= entry
->c
.ops
->llseek(entry
,
192 data
->file_private_data
,
200 mutex_unlock(&entry
->access
);
204 static ssize_t
snd_info_entry_read(struct file
*file
, char __user
*buffer
,
205 size_t count
, loff_t
* offset
)
207 struct snd_info_private_data
*data
;
208 struct snd_info_entry
*entry
;
209 struct snd_info_buffer
*buf
;
213 data
= file
->private_data
;
214 if (snd_BUG_ON(!data
))
217 if (pos
< 0 || (long) pos
!= pos
|| (ssize_t
) count
< 0)
219 if ((unsigned long) pos
+ (unsigned long) count
< (unsigned long) pos
)
222 switch (entry
->content
) {
223 case SNDRV_INFO_CONTENT_TEXT
:
227 if (pos
>= buf
->size
)
229 size
= buf
->size
- pos
;
230 size
= min(count
, size
);
231 if (copy_to_user(buffer
, buf
->buffer
+ pos
, size
))
234 case SNDRV_INFO_CONTENT_DATA
:
235 if (pos
>= entry
->size
)
237 if (entry
->c
.ops
->read
) {
238 size
= entry
->size
- pos
;
239 size
= min(count
, size
);
240 size
= entry
->c
.ops
->read(entry
,
241 data
->file_private_data
,
242 file
, buffer
, size
, pos
);
246 if ((ssize_t
) size
> 0)
247 *offset
= pos
+ size
;
251 static ssize_t
snd_info_entry_write(struct file
*file
, const char __user
*buffer
,
252 size_t count
, loff_t
* offset
)
254 struct snd_info_private_data
*data
;
255 struct snd_info_entry
*entry
;
256 struct snd_info_buffer
*buf
;
260 data
= file
->private_data
;
261 if (snd_BUG_ON(!data
))
265 if (pos
< 0 || (long) pos
!= pos
|| (ssize_t
) count
< 0)
267 if ((unsigned long) pos
+ (unsigned long) count
< (unsigned long) pos
)
269 switch (entry
->content
) {
270 case SNDRV_INFO_CONTENT_TEXT
:
274 mutex_lock(&entry
->access
);
275 if (pos
+ count
>= buf
->len
) {
276 if (resize_info_buffer(buf
, pos
+ count
)) {
277 mutex_unlock(&entry
->access
);
281 if (copy_from_user(buf
->buffer
+ pos
, buffer
, count
)) {
282 mutex_unlock(&entry
->access
);
285 buf
->size
= pos
+ count
;
286 mutex_unlock(&entry
->access
);
289 case SNDRV_INFO_CONTENT_DATA
:
290 if (entry
->c
.ops
->write
&& count
> 0) {
291 size_t maxsize
= entry
->size
- pos
;
292 count
= min(count
, maxsize
);
293 size
= entry
->c
.ops
->write(entry
,
294 data
->file_private_data
,
295 file
, buffer
, count
, pos
);
299 if ((ssize_t
) size
> 0)
300 *offset
= pos
+ size
;
304 static int snd_info_entry_open(struct inode
*inode
, struct file
*file
)
306 struct snd_info_entry
*entry
;
307 struct snd_info_private_data
*data
;
308 struct snd_info_buffer
*buffer
;
309 struct proc_dir_entry
*p
;
312 mutex_lock(&info_mutex
);
314 entry
= p
== NULL
? NULL
: (struct snd_info_entry
*)p
->data
;
315 if (entry
== NULL
|| ! entry
->p
) {
316 mutex_unlock(&info_mutex
);
319 if (!try_module_get(entry
->module
)) {
323 mode
= file
->f_flags
& O_ACCMODE
;
324 if (mode
== O_RDONLY
|| mode
== O_RDWR
) {
325 if ((entry
->content
== SNDRV_INFO_CONTENT_DATA
&&
326 entry
->c
.ops
->read
== NULL
)) {
331 if (mode
== O_WRONLY
|| mode
== O_RDWR
) {
332 if ((entry
->content
== SNDRV_INFO_CONTENT_DATA
&&
333 entry
->c
.ops
->write
== NULL
)) {
338 data
= kzalloc(sizeof(*data
), GFP_KERNEL
);
344 switch (entry
->content
) {
345 case SNDRV_INFO_CONTENT_TEXT
:
346 if (mode
== O_RDONLY
|| mode
== O_RDWR
) {
347 buffer
= kzalloc(sizeof(*buffer
), GFP_KERNEL
);
350 data
->rbuffer
= buffer
;
351 buffer
->len
= PAGE_SIZE
;
352 buffer
->buffer
= kmalloc(buffer
->len
, GFP_KERNEL
);
353 if (buffer
->buffer
== NULL
)
356 if (mode
== O_WRONLY
|| mode
== O_RDWR
) {
357 buffer
= kzalloc(sizeof(*buffer
), GFP_KERNEL
);
360 data
->wbuffer
= buffer
;
361 buffer
->len
= PAGE_SIZE
;
362 buffer
->buffer
= kmalloc(buffer
->len
, GFP_KERNEL
);
363 if (buffer
->buffer
== NULL
)
367 case SNDRV_INFO_CONTENT_DATA
: /* data */
368 if (entry
->c
.ops
->open
) {
369 if ((err
= entry
->c
.ops
->open(entry
, mode
,
370 &data
->file_private_data
)) < 0) {
377 file
->private_data
= data
;
378 mutex_unlock(&info_mutex
);
379 if (entry
->content
== SNDRV_INFO_CONTENT_TEXT
&&
380 (mode
== O_RDONLY
|| mode
== O_RDWR
)) {
381 if (entry
->c
.text
.read
) {
382 mutex_lock(&entry
->access
);
383 entry
->c
.text
.read(entry
, data
->rbuffer
);
384 mutex_unlock(&entry
->access
);
391 kfree(data
->rbuffer
->buffer
);
392 kfree(data
->rbuffer
);
395 kfree(data
->wbuffer
->buffer
);
396 kfree(data
->wbuffer
);
401 module_put(entry
->module
);
403 mutex_unlock(&info_mutex
);
407 static int snd_info_entry_release(struct inode
*inode
, struct file
*file
)
409 struct snd_info_entry
*entry
;
410 struct snd_info_private_data
*data
;
413 mode
= file
->f_flags
& O_ACCMODE
;
414 data
= file
->private_data
;
416 switch (entry
->content
) {
417 case SNDRV_INFO_CONTENT_TEXT
:
419 kfree(data
->rbuffer
->buffer
);
420 kfree(data
->rbuffer
);
423 if (entry
->c
.text
.write
) {
424 entry
->c
.text
.write(entry
, data
->wbuffer
);
425 if (data
->wbuffer
->error
) {
426 snd_printk(KERN_WARNING
"data write error to %s (%i)\n",
428 data
->wbuffer
->error
);
431 kfree(data
->wbuffer
->buffer
);
432 kfree(data
->wbuffer
);
435 case SNDRV_INFO_CONTENT_DATA
:
436 if (entry
->c
.ops
->release
)
437 entry
->c
.ops
->release(entry
, mode
,
438 data
->file_private_data
);
441 module_put(entry
->module
);
446 static unsigned int snd_info_entry_poll(struct file
*file
, poll_table
* wait
)
448 struct snd_info_private_data
*data
;
449 struct snd_info_entry
*entry
;
452 data
= file
->private_data
;
457 switch (entry
->content
) {
458 case SNDRV_INFO_CONTENT_DATA
:
459 if (entry
->c
.ops
->poll
)
460 return entry
->c
.ops
->poll(entry
,
461 data
->file_private_data
,
463 if (entry
->c
.ops
->read
)
464 mask
|= POLLIN
| POLLRDNORM
;
465 if (entry
->c
.ops
->write
)
466 mask
|= POLLOUT
| POLLWRNORM
;
472 static long snd_info_entry_ioctl(struct file
*file
, unsigned int cmd
,
475 struct snd_info_private_data
*data
;
476 struct snd_info_entry
*entry
;
478 data
= file
->private_data
;
482 switch (entry
->content
) {
483 case SNDRV_INFO_CONTENT_DATA
:
484 if (entry
->c
.ops
->ioctl
)
485 return entry
->c
.ops
->ioctl(entry
,
486 data
->file_private_data
,
493 static int snd_info_entry_mmap(struct file
*file
, struct vm_area_struct
*vma
)
495 struct inode
*inode
= file
->f_path
.dentry
->d_inode
;
496 struct snd_info_private_data
*data
;
497 struct snd_info_entry
*entry
;
499 data
= file
->private_data
;
503 switch (entry
->content
) {
504 case SNDRV_INFO_CONTENT_DATA
:
505 if (entry
->c
.ops
->mmap
)
506 return entry
->c
.ops
->mmap(entry
,
507 data
->file_private_data
,
514 static const struct file_operations snd_info_entry_operations
=
516 .owner
= THIS_MODULE
,
517 .llseek
= snd_info_entry_llseek
,
518 .read
= snd_info_entry_read
,
519 .write
= snd_info_entry_write
,
520 .poll
= snd_info_entry_poll
,
521 .unlocked_ioctl
= snd_info_entry_ioctl
,
522 .mmap
= snd_info_entry_mmap
,
523 .open
= snd_info_entry_open
,
524 .release
= snd_info_entry_release
,
527 int __init
snd_info_init(void)
529 struct proc_dir_entry
*p
;
531 p
= create_proc_entry("asound", S_IFDIR
| S_IRUGO
| S_IXUGO
, NULL
);
535 #ifdef CONFIG_SND_OSSEMUL
537 struct snd_info_entry
*entry
;
538 if ((entry
= snd_info_create_module_entry(THIS_MODULE
, "oss", NULL
)) == NULL
)
540 entry
->mode
= S_IFDIR
| S_IRUGO
| S_IXUGO
;
541 if (snd_info_register(entry
) < 0) {
542 snd_info_free_entry(entry
);
545 snd_oss_root
= entry
;
548 #if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
550 struct snd_info_entry
*entry
;
551 if ((entry
= snd_info_create_module_entry(THIS_MODULE
, "seq", NULL
)) == NULL
)
553 entry
->mode
= S_IFDIR
| S_IRUGO
| S_IXUGO
;
554 if (snd_info_register(entry
) < 0) {
555 snd_info_free_entry(entry
);
558 snd_seq_root
= entry
;
561 snd_info_version_init();
562 snd_minor_info_init();
563 snd_minor_info_oss_init();
564 snd_card_info_init();
568 int __exit
snd_info_done(void)
570 snd_card_info_done();
571 snd_minor_info_oss_done();
572 snd_minor_info_done();
573 snd_info_version_done();
575 #if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
576 snd_info_free_entry(snd_seq_root
);
578 #ifdef CONFIG_SND_OSSEMUL
579 snd_info_free_entry(snd_oss_root
);
581 snd_remove_proc_entry(NULL
, snd_proc_root
);
592 * create a card proc file
595 int snd_info_card_create(struct snd_card
*card
)
598 struct snd_info_entry
*entry
;
600 if (snd_BUG_ON(!card
))
603 sprintf(str
, "card%i", card
->number
);
604 if ((entry
= snd_info_create_module_entry(card
->module
, str
, NULL
)) == NULL
)
606 entry
->mode
= S_IFDIR
| S_IRUGO
| S_IXUGO
;
607 if (snd_info_register(entry
) < 0) {
608 snd_info_free_entry(entry
);
611 card
->proc_root
= entry
;
616 * register the card proc file
619 int snd_info_card_register(struct snd_card
*card
)
621 struct proc_dir_entry
*p
;
623 if (snd_BUG_ON(!card
))
626 if (!strcmp(card
->id
, card
->proc_root
->name
))
629 p
= proc_symlink(card
->id
, snd_proc_root
, card
->proc_root
->name
);
632 card
->proc_root_link
= p
;
637 * called on card->id change
639 void snd_info_card_id_change(struct snd_card
*card
)
641 mutex_lock(&info_mutex
);
642 if (card
->proc_root_link
) {
643 snd_remove_proc_entry(snd_proc_root
, card
->proc_root_link
);
644 card
->proc_root_link
= NULL
;
646 if (strcmp(card
->id
, card
->proc_root
->name
))
647 card
->proc_root_link
= proc_symlink(card
->id
,
649 card
->proc_root
->name
);
650 mutex_unlock(&info_mutex
);
654 * de-register the card proc file
657 void snd_info_card_disconnect(struct snd_card
*card
)
661 mutex_lock(&info_mutex
);
662 if (card
->proc_root_link
) {
663 snd_remove_proc_entry(snd_proc_root
, card
->proc_root_link
);
664 card
->proc_root_link
= NULL
;
667 snd_info_disconnect(card
->proc_root
);
668 mutex_unlock(&info_mutex
);
672 * release the card proc file resources
675 int snd_info_card_free(struct snd_card
*card
)
679 snd_info_free_entry(card
->proc_root
);
680 card
->proc_root
= NULL
;
686 * snd_info_get_line - read one line from the procfs buffer
687 * @buffer: the procfs buffer
688 * @line: the buffer to store
689 * @len: the max. buffer size - 1
691 * Reads one line from the buffer and stores the string.
693 * Returns zero if successful, or 1 if error or EOF.
695 int snd_info_get_line(struct snd_info_buffer
*buffer
, char *line
, int len
)
699 if (len
<= 0 || buffer
->stop
|| buffer
->error
)
702 c
= buffer
->buffer
[buffer
->curr
++];
704 if (buffer
->curr
>= buffer
->size
)
709 if (buffer
->curr
>= buffer
->size
) {
714 while (c
!= '\n' && !buffer
->stop
) {
715 c
= buffer
->buffer
[buffer
->curr
++];
716 if (buffer
->curr
>= buffer
->size
)
723 EXPORT_SYMBOL(snd_info_get_line
);
726 * snd_info_get_str - parse a string token
727 * @dest: the buffer to store the string token
728 * @src: the original string
729 * @len: the max. length of token - 1
731 * Parses the original string and copy a token to the given
734 * Returns the updated pointer of the original string so that
735 * it can be used for the next call.
737 const char *snd_info_get_str(char *dest
, const char *src
, int len
)
741 while (*src
== ' ' || *src
== '\t')
743 if (*src
== '"' || *src
== '\'') {
745 while (--len
> 0 && *src
&& *src
!= c
) {
751 while (--len
> 0 && *src
&& *src
!= ' ' && *src
!= '\t') {
756 while (*src
== ' ' || *src
== '\t')
761 EXPORT_SYMBOL(snd_info_get_str
);
764 * snd_info_create_entry - create an info entry
765 * @name: the proc file name
767 * Creates an info entry with the given file name and initializes as
770 * Usually called from other functions such as
771 * snd_info_create_card_entry().
773 * Returns the pointer of the new instance, or NULL on failure.
775 static struct snd_info_entry
*snd_info_create_entry(const char *name
)
777 struct snd_info_entry
*entry
;
778 entry
= kzalloc(sizeof(*entry
), GFP_KERNEL
);
781 entry
->name
= kstrdup(name
, GFP_KERNEL
);
782 if (entry
->name
== NULL
) {
786 entry
->mode
= S_IFREG
| S_IRUGO
;
787 entry
->content
= SNDRV_INFO_CONTENT_TEXT
;
788 mutex_init(&entry
->access
);
789 INIT_LIST_HEAD(&entry
->children
);
790 INIT_LIST_HEAD(&entry
->list
);
795 * snd_info_create_module_entry - create an info entry for the given module
796 * @module: the module pointer
797 * @name: the file name
798 * @parent: the parent directory
800 * Creates a new info entry and assigns it to the given module.
802 * Returns the pointer of the new instance, or NULL on failure.
804 struct snd_info_entry
*snd_info_create_module_entry(struct module
* module
,
806 struct snd_info_entry
*parent
)
808 struct snd_info_entry
*entry
= snd_info_create_entry(name
);
810 entry
->module
= module
;
811 entry
->parent
= parent
;
816 EXPORT_SYMBOL(snd_info_create_module_entry
);
819 * snd_info_create_card_entry - create an info entry for the given card
820 * @card: the card instance
821 * @name: the file name
822 * @parent: the parent directory
824 * Creates a new info entry and assigns it to the given card.
826 * Returns the pointer of the new instance, or NULL on failure.
828 struct snd_info_entry
*snd_info_create_card_entry(struct snd_card
*card
,
830 struct snd_info_entry
* parent
)
832 struct snd_info_entry
*entry
= snd_info_create_entry(name
);
834 entry
->module
= card
->module
;
836 entry
->parent
= parent
;
841 EXPORT_SYMBOL(snd_info_create_card_entry
);
843 static void snd_info_disconnect(struct snd_info_entry
*entry
)
845 struct list_head
*p
, *n
;
846 struct proc_dir_entry
*root
;
848 list_for_each_safe(p
, n
, &entry
->children
) {
849 snd_info_disconnect(list_entry(p
, struct snd_info_entry
, list
));
854 list_del_init(&entry
->list
);
855 root
= entry
->parent
== NULL
? snd_proc_root
: entry
->parent
->p
;
857 snd_remove_proc_entry(root
, entry
->p
);
861 static int snd_info_dev_free_entry(struct snd_device
*device
)
863 struct snd_info_entry
*entry
= device
->device_data
;
864 snd_info_free_entry(entry
);
868 static int snd_info_dev_register_entry(struct snd_device
*device
)
870 struct snd_info_entry
*entry
= device
->device_data
;
871 return snd_info_register(entry
);
875 * snd_card_proc_new - create an info entry for the given card
876 * @card: the card instance
877 * @name: the file name
878 * @entryp: the pointer to store the new info entry
880 * Creates a new info entry and assigns it to the given card.
881 * Unlike snd_info_create_card_entry(), this function registers the
882 * info entry as an ALSA device component, so that it can be
883 * unregistered/released without explicit call.
884 * Also, you don't have to register this entry via snd_info_register(),
885 * since this will be registered by snd_card_register() automatically.
887 * The parent is assumed as card->proc_root.
889 * For releasing this entry, use snd_device_free() instead of
890 * snd_info_free_entry().
892 * Returns zero if successful, or a negative error code on failure.
894 int snd_card_proc_new(struct snd_card
*card
, const char *name
,
895 struct snd_info_entry
**entryp
)
897 static struct snd_device_ops ops
= {
898 .dev_free
= snd_info_dev_free_entry
,
899 .dev_register
= snd_info_dev_register_entry
,
900 /* disconnect is done via snd_info_card_disconnect() */
902 struct snd_info_entry
*entry
;
905 entry
= snd_info_create_card_entry(card
, name
, card
->proc_root
);
908 if ((err
= snd_device_new(card
, SNDRV_DEV_INFO
, entry
, &ops
)) < 0) {
909 snd_info_free_entry(entry
);
917 EXPORT_SYMBOL(snd_card_proc_new
);
920 * snd_info_free_entry - release the info entry
921 * @entry: the info entry
923 * Releases the info entry. Don't call this after registered.
925 void snd_info_free_entry(struct snd_info_entry
* entry
)
930 mutex_lock(&info_mutex
);
931 snd_info_disconnect(entry
);
932 mutex_unlock(&info_mutex
);
935 if (entry
->private_free
)
936 entry
->private_free(entry
);
940 EXPORT_SYMBOL(snd_info_free_entry
);
943 * snd_info_register - register the info entry
944 * @entry: the info entry
946 * Registers the proc info entry.
948 * Returns zero if successful, or a negative error code on failure.
950 int snd_info_register(struct snd_info_entry
* entry
)
952 struct proc_dir_entry
*root
, *p
= NULL
;
954 if (snd_BUG_ON(!entry
))
956 root
= entry
->parent
== NULL
? snd_proc_root
: entry
->parent
->p
;
957 mutex_lock(&info_mutex
);
958 p
= create_proc_entry(entry
->name
, entry
->mode
, root
);
960 mutex_unlock(&info_mutex
);
963 if (!S_ISDIR(entry
->mode
))
964 p
->proc_fops
= &snd_info_entry_operations
;
965 p
->size
= entry
->size
;
969 list_add_tail(&entry
->list
, &entry
->parent
->children
);
970 mutex_unlock(&info_mutex
);
974 EXPORT_SYMBOL(snd_info_register
);
980 static struct snd_info_entry
*snd_info_version_entry
;
982 static void snd_info_version_read(struct snd_info_entry
*entry
, struct snd_info_buffer
*buffer
)
985 "Advanced Linux Sound Architecture Driver Version "
986 CONFIG_SND_VERSION CONFIG_SND_DATE
".\n"
990 static int __init
snd_info_version_init(void)
992 struct snd_info_entry
*entry
;
994 entry
= snd_info_create_module_entry(THIS_MODULE
, "version", NULL
);
997 entry
->c
.text
.read
= snd_info_version_read
;
998 if (snd_info_register(entry
) < 0) {
999 snd_info_free_entry(entry
);
1002 snd_info_version_entry
= entry
;
1006 static int __exit
snd_info_version_done(void)
1008 snd_info_free_entry(snd_info_version_entry
);
1012 #endif /* CONFIG_PROC_FS */