Back to home page

LXR

 
 

    


0001 /*
0002  *  Advanced Linux Sound Architecture
0003  *  Copyright (c) by Jaroslav Kysela <perex@perex.cz>
0004  *
0005  *
0006  *   This program is free software; you can redistribute it and/or modify
0007  *   it under the terms of the GNU General Public License as published by
0008  *   the Free Software Foundation; either version 2 of the License, or
0009  *   (at your option) any later version.
0010  *
0011  *   This program is distributed in the hope that it will be useful,
0012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  *   GNU General Public License for more details.
0015  *
0016  *   You should have received a copy of the GNU General Public License
0017  *   along with this program; if not, write to the Free Software
0018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
0019  *
0020  */
0021 
0022 #include <linux/init.h>
0023 #include <sound/core.h>
0024 
0025 static int __init alsa_sound_last_init(void)
0026 {
0027     int idx, ok = 0;
0028     
0029     printk(KERN_INFO "ALSA device list:\n");
0030     for (idx = 0; idx < SNDRV_CARDS; idx++)
0031         if (snd_cards[idx] != NULL) {
0032             printk(KERN_INFO "  #%i: %s\n", idx, snd_cards[idx]->longname);
0033             ok++;
0034         }
0035     if (ok == 0)
0036         printk(KERN_INFO "  No soundcards found.\n");
0037     return 0;
0038 }
0039 
0040 late_initcall_sync(alsa_sound_last_init);