Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: Gentoo AMD64 <gentoo-amd64@l.g.o>
Subject: Re: [gentoo-amd64] ALSA no sound
Date: Tue, 18 Nov 2014 17:29:13
Message-Id: CAK2H+efDeECv5J5Y_mNCJiaVU3RXn3cBo0sphh2h2gSsqxwt8g@mail.gmail.com
In Reply to: [gentoo-amd64] ALSA no sound by Daiajo Tibdixious
1 On Mon, Nov 17, 2014 at 7:35 PM, Daiajo Tibdixious <daiajo@×××××.com> wrote:
2 > Had gentoo linux for years. Original system had working sound, which
3 > gradually petered out (working in some apps and not others) until no
4 > sound at all.
5 >
6 > Got a new system, a few months old, set it up according to the ALSA
7 > guilde (wiki.gentoo.org/wiki/ALSA) but no sound.
8 >
9 > Physically removed the speakers, plugged into laptop, works fine.
10 > Put back in desktop (linux) and no sound.
11 >
12 > linux # lsof /dev/snd/pcmC1D3p
13 > linux # speaker-test -t wav -c 2
14 >
15 > speaker-test 1.0.27.2
16 >
17 > Playback device is default
18 > Stream parameters are 48000Hz, S16_LE, 2 channels
19 > WAV file(s)
20 > Rate set to 48000Hz (requested 48000Hz)
21 > Buffer size range from 2048 to 8192
22 > Period size range from 1024 to 1024
23 > Using max buffer size 8192
24 > Periods = 4
25 > was set period_size = 1024
26 > was set buffer_size = 8192
27 > 0 - Front Left
28 > 1 - Front Right
29 > --
30 > I got the sound device from lsof | grep snd with a java app running
31 > which locks the sound device. Did the above with it shut down.
32 >
33 > alsamixer shows 2 cards, 1 HDMI, so I presume I got the right 1.
34 > The speaker cable is green so I plugged in the middle green hole
35 > (which also says "line out"). Also tried the other ones ("line in" and
36 > mic symbol).
37 >
38 > There are no other audio slots anywhere so I think is a software problem.
39 >
40 > alsamixer calls the card "HDA AIT SB:" chip "Realtek ALC887-VD"
41 > I have PCI/Intel HD Audio/Realtek enabled (plus many others in that group).
42 >
43 > I'm doing all this testing from root.
44 >
45 > I've tried everything I can think of, what next?
46 >
47
48 First, have you reviewed the Alsa documentation specifically for
49 setting the order of multiple cards? Without setting the order
50 specifically I can tell you that at times Alsa will change the order
51 on you. (kernel updates, Alsa updates) I have one machine with 3
52 cards, sync'ed using external digital clocks. It's critical to inform
53 Alsa as to the order I want them to appear.
54
55 http://alsa.opensrc.org/MultipleCards
56
57 After you've done that and verified it is setup then it's important to
58 make sure that you've enabled both your master volume as well as PCM
59 levels in either Alsamixer or your desktop mixer.
60
61 Also, make sure you set the options for saving and restarting in
62 /etc/conf.d/alsasound.
63
64 HTH,
65 Mark