Gentoo Archives: gentoo-user

From: Daniel da Veiga <danieldaveiga@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Sound... a known method to track down problems
Date: Thu, 02 Mar 2006 12:35:03
Message-Id: 342e1090603020425h712bfe77u90e0baf15d1ab750@mail.gmail.com
In Reply to: [gentoo-user] Re: Sound... a known method to track down problems by Harry Putnam
1 On 3/2/06, Harry Putnam <reader@×××××××.com> wrote:
2 > Alexander Puchmayr <alexander.puchmayr@×××××××.at> writes:
3 >
4 > > Hi Harry!
5 > >
6 > > Did you load the alsa-modules before launching kde?
7 >
8 > I have now after following ChistophE's suggestions.
9 >
10 > I still get nothing when attempting to play something. But warnings
11 > and erros that is.
12 >
13 > I have an XMMS player on my kde menu. It just doesn't work but
14 > quietly no warning etc. (Also it is so tiny I can hardly see it.. and
15 > seems no way to enlarge it -- I use a large desktop resolution)
16 >
17 >
18 > > Try /etc/init.d/alsasound start as root and then have a look what dmesg is
19 > > telling you and whether /proc/asound/cards contains anything different from
20 > > a empty string.
21 >
22 > cat /proc/asound/cards
23 > 0 [V8237 ]: VIA8237 - VIA 8237
24 > VIA 8237 with AD1980 at 0xc800, irq 201
25 >
26 > > Second, your should configure your kde to use alsa. Go into the control
27 > > panel, audio settings (Sound&Multimedia), Sound-System, select the
28 > > hardware-tab and make sure that audio hardware is set to alsa and not oss.
29 >
30 > It was set to autodetect .. I changed it to alsa, but shouldn't that select
31 > alsa anyway? Soon as I changed it, I immediately got this waning
32 > dialog box:
33 > Sound Server informational message
34 > Error while initializing the sound driver
35 > device: default can't be opened for playback (No such device)
36 > The sound server will continue using teh null output device.
37 >
38 > Christoph Eckert <ce@×××××××××.de> writes:
39 >
40 > >
41 > > you've ALSA installed but it's not configured yet? Try
42 > > editing /etc/modules.d/alsa manually or install alsa-utils and run
43 > > alsaconf as root. After that add ALSA to your preferred runlevel.
44 >
45 > I did install alsa-utils and ran alsaconf. /etc/modules.d/alsa looks
46 > like this:
47 >
48 > alias /dev/mixer snd-mixer-oss
49 > alias /dev/dsp snd-pcm-oss
50 > alias /dev/midi snd-seq-oss
51 >
52 > # Set this to the correct number of cards.
53 > # --- BEGIN: Generated by ALSACONF, do not edit. ---
54 > # --- ALSACONF version 1.0.11rc2 ---
55 > alias snd-card-0 snd-via82xx
56 > alias sound-slot-0 snd-via82xx
57 > # --- END: Generated by ALSACONF, do not edit. ---
58 >
59 > Should the oss stuff be there?
60 >
61 > I've put alsasound into run level 3 and rebooted.
62 >
63 > On starting kde I still get a dialog message about the sound server
64 > being unavailable. No play tools work.
65 >
66 > (lsmod output at the end)
67 >
68 > Running the command line util `play' on a wav file shows this:
69 >
70 > reader > play WestMemphisBlues_SonnyBoyWilliamson2.wav
71 > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
72 > ALSA lib conf.c:3491:(_snd_config_evaluate) function
73 > snd_func_card_driver returned error: No such device
74 > ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
75 > ALSA lib conf.c:3491:(_snd_config_evaluate) function snd_func_concat
76 > returned error: No such device
77 > ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name
78 > ALSA lib conf.c:3491:(_snd_config_evaluate) function snd_func_refer
79 > returned error: No such device
80 > ALSA lib conf.c:3960:(snd_config_expand) Evaluate error: No such device
81 > ALSA lib pcm.c:2107:(snd_pcm_open_noupdate) Unknown PCM default
82 > sox: Failed writing default: cannot open audio device
83 >
84 > lismod output:
85 > root # lsmod|grep snd_
86 > snd_pcm_oss 48160 0
87 > snd_mixer_oss 17664 1 snd_pcm_oss
88 > snd_seq_dummy 4740 0
89 > snd_seq_oss 32256 0
90 > snd_seq_midi_event 8064 1 snd_seq_oss
91 > snd_seq 50448 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
92 > snd_via82xx 27544 0
93 > gameport 16264 1 snd_via82xx
94 > snd_ac97_codec 84256 1 snd_via82xx
95 > snd_ac97_bus 3328 1 snd_ac97_codec
96 > snd_pcm 82052 3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
97 > snd_timer 24196 2 snd_seq,snd_pcm
98 > snd_page_alloc 11528 2 snd_via82xx,snd_pcm
99 > snd_mpu401_uart 8320 1 snd_via82xx
100 > snd_rawmidi 24736 1 snd_mpu401_uart
101 > snd_seq_device 9484 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
102 > snd 53604 11 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
103 >
104 > --
105 > gentoo-user@g.o mailing list
106 >
107 >
108
109 You should check the ALSA Guide from the Gentoo Docs and see if you
110 performed all steps, specially your kernel config. I have this same
111 MOBO, so I can assure you, it works... Just follow the guide.
112
113 I had KDE working with ALSA, but strangely, the "Test" button at KDE
114 config don't work, all other apps does using arts.
115
116 --
117 Daniel da Veiga
118 Computer Operator - RS - Brazil
119 -----BEGIN GEEK CODE BLOCK-----
120 Version: 3.1
121 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
122 PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
123 ------END GEEK CODE BLOCK------
124
125 --
126 gentoo-user@g.o mailing list