On Sun, Mar 14, 2004 at 05:59:38PM +0100, Jaroslav Kysela wrote: | [...] | So, you need something like: | | pcm.duplicate { | type plug | slave.pcm "surround51" | route_policy duplicate | } | | And now, 'aplay -Dduplicate' will duplicate stream to all six channels.
|| On Sun, 14 Mar 2004, Andreas Bulling wrote: || > Hm... I tried that but it doesn't work - still sound only out of the front speakers with || > xmms and the duplicate output device. Do I need anything else? || || If you have volumes up, then it should work. Well, as I reported it didn't. But I made progress in the meanwhile: Using "copy" didn't work either but adding "slave.channels 6" to your config results in output also from the two rear speakers. YEAH! ;) That means I can use this smaller config instead of my old and bigger "ttable one" for stereo sources (device duplicate in xmms) Problem fixed: YES [X] Nevertheless, playing real 5.1 sound still doesn't work. I was able to get it by using "gmplayer dvd://1 -v -aid 128 -ao oss -channels 6" but I would like to get it to work also with alsa. What I tried next was using the following config and "gmplayer dvd://1 -v -aid 128 -ao alsa9:default -channels 6" --------------------------- pcm.!default { type plug slave ice1724_S32_LE; } pcm_slave.ice1724_S32_LE { pcm surround51; format S32_LE; } --------------------------- Also a little progress: Sound out of all 6 speakers without further configuration. But unfortunately the channels got mixed up: Gandalf is talking out of the left rear channel, now :( Without "-channels 6" no more sound out of both rear speakers... How can I check the assignment of channels and speakers and how can I modify them? That's the output using the "-channels 6" option: --------------------------- ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 dec_audio: Allocating 3840 bytes for input buffer. dec_audio: Allocating 18432 + 65536 = 83968 bytes for output buffer. Using SSE optimized IMDCT transform AC3: 5.1 (3f+2r+lfe) 48000 Hz 448,0 kbit/s A52 flags before a52_frame: 0x37 A52 flags after a52_frame: 0x17 Using MMX optimized resampler AUDIO: 48000 Hz, 6 ch, 16 bit (0x10), ratio: 56000->576000 (448,0 kbit) Selected audio codec: [a52] afm:liba52 (AC3-liba52) ========================================================================== ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES) Trying filter chain: vo Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale vo The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1 Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2)) ========================================================================== Checking audio filter chain for 48000Hz/6ch/16bit -> 48000Hz/6ch/16bit... [libaf] Adding filter dummy [dummy] Was reinitialized, rate=48000Hz, nch = 6, format = 0x00000001 and bps = 2 AF_pre: af format: 2 bps, 6 ch, 48000 hz, little endian signed int AF_pre: 48000Hz 6ch Signed 16-bit (Little-Endian) alsa-init: requested format: 48000 Hz, 6 channels, Signed 16-bit (Little-Endian) alsa-init: compiled for ALSA-1.0.3 alsa-init: soundcard set to default alsa-init: pcm opend in block-mode alsa-init: chunksize set to 1024 alsa-init: current val=11, fragcount=11 alsa-init: unable to set periods: Das Argument ist ungültig alsa-init: got buffersize=131040 alsa9: 48000 Hz/6 channels/12 bpf/131040 bytes buffer/Signed 16 bit Little Endian AO: [alsa9] 48000Hz 6ch Signed 16-bit (Little-Endian) (2 bps) AO: Description: ALSA-0.9.x audio output AO: Author: Alex Beregszaszi, Joy Winter <[EMAIL PROTECTED]> AO: Comment: under developement Building audio filter chain for 48000Hz/6ch/16bit -> 48000Hz/6ch/16bit... [dummy] Was reinitialized, rate=48000Hz, nch = 6, format = 0x00000001 and bps = 2 [dummy] Was reinitialized, rate=48000Hz, nch = 6, format = 0x00000001 and bps = 2 Starting playback... alsa-space: free space = 131040, status=141277936, prepared -- ==> Found audio stream: 129 ==> Found audio stream: 130 VDec: vo config request - 720 x 576 (preferred csp: Planar YV12) Trying filter chain: vo VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1,78:1 - prescaling to correct movie aspect. VO Config (720x576->1024x576,flags=0,'MPlayer',0x32315659) VO: [xv] 720x576 => 1024x576 Planar YV12 VO: Description: X11/Xv VO: Author: Gerd Knorr <[EMAIL PROTECTED]> and others Xvideo image format: 0x32595559 (YUY2) packed Xvideo image format: 0x59565955 (UYVY) packed Xvideo image format: 0x32315659 (YV12) planar Xvideo image format: 0x30323449 (I420) planar using Xvideo port 70 for hw scaling [xv] dx: 0 dy: 0 dw: 1024 dh: 614 *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes [xv] dx: 0 dy: 0 dw: 1024 dh: 576 alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 23% *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 22% *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 21% alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 21% alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 21% alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 21% alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 21% alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 21% alsa-control: unable to find simple control 'PCM',0 0% 0% 0,0% 0 0 21% [and so on...] --------------------------- Thanks, Andreas ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel