From owner-freebsd-current@FreeBSD.ORG Sat Jan 28 02:58:36 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F174106566C; Sat, 28 Jan 2012 02:58:36 +0000 (UTC) (envelope-from mickael.maillot@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 07D3B8FC12; Sat, 28 Jan 2012 02:58:35 +0000 (UTC) Received: by qcse14 with SMTP id e14so1771276qcs.13 for ; Fri, 27 Jan 2012 18:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lr4DeR1i6i0okWBjUaqG4IMBC3Lgk7hJuy91C3WgOk0=; b=Jv85IaN2z0bPCtfS94dCLi1OkbdrP54d2BW4662IcB6IYo81RRtEskPalQH0g3ypVq EytY63EARPxFUpJNL6v7lW379syknwjKKwl91/06xcXkgpkOW5nXE8aumnkJmDzWYRHu /4bmRNX1qfC2TFWSDoS4dFHQcNBaIAEHlnYgo= MIME-Version: 1.0 Received: by 10.224.218.4 with SMTP id ho4mr11746087qab.77.1327719515224; Fri, 27 Jan 2012 18:58:35 -0800 (PST) Received: by 10.229.222.206 with HTTP; Fri, 27 Jan 2012 18:58:35 -0800 (PST) In-Reply-To: <4F1FF2AD.9020003@FreeBSD.org> References: <4F0DE3FD.2020203@FreeBSD.org> <20120112121853.GC1429@procyon.xvoid.org> <4F0ED8D0.8080403@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> Date: Sat, 28 Jan 2012 03:58:35 +0100 Message-ID: From: =?ISO-8859-1?Q?Micka=EBl_Maillot?= To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2012 02:58:36 -0000 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