LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Can`t get ATI IXP soundcard to work (http://www.linuxquestions.org/questions/linux-hardware-18/can%60t-get-ati-ixp-soundcard-to-work-399114/)

UnrealX 01-03-2006 12:35 PM

Can`t get ATI IXP soundcard to work
 
I`m using arch linux 0.71 pre1, everything -current.
Got laptop with integrated ATI IXP 400 soundcard, however I just can`t get it working.
I was googling/reading forums/asking ppl for help on IRC for past few days, did everything they said, but still no sound.
Recompiled kernel (2.6.14.5) with ALSA/OSS compiled in and compiled as modules, recompiled alsa following alsa manual page for atiixp soundcards, changed cables, speakers, tried switching outs, ran alsaconf and alsamixer millions of times.

# dmesg | grep -i ati
Quote:

ACPI: FADT (v001 ATI Piranha 0x06040000 ATI 0x000f4240) @ 0x1fea4e20
ACPI: DSDT (v001 ATI SB400 0x06040000 MSFT 0x0100000e) @ 0x00000000
Using ACPI for processor (LAPIC) configuration information
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
Allocating PCI resources starting at 30000000 (gap: 20000000:c0000000)
Calibrating delay using timer specific routine.. 3587.76 BogoMIPS (lpj=7175533)
ATIIXP: IDE controller at PCI slot 0000:00:14.1
ATIIXP: chipset revision 0
ATIIXP: not 100% native mode: will probe irqs later
Failed initialization of WD-7000 SCSI card!
Copyright (c) 1999-2005 LSI Logic Corporation
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
autonegotiation: yes
irq moderation: disabled
# less /var/log/messages.log | grep -i ati
returns the same output

# lsmod | grep -i ati
Quote:

rsrc_nonstatic 12544 1 yenta_socket
pcmcia_core 37912 2 yenta_socket,rsrc_nonstatic
snd_atiixp 18016 4
snd_ac97_codec 95868 1 snd_atiixp
snd_pcm 84868 4 snd_atiixp,snd_ac97_codec,snd_pcm_oss
snd_page_alloc 9096 2 snd_atiixp,snd_pcm
snd 49764 10 snd_atiixp,snd_ac97_codec,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
ati_agp 7692 0
agpgart 30416 2 ati_agp,fglrx
atiixp 5776 0 [permanent]
ide_core 119760 28 usb_storage,ide_floppy,ide_cd,ide_disk,via82cxxx,trm290,triflex,slc90e66,sis5513,siimage,serverworks ,sc1200,rz1000,piix,pdc202xx_old,pdc202xx_new,ns87415,it821x,hpt366,hpt34x,generic,cy82c693,cs5530,c md64x,atiixp,amd74xx,alim15x3,aec62xx
# lshwd | grep -i audio
Quote:

00:14.5 Multimedia audio controller: ATI Technologies Inc.|IXP400 AC'97 Audio Controller (snd-atiixp)
# lspci | grep -i audio
Quote:

00:14.5 Multimedia audio controller: ATI Technologies Inc: Unknown device 4370 (rev 02)
# cat /dev/urandom > /dev/dsp
Quote:

bash: /dev/dsp: Device or resource busy
# fuser /dev/dsp
Quote:

/dev/dsp:
# less /proc/asound/cards
Quote:

0 [IXP ]: ATIIXP - ATI IXP
ATI IXP rev 2 with AD1981B at 0xc0503400, irq 11
# less /proc/asound/version
Quote:

Advanced Linux Sound Architecture Driver Version 1.0.10rc1 (Mon Sep 12 08:13:09 2005 UTC).

ANY suggestions? Will try everything.:scratch:

mimithebrain 01-03-2006 02:04 PM

I have atiixp.

External amplifier needs to be turned on. I use modularized atiixp ALSA drivers (modprobe snd-atiixp)

Check if arts is blocking the sound by any chance, disable arts, (or esound, or whatever sound server is there) and try to play some music using aplay, in the console without having any other applications running.

I load only atiixp, and not that extra modules you are loading.

Try building in the alsa drivers, maybe I'll do a difference.

UnrealX 01-03-2006 02:32 PM

Quote:

External amplifier needs to be turned on.
What`s that?

Quote:

Check if arts is blocking the sound by any chance, disable arts, (or esound, or whatever sound server is there) and try to play some music using aplay, in the console without having any other applications running.
Tried using aplay without running X or anything. No result.

Quote:

I load only atiixp, and not that extra modules you are loading.
Um what extra modules? =/

UnrealX 01-03-2006 04:00 PM

Almost got it.
Accidently i went on this page:
sourceforge.net/mailarchive/forum.php?thread_id=8072079&forum_id=1752
(sorry for url)
It seems that my speakers also work, but super-silently. I had to increase volume to -OdB to hear something.
As I understand so far I have to somehow ,,send the magic string 7a 2090 into /proc/asound/card0/codec97#0/ac97#0-0+regs".
The question is: how. When I try to edit this file with any known editor I get an error complaining ,,There`s no such device" or whatever.

UnrealX 01-03-2006 05:58 PM

Recompiled kernel and alsa with full debug support, it seems now i can edit needed file.
I found this alsa bug:
https://bugtrack.alsa-project.org/al...ew.php?id=1274
There`s temporary solution there. However when I try to apply it i get all values `ffff`.
How come? Help me with this.

mimithebrain 01-03-2006 06:47 PM

snd_ac97_codec
snd_pcm
snd_pcm_oss
snd_page_alloc
snd_mixer_oss

I never needed that, I don't see what they are useful for. As far as dB goes... what? When my card starts up, the values are always the same (manually, without alsasound script in gentoo), master is muted, and at 0, PCM muted, at 0, mic's left side is 100, while the other is at 0. alsasound restores the mixer settings automatically.

External amplifier is a switch that you need to unmute like you would unmute master, and PCM, it's the last device shown in alsamixer actually.


Third, you can't edit a "magic" file with nano or emacs, you need to use the echo command and some bash. Your command translates into:

echo "7a 2090" > /proc/asound/card0/codec97#0/ac97#0-0+regs
(filenames with "#" sign, are you sure?)

UnrealX 01-04-2006 04:58 AM

It`s really not a problem with alsamixer, everything`s unmuted and on 100% here. It`s alsa bug.

Quote:

# echo "7a 2090" > /proc/asound/card0/codec97#0/ac97#0-0+regs
# less ac97#0-0+regs | grep 7a
0:7a = ffff
I`m lost.

mimithebrain 01-04-2006 10:22 AM

There is currently two threads on this subject, one here, and the other at the ALSA bug website.

I want to comment that I'm using 2.6.12-r10 and having no problems, sound works out of the box. But I'll be interested in finding how you boost the sound...

UnrealX 01-06-2006 06:29 AM

Could you post your /etc/asound.state and /proc/asound/card0/codec97#0/ac97#0-0+regs ?

mimithebrain 01-06-2006 09:37 AM

http://mimi.bcdynamic.com/linux/asound.state

regs:
0:00 = 0190
0:02 = 0e0e
0:04 = 8a0a
0:06 = 801f
0:08 = 0000
0:0a = 801e
0:0c = 801f
0:0e = 831f
0:10 = 9f1f
0:12 = 0303
0:14 = 0000
0:16 = 9f1f
0:18 = 0707
0:1a = 0000
0:1c = 0000
0:1e = 0000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 0a07
0:2a = 0411
0:2c = bb80
0:2e = 0000
0:30 = 0000
0:32 = bb80
0:34 = bb80
0:36 = 0000
0:38 = 0000
0:3a = 2824
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0000
0:66 = 0000
0:68 = 0aea
0:6a = 4400
0:6c = 4601
0:6e = 0015
0:70 = 0008
0:72 = 0000
0:74 = 0100
0:76 = 0304
0:78 = 0803
0:7a = 6000
0:7c = 414c
0:7e = 4752

This is a bit loud for values actually, you might want to adjust them.

UnrealX 01-06-2006 09:40 AM

Thanks, going to compare these with my values, will post how is it going.

vitja 01-07-2006 03:44 AM

Hi! If the problem still exist, I could try to help you. vitja@jabber.ru

mimithebrain 01-07-2006 12:03 PM

even better vitja, if you can stick around to fix it so the others can know how you made it work, all the better...

The outside world doesn't have access to your mail/chat logs.

UnrealX 01-07-2006 01:40 PM

Thanks vitja, I will email you just after I post this post.

Mimithebrain > If I`ll fix my soundcard I`ll definetly post the solution here.

EDIT: vitja, it seems that your email provider is malfunctioning. Both my email addressess got rejected.
Please catch me on:
MSN: unrealx at gmail dot com
ICQ: 250868777
or on the worst case (I don`t check it very often)
IRC: chat.freenode.net (nick UnrealX)

UnrealX 01-08-2006 09:54 AM

Huh, just ran alsaconf && alsamixer again, disabled external amplifier and everything is fine.
Just as i started getting into desperate mood.
Wierd.

Thanks for support everybody!


All times are GMT -5. The time now is 07:16 AM.