Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
scap1784
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 225

PostPosted: Tue Aug 28, 2007 5:59 am    Post subject: Sound not working Reply with quote

scap@Earth:~$ alsamixer /dev/sound/adsp3
No mixer elems found

From dmesg:

Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
no UART detected at 0x1
Motu MidiTimePiece on parallel port irq: 7 ioport: 0x378
ACPI: PCI Interrupt Link [APCJ] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:04.0[A] -> Link [APCJ] -> GSI 22 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:04.0 to 64
intel8x0_measure_ac97_clock: measured 58667 usecs
intel8x0: clocking to 46934
ALSA device list:
#0: Virtual MIDI Card 1
#1: MTPAV on parallel port at 0x378
#2: MPU-401 UART at 0x330, irq 10
#3: NVidia CK804 with ALC850 at irq 22

From the kernel config:

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=y
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
CONFIG_SND_MPU401_UART=y
CONFIG_SND_OPL3_LIB=y
CONFIG_SND_VX_LIB=y
CONFIG_SND_AC97_CODEC=y
# CONFIG_SND_DUMMY is not set
CONFIG_SND_VIRMIDI=y
CONFIG_SND_MTPAV=y
CONFIG_SND_SERIAL_U16550=y
CONFIG_SND_MPU401=y

#
# PCI devices
#
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
CONFIG_SND_ALS4000=y
CONFIG_SND_ALI5451=y
CONFIG_SND_ATIIXP=y
CONFIG_SND_ATIIXP_MODEM=y
CONFIG_SND_AU8810=y
CONFIG_SND_AU8820=y
CONFIG_SND_AU8830=y
CONFIG_SND_AZT3328=y
CONFIG_SND_BT87X=y
# CONFIG_SND_BT87X_OVERCLOCK is not set
CONFIG_SND_CA0106=y
CONFIG_SND_CMIPCI=y
CONFIG_SND_CS4281=y
CONFIG_SND_CS46XX=y
# CONFIG_SND_CS46XX_NEW_DSP is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
CONFIG_SND_EMU10K1=y
CONFIG_SND_EMU10K1X=y
CONFIG_SND_ENS1370=y
CONFIG_SND_ENS1371=y
CONFIG_SND_ES1938=y
CONFIG_SND_ES1968=y
CONFIG_SND_FM801=y
# CONFIG_SND_FM801_TEA575X_BOOL is not set
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDSP=y
# CONFIG_SND_HDSPM is not set
CONFIG_SND_ICE1712=y
CONFIG_SND_ICE1724=y
CONFIG_SND_INTEL8X0=y
CONFIG_SND_INTEL8X0M=y
CONFIG_SND_KORG1212=y
CONFIG_SND_KORG1212_FIRMWARE_IN_KERNEL=y
CONFIG_SND_MAESTRO3=y
CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL=y
CONFIG_SND_MIXART=y
CONFIG_SND_NM256=y
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
CONFIG_SND_RME32=y
CONFIG_SND_RME96=y
CONFIG_SND_RME9652=y
CONFIG_SND_SONICVIBES=y
CONFIG_SND_TRIDENT=y
CONFIG_SND_VIA82XX=y
CONFIG_SND_VIA82XX_MODEM=y
CONFIG_SND_VX222=y
CONFIG_SND_YMFPCI=y
CONFIG_SND_YMFPCI_FIRMWARE_IN_KERNEL=y


Please advise...
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Tue Aug 28, 2007 6:05 am    Post subject: Reply with quote

scap1784 wrote:
scap@Earth:~$ alsamixer /dev/sound/adsp3
No mixer elems found
wtf?

On a pure alsa system, you don't even need anything in /dev/sound, or any device nodes at all.
Those "dsp" nodes are oss only.

You also shouldn't need to provide any arguments to alsamixer, but you can use the -c flag to specify a sound card if necessary so try that.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
scap1784
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 225

PostPosted: Tue Aug 28, 2007 6:08 am    Post subject: Reply with quote

sorry that was me just trying random things as well. Here is it without any arguments.

scap@Earth:/usr/src/linux$ alsamixer
No mixer elems found
Back to top
View user's profile Send private message
scap1784
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 225

PostPosted: Tue Aug 28, 2007 6:14 am    Post subject: Reply with quote

alsamixer -c 3 worked...

How can I make this device the default? Whenever I play a file using mplayer audacious ... I still get no sound (I did unmute the main and PCM channels).

Scap
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Tue Aug 28, 2007 2:52 pm    Post subject: Reply with quote

scap1784 wrote:
alsamixer -c 3 worked...

How can I make this device the default? Whenever I play a file using mplayer audacious ... I still get no sound (I did unmute the main and PCM channels).

Scap

With most if not all alsa apps you can specify the sound card to use (I know it works with alsa, mpd and audacious at least).

Setting this for each app would of course be a total pain, so have a look at /etc/modules.d/alsa, you should be able set it up so that the "3rd" sound card is identified as "snd-card-0", but I'm not sure as I've never used multiple sound cards in the one box before.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
scap1784
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 225

PostPosted: Tue Aug 28, 2007 4:25 pm    Post subject: Reply with quote

I only have one sound card I really am confused as to why it is doing this.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Tue Aug 28, 2007 5:40 pm    Post subject: Reply with quote

Okay, I think the problem may be all the other unnecessary alsa stuff you have in your kernel.

"CONFIG_SND_INTEL8X0" seems to be the right driver for your card, so you should try disabling all the other pci drivers, as well as all the generic drivers.

Before this though you should just try adding "alias snd-card-0 snd-intel8x0" to .etc/modules.d/alsa, that may be all you need.

You'll probably need to reboot for any changes to take effect, however the fact that you have alsa built into the kernel rather than as modules might prevent this from being effective.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
mizery de aria
Guru
Guru


Joined: 07 Dec 2003
Posts: 309

PostPosted: Sat Aug 02, 2008 5:08 pm    Post subject: Reply with quote

Hopeless wrote:
Before this though you should just try adding "alias snd-card-0 snd-intel8x0" to .etc/modules.d/alsa, that may be all you need.

You'll probably need to reboot for any changes to take effect, however the fact that you have alsa built into the kernel rather than as modules might prevent this from being effective.


I'm having the same issue with Virtual Midi Driver support compiled into my kernel as well as support compiled for intel audio.

I tried modifying /etc/modules.d/alsa specifying
Code:
alias snd-card-0 snd-intel8x0

and also
Code:
alias snd-card-0 snd-hda-intel
and then
Code:
/etc/init.d/alsamixer restart
after each change, but both attempts resulted in
Code:
# alsamixer
No mixer elems found

_________________
Do not repIy to or othErwise communicate with me if you use religious, spiritual or similar terminologies or references in your typings.
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Sat Aug 02, 2008 5:21 pm    Post subject: Reply with quote

Running

aplay -l

will tell you all the ALSA playback devices on your system. It will allow you to see what cards 0 and 1 are.

If you want to change the order of the cards, it's a simple edit to /etc/modules.d/alsa
Append these lines:

options snd-<driver-name> index=0
options snd-<driver-name> index=1

0 being the first device, 1 being the second device.
Back to top
View user's profile Send private message
mizery de aria
Guru
Guru


Joined: 07 Dec 2003
Posts: 309

PostPosted: Sat Aug 02, 2008 5:30 pm    Post subject: Reply with quote

Hopeless wrote:
Before this though you should just try adding "alias snd-card-0 snd-intel8x0" to .etc/modules.d/alsa, that may be all you need.

You'll probably need to reboot for any changes to take effect, however the fact that you have alsa built into the kernel rather than as modules might prevent this from being effective.


I'm having the same issue with Virtual Midi Driver support compiled into my kernel as well as support compiled for intel audio.

I tried modifying /etc/modules.d/alsa specifying
Code:
alias snd-card-0 snd-hda-intel
and then
Code:
/etc/init.d/alsamixer restart
, but that still resulted in
Code:
# alsamixer
No mixer elems found

_________________
Do not repIy to or othErwise communicate with me if you use religious, spiritual or similar terminologies or references in your typings.
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Sat Aug 02, 2008 5:35 pm    Post subject: Reply with quote

Mm, I just tried it myself. Those options lines don't work. Instead add index=0 to the end of this line:

alias snd-card-0 snd-<driver>

This works for me.

As for you mizery, can you tell us the output of lspci?
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Sun Aug 03, 2008 5:44 am    Post subject: Reply with quote

Firstly, you have far too much stuff enabled. If you don't know which device you need to use, find out and get rid of the extra stuff. It messes things up, and can cause conflicts and other problems. It also wastes space.

Secondly, alsa works when the drivers are set up as modules, not compiled into the kernel, as you have done. Read the ALSA guide all the way through, then do what it says. If you can follow instructions, you will have sound.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum