Blame view
sound/last.c
628 Bytes
1a59d1b8e treewide: Replace... |
1 |
// SPDX-License-Identifier: GPL-2.0-or-later |
1da177e4c Linux-2.6.12-rc2 |
2 3 |
/* * Advanced Linux Sound Architecture |
c1017a4cd [ALSA] Changed Ja... |
4 |
* Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
1da177e4c Linux-2.6.12-rc2 |
5 |
*/ |
1da177e4c Linux-2.6.12-rc2 |
6 7 8 9 10 |
#include <linux/init.h> #include <sound/core.h> static int __init alsa_sound_last_init(void) { |
f4fa96895 ALSA: core: Don't... |
11 |
struct snd_card *card; |
1da177e4c Linux-2.6.12-rc2 |
12 13 14 15 |
int idx, ok = 0; printk(KERN_INFO "ALSA device list: "); |
f4fa96895 ALSA: core: Don't... |
16 17 18 19 20 21 |
for (idx = 0; idx < SNDRV_CARDS; idx++) { card = snd_card_ref(idx); if (card) { printk(KERN_INFO " #%i: %s ", idx, card->longname); snd_card_unref(card); |
1da177e4c Linux-2.6.12-rc2 |
22 23 |
ok++; } |
f4fa96895 ALSA: core: Don't... |
24 |
} |
1da177e4c Linux-2.6.12-rc2 |
25 26 27 28 29 |
if (ok == 0) printk(KERN_INFO " No soundcards found. "); return 0; } |
590b4775d ALSA: workaround:... |
30 |
late_initcall_sync(alsa_sound_last_init); |