Lee Revell ha scritto:
On Fri, 2006-01-06 at 14:52 +0100, kunt1z wrote:
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
Do you have an .asoundrc? If so delete it.
Did you modify /etc/modules.conf (or any of the bizarre non-standard rat
maze of /etc/modules* garbage that Linux distros expect users to make
sense of)? If so then restore those files to their original state.
Lee
No, no and no!!! It doesn't work! I restore my old /etc/modules.conf
file, I delete /etc/modutils/alsa file and I don't have .asoundrc file
anymore. But the result is:
$ 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
It doesn't work anyway! It says "could not open control for card 1", but
my card is card 0. How can I set card 0 as default card?
Any suggestions? I post my /etc/modules.conf file:
$ cat /etc/modules.conf
### This file is automatically generated by update-modules
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modutils and read
# the manpage for update-modules.
#
### update-modules: start processing /etc/modutils/0keep
# DO NOT MODIFY THIS FILE!
# This file is not marked as conffile to make sure if you upgrade modutils
# it will be restored in case some modifications have been made.
#
# The keep command is necessary to prevent insmod and friends from ignoring
# the builtin defaults of a path-statement is encountered. Until all other
# packages use the new `add path'-statement this keep-statement is essential
# to keep your system working
keep
### update-modules: end processing /etc/modutils/0keep
### update-modules: start processing /etc/modutils/actions
# Special actions that are needed for some modules
# The BTTV module, up to kernel 2.4.17, does not load the tuner
# module automatically, so do that in here
if KERNEL_VER < 2.4.17
post-install bttv insmod tuner
post-remove bttv rmmod tuner
endif
### update-modules: end processing /etc/modutils/actions
### update-modules: start processing /etc/modutils/aliases
# Aliases to tell insmod/modprobe which modules to use
# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off # Unix
# alias net-pf-2 off # IPv4
# alias net-pf-3 off # Amateur Radio AX.25
# alias net-pf-4 off # IPX
# alias net-pf-5 off # DDP / appletalk
# alias net-pf-6 off # Amateur Radio NET/ROM
# alias net-pf-9 off # X.25
# alias net-pf-10 off # IPv6
# alias net-pf-11 off # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off # Acorn Econet
# alias net-pf-20 off # ATM
# alias net-pf-23 off # IRDA
# alias net-pf-24 off # PPPoE
# alias net-pf-25 off # WANrouter
# alias net-pf-26 off # Llc
# alias net-pf-31 off # Bluetooth
alias binfmt-204 binfmt_aout
alias binfmt-263 binfmt_aout
alias binfmt-264 binfmt_aout
alias binfmt-267 binfmt_aout
alias binfmt-387 binfmt_aout
alias bt-proto-0 l2cap
alias bt-proto-2 sco
alias bt-proto-3 rfcomm
alias bt-proto-4 bnep
alias bt-proto-5 cmtp
alias bt-proto-6 hidp
alias bt-proto-7 avdtp
alias char-major-9 st
alias char-major-10-1 psmouse
alias char-major-10-134 apm
alias char-major-10-135 rtc
alias char-major-10-139 openprom
alias char-major-10-144 nvram
alias char-major-10-157 applicom
alias char-major-10-175 agpgart
alias char-major-10-181 toshiba
alias char-major-10-183 hw_random
alias char-major-10-184 microcode
alias char-major-10-187 irnet
alias char-major-10-189 ussp
alias char-major-10-200 tun
alias char-major-10-250 hci_vhci
alias char-major-13 input
alias char-major-13-0 joydev
alias char-major-13-1 joydev
alias char-major-13-2 joydev
alias char-major-13-3 joydev
alias char-major-13-32 mousedev
alias char-major-13-33 mousedev
alias char-major-13-34 mousedev
alias char-major-13-35 mousedev
alias char-major-13-63 mousedev
alias char-major-13-64 evdev
alias char-major-13-65 evdev
alias char-major-13-66 evdev
alias char-major-13-67 evdev
alias char-major-19 cyclades
alias char-major-20 cyclades
alias char-major-21 sg
alias char-major-22 pcxx
alias char-major-23 pcxx
alias char-major-27 ftape
alias char-major-27 zftape
alias char-major-34 scc
alias char-major-35 tclmidi
alias char-major-37 ide-tape
alias char-major-48 riscom8
alias char-major-49 riscom8
alias char-major-57 esp
alias char-major-58 esp
alias char-major-63 kdebug
alias char-major-67 coda
alias char-major-75 specialix
alias char-major-76 specialix
alias char-major-81 bttv
alias char-major-81 videodev
alias char-major-83 vtx
alias char-major-89 i2c-dev
alias char-major-90 mtdchar
alias char-major-96 pt
alias char-major-97 pg
alias char-major-99 ppdev
alias char-major-107 3dfx
alias char-major-109 lvm-mod
alias char-major-108 ppp_generic
alias char-major-116 snd
alias char-major-161 ircomm-tty
alias char-major-162 raw
alias char-major-166 cdc_acm
alias char-major-171 raw1394
alias char-major-180-48 scanner
alias char-major-180 usbcore
alias char-major-195 nvidia
alias char-major-200 vxspec
alias char-major-202 msr
alias char-major-203 cpuid
alias char-major-206 osst
alias char-major-208 ussp
alias char-major-227 tub3270
alias /dev/ppp ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-18 ppp_mppe
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
alias dummy0 dummy
alias dummy1 dummy
alias gre0 ip_gre
alias iso9660 isofs
alias plip0 plip
alias plip1 plip
alias slip0 slip
alias slip1 slip
alias tunl0 ipip
alias usbdevfs usbcore
alias cipcb0 cipcb
alias cipcb1 cipcb
alias cipcb2 cipcb
alias cipcb3 cipcb
# IPSEC
alias xfrm-type-2-50 esp4
alias xfrm-type-2-51 ah4
alias xfrm-type-2-108 ipcomp
alias xfrm-type-10-50 esp6
alias xfrm-type-10-51 ah6
alias xfrm-type-10-108 ipcomp6
# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0 loop_gen
alias loop-xfer-3 loop_fish2
alias loop-xfer-gen-10 loop_gen
alias cipher-2 des
alias cipher-3 fish2
alias cipher-4 blowfish
alias cipher-6 idea
alias cipher-7 serp6f
alias cipher-8 mars6
alias cipher-11 rc62
alias cipher-15 dfc2
alias cipher-16 rijndael
alias cipher-17 rc5
# IDE modules changed names in 2.4.22
if KERNEL_VER >= 2.4.22
alias ide-mod ide-core
alias ide-probe-mod ide-detect
endif
### update-modules: end processing /etc/modutils/aliases
### update-modules: start processing /etc/modutils/apm
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm
### update-modules: end processing /etc/modutils/apm
### update-modules: start processing /etc/modutils/irda-utils
alias tty-ldisc-11 irtty
alias char-major-161 ircomm-tty
alias char-major-60 ircomm_tty
# For dongles
alias irda-dongle-0 tekram
alias irda-dongle-1 esi
alias irda-dongle-2 actisys
alias irda-dongle-3 actisys
alias irda-dongle-4 girbil
alias irda-dongle-5 litelink
alias irda-dongle-6 airport
alias irda-dongle-7 old_belkin
alias irda-dongle-11 ma600
# For FIR device
#options
#alias irda0
### update-modules: end processing /etc/modutils/irda-utils
### update-modules: start processing /etc/modutils/linux-sound-base_noOSS
alias ac97 off
alias ac97_codec off
alias ac97_plugin_ad1980 off
alias ad1848 off
alias ad1889 off
alias adlib_card off
alias aedsp16 off
alias ali5455 off
alias btaudio off
alias cmpci off
alias cs4232 off
alias cs4281 off
alias cs461x off
alias cs46xx off
alias emu10k1 off
alias es1370 off
alias es1371 off
alias esssolo1 off
alias forte off
alias gus off
alias i810_audio off
alias kahlua off
alias mad16 off
alias maestro off
alias maestro3 off
alias maui off
alias mpu401 off
alias nm256_audio off
alias opl3 off
alias opl3sa off
alias opl3sa2 off
alias pas2 off
alias pss off
alias rme96xx off
alias sb off
alias sb_lib off
alias sgalaxy off
alias sonicvibes off
alias sound off
alias sscape off
alias trident off
alias trix off
alias uart401 off
alias uart6850 off
alias via82cxxx_audio off
alias v_midi off
alias wavefront off
alias ymfpci off
alias ac97_plugin_wm97xx off
alias ad1816 off
alias audio off
alias awe_wave off
alias dmasound_core off
alias dmasound_pmac off
alias harmony off
alias sequencer off
alias soundcard off
alias usb-midi off
### update-modules: end processing /etc/modutils/linux-sound-base_noOSS
### update-modules: start processing /etc/modutils/lvm-common
# The Logical Volume Manager uses these block and char numbers
alias block-major-58 lvm-mod
alias char-major-109 lvm-mod
### update-modules: end processing /etc/modutils/lvm-common
### update-modules: start processing /etc/modutils/nvidia-kernel-nkc
alias char-major-195 nvidia
### update-modules: end processing /etc/modutils/nvidia-kernel-nkc
### update-modules: start processing /etc/modutils/paths
# This file contains a list of paths that modprobe should scan,
# beside the ones that are compiled into the modutils tools
# themselves.
### update-modules: end processing /etc/modutils/paths
### update-modules: start processing /etc/modutils/setserial
#
# This is what I wanted to do, but logger is in /usr/bin, which isn't loaded
# when the module is first loaded into the kernel at boot time!
#
#post-install serial /etc/init.d/setserial start | logger -p daemon.info
-t "setserial-module reload"
#pre-remove serial /etc/init.d/setserial stop | logger -p daemon.info -t
"setserial-module uload"
#
alias /dev/tts serial
alias /dev/tts/0 serial
alias /dev/tts/1 serial
alias /dev/tts/2 serial
alias /dev/tts/3 serial
post-install serial /etc/init.d/setserial modload > /dev/null 2> /dev/null
pre-remove serial /etc/init.d/setserial modsave > /dev/null 2> /dev/null
### update-modules: end processing /etc/modutils/setserial
### update-modules: start processing /etc/modutils/sl-modem-daemon.modutils
alias char-major-243 slusb
alias char-major-242 slamr
### update-modules: end processing /etc/modutils/sl-modem-daemon.modutils
### update-modules: start processing /etc/modutils/arch/i386
alias parport_lowlevel parport_pc
alias char-major-10-144 nvram
alias binfmt-0064 binfmt_aout
alias char-major-10-135 rtc
### update-modules: end processing /etc/modutils/arch/i386
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