Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Request help with ALSA and MCP61
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
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Fri Oct 28, 2011 10:55 pm    Post subject: [SOLVED] Request help with ALSA and MCP61 Reply with quote

Alsaconf (alsa-utils 1.0.24.2-r1) keeps reporting "No sound card detected". Various guides say that the right module for NForce 430 (MCP61) is snd-intel8x0 or snd-hda-intel. I've tried both. I know the hardware is good because I booted from an old Windows 2000 hard drive and lots of sound came out of the powered speakers. I also can play youtube videos under Win2k. So the hardware is good and the speakers are plugged into the correct socket.

Output of lspci

    00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
    00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
    00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
    00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
    00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a2)
    00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a2)
    00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
    00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
    00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
    00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
    00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
    00:08.1 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
    00:0d.0 VGA compatible controller: nVidia Corporation C61 [GeForce 6150SE nForce 430] (rev a2)
    00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
    00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
    00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
    00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
    01:06.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)


Output of lsmod |grep snd

    snd_seq_oss 22208 0
    snd_seq_midi_event 3640 1 snd_seq_oss
    snd_seq 36608 4 snd_seq_oss,snd_seq_midi_event
    snd_seq_device 3976 2 snd_seq_oss,snd_seq
    snd_pcm_oss 33168 0
    snd_mixer_oss 11080 1 snd_pcm_oss
    snd_intel8x0 22320 0
    snd_ac97_codec 88760 1 snd_intel8x0
    ac97_bus 792 1 snd_ac97_codec
    snd_hda_codec_realtek 278360 1
    snd_hda_intel 18440 1
    snd_hda_codec 49760 2 snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep 4400 1 snd_hda_codec
    snd_pcm 56128 5 snd_pcm_oss,snd_intel8x0,snd_ac97_codec,snd_hda_intel,snd_hda_codec
    snd_timer 14484 2 snd_seq,snd_pcm
    snd 43424 15 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
    soundcore 3888 1 snd
    snd_page_alloc 5240 3 snd_intel8x0,snd_hda_intel,snd_pcm


Finally, the contents of /etc/modprobe.d/alsa.conf:
Code:
# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
alias snd-card-0 snd-hda-intel
#alias snd-card-0 snd_intel8x0

## alias snd-card-1 snd-ens1371
##  OSS/Free portion
 alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1


Oh yeah, uname -a
Quote:
Linux gentoo.MsHome 3.0.6-gentoo_fix_snd #1 SMP PREEMPT Thu Oct 27 20:40:20 CDT 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linux


Last edited by Tony0945 on Fri Nov 04, 2011 2:36 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Sat Oct 29, 2011 7:43 pm    Post subject: Reply with quote

Tony0945,

Your setup is correct, as far as you have shown it.

What does ls -l /dev/snd show ?
Is your normal user in the audio group ?

Run alsamixer and check that Master and PCM/Front are not muted and the sliders are set to about 70%
Ensure that headphones (if you have that control) and any controls with IEC or S/PDIF in their names are muted.

Do you have alsasound in the default runlevel?
That service preserves your sound settings across reboots. Without it, your sound will me muted after reboot.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Oct 29, 2011 9:34 pm    Post subject: Reply with quote

ran alsamixer and muted/unmuted as suggested. Set all to 100% instead of 70% in an attempt to hear anything at all, distorted or not.

ls -l /dev/snd
    total 0
    drwxr-xr-x 2 root root 60 Oct 28 10:33 by-path
    crw-rw---- 1 root audio 116, 8 Oct 28 10:33 controlC0
    crw-rw---- 1 root audio 116, 7 Oct 28 10:33 hwC0D0
    crw-rw---- 1 root audio 116, 6 Oct 28 10:33 pcmC0D0c
    crw-rw---- 1 root audio 116, 5 Oct 29 16:18 pcmC0D0p
    crw-rw---- 1 root audio 116, 4 Oct 28 10:33 pcmC0D1c
    crw-rw---- 1 root audio 116, 3 Oct 28 10:33 pcmC0D1p
    crw-rw---- 1 root audio 116, 2 Oct 28 10:33 pcmC0D2c
    crw-rw---- 1 root audio 116, 1 Oct 28 15:34 seq
    crw-rw---- 1 root audio 116, 33 Oct 28 10:33 timer


all users including root are in audio group
I've been trying to test by playing youtube videos on firefox. Is there a better way?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Oct 30, 2011 3:21 am    Post subject: Reply with quote

Ignore alsaconf.

Standard test:
Code:
speaker-test -D default -c 2 -t wav
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sun Oct 30, 2011 1:09 pm    Post subject: Reply with quote

More info: cat /proc/asound/cards

(I have an nforce 430 that shows as MPC61 in many "what is actually installed"
outputs, but the real soundchip is a realtek alc883 or alc888 (different
sources disagree on this). Your list of modules shows a realtek codec loaded,
so it should be working.)

edit:
Posting the first 6 lines of
Code:

cat /proc/asound/card0/codec#0

should provide more specific information.
_________________
TIA


Last edited by wcg on Wed Nov 02, 2011 1:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Sun Oct 30, 2011 5:00 pm    Post subject: Reply with quote

Tony0945,

The good news is that you only have a single sound card and it shows all the right things in /dev/snd
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sun Oct 30, 2011 10:03 pm    Post subject: Reply with quote

Quote:
Ignore alsaconf.

Standard test:
Code:
speaker-test -D default -c 2 -t wav

Seems like the official docs need updating.http://www.gentoo.org/doc/en/alsa-guide.xml

Anyway, I ran the test, no sound.


Quote:
edit:
Posting the first 6 lines of
Code:

cat /proc/asound/card0/codec#0

should provide more specific information.


cat /proc/asound/card0/codec#0 | more
Codec: Realtek ALC883



Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x10ec0883
Subsystem Id: 0x1458e601
Revision Id: 0x100002
No Modem Function Group found
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM

cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xef000000 irq 22
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Tue Nov 01, 2011 1:46 pm    Post subject: Reply with quote

Quote:

cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xef000000 irq 22


That is just what I have (different irq and address, but that does not matter;
that would vary with what all hardware the kernel finds at boot).

One difference is that I have sound built in rather than as modules,
but afaik it should work as modules.

Did you try just using alsamixer directly rather than running alsaconf
first (to adjust volume levels)?
_________________
TIA
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Nov 01, 2011 1:54 pm    Post subject: Reply with quote

Tony0945 wrote:
Anyway, I ran the test, no sound.

The exact error message would be more helpful than your summary.
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Wed Nov 02, 2011 2:22 pm    Post subject: Reply with quote

(From /proc/asound/card0/codec#0)
Quote:

Revision Id: 0x100002


Mine is "Revision id: 0x10001". One would not expect that to matter,
but who knows.

Here is what all is enabled in my (2.6.3x) kernels under sound support
on an amd64 nforce430 box where sound works:
Code:

CONFIG_SOUND=y
CONFIG_SOUND_OSS_CORE=y
# CONFIG_SOUND_OSS_CORE_PRECLAIM is not set
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
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_HRTIMER=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_DYNAMIC_MINORS=y
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
[snip]
CONFIG_SND_DRIVERS=y
[snip]
CONFIG_SND_PCI=y
[snip]
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
[snip]
CONFIG_SND_HDA_CODEC_REALTEK=y
[snip]
CONFIG_SND_HDA_CODEC_HDMI=y
[snip]
CONFIG_SND_HDA_GENERIC=y


That last one you probably do not need with the Realtek codec enabled.
I enabled it when I first configured the kernel for sound and did not
know whether any of the more specific codecs would work, and how much
space could it use up, really? Too trivial to disable.

So I would expect your /usr/src/linux/.config file to have "=y" or "=m"
for most or all of those.
_________________
TIA
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Fri Nov 04, 2011 2:29 am    Post subject: Reply with quote

Quote:
Tony0945 wrote:
Anyway, I ran the test, no sound.

The exact error message would be more helpful than your summary.


No error message, just no sound.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Fri Nov 04, 2011 2:35 am    Post subject: Reply with quote

Thank you to everyone who tried to help.

I now have sound. I pulled the plug from the "Line Out" green jack and plugged it into the "C-S" (Center Surround) black jack. The speaker-test program then produced sound. Incredibly, Windows works in either position, Gentoo works only in the wrong position.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Nov 04, 2011 1:39 pm    Post subject: Reply with quote

Sounds like you are missing a model= setting.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Nov 05, 2011 9:24 pm    Post subject: Reply with quote

Whoa, Paul! What's a model= setting and where does it go? In /etc/modprobe.d/alsa.conf?

Can you post a link, please?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Sun Nov 06, 2011 5:24 pm    Post subject: Reply with quote

Tony0945,

Read /usr/src/linux/Documentation/sound/alsa/...

ALSA-Configuration.txt and HD-Audio*
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Mon Nov 07, 2011 3:12 am    Post subject: Reply with quote

That is one major difference: since I do not use loadable kernel
modules, I would expect that it never reads /etc/modprobe.d/alsa.conf
at boot. This box has no /etc/asound or ~/.asoundrc files either.
(There is a /usr/share/alsa/alsa.conf, but I have never modified it
after installation of the alsa utilities, and I expect that it has only
default settings.)

Yet sound works, both the output jack on the back panel and
headphones. (I do not think I have a C-S jack. The back panel
only shows "in", "out", and "mic", with headphones and mic
on the front panel. Maybe that is something you get with
Revision id 100002, 5.1 surround output support.)

You could try moving your /etc/modprobe.d/alsa.conf file out of the way,
booting without it, and see what happens. (See if you get output from
both output jacks.)
_________________
TIA
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Mon Nov 07, 2011 2:30 pm    Post subject: Reply with quote

Thank you very much Neddy. There is a TON of info there.

Based on that info, I have added this line to /etc/modprobe.d/alsa.conf

Code:
options snd-hda-intel  model=6stack-dig


Apparently some mobos have three jacks and some have 6.
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