[Alsa-user] aplay error: "Channels count non available"
Brought to you by:
perex
|
From: Dean A. <dea...@me...> - 2004-10-22 18:20:24
|
When I try to use aplay to play a wav file via a virtual multi channel device configured in /etc/asound.conf I keep getting the following error: #aplay -D multi qrs.wav Playing WAVE 'qrs.wav' : Signed 16 bit Little Endian, Rate 6000 Hz, Mono aplay: set_params:862: Channels count non available Does anyone know what might be causing this and how I can fix it? My Configuration: x86 Fedora Core 2 system, 2.6.8.1 kernel from kernel.org, ALSA 1.0.7rc2. (1) Micronas UAC3556B USB Codec and (1) AC97 compliant Codec connected to Intel ICH4 southbridge chip. My modprobe.conf file: # Note: for use under 2.4, changes must also be made to modules.conf! alias eth0 e1000 alias usb-controller ehci-hcd #alias snd-card-0 snd-intel8x0 alias usb-controller1 uhci-hcd #install sound-slot-0 /sbin/modprobe --first-time --ignore-install sound-slot-0 && { /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :; } #remove sound-slot-0 { /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time --ignore-remove sound-slot-0 #Added by Dean Andreakis 10/11/2004 # ALSA portion alias char-major-116 snd alias snd-card-1 snd-usb-audio alias snd-card-0 snd-intel8x0 # module options should go here # OSS/Free portion alias char-major-14 soundcore alias sound-slot-1 snd-card-1 alias sound-slot-0 snd-card-0 # card #0 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 #card #1 alias sound-service-1-0 snd-mixer-oss alias sound-service-1-1 snd-seq-oss alias sound-service-1-3 snd-pcm-oss alias sound-service-1-8 snd-seq-oss alias sound-service-1-12 snd-pcm-oss My /etc/asound.conf file: # create a virtual four-channel device with two sound devices: # This is in fact two interleaved stereo streams in # different memory locations, so JACK will complain that it # cannot get mmap-based access. see below. pcm.multi { type multi; slaves.a.pcm "hw:0,0"; slaves.a.channels 2; slaves.b.pcm "hw:1,0"; slaves.b.channels 2; bindings.0.slave a; bindings.0.channel 0; bindings.1.slave a; bindings.1.channel 1; bindings.2.slave b; bindings.2.channel 0; bindings.3.slave b; bindings.3.channel 1; } # JACK will be unhappy if there is no mixer to talk to, so we set # this to card 0. This could be any device but 0 is easy. ctl.multi { type hw; card 0; } # This creates a 4 channel interleaved pcm stream based on # the multi device. JACK will work with this one. pcm.ttable { type route; slave.pcm "multi"; ttable.0.0 1; ttable.1.1 1; ttable.2.2 1; ttable.3.3 1; } # see above. ctl.ttable { type hw; card 0; } -dean andreakis |