blob: 610c41fae119211884a8e366238f4c3d1e270822 (
plain)
1
2
3 README for alsa-driver
4
5 You can specify card support with the ALSA_CARDS environment variable. If
6 it's left empty the port will build all drivers. This is the default behavior
7 so the .footprint will mismatch if you set the ALSA_CARDS environment
8 variable!
9
10 If you want to set a specific card, pass the -if option to pkgmk like so:
11
12 # pkgmk -if
13 or
14 # prt-get install alsa-driver --margs="-if"
15
16 This will ignore the footprint.
17
18 EXAMPLE: To download and build alsa-driver with support for the emu10k1
19 and intel8x0 cards, use the following:
20
21 # env ALSA_CARDS="emu10k1,intel8x0" pkgmk -d -if
22 or
23 # env ALSA_CARDS="emu10k1,intel8x0" prt-get install alsa-driver --margs="-if"
24
25
26 -----------------------------------------------------------------------------
27
28 In order to load the proper modules at boot time, consider inserting
29 something like the following into your /etc/rc.modules file:
30
31 ----
32 # ALSA modules
33 /sbin/modprobe snd-emu10k1 <-- replace with your soundcard module
34 /sbin/modprobe snd-pcm-oss
35 /sbin/modprobe snd-mixer-oss
36 /sbin/modprobe snd-seq-oss
37 ----
38
39 As per the ALSA documentation, add something like the following to your
40 /etc/modprobe.conf file:
41
42 ----
43 # ALSA configuration
44 alias char-major-116 snd
45 alias snd-card-0 snd-emu10k1 <-- replace with your soundcard module
46 options snd cards_limit=1
47
48 # ALSA OSS configuration
49 alias char-major-14 soundcore
50 alias sound-slot-0 snd-card-0
51 alias sound-service-0-0 snd-mixer-oss
52 alias sound-service-0-1 snd-seq-oss
53 alias sound-service-0-3 snd-pcm-oss
54 alias sound-service-0-8 snd-seq-oss
55 alias sound-service-0-12 snd-pcm-oss
56 alias /dev/mixer snd-mixer-oss
57 alias /dev/dsp snd-pcm-oss
58 alias /dev/midi snd-seq-oss
59 ----
60
61 For saving and restoring mixer levels at shutdown and startup, see the
62 alsa-utils port and associated README file.
|