Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71230 - /etc/init.d/alsasound should use alias options
Summary: /etc/init.d/alsasound should use alias options
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-14 18:40 UTC by Aaron VonderHaar
Modified: 2004-11-16 14:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to make alsasound honor alias options (alsasound-alias_options.patch,604 bytes, patch)
2004-11-14 18:43 UTC, Aaron VonderHaar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron VonderHaar 2004-11-14 18:40:39 UTC
I have an old SB16 sound card that is not pnp, and requires options passed to modprobe when the module is loaded.  /etc/init.d/alsasound handles loading of the alsa modules.  The current behavior of this script is such that options given in modules.conf for the sound card aliases are not honored.

The workaround for this would be to specify the options directly for the sound card driver, not for the module.  However, this would not work for systems having multiple non-pnp sound cards that require the same driver with different options.

A simple patch is proposed that corrects the described behaviour.



Reproducible: Always
Steps to Reproduce:
Install a non-pnp sound card:
  1. compile 2.6 kernel with alsa support
  2. # emerge media-sound/alsa-tools media-sound/alsa-utils


Add lines to /etc/modules.d/aliases to specify the sound card, and specify options to the module, such as

> alias   snd-card-0 snd-sb16
> options snd-card-0 irq=7 isapnp=0


# modules-update


# /etc/init.d/alsasound restart

Actual Results:  

The module options for the alias 'snd-card-0' are not used because
/etc/init.d/alsasound runs the command `modprobe snd-sb16`.

Expected Results:  

/etc/init.d/alsasound should run the command `modprobe snd-card-0`
Comment 1 Aaron VonderHaar 2004-11-14 18:43:30 UTC
Created attachment 43962 [details, diff]
patch to make alsasound honor alias options
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-16 14:28:29 UTC
thanks.  It's in cvs now.