From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 2 15:54:00 2009 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 A18841065676 for ; Wed, 2 Sep 2009 15:54:00 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 220748FC29 for ; Wed, 2 Sep 2009 15:53:59 +0000 (UTC) Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 253265712; Wed, 02 Sep 2009 18:53:56 +0300 Message-ID: <4A9E950D.2070906@FreeBSD.org> Date: Wed, 02 Sep 2009 18:53:49 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: Andriy Gapon References: <4A980B19.4090801@icyb.net.ua> <4A9815F3.9010601@FreeBSD.org> <4A9E40B9.2050004@icyb.net.ua> <4A9E428E.7010401@FreeBSD.org> <4A9E8FEC.7010005@icyb.net.ua> In-Reply-To: <4A9E8FEC.7010005@icyb.net.ua> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org Subject: Re: forcing two channel output 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: Wed, 02 Sep 2009 15:54:00 -0000 Andriy Gapon wrote: > on 02/09/2009 13:01 Alexander Motin said the following: >> HDA controllers have limitations on number of data streams. You can see >> it if boot with hw.snd.verbose=4. Usually there are 4 streams supported. >> snd_hda allocates them statically now, one device - one data stream. So >> you just could hit this limitation because of big number of devices. It >> would be good to allocate streams dynamically on open, but it is not >> implemented now. > > Is this something that could tweak locally - bump some limit or slightly change > some logic? There is hardware limitation on number of streams. But logic is indeed could be improved. > What should I look for in the source code? Look for sc->num_iss, sc->num_oss and ch->sid. -- Alexander Motin