James Courtier-Dutton ha scritto:

kunt1z wrote:

Hi guys,
I remember you my main problem with alsa: when I try to play a sound with aplay, it doesn't work.

$ aplay test.wav
ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 1 ALSA lib conf.c:2699:(snd_config_hooks_call) function snd_config_hook_load_for_all_cards returned error: No such file or directory ALSA lib pcm.c:1969:(snd_pcm_open_conf) Invalid type for PCM default definition (id: default, value: cards.pcm.default)
aplay: main:547: audio open error: Invalid argument


Do you have a card 1 ? Card 1 is the second card. We count the first card as card 0, as any good C programmer would. ;-) (Although humans would probably prefer starting at card 1 for the first card.)

As root:
cat /proc/asound/cards
and post the output.
You probably only have a card 0.

try:
speaker-test -c2 -Dplug:front:0

You should get sound noise on your speakers, matching the "Front Left...Front Right" text display.

James


In fact I don't have card 1. Here's the output:

# cat /proc/asound/card
cat: /proc/asound/card: No such file or directory
[EMAIL PROTECTED]:~# cat /proc/asound/cards
0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
                     Intel 82801DB-ICH4 with AD1981B at 0x20000800, irq 11
1 [Modem          ]: ICH-MODEM - Intel 82801DB-ICH4 Modem
                     Intel 82801DB-ICH4 Modem at 0x1800, irq 11

How can I set card 0 as default?
The speaker-test programs doesn't work. Here's the output:

# speaker-test -c2 -Dplug:front:0

speaker-test 1.0.11rc2

Playback device is plug:front:0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 1 ALSA lib conf.c:2699:(snd_config_hooks_call) function snd_config_hook_load_for_all_cards returned error: No such file or directory ALSA lib pcm.c:1969:(snd_pcm_open_conf) Invalid type for PCM front:0 definition (id: front, value: cards.pcm.front)
Playback open error: -22,Invalid argument
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
[...]

Any suggestion? Thanx!!!


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to