LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2003, 12:05 AM   #1
dhanagopal
LQ Newbie
 
Registered: Oct 2003
Location: Pondicherry
Distribution: Mandrake 9.1
Posts: 5

Rep: Reputation: 0
Post Installing Onboard AC97 sound in Mandrake 9.1


Dear all

I am unable to play sound in Mandrake 9.1 which is
installed in a system
having intel 845 PE mother board.
The sndconfig utility auto detects the ICH4 845G/GL
AC97 audio controller. I
checked the modules.config etc. Everything seems to
be alright. I could not
figure out what is wrong. I raised the volume of
kmix and tried without any
success. The sound server fails to start and gives
error message
/dev/dsp can't be opened (ls a directory)

I am reproducing below the outputs of lsmod, dmesg
etc. If anybody is having
patience, please look into that and suggest me a
solution. Sorry the output
is lengthy.

R.Dhanagopal





root@rd@vcrc root]# echo asdf/dev/dsp
-bash: /dev/dsp: Is a directory
[root@rd@vcrc root]# lspcidrake -v |fgrep AUDIO
i810_audio : Intel Corporation|ICH4 845G/GL
Chipset AC'97 Audio
Controller [MULTIMEDIA_AUDIO]
(vendor:8086 device:24c5 subv:8086 subd:0109)
[root@rd@vcrc root]# grep sound-slot
/etc/module.conf
grep: /etc/module.conf: No such file or directory
[root@rd@vcrc root]# grep sound-slot
/etc/modules.conf
alias sound-slot-0 ich4 845g/gl ac'97 audio
controller
[root@rd@vcrc root]# /sbin/chkconfig --list sound
sound 0ff 1ff 2n 3n 4n
5n 6ff
[root@rd@vcrc root]# /sbin/fuser -v /dev/dsp




[root@rd@vcrc root]# demesg
-bash: demesg: command not found
[root@rd@vcrc root]# demes
-bash: demes: command not found
[root@rd@vcrc root]# dmesg
Linux version 2.4.21-0.13mdk
(flepied@bi.mandrakesoft.com) (gcc version
3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)) #1 Fri Mar 14
15:08:06 EST 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00
(usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000
(reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000
(reserved)
BIOS-e820: 0000000000100000 - 000000000ff40000
(usable)
BIOS-e820: 000000000ff40000 - 000000000ff50000
(ACPI data)
BIOS-e820: 000000000ff50000 - 0000000010000000
(ACPI NVS)
255MB LOWMEM available.
ACPI: have wakeup address 0xc0001000
found SMP MP-table at 000ff780
hm, page 000ff000 reserved twice.
hm, page 00100000 reserved twice.
hm, page 000fd000 reserved twice.
hm, page 000fe000 reserved twice.
On node 0 totalpages: 65344
zone(0): 4096 pages.
zone(1): 61248 pages.
zone(2): 0 pages.
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: Product ID: BrkdlPE-ICH4 APIC at:
0xFEE00000
Processor #0 Pentium 4(tm) XEON(tm) APIC version 20
I/O APIC #1 Version 32 at 0xFEC00000.
Enabling APIC mode: Flat. Using 1 I/O APICs
Processors: 1
Kernel command line: root=/dev/hda6 quiet
devfs=mount acpi=off vga=788
Initializing CPU#0
Detected 2400.000 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 4784.12 BogoMIPS
Memory: 255072k/261376k available (1410k kernel
code, 5916k reserved, 1118k
data, 136k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6,
262144 bytes)
Inode cache hash table entries: 16384 (order: 5,
131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096
bytes)
Buffer-cache hash table entries: 16384 (order: 4,
65536 bytes)
Page-cache hash table entries: 65536 (order: 6,
262144 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: bfebfbff 00000000
00000000 00000000
CPU: Common caps: bfebfbff 00000000
00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 07
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support...
done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
ENABLING IO-APIC IRQs
Setting 1 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 1 ... ok.
init IO_APIC IRQs
IO-APIC (apicid-pin) 1-0, 1-22 not connected.
..TIMER: vector=0x31 pin1=2 pin2=0
number of MP IRQ sources: 26.
number of IO-APIC #1 registers: 24.
testing the IO APIC.......................

IO APIC #1......
.... register #00: 01000000
....... : physical APIC id: 01
.... register #01: 00178020
....... : max redirection entries: 0017
....... : PRQ implemented: 1
....... : IO APIC version: 0020
.... register #02: 00000000
....... : arbitration: 00
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
00 000 00 1 0 0 0 0 0 0 00
01 001 01 0 0 0 0 0 1 1 39
02 001 01 0 0 0 0 0 1 1 31
03 001 01 0 0 0 0 0 1 1 41
04 001 01 0 0 0 0 0 1 1 49
05 001 01 0 0 0 0 0 1 1 51
06 001 01 0 0 0 0 0 1 1 59
07 001 01 0 0 0 0 0 1 1 61
08 001 01 0 0 0 0 0 1 1 69
09 001 01 1 1 0 0 0 1 1 71
0a 001 01 0 0 0 0 0 1 1 79
0b 001 01 0 0 0 0 0 1 1 81
0c 001 01 0 0 0 0 0 1 1 89
0d 001 01 0 0 0 0 0 1 1 91
0e 001 01 0 0 0 0 0 1 1 99
0f 001 01 0 0 0 0 0 1 1 A1
10 001 01 1 1 0 1 0 1 1 A9
11 001 01 1 1 0 1 0 1 1 B1
12 001 01 1 1 0 1 0 1 1 B9
13 001 01 1 1 0 1 0 1 1 C1
14 001 01 1 1 0 1 0 1 1 C9
15 001 01 1 1 0 1 0 1 1 D1
16 000 00 1 0 0 0 0 0 0 00
17 001 01 1 1 0 1 0 1 1 D9
IRQ to pin mappings:
IRQ0 - 0:2
IRQ1 - 0:1
IRQ3 - 0:3
IRQ4 - 0:4
IRQ5 - 0:5
IRQ6 - 0:6
IRQ7 - 0:7
IRQ8 - 0:8
IRQ9 - 0:9
IRQ10 - 0:10
IRQ11 - 0:11
IRQ12 - 0:12
IRQ13 - 0:13
IRQ14 - 0:14
IRQ15 - 0:15
IRQ16 - 0:16
IRQ17 - 0:17
IRQ18 - 0:18
IRQ19 - 0:19
IRQ20 - 0:20
IRQ21 - 0:21
IRQ23 - 0:23
.................................... done.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 2399.9564 MHz.
..... host bus clock speed is 133.3307 MHz.
cpu: 0, clocks: 1333307, slice: 666653
CPU0<T0:1333296,T1:666640,D:3,S:666653,C:1333307
 
Old 11-06-2003, 03:12 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Where is the output of lsmod? Also, it's good idead to turn off smilies. You probably already know that to module you need is called i810_audio. What happens when you load it manually with modprobe?
 
Old 11-06-2003, 06:08 AM   #3
dhanagopal
LQ Newbie
 
Registered: Oct 2003
Location: Pondicherry
Distribution: Mandrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
Installaing onboard AC97 sound in mandarake 9.1

Hello adz

Below is my lsmod output. Please Check

R.Dhanagopal


[root@rd@vcrc root]# lsmod
Module Size Used by Not tainted
sg 34636 0 (autoclean) (unused)
st 29488 0 (autoclean) (unused)
sr_mod 16920 0 (autoclean) (unused)
sd_mod 13100 0 (autoclean) (unused)
scsi_mod 103284 4 (autoclean) [sg st sr_mod sd_mod]
autofs4 11540 2 (autoclean)
parport_pc 25096 1 (autoclean)
lp 8096 0 (autoclean)
parport 34176 1 (autoclean) [parport_pc lp]
nfsd 74256 0 (autoclean)
af_packet 14952 0 (autoclean)
ide-floppy 15580 0 (autoclean)
ide-tape 48304 0 (autoclean)
ide-cd 33856 0 (autoclean)
cdrom 31648 0 (autoclean) [sr_mod ide-cd]
floppy 55132 0
eepro100 21844 1 (autoclean)
mii 3832 0 (autoclean) [eepro100]
ohci1394 19048 0 (unused)
ieee1394 45900 0 [ohci1394]
nls_iso8859-1 3516 2 (autoclean)
nls_cp850 4316 2 (autoclean)
vfat 11820 2 (autoclean)
fat 37944 0 (autoclean) [vfat]
supermount 15296 2 (autoclean)
i810_audio 26248 1
soundcore 6276 0 [i810_audio]
ac97_codec 12488 0 [i810_audio]
scanner 10904 0
ehci-hcd 18568 0 (unused)
usb-uhci 24652 0 (unused)
usbcore 72992 1 [scanner ehci-hcd usb-uhci]
rtc 8060 0 (autoclean)
ext3 59916 1
jbd 38972 1 [ext3]


[root@rd@vcrc root]# echo asdf>/dev/dsp
-bash: /dev/dsp: Is a directory
[root@rd@vcrc root]# lspcidrake -v |fgrep AUDIO
i810_audio : Intel Corporation|ICH4 845G/GL Chipset AC'97 Audio Controller [MULTIMEDIA_AUDIO] (vendor:8086 device:24c5 subv:8086 subd:0109)
[root@rd@vcrc root]# grep sound-slot /etc/module.conf
grep: /etc/module.conf: No such file or directory
[root@rd@vcrc root]# grep sound-slot /etc/modules.conf
alias sound-slot-0 ich4 845g/gl ac'97 audio controller
[root@rd@vcrc root]# /sbin/chkconfig --list sound
sound 0ff 1ff 2n 3n 4n 5n 6ff
[root@rd@vcrc root]# /sbin/fuser -v /dev/dsp
 
Old 11-06-2003, 07:02 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Hmmm... So the module, core and codec are loading. There's only one thing I can think of. Do you have permission to open /dev/dsp (check permissions and group ownership)? I'm finding it hard to believe that it's a directory. Also, make sure ALL of your volume levels are up. Does it actually play but no sound comes out or does it error out?
 
Old 11-06-2003, 11:12 PM   #5
dhanagopal
LQ Newbie
 
Registered: Oct 2003
Location: Pondicherry
Distribution: Mandrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
Hi

I am multibooting my system with windows XP and Mandrake 9.1. The speaker is working fine in windows.The volume level is raised to the maximum in aumix. I wonder while booting why the following error message

device /dev/dsp can't be opened. Is a directory. The sound server is starting with null output.

Whenever I restart the system /dev/dsp is created as a directory. I understand /dsp should be a character device. So I removed /dsp found under /dev directory and gave soft link using the command

ln -s /dev/sound/dsp

for /sound/dsp. Even then the sound is not playing.

I checked /dev/dsp and have permission to read execute. I have no clues!
 
Old 11-06-2003, 11:42 PM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
It should be linked to dsp0 most likely. Link it using the command ln -s dsp0 dsp from the /dev directory.
 
Old 11-07-2003, 05:35 AM   #7
dhanagopal
LQ Newbie
 
Registered: Oct 2003
Location: Pondicherry
Distribution: Mandrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
I tried your suggestion. Even after giving link to dsp0 no sound is playing. I don't know whether this problem mandrake 9.1 specific or onboard ac97 related. I read many threads related to this problem. But no solution?
 
Old 11-07-2003, 07:10 AM   #8
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
No I have the onboard ac97 using the i810_audio driver. It works fine. I'm not sure what else there is. I can't think of anything else.
 
Old 11-07-2003, 09:14 AM   #9
supertechmyers
LQ Newbie
 
Registered: Nov 2003
Location: Norfolk, Virginia
Distribution: Slackware 9.1
Posts: 25

Rep: Reputation: 15
Same Problem

I have had the same problem only using redhat 9.1.

how I fixed it was I entered the bios and changed my onboard sound card detection to enabled instead of auto and I also changed my current os to non plug and play. If you have the option, manually select the IRQs that you onboard sound card is using, this seems to make it detect alot better by the linux 2.4 kernel. Its probably working in windows because windows is much better at detecting plug and pray chipsets than linux.

and if all else fails disable that onboard crap and put a real soundcard in. If you need one I have plenty of sound cards laying around that I could mail you.

Last edited by supertechmyers; 11-07-2003 at 09:16 AM.
 
Old 11-07-2003, 10:13 AM   #10
jolly1701
Member
 
Registered: Nov 2003
Location: England, UK.
Distribution: SuSE 10
Posts: 126

Rep: Reputation: 15
have u checked the sound mixer & made sure its not muted
 
Old 11-10-2003, 05:43 AM   #11
dhanagopal
LQ Newbie
 
Registered: Oct 2003
Location: Pondicherry
Distribution: Mandrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
I disabled the auto plug and play in bios and rebooted into mandrake 9.1. again verified. Sound module, core and codec are properly loaded. In kmix and aumix volume levels are raised full not muted. /dev/dsp has 777 permission. I tested playing sound from control panel and also in xmms. No sound. I could not guess what is wrong.

Dhanagopal
 
Old 11-13-2003, 05:45 AM   #12
minevax
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
Hi, I have a similar problem that I cannot record from line-in after I have swapped the RH9 harddisk out and back again. It was working perfectly fine b4. Now I can play sound but not able to record.

Have u check if your speakers are working?

Minevax
 
Old 11-13-2003, 06:31 AM   #13
matthewhardwick
Member
 
Registered: Oct 2003
Location: CA
Posts: 165

Rep: Reputation: 30
it should automatically pick up and sound chip that is supported, includeing the ac97! It works fine on one of my motherboards.
try running sndconfig as root on a command line. if it aint installed look for redhat sound configurator, or search for sndconfig on the install packages module of the mandrake control centre. Intsall it and then run sndocnfig. Itll take a little while but then itll say found a AC97 whatever chipset you have and configure linux and it for you. If that dont work try a reinstall.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA, onboard sound and AC97 codec the_gumster Linux - Hardware 2 05-07-2004 10:58 PM
realtec ac97 onboard sound bryanlivengood Linux - Hardware 1 07-16-2003 11:27 AM
Slackware sound (AC97 onboard) slacker001 Slackware 12 06-16-2003 02:51 AM
SiS 7012 AC97 onboard sound MatthewTux Linux - Hardware 4 03-29-2003 07:17 PM
RH7.3 and AC97 onboard sound (FIC mobo) TheClam Linux - Hardware 0 09-04-2002 09:30 PM


All times are GMT -5. The time now is 04:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration