From owner-freebsd-multimedia@FreeBSD.ORG Sat Feb 11 20:39:26 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95B2B16A420 for ; Sat, 11 Feb 2006 20:39:26 +0000 (GMT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from mx.gfk.ru (mx.gfk.ru [84.21.231.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2457B43D49 for ; Sat, 11 Feb 2006 20:39:22 +0000 (GMT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from dialup-chibis.gfk.ru by mx.gfk.ru (MDaemon.PRO.v8.1.4.R) with ESMTP id md50000048360.msg for ; Sat, 11 Feb 2006 23:39:18 +0300 Date: Sat, 11 Feb 2006 23:39:18 +0300 (MSK) From: Yuriy Tsibizov X-X-Sender: chibis@free.home.local To: freebsd-multimedia@freebsd.org Message-ID: <20060211225729.U516@free.home.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Processed: mx.gfk.ru, Sat, 11 Feb 2006 23:39:18 +0300 (not processed: message from valid local sender) X-MDRemoteIP: 10.0.6.45 X-Return-Path: Yuriy.Tsibizov@gfk.ru X-MDaemon-Deliver-To: freebsd-multimedia@freebsd.org X-MDAV-Processed: mx.gfk.ru, Sat, 11 Feb 2006 23:39:19 +0300 Cc: Subject: (some kind of) multichannel playback on emu10k cards X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 20:39:26 -0000 - does anyone need it? I was playing with implementation of multichannel playback on emu10k based cards in emu10kx driver (availabale as emu10kx-snapshot from my website). As I know real multichannel playback is not supported by FreeBSD sound subsystem and I had to implement it as a number of stereo & mono PCM interfaces (each interface is connected to one of output connectors on card). From a dmesg it looks like this: emu10kx0: .... emu10kx1: .... emu10kx2: .... pcm0: on emu10kx0 pcm0: pcm1: on emu10kx0 pcm2: on emu10kx0 pcm3: on emu10kx0 pcm4: on emu10kx1 pcm4: pcm5: on emu10kx1 pcm6: on emu10kx1 pcm7: on emu10kx1 pcm8: on emu10kx2 pcm8: pcm9: on emu10kx2 pcm10: on emu10kx2 pcm11: on emu10kx2 pcm12: on emu10kx2 First (FRONT) PCM interface has both playback and recording channels, it is also connected to an AC97 mixer, DSP inputs and AudigyDrive headphones. Other ones are for playback only. On Audigy 2 there is also additional PCM interface to 'p16v' part of chipset (broken). Current state: DSP PCM playback: working, need some memory management cleanup P16V PCM playback: broken mixer: just a stub to let me adjust volume before playback and will need a rewrite recording: does not work at all (because this part of mixer is broken) It can be used with software multichannel sound decoder that can feed separate stereo & mono PCM streams into multiple dsp devices (i think mplayer can do it). Yuriy Tsibizov, http://chibis.persons.gfk.ru/audigy/