* [gentoo-user] (AMD64) wrong soundcard is becoming default - Gnome unhappy
@ 2005-09-01 21:58 Mark Knecht
2005-09-02 7:05 ` Stefan Frank
0 siblings, 1 reply; 4+ messages in thread
From: Mark Knecht @ 2005-09-01 21:58 UTC (permalink / raw
To: gentoo-user
Hi,
In my previous Athlon XP I was using two sound cards - an AP2496
and an RME HDSP 9652. I had /etc/modules.d/alsa set up so that the
AP2496 was the default card and the HDSP wa used only when I
specifically called it.
On my new AMD64 machine I wanted to do much the same thing except
I'm using the onboard sound as well as an RME HDSP 9652. Unfortunately
for some reason it seems that the HDSP 9652 is being made default and
this is not making Gnome happy:
lightning ~ # cat /proc/asound/cards
0 [CK804 ]: NFORCE - NVidia CK804
NVidia CK804 with ALC850 at 0xda103000, irq 185
1 [default ]: H-DSP - Hammerfall DSP
RME Hammerfall HDSP 9652 at 0xda000000, irq 209
lightning ~ #
Here's /etc/modules/alsa. Note that I do not want OSS emulation for
the HDSP 9652 so that portion is set up only for the NVidia sound.
This worked for the AP2496/HDSP combo:
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v
1.4 2004/11/16 01:31:22 eradicator Exp $
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
## ALSA portion
alias snd-card-0 snd-intel8x0
options snd-intel8x0 index=0
alias snd-card-1 snd-hdsp
options snd-hdsp index=1
## OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=2
After editing this file I run modules-update and then either
/etc/init.d/alsasound restart or do a reboot. In both cases, on this
machine, Gnome sees no sound card since it's using OSS emulation and
(apparently) pointing at the HDSP.
How can I get Alsa to point at the NVidia chip as far as Gnome is concerned?
NOTE: alsamixer works and goes to the NVidia chip. alsactl store seems
to store good info.
Tech info:
lightning ~ # lspci
0000:00:00.0 Memory controller: nVidia Corporation CK804 Memory
Controller (rev a3)
0000:00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
0000:00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
0000:00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
0000:00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
0000:00:04.0 Multimedia audio controller: nVidia Corporation CK804
AC'97 Audio Controller (rev a2)
0000:00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
0000:00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA
Controller (rev f3)
0000:00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA
Controller (rev f3)
0000:00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
0000:00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
0000:00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
0000:00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
0000:00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
0000:00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8
[Athlon64/Opteron] HyperTransport Technology Configuration
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8
[Athlon64/Opteron] Address Map
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8
[Athlon64/Opteron] DRAM Controller
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8
[Athlon64/Opteron] Miscellaneous Control
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV370
5B60 [Radeon X300 (PCIE)]
0000:01:00.1 Display controller: ATI Technologies Inc RV370 [Radeon X300SE]
0000:05:06.0 Multimedia audio controller: Xilinx Corporation RME
Hammerfall DSP (rev 68)
lightning ~ #
lightning ~ # lsmod
Module Size Used by
snd_seq_midi 7872 0
snd_pcm_oss 50912 0
snd_mixer_oss 16960 1 snd_pcm_oss
snd_seq_oss 33152 0
snd_seq_midi_event 8256 2 snd_seq_midi,snd_seq_oss
snd_seq 54752 5 snd_seq_midi,snd_seq_oss,snd_seq_midi_event
snd_hdsp 49860 0
snd_rawmidi 24032 2 snd_seq_midi,snd_hdsp
snd_seq_device 7436 3 snd_seq_midi,snd_seq_oss,snd_rawmidi
snd_hwdep 9376 1 snd_hdsp
snd_intel8x0 32128 1
snd_ac97_codec 85392 1 snd_intel8x0
snd_pcm 89928 4 snd_pcm_oss,snd_hdsp,snd_intel8x0,snd_ac97_codec
snd_timer 22408 2 snd_seq,snd_pcm
snd 51080 14
snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_hdsp,snd_rawmidi,snd_seq_device,snd_hwdep,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore 9120 1 snd
snd_page_alloc 9480 3 snd_hdsp,snd_intel8x0,snd_pcm
lightning ~ #
Thanks in advance,
Mark
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] (AMD64) wrong soundcard is becoming default - Gnome unhappy
2005-09-01 21:58 [gentoo-user] (AMD64) wrong soundcard is becoming default - Gnome unhappy Mark Knecht
@ 2005-09-02 7:05 ` Stefan Frank
2005-09-02 11:03 ` Volker Armin Hemmann
2005-09-02 15:18 ` Mark Knecht
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Frank @ 2005-09-02 7:05 UTC (permalink / raw
To: gentoo-user; +Cc: Mark Knecht
Hi
I just had a quick look at your message, I think I may provide you a solution:
It all depends on which driver is called first - so may control this by adding
the modules of your two soundcards in /etc/modules.autoload.d/kernel-2.6. Add
the one you need to work with Gnome first and the other one second. I had the
same problem with my two cards and was able to get the right card to
get /dev/dsp1 instead of /dev/dsp2.
Hope this helps!
Stefan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] (AMD64) wrong soundcard is becoming default - Gnome unhappy
2005-09-02 7:05 ` Stefan Frank
@ 2005-09-02 11:03 ` Volker Armin Hemmann
2005-09-02 15:18 ` Mark Knecht
1 sibling, 0 replies; 4+ messages in thread
From: Volker Armin Hemmann @ 2005-09-02 11:03 UTC (permalink / raw
To: gentoo-user
On Friday 02 September 2005 09:05, Stefan Frank wrote:
> Hi
>
> I just had a quick look at your message, I think I may provide you a
> solution:
>
> It all depends on which driver is called first - so may control this by
> adding the modules of your two soundcards in
> /etc/modules.autoload.d/kernel-2.6. Add the one you need to work with Gnome
> first and the other one second. I had the same problem with my two cards
> and was able to get the right card to get /dev/dsp1 instead of /dev/dsp2.
>
> Hope this helps!
>
> Stefan
well, I have a similar problem, since I switched from devfs to udev.
'coldplug' loads the sound modules in the wrong order, and I have to restart
alsasound after the boot to get the soundcards working the way I want.
RANT:
at this point, udev did nothing good for me.
Booting takes a lot longer (waiting for rtc, coldplug insists loading the
scsi-drivers), I had to deal with the 'rules' several times to get the
permissions for my dvd burner right, and IF I need my scsi-card I have to
reload the driver, because just turning on the tape drive and modprobing 'st'
does not work anymore (the tape-devices will just not be created).
Maybe devfs should have stayed a little longer.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] (AMD64) wrong soundcard is becoming default - Gnome unhappy
2005-09-02 7:05 ` Stefan Frank
2005-09-02 11:03 ` Volker Armin Hemmann
@ 2005-09-02 15:18 ` Mark Knecht
1 sibling, 0 replies; 4+ messages in thread
From: Mark Knecht @ 2005-09-02 15:18 UTC (permalink / raw
To: Stefan Frank; +Cc: gentoo-user
Hi Stefan,
Nice idea but it seems it didn't work in my case. I set this in
/etc/modules.autoload
lightning ~ # cat /etc/modules.autoload.d/kernel-2.6
# /etc/modules.autoload.d/kernel-2.6: kernel modules to load when
system boots.#
# Note that this file is for 2.6 kernels.
snd-intel8x0
snd-hdsp
ohci1394
sbp2
realtime gid=600 any=1
lightning ~ #
and then rebooted. It didn't change the name:
lightning ~ # cat /proc/asound/cards
0 [CK804 ]: NFORCE - NVidia CK804
NVidia CK804 with ALC850 at 0xda103000, irq 185
1 [default ]: H-DSP - Hammerfall DSP
RME Hammerfall HDSP 9652 at 0xda000000, irq 209
lightning ~ #
Note that in my case it's not that the cards are out of order. They
are in the order that I wanted. The NVidia is #0 and the HDSP is #1.
That is correct. The only thing that is wrong, as far as I know right
now, if the name. It says
1 [default ]
instead of
1 [hdsp9652 ]
I got a response back form the Alsa developers. They see a problem
with the way the naming is done in the code. I'm filing a bug report
and it will get cleaned up at some future date.
Thanks for the idea. I had great hopes!
Cheers,
Mark
On 9/2/05, Stefan Frank <s_frank@freesurf.ch> wrote:
> Hi
>
> I just had a quick look at your message, I think I may provide you a solution:
>
> It all depends on which driver is called first - so may control this by adding
> the modules of your two soundcards in /etc/modules.autoload.d/kernel-2.6. Add
> the one you need to work with Gnome first and the other one second. I had the
> same problem with my two cards and was able to get the right card to
> get /dev/dsp1 instead of /dev/dsp2.
>
> Hope this helps!
>
> Stefan
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-02 15:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-01 21:58 [gentoo-user] (AMD64) wrong soundcard is becoming default - Gnome unhappy Mark Knecht
2005-09-02 7:05 ` Stefan Frank
2005-09-02 11:03 ` Volker Armin Hemmann
2005-09-02 15:18 ` Mark Knecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox