From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 2 19:56:53 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 867621065675; Sun, 2 Nov 2008 19:56:53 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (unknown [IPv6:2001:2f0:104:80a0:230:48ff:fe41:2455]) by mx1.freebsd.org (Postfix) with ESMTP id E6A918FC0C; Sun, 2 Nov 2008 19:56:52 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from pelsia.ninth-nine.com ([192.168.36.207]) (authenticated bits=0) by sakura.ninth-nine.com (8.14.1/8.14.1/NinthNine) with ESMTP id mA2JujNA077114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Nov 2008 04:56:51 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Mon, 3 Nov 2008 04:56:43 +0900 From: Norikatsu Shigemura To: Alexander Motin Message-Id: <20081103045643.c6081414.nork@FreeBSD.org> In-Reply-To: <490DED08.9010800@FreeBSD.org> References: <20081103023207.68fb4ced.nork@FreeBSD.org> <490DED08.9010800@FreeBSD.org> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [219.127.74.121]); Mon, 03 Nov 2008 04:56:51 +0900 (JST) Cc: freebsd-multimedia@FreeBSD.org, nork@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 19:56:53 -0000 Hi mav. On Sun, 02 Nov 2008 20:10:16 +0200 Alexander Motin 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. Thanks for your pointed out. I tested -ao oss:/dev/dsp1 and -ao oss:/dev/dsp2, but not worked. These are same results, So... > 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. "Soft PCM volume is enabled." is following? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - : pcm1: Forcing Soft PCM volume : pcm2: Forcing Soft PCM volume : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I read your hdac_audio_ctl_ossmixer_init(), it looks only "Forcing" or "Enabling" I can select. Humm... Do I try to disable it? -- Norikatsu Shigemura