From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 28 09:26:19 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 47298106566B; Sat, 28 Jan 2012 09:26:19 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 907968FC08; Sat, 28 Jan 2012 09:26:18 +0000 (UTC) Received: by eekb47 with SMTP id b47so947443eek.13 for ; Sat, 28 Jan 2012 01:26:17 -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=gpygIsMT1f1/cqooz74kHWcteU7Q20JdT0LMy3RLWF8=; b=lnYZVhdIkgxLRfRn1AIsF+zLeOUqVaAjT1yBhXGyZmRZULvRytT8Z0xWyuW64SPF+U NxPKmzUsZgVDT/+fbgZEjzO5jFBA2Wxns6vZ8kUg7KHAlyJoJQ5sPfGNM42abplmcfXG EB4e4GQKAyigwf1JIGVuPQDYJlDB3B3NVd8VQ= Received: by 10.213.25.139 with SMTP id z11mr1646563ebb.80.1327742776757; Sat, 28 Jan 2012 01:26:16 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id n17sm41017499eei.3.2012.01.28.01.26.14 (version=SSLv3 cipher=OTHER); Sat, 28 Jan 2012 01:26:14 -0800 (PST) Sender: Alexander Motin Message-ID: <4F23BF2B.9050100@FreeBSD.org> Date: Sat, 28 Jan 2012 11:26:03 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120116 Thunderbird/9.0 MIME-Version: 1.0 To: =?UTF-8?B?TWlja2HDq2wgTWFpbGxvdA==?= References: <4F0DE3FD.2020203@FreeBSD.org> <4F171D7A.4080003@FreeBSD.org> <4F177979.5010106@FreeBSD.org> <4F1ACBA8.6000203@FreeBSD.org> <4F1EB305.9000105@FreeBSD.org> <4F1EDD3D.6070800@FreeBSD.org> <4F1F31CA.5000507@FreeBSD.org> <4F1F34DB.9040405@FreeBSD.org> <4F1F412D.5040009@FreeBSD.org> <4F1FF2AD.9020003@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite 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, 28 Jan 2012 09:26:19 -0000 On 28.01.2012 04:58, Mickaƫl Maillot wrote: > 2012/1/25 Alexander Motin > > > > Commenting it appeared not good, as at least mplayer doesn't sets > channels for AC3. That makes sound(4) use default 1 channel for AC3, > that is definitely not supported. I believe this should be better: > http://svn.freebsd.org/__changeset/base/230537 > > > Also, as soon as sound(4) interprets 8 channel as 7.1 by default, > I've changed previous patch a bit to allow both "8.0" and "7.1" AC3 > formats: > http://svn.freebsd.org/__changeset/base/230513 > > > > thank, i can set 8 channels without vchan now. > > For me this at least doesn't break normal AC3 operation and when I > hacked mplayer to set 8 channels, I can see predictable codec > configuration and time in mplayer predictably running 4 times > faster. Unluckily mplayer seems doesn't support TrueHD passthrough > to ckeck closer -- it always does decoding. > > > ok i think i found the problem: in > http://svn.freebsd.org/changeset/base/230511 > cchn is equal to 7 for me if i set SNDCTL_DSP_CHANNELS to 8. > and it's why HBR bit is not set. > > it's confirmed in my /v/l/messages where chan_count=0x7: > Jan 28 03:23:53 htpc kernel: hdac1: 24576Kbps of 92160Kbps bandwidth used > Jan 28 03:23:53 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup > fmt=02800400 (7.1) speed=192000 > Jan 28 03:23:53 htpc kernel: pcm4: PCMDIR_PLAY: Stream setup nid=4: > fmt=0x1817, dfmt=0x0021, chan=0x0010, chan_count=0x07, stripe=1 You are right. Fixed: http://svn.freebsd.org/changeset/base/230641 Thank you! -- Alexander Motin