From owner-freebsd-multimedia@FreeBSD.ORG Tue Feb 7 09:35:29 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09F6D1065670 for ; Tue, 7 Feb 2012 09:35:29 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 861628FC0A for ; Tue, 7 Feb 2012 09:35:28 +0000 (UTC) Received: by bkbzx1 with SMTP id zx1so7444436bkb.13 for ; Tue, 07 Feb 2012 01:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ELyCNtzimLoEiT6D2NlKMs79lcsNmqI9/eEMQVx9/78=; b=XKSUHNylZCvDml/TSulfFy9oNBkT6/IT3VTIP3P+N9k/S56I7iyRzWvphSV8gEIng4 wnppzOm0pkw3vzp+dftuQJZ6JdgnjR0w7su6tIQUwnE9ITcJOIJrH9iLmO8lNmfHT9Cn MKhyW2uzeifZeyERD5UA+t9oK96Q6FXUaTyKY= Received: by 10.204.153.195 with SMTP id l3mr10272562bkw.123.1328607326296; Tue, 07 Feb 2012 01:35:26 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id ez5sm53773190bkc.15.2012.02.07.01.35.24 (version=SSLv3 cipher=OTHER); Tue, 07 Feb 2012 01:35:25 -0800 (PST) Sender: Alexander Motin Message-ID: <4F30F05B.7050803@FreeBSD.org> Date: Tue, 07 Feb 2012 11:35:23 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: Ruslan Bukin References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: [RFT]: RME HDSPe AIO sound driver 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: Tue, 07 Feb 2012 09:35:29 -0000 Hi. First of all, thank you! On 02/07/12 11:09, Ruslan Bukin wrote: > This is driver for RME HDSPe AIO (PCIe - series), > professional-grade ($800) sound card. > > Many things not implemented (like MIDI in/out, > TCO, WCM and other expansion boards). > > So only analog and digital in/out are available. > > Driver registers 8 out and 7 in stereo channels, > each represented as separate device, ie: > /dev/dsp%d.p%d > /dev/dsp%d.r%d I think you are misinterpreting concept of channels used in pcm_addchan() function. These channels supposed to provide multiple equal playback/record streams -- hardware equivalent of vchans. If in your case it is different connectors and you want them to be independent -- you should create different PCM/dsp devices for them, like emu10kx or hda drivers do. > Card frequency is in range (32..192) KHz > and period size (32..4096) samples. > > Period size is exported to dev.pcm.%d.period > sysctl. Why are you duplicating here the latency control code already implemented in sound(4)? You should just follow buffer/block size given to you by the sound(4) via hdspechan_setblocksize() and then you can control latency in common way via hw.snd.latency_profile and hw.snd.latency. > Tested on latest HEAD only. > > patch here: > http://bsdpad.com/hdspe/ -- Alexander Motin