LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-27-2007, 09:57 PM   #1
chastulsa
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Rep: Reputation: 0
Alsa and AC97


Ok how do I change my sound card? it detected stupid modem as sound card and now I lost sound. I reran alsaconf and reinstalled newest drivers alsaconf detects my ac97 card but alamixer shows conexant?

Card: Conexant CX8801 ││ Chip: CX88 ││ View: [Playback] Capture All



i have intel ac97 how to I change the device?
 
Old 07-28-2007, 12:27 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I don't think that AC'97 is actually what the sound chip is. Please post the output of: "/sbin/lspci | grep -i audio" to get your true audio chipset.
 
Old 07-28-2007, 08:56 AM   #3
chastulsa
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Code:
bash: /sbin/lspci: No such file or directory
alsa conf finds

Code:
intel8x0                         Intel Corporation 82801EB/ER AC97
thanks for the help!
 
Old 07-28-2007, 09:06 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
If your Linux distribution does not have "/sbin/lspci" you need to get another one. That is standard for every Linux, afaik. So what other advice is going to work for that box?

As root issue "modprobe snd-intel8x0" and that should get your sound chip inserted in the kernel. Then issue "lsmod" and pray you have a listing of your modules. If you do, post the output here ... using code tags as you've done before.

To check your sound, if you have some intel8x0 modules, issue "speaker-test -Dplug:front -c2 -t wav" in a terminal. If that doesn't work, issue "cat /dev/urandom > /dev/dsp" and be ready to quickly hit "Ctrl+C" to stop the output.
 
Old 07-28-2007, 11:10 AM   #5
chastulsa
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Bruce Hill
If your Linux distribution does not have "/sbin/lspci" you need to get another one. That is standard for every Linux, afaik. So what other advice is going to work for that box?

As root issue "modprobe snd-intel8x0" and that should get your sound chip inserted in the kernel. Then issue "lsmod" and pray you have a listing of your modules. If you do, post the output here ... using code tags as you've done before.

To check your sound, if you have some intel8x0 modules, issue "speaker-test -Dplug:front -c2 -t wav" in a terminal. If that doesn't work, issue "cat /dev/urandom > /dev/dsp" and be ready to quickly hit "Ctrl+C" to stop the output.

lsmod
Code:
debian:/home/chas# lsmod
Module                  Size  Used by
snd_intel8x0           30332  0
snd_ac97_codec         83104  1 snd_intel8x0
snd_ac97_bus            2400  1 snd_ac97_codec
binfmt_misc            10984  1
ipv6                  226016  14
ppdev                   8676  0
lp                     11012  0
button                  6672  0
ac                      5188  0
battery                 9636  0
piix                    9444  0 [permanent]
fuse                   39828  5
dm_snapshot            15552  0
dm_mirror              19152  0
dm_mod                 50232  2 dm_snapshot,dm_mirror
nvidia               4549908  12
sbp2                   20840  0
loop                   15048  0
cx88_blackbird         16996  0
cx2341x                10308  1 cx88_blackbird
tuner                  53256  0
tsdev                   7520  0
cx88_dvb               13636  0
cx8802                 11812  2 cx88_blackbird,cx88_dvb
cx88_vp3054_i2c         4384  1 cx88_dvb
mt352                   6276  1 cx88_dvb
dvb_pll                14308  1 cx88_dvb
or51132                 9476  1 cx88_dvb
video_buf_dvb           6436  1 cx88_dvb
dvb_core               71560  1 video_buf_dvb
cx88_alsa              12360  0
nxt200x                12260  1 cx88_dvb
firmware_class          9600  3 cx88_blackbird,or51132,nxt200x
cx8800                 31372  1 cx88_blackbird
cx88xx                 58276  5 cx88_blackbird,cx88_dvb,cx8802,cx88_alsa,cx8800
isl6421                 2400  1 cx88_dvb
zl10353                 5252  1 cx88_dvb
cx24123                11336  1 cx88_dvb
lgdt330x                7708  1 cx88_dvb
snd_pcm                68676  3 snd_intel8x0,snd_ac97_codec,cx88_alsa
snd_timer              20996  1 snd_pcm
ir_common              27780  1 cx88xx
floppy                 53156  0
usbhid                 37248  0
cx22702                 5892  1 cx88_dvb
i2c_algo_bit            8424  2 cx88_vp3054_i2c,cx88xx
ati_remote             11208  0
parport_pc             32132  1
parport                33256  3 ppdev,lp,parport_pc
snd                    47012  5 snd_intel8x0,snd_ac97_codec,cx88_alsa,snd_pcm,snd_timer
video_buf              23012  7 cx88_blackbird,cx88_dvb,cx8802,video_buf_dvb,cx88_alsa,cx8800,cx88xx
tveeprom               13840  1 cx88xx
compat_ioctl32          1472  1 cx8800
btcx_risc               4776  4 cx8802,cx88_alsa,cx8800,cx88xx
videodev               21120  3 cx88_blackbird,cx8800,cx88xx
v4l1_compat            12036  2 cx8800,videodev
v4l2_common            20448  5 cx88_blackbird,cx2341x,tuner,cx8800,videodev
evdev                   9088  4
psmouse                35016  0
serio_raw               6660  0
soundcore               9248  1 snd
i2c_i801                7468  0
pcspkr                  3072  0
snd_page_alloc          9640  2 snd_intel8x0,snd_pcm
i2c_core               19680  16 nvidia,tuner,cx88_dvb,mt352,dvb_pll,or51132,nxt200x,cx88xx,isl6421,zl10353,cx24123,lgdt330x,cx22702,i2c_algo_bit,tveeprom,i2c_i801
shpchp                 33024  0
pci_hotplug            28704  1 shpchp
intel_agp              21148  1
agpgart                29896  2 nvidia,intel_agp
sg                     31292  0
sr_mod                 15876  0
cdrom                  32544  1 sr_mod
eth1394                18212  0
ext3                  119240  1
jbd                    52456  1 ext3
mbcache                 8356  1 ext3
usb_storage            71840  0
sd_mod                 19040  7
generic                 5476  0 [permanent]
ide_core              110504  3 piix,usb_storage,generic
ata_piix               13576  4
ohci1394               30800  0
r8169                  28360  0
ieee1394               86904  3 sbp2,eth1394,ohci1394
libata                 89396  1 ata_piix
scsi_mod              124168  6 sbp2,sg,sr_mod,usb_storage,sd_mod,libata
ehci_hcd               28136  0
uhci_hcd               21164  0
usbcore               112644  6 usbhid,ati_remote,usb_storage,ehci_hcd,uhci_hcd
thermal                13608  0
processor              28840  1 thermal
fan                     4804  0
debian:/home/chas#
speaker-test -Dplug:front -c2 -t wav
Code:
ALSA lib pcm.c:2014:(snd_pcm_open_conf) Invalid type for PCM front definition (id: front, value: cards.pcm.front)
Playback open error: -22,Invalid argument
cat /dev/urandom > /dev/dsp

Code:
debian:/home/chas# cat /dev/urandom > /dev/dsp
cat: write error: No space left on device
debian:/home/chas#
debian:/home/chas# ac                      5188  0
bash: ac: command not found
debian:/home/chas# battery                 9636  0
bash: battery: command not found
debian:/home/chas# piix                    9444  0 [permanent]
bash: piix: command not found
debian:/home/chas# fuse                   39828  5
 
Old 07-28-2007, 12:23 PM   #6
krassi
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian 4 (x86_64); openSUSE 10.2 (x86_64); Knoppix 5.1.1 (as needed); still installing Slackware 12
Posts: 25

Rep: Reputation: 15
If 'alsaconf' detects the right card you are halfway through - with mine that was the hardest part. Just in case check to see if the right card is in '/etc/modprobe.d/sound' and then modprobe the module - it should be snd-hda-intel. Then check to see if the sound works properly. If it does do a 'alsactl store' just in case.

Post back if you are still having problems.

Have fun!
Krassi
 
Old 07-28-2007, 01:40 PM   #7
chastulsa
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by krassi
If 'alsaconf' detects the right card you are halfway through - with mine that was the hardest part. Just in case check to see if the right card is in '/etc/modprobe.d/sound' and then modprobe the module - it should be snd-hda-intel. Then check to see if the sound works properly. If it does do a 'alsactl store' just in case.

Post back if you are still having problems.

Have fun!
Krassi
bash: /etc/modprobe.d/sound: Permission denied
 
Old 07-28-2007, 03:15 PM   #8
krassi
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian 4 (x86_64); openSUSE 10.2 (x86_64); Knoppix 5.1.1 (as needed); still installing Slackware 12
Posts: 25

Rep: Reputation: 15
sorry ... you need to be root when running/editing any of these. /etc/modprobe.d/sound is a short file - use cat or vim to see it.

HF!
Krassi
 
Old 07-28-2007, 07:20 PM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I still refuse to believe that "lspci" is not installed on a Debian system. That one command will show us which sound card chipset you need to use. Issue it as root, just "lspci" without the " marks and post the output.

When you find the correct sound module to use, you're going to need to remove (rmmod) the other ones you have there.

You got a serious looking problem here:
Quote:
debian:/home/chas# cat /dev/urandom > /dev/dsp
cat: write error: No space left on device
What is the output of "df -hT" ?
 
Old 07-28-2007, 09:14 PM   #10
chastulsa
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Bruce Hill
I still refuse to believe that "lspci" is not installed on a Debian system. That one command will show us which sound card chipset you need to use. Issue it as root, just "lspci" without the " marks and post the output.

When you find the correct sound module to use, you're going to need to remove (rmmod) the other ones you have there.

You got a serious looking problem here:

What is the output of "df -hT" ?

lspci

Code:
debian:/home/chas# lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV40 [GeForce 6800] (rev a1)
02:02.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
02:03.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
02:03.1 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
02:03.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
02:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
and df-ht

Code:
debian:/home/chas# df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sdb1     ext3    181G   24G  149G  14% /
tmpfs        tmpfs   1015M     0 1015M   0% /lib/init/rw
udev         tmpfs     10M   10M     0 100% /dev
tmpfs        tmpfs   1015M     0 1015M   0% /dev/shm
/dev/sda1     fuse    115G  110G  5.1G  96% /media/sda1
/dev/sdc1     fuse    233G  147G   87G  63% /media/sdc1
debian:/home/chas#
also I think the conexant is my "ATI HDTV WONDER" after looking at the above.

Last edited by chastulsa; 07-28-2007 at 09:17 PM.
 
Old 07-28-2007, 09:27 PM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
So Debian does have lspci installed.

Now look at what you've got in that box:
Code:
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio
That's your audio controller.

This other entry:
Code:
02:03.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
02:03.1 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
02:03.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
is a video controller. I would guess a PCI video capture card?

I don't use Debian, nor do I have any Intel chipsets. But Krassi, who does, wrote:
Quote:
check to see if the right card is in '/etc/modprobe.d/sound' and then modprobe the module - it should be snd-hda-intel.
So what you need to do, while root in that terminal, is issue "cat /etc/modprobe.d/sound" and see what's in there. You could post that output and Krassi will help you from there. If you see "snd-hda-intel" and he's right, issue as root "modprobe snd-hda-intel" and then it should show up in "lsmod" output, and you should have sound.

I asked you to post "df -hT" because previously you posted:
Quote:
debian:/home/chas# cat /dev/urandom > /dev/dsp
cat: write error: No space left on device
I don't know how your system is setup like that, but this looks terribly weird to me:
Quote:
tmpfs tmpfs 1015M 0 1015M 0% /lib/init/rw
udev tmpfs 10M 10M 0 100% /dev
tmpfs tmpfs 1015M 0 1015M 0% /dev/shm
Such as, why is udev mounted on a tmpfs? The mount point is /dev and it is full. Strange to me ...
 
Old 07-28-2007, 09:42 PM   #12
chastulsa
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by krassi
sorry ... you need to be root when running/editing any of these. /etc/modprobe.d/sound is a short file - use cat or vim to see it.

HF!
Krassi
alias snd-card-0 snd-intel8x0
options snd-intel8x0 index=0

Last edited by chastulsa; 07-28-2007 at 09:45 PM.
 
Old 07-29-2007, 02:08 PM   #13
krassi
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian 4 (x86_64); openSUSE 10.2 (x86_64); Knoppix 5.1.1 (as needed); still installing Slackware 12
Posts: 25

Rep: Reputation: 15
As Bruce said that Conexant thingie looks like a A/V capture card. If you don't use it you can just do (everything following is as su)
Code:
modprobe -r cx88_alsa
Then try running alsamixer again. It should only see the Intel card. If it does do a 'alsactl store' and restart alsa:
# /etc/init.d/alsasound restart
Now you can test the sound. If it still sees the modem or the A/V capture thingie post me an output from
# cat /proc/asound/cards
If the Conexant (cx88) is the first card in the list add 'options snd-cx88-alsa dsp_map=-2' at the end of '/etc/modprobe.d/alsa-base' and reload the alsa modules by '/etc/init.d/alsa reload' or you may just need to restart alsasound.

Here is probably everything you need to know to troubleshoot sound in Debian: http://www.debianhelp.co.uk/sound.htm

If you are still having problems post the output from (as a normal user do):
1. $ cat /proc/asound/cards
2. $ cat ~/.asoundrc (if you have it)
3. $ cat /etc/asound.conf (if you have it)

HF!
Krassi
 
Old 07-29-2007, 09:31 PM   #14
chastulsa
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by krassi
As Bruce said that Conexant thingie looks like a A/V capture card. If you don't use it you can just do (everything following is as su)
Code:
modprobe -r cx88_alsa
Then try running alsamixer again. It should only see the Intel card. If it does do a 'alsactl store' and restart alsa:
# /etc/init.d/alsasound restart
Now you can test the sound. If it still sees the modem or the A/V capture thingie post me an output from
# cat /proc/asound/cards
If the Conexant (cx88) is the first card in the list add 'options snd-cx88-alsa dsp_map=-2' at the end of '/etc/modprobe.d/alsa-base' and reload the alsa modules by '/etc/init.d/alsa reload' or you may just need to restart alsasound.

Here is probably everything you need to know to troubleshoot sound in Debian: http://www.debianhelp.co.uk/sound.htm

If you are still having problems post the output from (as a normal user do):
1. $ cat /proc/asound/cards
2. $ cat ~/.asoundrc (if you have it)
3. $ cat /etc/asound.conf (if you have it)

HF!
Krassi

1. $ cat /proc/asound/cards
Code:
debian:/home/chas# cat /proc/asound/cards
 0 [ICH5           ]: ICH4 - Intel ICH5
                      Intel ICH5 with ALC655 at 0xeffffa00, irq 209

2. $ cat ~/.asoundrc (if you have it)
Code:
debian:/home/chas# at ~/.asoundrc
syntax error. Last token seen: /
Garbled time


3. $ cat /etc/asound.conf (if you have it)
Code:
debian:/home/chas# cat /etc/asound.conf
cat: /etc/asound.conf: No such file or directory
so sound mixer shows the right card i have sound on some appz but not all?
 
Old 07-29-2007, 10:35 PM   #15
krassi
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian 4 (x86_64); openSUSE 10.2 (x86_64); Knoppix 5.1.1 (as needed); still installing Slackware 12
Posts: 25

Rep: Reputation: 15
Everything looks right - I don't want to say terribly right. Try this:
1. (as root) alsactl store
2. Restart the PC
3. After you boot back in run alsamixer again. Everything should be fine. Test with a few programs like juk, amarok, so on. If you find that some of them recognize the right card and others don't take note of which do and don't and post us back. We'll figure it out from there.

HF!
Krassi

PS: Don't despair we'll figure it out.
 
  


Reply



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 ignorant of my ac97 greeklegend Linux From Scratch 4 12-01-2006 02:16 AM
AC97 with ALSA 10.1 Bobymc Linux - Hardware 2 04-23-2006 11:51 AM
Alsa problems AC97 etc...help!!! GoinEasy9 Linux - General 10 03-23-2004 01:52 PM
AC97 on A7V8X-X, alsa .. help please~~~ Tunick Linux - Hardware 1 08-04-2003 02:24 PM
ac97+alsa problems JoNaX Linux - Hardware 0 04-05-2003 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:40 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
Open Source Consulting | Domain Registration