From owner-freebsd-usb@freebsd.org Tue Oct 11 09:43:40 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C00CAC0BBD7 for ; Tue, 11 Oct 2016 09:43:40 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 856B31FD for ; Tue, 11 Oct 2016 09:43:40 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9AC281FE022; Tue, 11 Oct 2016 11:43:37 +0200 (CEST) Subject: Re: snd_uaudio multichannel problems To: =?UTF-8?Q?Goran_Meki=c4=87?= References: <20161010173118.4lff7phfx2zqm6wz@hal9000.meka.no-ip.org> <660971d2-0857-97b8-e047-b9853609b425@selasky.org> <20161010205648.wg6nfedkogn7gvvw@hal9000.meka.no-ip.org> <294a752d-06ae-0f35-583f-7cc2b5dfa763@selasky.org> <20161011083041.xkd3fvxy2h7jyf7v@thinker> <3d6ec00d-6678-eb4f-ee6b-4db0c07f9d84@selasky.org> <20161011091212.rfbeqbydl6glzddp@thinker> Cc: freebsd-usb@freebsd.org From: Hans Petter Selasky Message-ID: <650562fe-965e-d5bf-a1d2-77106cbfe91c@selasky.org> Date: Tue, 11 Oct 2016 11:48:35 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161011091212.rfbeqbydl6glzddp@thinker> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2016 09:43:40 -0000 On 10/11/16 11:12, Goran Mekić wrote: > On Tue, Oct 11, 2016 at 11:15:01AM +0200, Hans Petter Selasky wrote: >> What version of FreeBSD are you using? > 11 > >> How many channels of the 18 should jack be able to access? > Ideally, all 18. I tried with -i 18 -o 18, but I get mono (left) channel only which is 2x the speed. > Hi, By default virtual_oss only supports one sample rate. The -S option enables libsamplerate. Try running this as root, assuming your DSP device is /dev/dspX . kldload cuse # Start virtual OSS like this. -M mirrors output from 0 && 1 to 6 && 7 virtual_oss \ -S \ -i 8 \ -C 18 -c 18 -r 96000 -b 32 -s 1536 -f /dev/dspX \ -c 2 -d dsp \ -c 18 -d vdsp.jack \ -M o,0,6,0,0,0 \ -M o,1,7,0,0,0 \ -t vdsp.ctl & # Start jackd like this jackd -r -d oss -i 18 -o 18 -w 32 -r 96000 \ -C /dev/vdsp.jack -P /dev/vdsp.jack & # You may also want to install the GUI, virtual_oss_ctl, # which uses QT4/5: svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk cd virtual_oss_ctl make all make install Feel free to contribute manual page examples if you think the current documentation is not that well. --HPS