LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Sound Conflict: snd-via82xx & snd-emu10k1 (http://www.linuxquestions.org/questions/linux-hardware-18/sound-conflict-snd-via82xx-and-snd-emu10k1-163125/)

Electronkz 03-27-2004 03:42 PM

Sound Conflict: snd-via82xx & snd-emu10k1
 
Hi, I am a :newbie: to the Linux OS, the problem is that i cant hear any sound, itīs like there is a conflict or something,
I am using Mandrake Linux v9.2 , kernel: 2.4.22-10mdk
Oh, as an additional information, i must say that i messed around a little bit with the /etc/modules.conf i was trying to erase the onboard snd-via82xx but that doesnt worked, i got some tips from the IRC and the Internet, but itīs still doesnt working :mad: , I hope some of you guys could help me out :D , One more thing In Win2000 is working fine.
Ok, here it is:
Code:

[root@localhost sbin]# lspcidrake -v | fgrep AUDIO
snd-via82xx    : VIA Technologies|VT82C686 [Apollo Super AC97/Audio] [MULTIMEDI058 subv:15dd subd:7609)
snd-emu10k1    : Creative Labs|SB Live! (audio) [MULTIMEDIA_AUDIO] (vendor:110240)

And here is the modules.conf --> Note: I edited this in the past, and i erased a line related with the snd-via82xx ( i did this trying to fix the problem, but no luck :cry: )
Code:

[root@localhost sbin]# vi /etc/modules.conf
alias autofs autofs4
probeall usb-interface usb-uhci
above snd-emu10k1 snd-pcm-oss
alias eth0 via-rhine
alias sound-slot-0 snd-via82xx
alias sound-slot-1 snd-emu10k1
probeall scsi_hostadapter ide-scsi

Oh, The VIA onboard sound card, is disabled, i did this when i installed Mandrake, because i want to use the Suond Blaster 16 Live!.
Here is the output of the /sbin/lspci
Code:

[root@localhost sbin]# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev                              c4)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AG                              P]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40                              )
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/                              C/VT8235 PIPC Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. USB (rev 16)
00:07.3 USB Controller: VIA Technologies, Inc. USB (rev 16)
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio                              Controller (rev 50)
00:08.0 VGA compatible controller: Trident Microsystems TGUI 9660/938x/968x (rev                              d3)
00:0a.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 08)
00:0a.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 08)
00:0b.0 Ethernet controller: VIA Technologies, Inc. VT6105 [Rhine-III] (rev 86)

I used XMMS, Totem Media Player,... to play a mp3 file, of course no sound:mad:
Thatīs It guys, if you need any additional information, please tell me,
I hope one of you :jawa: could help me out with this, couse i tried a lot of stuff and nothing seems to work.
Anyway i hope this post could be usefull in the future for someone that maybe will have the same problem.
Thanks For your help,
Greetings,
|||Electronkz|||
electronkz@yahoo.com
:Pengy: Linux Registered User: # 344616
:Pengy:
:cool:

Electro 03-27-2004 04:54 PM

In LINUX it does not matter how many sound cards you have installed. It matters if you know what mixer and dsp to use.

What does /sbin/lsmod show?

Is there dsp under /dev directory. If there is more than one dsp, go through each dsp until sound is played. In XMMS pick oss plugin to make it easier to set different dsps.

Probably all inputs and outputs are muted. Run amixer or alsamixer to set the volume. If everything is working then login as su and type alsactl store.

To set the volume in amixer. First type amixer to get a list of inputs and outputs. Lets assume you want to set the Master volume type

amixer -c card_device_id sset Master,0 85%,85% unmute

The card_device_id is the card number for your Soundblaster LIVE! it will be 1 and your VIA sound is 0. The sset tells amixer set the following settings for the desired device. The word Master,0 is listed in the amixer output which is the Master volume. 85%,85% is the volume for the left and right channel. unmute is pretty common sense. amixer has a good example in its man pages.

Electronkz 03-27-2004 07:16 PM

The Output for /sbin/lsmod:
Code:

[root@localhost sbin]# lsmod
Module                  Size  Used by    Not tainted
appletalk              25508  1  (autoclean)
ipx                    21252  1  (autoclean)
autofs4                11412  2  (autoclean)
lp                      8160  0
parport_pc            25544  1
parport                34472  1  [lp parport_pc]
snd-pcm-oss            43652  0
snd-mixer-oss          14200  0  [snd-pcm-oss]
snd-emu10k1            70948  0
snd-util-mem            3040  0  [snd-emu10k1]
snd-hwdep              6304  0  [snd-emu10k1]
snd-via82xx            15360  0
snd-pcm                79588  0  [snd-pcm-oss snd-emu10k1 snd-via82xx]
snd-timer              18436  0  [snd-pcm]
snd-ac97-codec        45720  0  [snd-emu10k1 snd-via82xx]
snd-mpu401-uart        4704  0  [snd-via82xx]
snd-rawmidi            17760  0  [snd-emu10k1 snd-mpu401-uart]
snd-seq-device          5832  0  [snd-emu10k1 snd-rawmidi]
snd                    41380  0  [snd-pcm-oss snd-mixer-oss snd-emu10k1 snd-util-mem snd-hwdep snd-via82xx snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore              6340  0  [snd]
snd-page-alloc          9044  0  [snd-emu10k1 snd-via82xx snd-pcm]
nfsd                  75280  0  (autoclean)
ppp_synctty            7520  0  (unused)
ppp_async              9312  1
ppp_generic            24292  3  [ppp_synctty ppp_async]
slhc                    6564  0  [ppp_generic]
af_packet              14856  2  (autoclean)
ip_vs                  70188  0  (autoclean)
sr_mod                19384  0  (autoclean)
floppy                55932  0
via-rhine              15856  1  (autoclean)
mii                    3864  0  (autoclean) [via-rhine]
mod_quickcam          102912  0
videodev                7936  1  [mod_quickcam]
nls_iso8859-15          4060  1  (autoclean)
ntfs                  77292  1  (autoclean)
supermount            84032  3  (autoclean)
ide-cd                33956  0
cdrom                  32608  0  [sr_mod ide-cd]
ide-scsi              11376  0
scsi_mod              106176  2  [sr_mod ide-scsi]
usb-uhci              25136  0  (unused)
usbcore                74988  1  [mod_quickcam usb-uhci]
rtc                    9004  0  (autoclean)

Please Forgive me if i put uneeded information :cool:
Oh, i also try this:
Code:

[root@localhost sound]# modprobe emu10k1
/lib/modules/2.4.22-10mdk/kernel/drivers/sound/emu10k1/emu10k1.o.gz: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
modprobe: insmod /lib/modules/2.4.22-10mdk/kernel/drivers/sound/emu10k1/emu10k1.o.gz failed
modprobe: insmod emu10k1 failed

I checked at /dev and i have: dsp dsp1
both of them are symbolick links to /dev/sound/dsp and /dev/sound/dsp1
i went to /dev/sound and tried to read them to see what they were with the less -f command but i didnt saw anything,
Anyway, i dont understand what you mean when you say:
Quote:

go through each dsp until sound is played.
:confused:
I cheked the permission on /dev for dsp and dsp1

Code:

[root@localhost dev]# ls -l dsp dsp1
lr-xr-xr-x    1 root    root            9 Mar 27 21:14 dsp -> sound/dsp
lr-xr-xr-x    1 root    root          10 Mar 27 21:14 dsp1 -> sound/dsp1

Should i change the permissions???
Another thing i :study: a little from the tldp web site www.tldp.org/HOWTO/Sound-HOWTO/x320.html
and i tried dmesg, and i searched for something similar to the example at section 4.5
but i didnt find anything like that, i do find something related to the snd-via82xx
Here is part of the Output of dmesg:


Code:

via-rhine.c:v1.10-LK1.1.19  July-12-2003  Written by Donald Becker
  http://www.scyld.com/network/via-rhine.html
PCI: Found IRQ 11 for device 00:0b.0
PCI: Sharing IRQ 11 with 00:07.2
PCI: Sharing IRQ 11 with 00:07.3
eth0: VIA VT6105 Rhine-III at 0xe400, 00:08:54:08:5d:25, IRQ 11.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 0021.
inserting floppy driver for 2.4.22-10mdk
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: Each connection entry needs 116 bytes at least
IPVS: ipvs loaded.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
PCI: Found IRQ 12 for device 00:07.5
PCI: Sharing IRQ 12 with 00:0a.0
PCI: Setting latency timer of device 00:07.5 to 64
PCI: Found IRQ 12 for device 00:0a.0
PCI: Sharing IRQ 12 with 00:07.5
parport0: PC-style at 0x378 [PCSPP,EPP]
parport_pc: Via 686A parallel port: io=0x378
lp0: using parport0 (polling).
NET4: Linux IPX 0.47 for NET4.0
IPX Portions Copyright (c) 1995 Caldera, Inc.
IPX Portions Copyright (c) 2000, 2001 Conectiva, Inc.
NET4: AppleTalk 0.18a for Linux NET4.0
devfs_register(sound/audio): could not append to parent, err: -17
Creative EMU10K1 PCI Audio Driver, version 0.20, 12:42:13 Sep 18 2003

Thatīs all, any idea what to do to fix it?? oh and what does dsp means? is it a driver or something that converts digital information to analoge so the sound comes out from the speakers?? :confused:

Electro 03-28-2004 04:01 PM

Both of your sound cards have their modules (drivers) running. You do not need to run modprobe emu10k1. Even if you do you will have problems because snd-emu10k1 (ALSA module) is the one being used for your Creative Labs Soundblaster LIVE!. You can add the lines below in your modules.conf.

Code:

# VIA Technologies VT82C686 ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-via82xx

# Creative Labs Soundblaster LIVE ALSA portion
alias char-major-116 snd
alias snd-card-1 snd-emu10k1

# VIA Technologies VT82C686 OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# Creative Labs Soundblaster LIVE OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-1 snd-card-1

# VIA Technologies VT82C686
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       

# Creative Labs Soundblaster LIVE
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss

Disable the lines that begin with above using # in front of it. It should work after you reboot. You should see emu10k1 and via82xx during the boot sequence. Go in Kmix and you should see two seperate mixer tabs. One for the Soundblaster Live and the other is for the Via VT82C686. Probably /dev/dsp is for the via sound board and /dev/dsp1 is for Soundblaster LIVE.

In /home/user_dir/.asoundrc. Add the lines below so XMMS doesn't complain.

Code:

pcm.snd-via82xx {
          type hw
          card 0
        }

ctl.snd-via82xx {
          type hw
          card 0
        }

pcm.snd-emu10k1 {
          type hw
          card 1
        }

ctl.snd-emu10k1 {
          type hw
          card 1
        }

Your motherboard could be a version that you have to move a jumper to disable sound instead of disabling it in the BIOS.

Electronkz 03-28-2004 05:19 PM

Ok, I added the lines at /etc/modules.conf and i Disabled the lines that begin with above using # in front of it, as you told me, all happened like you said it will, i saw the two tabs at Kmix, and everything, but no sound, i couldnīt edit the ./asoundrc because i canīt find it.
:scratch:
what should i do next?? :scratch:
ŋŋŋ???:Pengy:

Electro 03-29-2004 12:10 AM

If you can't find a file, create it. The file .asoundrc goes in /home/user_name.

Go into Mandrake Control Center and go into system then services. Make sure alsa is turn on but don't turn on alsasound. Also make sure sound is activated. Turn off artsd. Turn up wav, pcm, master controls on both devices and save the changes. Play a sound file.

play -d /dev/dsp sound_file
play -d /dev/dsp1 sound_file

or

aplay -d /dev/dsp sound_file
aplay -d /dev/dsp1 sound_file

Play a long sound file that you know it works so you can adjust the volume settings.

Make sure speakers are working, connected to the speaker jack on the sound devices, and check if they are turned on. Only use analog hook up at this time.

Electronkz 03-29-2004 11:58 AM

:D :D :D HOUSTON WE HAVE SOUND!!! :D :D :D
Thanks a LOT!! Electro for your help,
Resume of what i did:
I created the file .asoundrc
But in Mandrake Control settings i couldn't turn on alsa, it said that it was already running, but it was showed as stopped, and alsasound i couldnīt find it.
This is what it said when i tried to turn on alsa:
Code:

Doing alsactl to store mixer settings...[  OK  ]
Shutting down ALSA sound driver (version 0.9.6): no. (sound is being used by pid 2296 ))[FAILED]
ALSA driver (version 0.9.6) is already running

Anyway, i went into Configuration-->KDE-->Sound-->Sound System
and i disabled the check box that says "Starts aRTs soundserver on KDE startup"
I modify the pcm and master controls on KMix
and finally i tried the commands you told me,
the only one that worked was the play -d /dev/dsp1
And i checked modifying the volume in Kmix and dsp1 belongs to SB Live
Then in XMMX i went to options-->preferences-->Configure Output plugin
in my case OSS driver 1.2.7 then i checked the check box that says: "Use Alternative Device:" and i wrote in there /dev/dsp1
I am writing this in case somebody else in the future will have a similar problem
It seems that big part of the problem was aRTs,
I have one final doubt, is there a way to make /dev/dsp1 as the default device??
Anyway, Thanks A lot Electron


All times are GMT -5. The time now is 03:31 PM.