1 |
Actually, FWIW, alsa-driver-1.0.2c should work with the 2.6.x kernels. |
2 |
In order to do that, ALSA support in the kernel must be turned off or |
3 |
configured as a module (so it's overwritten by alsa-driver). |
4 |
|
5 |
For the init script loading multiple cards trouble, go over to |
6 |
ghttp://bugs.gentoo.org/show_bug.cgi?id=41600 and add yourself to the CC |
7 |
of that bug so you can help me figure this problem out. |
8 |
|
9 |
The alsasound init script will load your modules. It comes in the |
10 |
alsa-utils package and should be added to the 'boot' runlevel: |
11 |
'rc-update add alsasound boot'. Don't rely on hotplug to set you up |
12 |
properly. |
13 |
|
14 |
--Jeremy |
15 |
|
16 |
On Tue, 2004-02-17 at 10:24, Brad House wrote: |
17 |
> This should NOT have been posted to gentoo-dev. |
18 |
> This should go to gentoo-users. |
19 |
> |
20 |
> do NOT use alsa-driver for 2.6 kernels! |
21 |
> Use ONLY the in-kernel sound drivers, unmerge |
22 |
> alsa-driver! |
23 |
> The in-kernel alsa is much more up to date anyhow, |
24 |
> and gentoo-dev-sources has later Alsa pulls. |
25 |
> Just compile all sound drivers as modules, emerge hotplug, |
26 |
> and rc-update add hotplug default |
27 |
> It will auto-load whatever module is appropriate for your |
28 |
> soundcard on boot. |
29 |
> |
30 |
> It should just work, you can use alsasound if you wish, but |
31 |
> all it will accomplish is saving your volume settings, hotplug |
32 |
> should take care of the module loading. |
33 |
> |
34 |
> -Brad |
35 |
> |
36 |
> > Hi All- |
37 |
> > |
38 |
> > (To the developers, though this may be a long post and it may initially |
39 |
> > appear to be appropriate for strictly the user list, I'm pretty sure |
40 |
> > there is an important point for you near the bottom (about the |
41 |
> > script /etc/init.d/alsasound). I'm not a developer, so I'm not certain |
42 |
> > that you'll find it noteworthy, and so if I'm wrong, my apologies for |
43 |
> > sending this cc to the developer's list. Also, is there a list archive? |
44 |
> > I considered searching for this subject in a list archive, but didn't see |
45 |
> > one listed on http://www.gentoo.org/main/en/lists.xml) |
46 |
> > |
47 |
> > I'm following the thread "Alsa & 2.6.1" on gentoo-user since it seems to |
48 |
> > be related, but my issues are slightly different---or maybe I just have |
49 |
> > more detail than I see described in that thread, not sure. This may be a |
50 |
> > long post, so I offer apologies for that in advance. |
51 |
> > |
52 |
> > Anyway, I've been using the Gentoo Linux ALSA Guide, but it clearly |
53 |
> > distinguishes between the kernel versions 2.4 and 2.5/2.6. I see (from |
54 |
> > the Gentoo Guide) that much of the ALSA code is already in 2.6.x. |
55 |
> > |
56 |
> > I've noted that the Guide describes setting up ALSA with a 2.4.x kernel, |
57 |
> > and it seems to be that the instructions for doing so with a 2.6.x kernel |
58 |
> > would probably be different, in light of the presence of ALSA in the 2.6 |
59 |
> > kernel, but I'm not sure exactly how they should differ. |
60 |
> > |
61 |
> > Anyway, my first specific problem comes when following the "ALSA modules" |
62 |
> > section of the guide. I've grep'd my /proc/pci file and also done lspci |
63 |
> > with the following relevant output: |
64 |
> > ====================================== |
65 |
> > # grep audio /proc/pci |
66 |
> > Multimedia audio controller: PCI device 10de:006a (nVidia Corporation |
67 |
> > (rev 161). |
68 |
> > |
69 |
> > # lspci | grep audio |
70 |
> > 00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio |
71 |
> > Controler (MCP) (rev a1) |
72 |
> > ====================================== |
73 |
> > |
74 |
> > This is an Asus A7N8X motherboard, with onboard 6 channel audio that the |
75 |
> > motherboard docs describe as a "Realtek ALC650 6CH with built-in HP |
76 |
> > amplifier". I didn't find such a device in the ALSA Soundcard Matrix |
77 |
> > linked to from the Gentoo Guide, but I did find in the Matrix |
78 |
> > what /proc/pci and lspci show. There's only one Nvidia device ("nForce") |
79 |
> > in the Matrix, and since I seem to have nForce2 (output from lspci), I |
80 |
> > thought it would be the appropriate entry for me to use. The Matrix |
81 |
> > mentions the module: snd-intel8x0 as being associated with this device. |
82 |
> > |
83 |
> > So, following the Gentoo Guide, I did a: |
84 |
> > # env ALSA_CARDS='intel8x0' emerge alsa-driver |
85 |
> > |
86 |
> > Now, I'm not really sure if this step is required since I did build |
87 |
> > modular ALSA support with my 2.6.1 kernel build, but I tried it anyway |
88 |
> > and it failed with error listed here: |
89 |
> > |
90 |
> > ============================================= |
91 |
> > In file included from |
92 |
> > /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/sound/driver.h:42, |
93 |
> > from |
94 |
> > /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/alsa-kernel/core/oss/rate.c:22, |
95 |
> > from rate.c:2: |
96 |
> > /var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/include/adriver.h:42:31: |
97 |
> > linux/modversions.h: No such file or directory |
98 |
> > make[3]: *** [fastdep] Error 1 |
99 |
> > make[3]: Leaving directory |
100 |
> > `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore/oss' |
101 |
> > make[2]: *** [_sfdep_oss] Error 2 |
102 |
> > make[2]: Leaving directory |
103 |
> > `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8/acore' |
104 |
> > make[1]: *** [dep] Error 1 |
105 |
> > make[1]: Leaving directory |
106 |
> > `/var/tmp/portage/alsa-driver-0.9.8/work/alsa-driver-0.9.8' |
107 |
> > make: *** [include/sndversions.h] Error 2 |
108 |
> > |
109 |
> > !!! ERROR: media-sound/alsa-driver-0.9.8 failed. |
110 |
> > !!! Function src_compile, Line 64, Exitcode 2 |
111 |
> > !!! Parallel Make Failed |
112 |
> > |
113 |
> > ============================================= |
114 |
> > |
115 |
> > As is clear here, I do seem to have the file, but apparently the make is |
116 |
> > not finding it where it resides: |
117 |
> > # locate modversions.h |
118 |
> > /usr/src/linux-2.6.1-gentoo-r1/include/config/modversions.h |
119 |
> > |
120 |
> > FWIW: |
121 |
> > # cat /usr/src/linux-2.6.1-gentoo-r1/include/config/modversions.h |
122 |
> > #define CONFIG_MODVERSIONS 1 |
123 |
> > |
124 |
> > The following is the relevant portion of my kernel .config file. I was |
125 |
> > being lazy when I built it and didn't look up the particular sound |
126 |
> > hardware that I had and instead just built all likely devices as modules, |
127 |
> > thinking that I'd only insmod the one that I needed. This detail may be |
128 |
> > important because when I do an lsmod now (after following the steps in |
129 |
> > the Gentoo Guide), I see what looks like ALL of the sound device modules |
130 |
> > (that I built) loaded into the kernel. Perhaps not surprisingly, this |
131 |
> > seems to be causing lots of problems in and of itself. So, my |
132 |
> > kernel .config file (Sound portions): |
133 |
> > |
134 |
> > ============================================= |
135 |
> > |
136 |
> > # |
137 |
> > # Sound |
138 |
> > # |
139 |
> > CONFIG_SOUND=y |
140 |
> > |
141 |
> > # |
142 |
> > # Advanced Linux Sound Architecture |
143 |
> > # |
144 |
> > CONFIG_SND=m |
145 |
> > CONFIG_SND_SEQUENCER=m |
146 |
> > CONFIG_SND_SEQ_DUMMY=m |
147 |
> > CONFIG_SND_OSSEMUL=y |
148 |
> > CONFIG_SND_MIXER_OSS=m |
149 |
> > CONFIG_SND_PCM_OSS=m |
150 |
> > CONFIG_SND_SEQUENCER_OSS=y |
151 |
> > CONFIG_SND_RTCTIMER=m |
152 |
> > # CONFIG_SND_VERBOSE_PRINTK is not set |
153 |
> > # CONFIG_SND_DEBUG is not set |
154 |
> > |
155 |
> > # |
156 |
> > # Generic devices |
157 |
> > # |
158 |
> > CONFIG_SND_DUMMY=m |
159 |
> > CONFIG_SND_VIRMIDI=m |
160 |
> > CONFIG_SND_MTPAV=m |
161 |
> > CONFIG_SND_SERIAL_U16550=m |
162 |
> > CONFIG_SND_MPU401=m |
163 |
> > |
164 |
> > # |
165 |
> > # PCI devices |
166 |
> > # |
167 |
> > CONFIG_SND_ALI5451=m |
168 |
> > CONFIG_SND_AZT3328=m |
169 |
> > CONFIG_SND_CS46XX=m |
170 |
> > # CONFIG_SND_CS46XX_NEW_DSP is not set |
171 |
> > CONFIG_SND_CS4281=m |
172 |
> > CONFIG_SND_EMU10K1=m |
173 |
> > CONFIG_SND_KORG1212=m |
174 |
> > CONFIG_SND_NM256=m |
175 |
> > CONFIG_SND_RME32=m |
176 |
> > CONFIG_SND_RME96=m |
177 |
> > CONFIG_SND_RME9652=m |
178 |
> > CONFIG_SND_HDSP=m |
179 |
> > CONFIG_SND_TRIDENT=m |
180 |
> > CONFIG_SND_YMFPCI=m |
181 |
> > CONFIG_SND_ALS4000=m |
182 |
> > CONFIG_SND_CMIPCI=m |
183 |
> > CONFIG_SND_ENS1370=m |
184 |
> > CONFIG_SND_ENS1371=m |
185 |
> > CONFIG_SND_ES1938=m |
186 |
> > CONFIG_SND_ES1968=m |
187 |
> > CONFIG_SND_MAESTRO3=m |
188 |
> > CONFIG_SND_FM801=m |
189 |
> > CONFIG_SND_ICE1712=m |
190 |
> > CONFIG_SND_ICE1724=m |
191 |
> > CONFIG_SND_INTEL8X0=m |
192 |
> > CONFIG_SND_SONICVIBES=m |
193 |
> > CONFIG_SND_VIA82XX=m |
194 |
> > CONFIG_SND_VX222=m |
195 |
> > |
196 |
> > # |
197 |
> > # ALSA USB devices |
198 |
> > # |
199 |
> > CONFIG_SND_USB_AUDIO=m |
200 |
> > |
201 |
> > # |
202 |
> > # Open Sound System |
203 |
> > # |
204 |
> > CONFIG_SOUND_PRIME=m |
205 |
> > CONFIG_SOUND_BT878=m |
206 |
> > CONFIG_SOUND_CMPCI=m |
207 |
> > # CONFIG_SOUND_CMPCI_FM is not set |
208 |
> > # CONFIG_SOUND_CMPCI_MIDI is not set |
209 |
> > # CONFIG_SOUND_CMPCI_JOYSTICK is not set |
210 |
> > # CONFIG_SOUND_CMPCI_CM8738 is not set |
211 |
> > CONFIG_SOUND_EMU10K1=m |
212 |
> > # CONFIG_MIDI_EMU10K1 is not set |
213 |
> > CONFIG_SOUND_FUSION=m |
214 |
> > CONFIG_SOUND_CS4281=m |
215 |
> > CONFIG_SOUND_ES1370=m |
216 |
> > CONFIG_SOUND_ES1371=m |
217 |
> > CONFIG_SOUND_ESSSOLO1=m |
218 |
> > CONFIG_SOUND_MAESTRO=m |
219 |
> > # CONFIG_SOUND_MAESTRO3 is not set |
220 |
> > CONFIG_SOUND_ICH=m |
221 |
> > CONFIG_SOUND_SONICVIBES=m |
222 |
> > CONFIG_SOUND_TRIDENT=m |
223 |
> > CONFIG_SOUND_MSNDCLAS=m |
224 |
> > CONFIG_MSNDCLAS_INIT_FILE="/etc/sound/msndinit.bin" |
225 |
> > CONFIG_MSNDCLAS_PERM_FILE="/etc/sound/msndperm.bin" |
226 |
> > CONFIG_SOUND_MSNDPIN=m |
227 |
> > CONFIG_MSNDPIN_INIT_FILE="/etc/sound/pndspini.bin" |
228 |
> > CONFIG_MSNDPIN_PERM_FILE="/etc/sound/pndsperm.bin" |
229 |
> > CONFIG_SOUND_VIA82CXXX=m |
230 |
> > # CONFIG_MIDI_VIA82CXXX is not set |
231 |
> > CONFIG_SOUND_OSS=m |
232 |
> > CONFIG_SOUND_TRACEINIT=y |
233 |
> > # CONFIG_SOUND_DMAP is not set |
234 |
> > # CONFIG_SOUND_AD1816 is not set |
235 |
> > # CONFIG_SOUND_AD1889 is not set |
236 |
> > CONFIG_SOUND_SGALAXY=m |
237 |
> > CONFIG_SOUND_ADLIB=m |
238 |
> > CONFIG_SOUND_ACI_MIXER=m |
239 |
> > CONFIG_SOUND_CS4232=m |
240 |
> > CONFIG_SOUND_SSCAPE=m |
241 |
> > CONFIG_SOUND_GUS=m |
242 |
> > CONFIG_SOUND_GUS16=y |
243 |
> > CONFIG_SOUND_GUSMAX=y |
244 |
> > CONFIG_SOUND_VMIDI=m |
245 |
> > CONFIG_SOUND_TRIX=m |
246 |
> > CONFIG_SOUND_MSS=m |
247 |
> > CONFIG_SOUND_MPU401=m |
248 |
> > CONFIG_SOUND_NM256=m |
249 |
> > CONFIG_SOUND_MAD16=m |
250 |
> > # CONFIG_MAD16_OLDCARD is not set |
251 |
> > CONFIG_SOUND_PAS=m |
252 |
> > CONFIG_SOUND_PSS=m |
253 |
> > # CONFIG_PSS_MIXER is not set |
254 |
> > CONFIG_SOUND_SB=m |
255 |
> > CONFIG_SOUND_AWE32_SYNTH=m |
256 |
> > CONFIG_SOUND_WAVEFRONT=m |
257 |
> > CONFIG_SOUND_MAUI=m |
258 |
> > CONFIG_SOUND_YM3812=m |
259 |
> > CONFIG_SOUND_OPL3SA1=m |
260 |
> > CONFIG_SOUND_OPL3SA2=m |
261 |
> > CONFIG_SOUND_YMFPCI=m |
262 |
> > # CONFIG_SOUND_YMFPCI_LEGACY is not set |
263 |
> > CONFIG_SOUND_UART6850=m |
264 |
> > CONFIG_SOUND_AEDSP16=m |
265 |
> > # CONFIG_SC6600 is not set |
266 |
> > # CONFIG_AEDSP16_MSS is not set |
267 |
> > # CONFIG_AEDSP16_SBPRO is not set |
268 |
> > # CONFIG_AEDSP16_MPU401 is not set |
269 |
> > CONFIG_SOUND_TVMIXER=m |
270 |
> > CONFIG_SOUND_KAHLUA=m |
271 |
> > CONFIG_SOUND_ALI5455=m |
272 |
> > CONFIG_SOUND_FORTE=m |
273 |
> > CONFIG_SOUND_RME96XX=m |
274 |
> > CONFIG_SOUND_AD1980=m |
275 |
> > |
276 |
> > ============================================= |
277 |
> > |
278 |
> > So, continuing with this saga, the very first part of the instructions in |
279 |
> > the Gentoo Guide (energe alsa-driver) fail for me. Maybe it's not |
280 |
> > necessary? |
281 |
> > |
282 |
> > But as I mentioned above, I now have other problems too. |
283 |
> > |
284 |
> > What I did to get where I am now was simply follow the Gentoo Guide, |
285 |
> > specifically: |
286 |
> > |
287 |
> > "ALSA modules" |
288 |
> > env ALSA_CARDS='intel8x0' emerge alsa-driver |
289 |
> > (I also edited my /etc/make.conf and added ALSA_CARDS="intel8x0" in case |
290 |
> > this would influence the loading of modules, but no help there) |
291 |
> > |
292 |
> > |
293 |
> > "Configuration of ALSA" |
294 |
> > # emerge alsa-utils (no apparent problems here) |
295 |
> > |
296 |
> > modified the file "/etc/modules.d/alsa" as directed in the Guide (with |
297 |
> > changes for my soundcard module of course) |
298 |
> > |
299 |
> > # modules-update (no apparent problems here, though it took a long time) |
300 |
> > |
301 |
> > Verified that /etc/devfsd.conf looked as described in the Guide. |
302 |
> > |
303 |
> > "Starting ALSA" |
304 |
> > # rc-update add alsasound boot |
305 |
> > |
306 |
> > Although the next step in the Guide is to run |
307 |
> > # /etc/init.d/alsasound start |
308 |
> > I never did that manually. Instead, I rebooted (for various reasons that |
309 |
> > I won't bother listing here) which apparently ran that script |
310 |
> > automatically because of my previous rc-update add alsasound boot |
311 |
> > command. |
312 |
> > |
313 |
> > # /etc/init.d/alsasound status |
314 |
> > status: started |
315 |
> > |
316 |
> > I stopped following the Guide here because of this problem with about 50 |
317 |
> > sound modules being loaded into my kernel. Clearly, this is a problem |
318 |
> > and I'm not sure how to solve it. |
319 |
> > |
320 |
> > It looks to me like the script /etc/init.d/alsa automatically loads all |
321 |
> > modules that it finds in the output of "modprobe -c | grep snd.* | grep |
322 |
> > pci:" (see line 50-59 from that script quoted below) and that's quite |
323 |
> > alot in my case because of all the modules that I built. |
324 |
> > |
325 |
> > ================================================ |
326 |
> > 50 ebegin "Loading ALSA drivers" |
327 |
> > 51 |
328 |
> > 52 # I really dislike this and would like to tidy it up. |
329 |
> > 53 # Anyone running 2.4 + alsa-driver willing to help me? |
330 |
> > 54 |
331 |
> > 55 DRIVERS="$(modprobe -c | grep snd.* | grep pci: | awk '{ print $3 }' |
332 |
> > | uniq)" |
333 |
> > 56 if [ -z "${DRIVERS}" ] ; then |
334 |
> > 57 # Fallback on older modprobe syntax |
335 |
> > 58 DRIVERS="$(/sbin/modprobe -c | grep -E |
336 |
> > "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | awk '{print $3}')" |
337 |
> > 59 fi |
338 |
> > |
339 |
> > ================================================ |
340 |
> > |
341 |
> > So, my real issues I think are just these two: |
342 |
> > 1) How to configure ALSA while using 2.6.1 kernel (Gentoo Guide doesn't |
343 |
> > seem to work in my case) |
344 |
> > 2) How to get only one PCI sound device module loaded via the |
345 |
> > script /etc/init.d/alsasound even though I have many available to load. |
346 |
> > Must I rebuild my kernel and just not build modules for any sound devices |
347 |
> > except those that I have installed? |
348 |
> > |
349 |
> > Maybe this last is a question for developers. |
350 |
> > |
351 |
> > Thanks in advance for any suggestions. |
352 |
> > |
353 |
> > -Kevin |
354 |
> > |
355 |
> > -- |
356 |
> > gentoo-dev@g.o mailing list |
357 |
> > |
358 |
> > |
359 |
> > |
360 |
> |
361 |
> |
362 |
> -- |
363 |
> gentoo-dev@g.o mailing list |
364 |
> |