/*1* Advanced Linux Sound Architecture2* Copyright (c) by Jaroslav Kysela <[email protected]>3*4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*19*/2021#define SNDRV_MAIN_OBJECT_FILE22#include <linux/init.h>23#include <sound/core.h>2425static int __init alsa_sound_last_init(void)26{27int idx, ok = 0;2829printk(KERN_INFO "ALSA device list:\n");30for (idx = 0; idx < SNDRV_CARDS; idx++)31if (snd_cards[idx] != NULL) {32printk(KERN_INFO " #%i: %s\n", idx, snd_cards[idx]->longname);33ok++;34}35if (ok == 0)36printk(KERN_INFO " No soundcards found.\n");37return 0;38}3940__initcall(alsa_sound_last_init);414243