* [gentoo-user] udev 103, alsa dual soundcard problem
@ 2006-11-27 21:55 Dave Jones
2006-11-27 22:14 ` Hans de Hartog
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: Dave Jones @ 2006-11-27 21:55 UTC (permalink / raw
To: gentoo-user
Yesterday I upgraded udev to 103, but have hit some problems with alsa
configuration of multiple sound cards.
I have an 'on board' Intel 8x0 sound card which I use for VoIP
telephony, and a PCI Creative Audigy which I use to play music.
The Audigy is configured to alsa as sound card 0, while the Intel card
is sound card 1. This set up has worked perfectly for years.
The udev 103 upgrade recommends removing coldplug. However, the alsa
initialisation script (alsasound) depend on both coldplug and hotplug.
If I remove coldplug from the boot runlevel alsasound fails, leaving
only the Intel sound card initialised.
Even worse is that udev seems to discover the sound cards in the reverse
order to coldplug. My Audigy card becomes /dev/dsp1 and the Intel card
is /dev/dsp0. Unfortunately, Audacious, my music player of choice,
doesn't seem to offer any choice of which dsp to use.
To put it mildly, this is a major pain; I don't want to listen to music
played through the VoIP headset connected to the Intel card.
Is there any way I can persuade udev to generate the /dev entries for my
sound cards in a particular order, so that Audacious can continue to
work with /dev/dsp0?
Thanks in advance for any help or advice you may be able to give.
Cheers, Dave
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] udev 103, alsa dual soundcard problem
2006-11-27 21:55 [gentoo-user] udev 103, alsa dual soundcard problem Dave Jones
@ 2006-11-27 22:14 ` Hans de Hartog
2006-11-28 1:02 ` James Ausmus
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Hans de Hartog @ 2006-11-27 22:14 UTC (permalink / raw
To: gentoo-user
Dave Jones wrote:
> Yesterday I upgraded udev to 103, but have hit some problems with alsa
> configuration of multiple sound cards.
>
> I have an 'on board' Intel 8x0 sound card which I use for VoIP
> telephony, and a PCI Creative Audigy which I use to play music.
>
> The Audigy is configured to alsa as sound card 0, while the Intel card
> is sound card 1. This set up has worked perfectly for years.
>
> The udev 103 upgrade recommends removing coldplug. However, the alsa
> initialisation script (alsasound) depend on both coldplug and hotplug.
>
> If I remove coldplug from the boot runlevel alsasound fails, leaving
> only the Intel sound card initialised.
>
> Even worse is that udev seems to discover the sound cards in the reverse
> order to coldplug. My Audigy card becomes /dev/dsp1 and the Intel card
> is /dev/dsp0. Unfortunately, Audacious, my music player of choice,
> doesn't seem to offer any choice of which dsp to use.
>
> To put it mildly, this is a major pain; I don't want to listen to music
> played through the VoIP headset connected to the Intel card.
>
> Is there any way I can persuade udev to generate the /dev entries for my
> sound cards in a particular order, so that Audacious can continue to
> work with /dev/dsp0?
>
> Thanks in advance for any help or advice you may be able to give.
>
> Cheers, Dave
You can determine the order in which the cards are found by having
the driver of (what you want as) card 0 compiled into the kernel
and configure card 1 in your kernel as a module.
That's not an elegant solution but it works.
Another possibility: in most alsa-aware applications where you refer
to the card number (0 or 1) you can also refer to the name of the card.
You can find the name of the cards with "cat /proc/asound/cards"
Regards,
Hans.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] udev 103, alsa dual soundcard problem
2006-11-27 21:55 [gentoo-user] udev 103, alsa dual soundcard problem Dave Jones
2006-11-27 22:14 ` Hans de Hartog
@ 2006-11-28 1:02 ` James Ausmus
2006-11-28 1:46 ` [gentoo-user] " Sven Köhler
2006-11-28 1:41 ` [gentoo-user] " Richard Fish
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: James Ausmus @ 2006-11-28 1:02 UTC (permalink / raw
To: gentoo-user
On 11/27/06, Dave Jones <Dave.Jones@xs4all.nl> wrote:
> Yesterday I upgraded udev to 103, but have hit some problems with alsa
> configuration of multiple sound cards.
>
> I have an 'on board' Intel 8x0 sound card which I use for VoIP
> telephony, and a PCI Creative Audigy which I use to play music.
>
> The Audigy is configured to alsa as sound card 0, while the Intel card
> is sound card 1. This set up has worked perfectly for years.
>
> The udev 103 upgrade recommends removing coldplug. However, the alsa
> initialisation script (alsasound) depend on both coldplug and hotplug.
>
> If I remove coldplug from the boot runlevel alsasound fails, leaving
> only the Intel sound card initialised.
>
Hmm - I don't have this issue - what version of alsa-utils are you
running? I'm running 1.0.13. I don't even have a /etc/init.d/coldplug
init script on my system - maybe you need to do an emerge -C coldplug?
Maybe if the coldplug script doesn't exist then alsasound won't
complain about it... Just a theory. ;)
> Even worse is that udev seems to discover the sound cards in the reverse
> order to coldplug. My Audigy card becomes /dev/dsp1 and the Intel card
> is /dev/dsp0. Unfortunately, Audacious, my music player of choice,
> doesn't seem to offer any choice of which dsp to use.
>
> To put it mildly, this is a major pain; I don't want to listen to music
> played through the VoIP headset connected to the Intel card.
>
> Is there any way I can persuade udev to generate the /dev entries for my
> sound cards in a particular order, so that Audacious can continue to
> work with /dev/dsp0?
>
Check http://www.reactivated.net/writing_udev_rules.html and the links
at the bottom of
http://gentoo-wiki.com/UDEV
HTH-
James
> Thanks in advance for any help or advice you may be able to give.
>
> Cheers, Dave
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] udev 103, alsa dual soundcard problem
2006-11-27 21:55 [gentoo-user] udev 103, alsa dual soundcard problem Dave Jones
2006-11-27 22:14 ` Hans de Hartog
2006-11-28 1:02 ` James Ausmus
@ 2006-11-28 1:41 ` Richard Fish
2006-11-28 5:34 ` Daniel Barkalow
2006-11-28 14:44 ` Michael Schreckenbauer
4 siblings, 0 replies; 10+ messages in thread
From: Richard Fish @ 2006-11-28 1:41 UTC (permalink / raw
To: gentoo-user
On 11/27/06, Dave Jones <Dave.Jones@xs4all.nl> wrote:
> Even worse is that udev seems to discover the sound cards in the reverse
> order to coldplug. My Audigy card becomes /dev/dsp1 and the Intel card
> is /dev/dsp0. Unfortunately, Audacious, my music player of choice,
> doesn't seem to offer any choice of which dsp to use.
A couple of notes:
1. any application using /dev/dsp* is _not_ using alsa. It is using
the legacy oss emulation mode of alsa. Real alsa device names are
things like "hw:0,0", or virtual device names like "default".
2. The only way to set the card order is to load the drivers in the
desired order. udev unfortunately has no control over which card
becomes "hw:0" vs "hw:1".
3. You can prevent udev from coldplugging drivers automatically by
aliasing the PCI ID of the hardware to "off".
For example, my ipw3945 wireless card will not work when coldplugged
by udev, so I have the following in /etc/modules.d/ipw3945:
alias pci:v00008086d00004222sv*sd*bc*sc*i* off
alias pci:v00008086d00004227sv*sd*bc*sc*i* off
This inhibits udev from loading the ipw3945 module when it scans the
PCI bus (ok, technically the pci device entries in /sys).
If you do something similar, adding alias entries to
/etc/modules.d/alsa, you should be able to have the modules loaded in
the correct order when the alsasound script runs.
You can get the list of pci aliases for a module with:
grep <module_name> /lib/modules/`uname -r`/modules.alias
Remember to run modules-update after making changes in /etc/modules.d/
for the changes to take effect.
HTH,
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: udev 103, alsa dual soundcard problem
2006-11-28 1:02 ` James Ausmus
@ 2006-11-28 1:46 ` Sven Köhler
2006-11-28 10:11 ` Neil Bothwick
0 siblings, 1 reply; 10+ messages in thread
From: Sven Köhler @ 2006-11-28 1:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
> Hmm - I don't have this issue - what version of alsa-utils are you
> running? I'm running 1.0.13. I don't even have a /etc/init.d/coldplug
> init script on my system - maybe you need to do an emerge -C coldplug?
> Maybe if the coldplug script doesn't exist then alsasound won't
> complain about it... Just a theory. ;)
/etc/init.d/coldplug has to be removed by hand, unfortunatly :-(
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] udev 103, alsa dual soundcard problem
2006-11-27 21:55 [gentoo-user] udev 103, alsa dual soundcard problem Dave Jones
` (2 preceding siblings ...)
2006-11-28 1:41 ` [gentoo-user] " Richard Fish
@ 2006-11-28 5:34 ` Daniel Barkalow
2006-11-28 6:20 ` Jason Weisberger
2006-11-28 14:44 ` Michael Schreckenbauer
4 siblings, 1 reply; 10+ messages in thread
From: Daniel Barkalow @ 2006-11-28 5:34 UTC (permalink / raw
To: gentoo-user
On Mon, 27 Nov 2006, Dave Jones wrote:
> Even worse is that udev seems to discover the sound cards in the reverse
> order to coldplug. My Audigy card becomes /dev/dsp1 and the Intel card
> is /dev/dsp0.
You should be able to force them to get the names you want with a couple
of sufficiently specific udev rules. The whole point of udev is that this
sort of policy is up to you, rather than being chosen by the system using
black magic. Look at the manpage for udev and the rules in
/etc/udev/rules.d/, and write rules for NAME="sound/dsp0" and
NAME="sound/dsp1" which match the cards you want to have those names.
> Unfortunately, Audacious, my music player of choice, doesn't seem to
> offer any choice of which dsp to use.
Assuming you've emerged audacious-plugins the "alsa" USE flag, go to
Audacious's preferences, Audio, and select "ALSA 1.2.2 output plugin"
instead of "OSS Output Plugin", to actually use ALSA natively for it
(which lets ALSA do software mixing, among other benefits).
In any case, under Audio, Output Plugin Preferences for either of these
plugins will let you select a card arbitrarily.
-Daniel
*This .sig left intentionally blank*
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] udev 103, alsa dual soundcard problem
2006-11-28 5:34 ` Daniel Barkalow
@ 2006-11-28 6:20 ` Jason Weisberger
0 siblings, 0 replies; 10+ messages in thread
From: Jason Weisberger @ 2006-11-28 6:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1819 bytes --]
Dave,
Alsasound init script does not require coldplug. Remove coldplug, then
recompile your ALSA installation if it complains about it. Don't forget to
etc-update or dispatch-conf to update the init scripts. As far as them
loading in reverse order, see the gentoo-wiki for information on forcing
module loading with regard to multiple card setups:
http://gentoo-wiki.com/HOWTO_ALSA_Complete_%28includes_dmix%29#Post-Installation_Configuration
On 11/28/06, Daniel Barkalow <barkalow@iabervon.org> wrote:
>
> On Mon, 27 Nov 2006, Dave Jones wrote:
>
> > Even worse is that udev seems to discover the sound cards in the reverse
> > order to coldplug. My Audigy card becomes /dev/dsp1 and the Intel card
> > is /dev/dsp0.
>
> You should be able to force them to get the names you want with a couple
> of sufficiently specific udev rules. The whole point of udev is that this
> sort of policy is up to you, rather than being chosen by the system using
> black magic. Look at the manpage for udev and the rules in
> /etc/udev/rules.d/, and write rules for NAME="sound/dsp0" and
> NAME="sound/dsp1" which match the cards you want to have those names.
>
> > Unfortunately, Audacious, my music player of choice, doesn't seem to
> > offer any choice of which dsp to use.
>
> Assuming you've emerged audacious-plugins the "alsa" USE flag, go to
> Audacious's preferences, Audio, and select "ALSA 1.2.2 output plugin"
> instead of "OSS Output Plugin", to actually use ALSA natively for it
> (which lets ALSA do software mixing, among other benefits).
>
> In any case, under Audio, Output Plugin Preferences for either of these
> plugins will let you select a card arbitrarily.
>
> -Daniel
> *This .sig left intentionally blank*
> --
> gentoo-user@gentoo.org mailing list
>
>
--
Jason Weisberger
jbdubbs@gmail.com
[-- Attachment #2: Type: text/html, Size: 2498 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: udev 103, alsa dual soundcard problem
2006-11-28 1:46 ` [gentoo-user] " Sven Köhler
@ 2006-11-28 10:11 ` Neil Bothwick
0 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2006-11-28 10:11 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
On Tue, 28 Nov 2006 02:46:52 +0100, Sven Köhler wrote:
> /etc/init.d/coldplug has to be removed by hand, unfortunatly :-(
Unless you have /etc/init.d in CONFIG_PROTECT_MASK. This makes sense, if
you are not in the habit of modifying the init scripts, as it avoids all
the problems caused by leftover init scripts or services not starting
because of older scripts in init.d.
--
Neil Bothwick
"Daddy, what does formatting drive 'C' mean?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] udev 103, alsa dual soundcard problem
2006-11-27 21:55 [gentoo-user] udev 103, alsa dual soundcard problem Dave Jones
` (3 preceding siblings ...)
2006-11-28 5:34 ` Daniel Barkalow
@ 2006-11-28 14:44 ` Michael Schreckenbauer
2006-11-28 22:22 ` [gentoo-user] udev 103, alsa dual soundcard problem [solved] Dave Jones
4 siblings, 1 reply; 10+ messages in thread
From: Michael Schreckenbauer @ 2006-11-28 14:44 UTC (permalink / raw
To: gentoo-user
Hi,
Am Montag, 27. November 2006 22:55 schrieb Dave Jones:
> Yesterday I upgraded udev to 103, but have hit some problems with alsa
> configuration of multiple sound cards.
> I have an 'on board' Intel 8x0 sound card which I use for VoIP
> telephony, and a PCI Creative Audigy which I use to play music.
> The Audigy is configured to alsa as sound card 0, while the Intel card
> is sound card 1. This set up has worked perfectly for years.
> The udev 103 upgrade recommends removing coldplug. However, the alsa
> initialisation script (alsasound) depend on both coldplug and hotplug.
> If I remove coldplug from the boot runlevel alsasound fails, leaving
> only the Intel sound card initialised.
> Even worse is that udev seems to discover the sound cards in the reverse
> order to coldplug. My Audigy card becomes /dev/dsp1 and the Intel card
> is /dev/dsp0. Unfortunately, Audacious, my music player of choice,
> doesn't seem to offer any choice of which dsp to use.
> To put it mildly, this is a major pain; I don't want to listen to music
> played through the VoIP headset connected to the Intel card.
> Is there any way I can persuade udev to generate the /dev entries for my
> sound cards in a particular order, so that Audacious can continue to
> work with /dev/dsp0?
> Thanks in advance for any help or advice you may be able to give.
I had this problem some time ago. The solution was to add
options snd-emu10k1 index=0
options snd-intel8x0 index=1
to /etc/modules.d/alsa
run modules-update and restart alsa (or reboot) after that.
> Cheers, Dave
Regards,
Michael
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] udev 103, alsa dual soundcard problem [solved]
2006-11-28 14:44 ` Michael Schreckenbauer
@ 2006-11-28 22:22 ` Dave Jones
0 siblings, 0 replies; 10+ messages in thread
From: Dave Jones @ 2006-11-28 22:22 UTC (permalink / raw
To: gentoo-user
Michael Schreckenbauer wrote on 28/11/06 15:44:
>> Yesterday I upgraded udev to 103, but have hit some problems with alsa
>> configuration of multiple sound cards.
>> Even worse is that udev seems to discover the sound cards in the reverse
>> order to coldplug. My Audigy card becomes /dev/dsp1 and the Intel card
>> is /dev/dsp0.
> I had this problem some time ago. The solution was to add
> options snd-emu10k1 index=0
> options snd-intel8x0 index=1
> to /etc/modules.d/alsa
> run modules-update and restart alsa (or reboot) after that.
Hi Michael, thanks, this fixed the problem.
Also thanks to everyone who responded to my question. The answers
taught me how udev works, that's really useful, can't be bad.
Cheers, Dave
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-11-28 22:27 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-27 21:55 [gentoo-user] udev 103, alsa dual soundcard problem Dave Jones
2006-11-27 22:14 ` Hans de Hartog
2006-11-28 1:02 ` James Ausmus
2006-11-28 1:46 ` [gentoo-user] " Sven Köhler
2006-11-28 10:11 ` Neil Bothwick
2006-11-28 1:41 ` [gentoo-user] " Richard Fish
2006-11-28 5:34 ` Daniel Barkalow
2006-11-28 6:20 ` Jason Weisberger
2006-11-28 14:44 ` Michael Schreckenbauer
2006-11-28 22:22 ` [gentoo-user] udev 103, alsa dual soundcard problem [solved] Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox