LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sound card problem (https://www.linuxquestions.org/questions/linux-software-2/sound-card-problem-116884/)

diptanshu_parui 11-16-2003 11:23 PM

Sound card problem
 
Hi,

I had some problem with my machine so had to re-install RH Linux 8. Previously, the sound card was working fine. But after the re-install, the sound card is not working properly. The sound card isn't mapped to any device nor is the test sound getting heard.

Please help.

Dips
Silence must be heard.

Scruff 11-17-2003 12:11 AM

What kind of soundcard do you have?
Post the output from 'lsmod'

adz 11-17-2003 12:44 AM

And lspci -v. Preferably only the relevant part.

diptanshu_parui 11-18-2003 10:39 PM

lsmod & lspci -v didn't work when run as root.

I tried with sndconfig --noprobe. It gave me this error.

Sound Configuration Utility 0.69 Linux.

+-------------------¦ modprobe error +--------------------+
¦ ¦
¦ The following error occurred running the modprobe ¦
¦ program: ¦
¦ ¦
¦ /lib/modules/2.4.18-24.8.0/kernel/drivers/sound/via82c ¦
¦ xxx_audio.o: init_module: No such device ¦
¦ /lib/modules/2.4.18-24.8.0/kernel/drivers/sound/via82c ¦
¦ xxx_audio.o: insmod ¦
¦ /lib/modules/2.4.18-24.8.0/kernel/drivers/sound/via82c ¦
¦ xxx_audio.o failed ¦
¦ /lib/modules/2.4.18-24.8.0/kernel/drivers/sound/via82c ¦
¦ xxx_audio.o: insmod sound-slot-0 failed ¦
¦ ¦
¦ +----+ ¦
¦ ¦ Ok ¦ ¦
¦ +----+ ¦
¦ ¦
¦ ¦
+---------------------------------------------------------+

<Tab>/<Alt-Tab> between elements | Use <Enter> to edit a selection

adz 11-19-2003 03:03 AM

Try running /sbin/lsmod instead. I've noticed some distros are a little wierd when you su to root. The PATH doesn't seem to get updated. Read hat seems to be a major culprit.

diptanshu_parui 11-19-2003 03:13 AM

This has to be run as root or any user would do ?

adz 11-19-2003 03:37 AM

For lsmod you have to be root, for lspci you can be a regular user.

Scruff 11-19-2003 06:44 AM

Quote:

Originally posted by adz
For lsmod you have to be root, for lspci you can be a regular user.
Is that a RedHat thing? Thats not the case with Slackware. I actually can't remember if I had to run it as root back when I used Mandrake...

adz 11-19-2003 07:01 AM

My apologies. You CAN run lsmod as a user it's just not in a regular user's PATH.

Scruff 11-19-2003 07:06 AM

I see. In Slackware there is a symlink to lsmod from /bin so it's even in users' path. I imagine it could be quite aggravating at first when switching distro's because of little things like that ;)

diptanshu_parui 11-19-2003 09:46 PM

Scruff & ADZ,

Here is the result of the two commands. I am sorry, If I have posted the irrelevant part too.

sh-2.05b# lsmod
Module Size Used by Not tainted
sr_mod 18168 0 (autoclean)
soundcore 6532 0 (autoclean)
autofs 13348 0 (autoclean) (unused)
via-rhine 15660 0
mii 2156 0 [via-rhine]
ipt_REJECT 3736 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15224 2 [ipt_REJECT iptable_filter]
ide-scsi 10512 0
scsi_mod 107240 2 [sr_mod ide-scsi]
ide-cd 33608 0
cdrom 33696 0 [sr_mod ide-cd]
nls_iso8859-1 3516 3 (autoclean)
nls_cp437 5148 3 (autoclean)
vfat 13084 3 (autoclean)
fat 38712 0 (autoclean) [vfat]
mousedev 5524 1
keybdev 2976 0 (unused)
hid 22244 0 (unused)
input 5920 0 [mousedev keybdev hid]
ehci-hcd 17480 0 (unused)
usbcore 77024 1 [hid ehci-hcd]
ext3 70336 1
jbd 52212 1 [ext3]

*******************************************************

sh-2.05b# lspci -v
00:00.0 Host bridge: VIA Technologies, Inc. P4M266 Host Bridge
Subsystem: VIA Technologies, Inc.: Unknown device 0000
Flags: bus master, 66Mhz, medium devsel, latency 8
Memory at e0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 2.0
Capabilities: [c0] Power Management version 2

00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP] (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: dfd00000-dfefffff
Prefetchable memory behind bridge: cfb00000-dfbfffff
Capabilities: [80] Power Management version 2

00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
Subsystem: VIA Technologies, Inc. USB
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at e400 [size=32]
Capabilities: [80] Power Management version 2

00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
Subsystem: VIA Technologies, Inc. USB
Flags: bus master, medium devsel, latency 32, IRQ 10
I/O ports at e800 [size=32]
Capabilities: [80] Power Management version 2

00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80) (prog-if 00 [UHCI])
Subsystem: VIA Technologies, Inc. USB
Flags: bus master, medium devsel, latency 32, IRQ 5
I/O ports at ec00 [size=32]
Capabilities: [80] Power Management version 2

00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) (prog-if 20 [EHCI])
Subsystem: VIA Technologies, Inc. USB 2.0
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at dfffff00 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2

00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
Subsystem: VIA Technologies, Inc.: Unknown device 0000
Flags: bus master, stepping, medium devsel, latency 0
Capabilities: [c0] Power Management version 2

00:11.1 IDE interface: VIA Technologies, Inc. VT82C586B PIPC Bus Master IDE (rev 06) (prog-if 8a
[Master SecP PriP])
Subsystem: VIA Technologies, Inc. VT82C586B PIPC Bus Master IDE
Flags: bus master, medium devsel, latency 32, IRQ 14
I/O ports at fc00 [size=16]
Capabilities: [c0] Power Management version 2

00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 50) Subsystem: VIA Technologies, Inc.: Unknown device 4161
Flags: medium devsel, IRQ 5
I/O ports at e000 [size=256]
Capabilities: [c0] Power Management version 2

00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
Subsystem: VIA Technologies, Inc.: Unknown device 0102
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at dc00 [size=256]
Memory at dffffe00 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Power Management version 2

01:00.0 VGA compatible controller: S3 Inc. VT8751 [ProSavageDDR P4M266] VGA Controller (prog-if 00 [VGA])
Subsystem: S3 Inc. VT8751 [ProSavageDDR P4M266] VGA Controller
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 11
Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
Memory at d0000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at dfe70000 [disabled] [size=64K]
Capabilities: [dc] Power Management version 2
Capabilities: [80] AGP version 2.0

adz 11-20-2003 12:04 AM

You ain't got no driver loaded. You got soundcore but you need a driver module as well. Try the via82cxxx_audio module. To do this type /sbin/modprobe via82cxxx_audio and if that works then add the line "via82cxxx_audio" to the file /etc/modules. Make sure to check the sound levels and/or mute status if you get the player playing but no sound comes out.

diptanshu_parui 11-20-2003 09:50 PM

Adz,


Contents of /etc/modules.conf
*******************************************
alias parport_lowlevel parport_pc
alias eth0 via-rhine
alias usb-controller ehci-hcd
alias sound-slot-0 adlib_card
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
options sound dmabuf=1
options adlib_card io=0x388


Result of running /sbin/modprobe via82cxxx_audio
*******************************************
/lib/modules/2.4.18-24.8.0/kernel/drivers/sound/via82cxxx_audio.o: 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
/lib/modules/2.4.18-24.8.0/kernel/drivers/sound/via82cxxx_audio.o: insmod /lib/modules/2.4.18-24.8.0/kernel/drivers/sound/via82cxxx_audio.o failed
/lib/modules/2.4.18-24.8.0/kernel/drivers/sound/via82cxxx_audio.o: insmod via82cxxx_audio failed
*******************************************

Dips

adz 11-20-2003 11:39 PM

Well it looks as if your sound slot is aliased to the adlib module. Try a manual modprobe adlib_card and see if you get any errors. If not then try to play a sound. You don't have two cards by any chance, do you? The adlib card looks like an ISA whereas a sound card showed up in lspci.

diptanshu_parui 11-20-2003 11:49 PM

No, I have just a single VIA sound card which is working fine on Win2K. Why the module.conf file is showing ad-lib really beats me !
Is modprobe similar to the manual configuration in sndconfig ? If yes, I had tried with other options with no success. All of them asked for IRQs, DMAs etc.


All times are GMT -5. The time now is 03:14 AM.