| View previous topic :: View next topic |
| Author |
Message |
oldefortran l33t

Joined: 28 Feb 2004 Posts: 652
|
Posted: Tue Jul 26, 2005 4:08 pm Post subject: How to make /etc/init.d/alsasound not load every module? |
|
|
WHen I run
/etc/init.d/alsasound start
I think every possible sound module is loaded. I only need the trident module.
How can I change this to only load the needed modules? |
|
| Back to top |
|
 |
Nuteater Apprentice


Joined: 25 Sep 2003 Posts: 193 Location: Jyväskylä, Finland
|
Posted: Tue Jul 26, 2005 4:15 pm Post subject: |
|
|
It seems alsasound loads all sound modules present, so you could just remove unnecessary
modules by reconfiguring your kernel to not build the unnecessary modules and doing
| Code: | cd /usr/src/linux
make clean; make modules; make modules_install |
_________________ I am Nuteater, hear me roar. |
|
| Back to top |
|
 |
oldefortran l33t

Joined: 28 Feb 2004 Posts: 652
|
Posted: Tue Jul 26, 2005 4:48 pm Post subject: |
|
|
| I have not configured alsa in the kernel. Just compiled the modules separatly. |
|
| Back to top |
|
 |
Maedhros Bodhisattva


Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Tue Jul 26, 2005 4:58 pm Post subject: |
|
|
Moved from Other Things Gentoo to Multimedia. _________________ No-one's more important than the earthworm. |
|
| Back to top |
|
 |
Nuteater Apprentice


Joined: 25 Sep 2003 Posts: 193 Location: Jyväskylä, Finland
|
Posted: Tue Jul 26, 2005 5:01 pm Post subject: |
|
|
| oldefortran wrote: | | I have not configured alsa in the kernel. Just compiled the modules separatly. |
I mean configure the kernel so that unnecessary modules don't get built at all, that way
they won't get loaded. _________________ I am Nuteater, hear me roar. |
|
| Back to top |
|
 |
DarkMind Guru


Joined: 18 Dec 2003 Posts: 525 Location: Santiago, Chile
|
Posted: Tue Jul 26, 2005 9:56 pm Post subject: |
|
|
i not run /etc/init.d/alsasound
hotplug detect the correct module end loads without problem  |
|
| Back to top |
|
 |
daktak Tux's lil' helper


Joined: 18 Oct 2002 Posts: 138 Location: Melbourne, Victoria
|
Posted: Wed Jul 27, 2005 6:04 am Post subject: |
|
|
| Does editing /etc/modules.d/alsa to specify the module for card0 and limiting the soundcards to 1 help? |
|
| Back to top |
|
 |
drunkahol n00b

Joined: 26 Jul 2005 Posts: 19
|
Posted: Wed Jul 27, 2005 12:52 pm Post subject: |
|
|
I think I'm in a very similar boat here.
ALSA now works, but I went round the houses somewhat before it was successful.
There are no ALSA kernel modules compiled. Soundcard support is enabled, but ALSA and OSS are both disabled.
I emerged alsa-driver (along with tools and stuff)
/var/log/messages contains the following:
| Code: | Jul 27 13:29:29 desktop rc-scripts: Could not detect custom ALSA settings. Loading all detected alsa drivers.
Jul 27 13:29:30 desktop kobject_register failed for RME Hammerfall DSP (-17)
Jul 27 13:29:30 desktop
Jul 27 13:29:30 desktop Call Trace:<ffffffff802225b6>{kobject_register+70} <ffffffff8028bf4b>{bus_add_driver+107}
Jul 27 13:29:30 desktop <ffffffff8022c223>{pci_register_driver+131} <ffffffff8855d010>{:snd_hdspm:alsa_card_hdspm_init+16}
Jul 27 13:29:30 desktop <ffffffff80153fd5>{sys_init_module+325} <ffffffff8010ea86>{system_call+126}
Jul 27 13:29:30 desktop
Jul 27 13:29:30 desktop RME Hammerfall-DSP: no HDSPM
Jul 27 13:29:31 desktop ACPI: PCI Interrupt 0000:00:11.5[C] -> GSI 22 (level, low) -> IRQ 201
Jul 27 13:29:31 desktop PCI: Via IRQ fixup for 0000:00:11.5, from 5 to 9
Jul 27 13:29:31 desktop PCI: Setting latency timer of device 0000:00:11.5 to 64
Jul 27 13:29:31 desktop ALSA /var/tmp/portage/alsa-driver-1.0.9b/work/alsa-driver-1.0.9b/pci/../alsa-kernel/pci/via82xx.c:583: codec_read: codec 0 is not valid [0xfe0000]
Jul 27 13:29:31 desktop ALSA /var/tmp/portage/alsa-driver-1.0.9b/work/alsa-driver-1.0.9b/pci/../alsa-kernel/pci/via82xx.c:583: codec_read: codec 0 is not valid [0xfe0000]
Jul 27 13:29:31 desktop ALSA /var/tmp/portage/alsa-driver-1.0.9b/work/alsa-driver-1.0.9b/pci/../alsa-kernel/pci/via82xx.c:583: codec_read: codec 0 is not valid [0xfe0000]
Jul 27 13:29:31 desktop ALSA /var/tmp/portage/alsa-driver-1.0.9b/work/alsa-driver-1.0.9b/pci/../alsa-kernel/pci/via82xx.c:583: codec_read: codec 0 is not valid [0xfe0000]
|
if I stop/start /etc/init.d/alsasound I get the following:
| Code: | desktop ~ # /etc/init.d/alsasound stop
* Storing ALSA Mixer Levels ... [ ok ]
* Unloading ALSA ... [ ok ]
* Unloading ALSA modules ... [ ok ]
desktop ~ # /etc/init.d/alsasound start
* Loading ALSA modules ...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Loading: snd_ali5451 ... [ ok ]
* Loading: snd_als4000 ... [ ok ]
* Loading: snd_atiixp ... [ ok ]
* Loading: snd_atiixp_modem ... [ ok ]
* Loading: snd_au8810 ... [ ok ]
* Loading: snd_au8820 ... [ ok ]
* Loading: snd_au8830 ... [ ok ]
* Loading: snd_azt3328 ... [ ok ]
* Loading: snd_bt87x ... [ ok ]
* Loading: snd_ca0106 ... [ ok ]
* Loading: snd_cmipci ... [ ok ]
* Loading: snd_cs4281 ... [ ok ]
* Loading: snd_cs46xx ... [ ok ]
* Loading: snd_emu10k1 ... [ ok ]
* Loading: snd_emu10k1x ... [ ok ]
* Loading: snd_ens1370 ... [ ok ]
* Loading: snd_ens1371 ... [ ok ]
* Loading: snd_es1938 ... [ ok ]
* Loading: snd_es1968 ... [ ok ]
* Loading: snd_fm801 ... [ ok ]
* Loading: snd_hda_intel ... [ ok ]
* Loading: snd_hdsp ... [ ok ]
* Loading: snd_hdspm ...
FATAL: Error inserting snd_hdspm (/lib/modules/2.6.12-gentoo-r6/alsa-driver/pci/snd-hdspm.ko): No such device [ !! ]
* Loading: snd_ice1712 ... [ ok ]
* Loading: snd_ice1724 ... [ ok ]
* Loading: snd_intel8x0 ... [ ok ]
* Loading: snd_intel8x0m ... [ ok ]
* Loading: snd_korg1212 ... [ ok ]
* Loading: snd_maestro3 ... [ ok ]
* Loading: snd_mixart ... [ ok ]
* Loading: snd_nm256 ... [ ok ]
* Loading: snd_pcxhr ... [ ok ]
* Loading: snd_rme32 ... [ ok ]
* Loading: snd_rme96 ... [ ok ]
* Loading: snd_rme9652 ... [ ok ]
* Loading: snd_sonicvibes ... [ ok ]
* Loading: snd_trident ... [ ok ]
* Loading: snd_via82xx ... [ ok ]
* Loading: snd_via82xx_modem ... [ ok ]
* Loading: snd_vx222 ... [ ok ]
* Loading: snd_ymfpci ... [ ok ]
* Loading: snd-seq ... [ ok ]
* Restoring Mixer Levels ... [ ok ] |
I don't think I care about the hdspm error as my sound card is reported as:
| Code: | desktop ~ # cat /proc/asound/cards
0 [V8237 ]: VIA8237 - VIA 8237
VIA 8237 with AD1980 at 0xec00, irq 201
|
and works perfectly.
I just want to cut out the loading of all the other snd_ drivers. Getting to the bottom of the error messages in /var/log/messages would be nice too.
Anybody know?
Cheers
Duncan |
|
| Back to top |
|
 |
eradicator Retired Dev

Joined: 01 Apr 2003 Posts: 144 Location: Berkeley, CA
|
Posted: Wed Jul 27, 2005 8:01 pm Post subject: |
|
|
See this line: VVVV
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
That means someone didn't edit /etc/modules.d/alsa Fix that, run modules-update, and all will be well. _________________ Gentoo Developer: amd64, sparc, sound, toolchain, accessibility
Last edited by eradicator on Sat Jul 30, 2005 2:40 pm; edited 1 time in total |
|
| Back to top |
|
 |
drunkahol n00b

Joined: 26 Jul 2005 Posts: 19
|
Posted: Wed Jul 27, 2005 8:50 pm Post subject: |
|
|
Hmmm - I will have severe words with whoever has been forgetting to edit my confg files . . .
Thanks for the pointer.
I edited /etc/modules.d/alsa and then did a modules-update
Sound works perfectly and only one driver is loaded. Hope this solves it for oldefortran too.
Many thanks
Duncan |
|
| Back to top |
|
 |
|