From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 2 18:10:22 2008 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 B924D106567A for ; Sun, 2 Nov 2008 18:10:22 +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 06F018FC0C for ; Sun, 2 Nov 2008 18:10:21 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 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 226783560; Sun, 02 Nov 2008 20:10:20 +0200 Message-ID: <490DED08.9010800@FreeBSD.org> Date: Sun, 02 Nov 2008 20:10:16 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.17 (X11/20081029) MIME-Version: 1.0 To: Norikatsu Shigemura References: <20081103023207.68fb4ced.nork@FreeBSD.org> In-Reply-To: <20081103023207.68fb4ced.nork@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 02 Nov 2008 21:28:08 +0000 Cc: freebsd-multimedia@FreeBSD.org Subject: Re: How do I use AC3 codec instead of PCM like mplayer -ac hwac3 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: Sun, 02 Nov 2008 18:10:22 -0000 Hi. Norikatsu Shigemura wrote: > I think that my snd_hda(4) device supports hardware AC3 codec > (SEE ALSO: attached dmesg and sysctl messages). But I couldn't > mplayer -ac hwac3 dvd:// like following: It looks like there is two problems: First is yours: your default pcm0/dsp0 device is PCM only, it does not supports AC3. Your SPDIF port is pcm1/dsp1. You should specify mplayer to use it it you wish to pass AC3 through to the external decoder. Also you have AC3 support as part of your video card HDMI port - pcm2/dsp2. Second is at vchans: it does not support AC3 pass though when "Soft PCM volume" is enabled. You can hack this by commenting respective part of the hdac_audio_ctl_ossmixer_init(). Also it was reported that with some amount of luck it may work even without it is you set pcm and master volume on that channel to 100% and your decoder is able to detect unmarked AC3 stream. -- Alexander Motin