From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 14 18:54:54 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 754E0106566B for ; Sun, 14 Sep 2008 18:54:54 +0000 (UTC) (envelope-from Jochen.Keil@gmail.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by mx1.freebsd.org (Postfix) with ESMTP id E17558FC25 for ; Sun, 14 Sep 2008 18:54:53 +0000 (UTC) (envelope-from Jochen.Keil@gmail.com) Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 3886D1C08FD9 for ; Sun, 14 Sep 2008 20:54:52 +0200 (CEST) Received: from localhost (unknown [192.168.1.157]) by mail.m-online.net (Postfix) with ESMTP id 319A290A9C for ; Sun, 14 Sep 2008 20:54:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (scanner1.m-online.net [192.168.1.157]) (amavisd-new, port 10024) with ESMTP id LBoBvsN2ASq2 for ; Sun, 14 Sep 2008 20:54:51 +0200 (CEST) Received: from sillium.dyndns.org (DSL01.83.171.188.125.ip-pool.NEFkom.net [83.171.188.125]) by mail.nefkom.net (Postfix) with SMTP for ; Sun, 14 Sep 2008 20:54:51 +0200 (CEST) Received: (qmail 27374 invoked from network); 14 Sep 2008 18:54:50 -0000 Received: from monolith.lokal.lan (192.168.1.8) by columbus.lokal.lan with SMTP; 14 Sep 2008 18:54:50 -0000 Message-ID: <48CD5DFA.5070402@gmail.com> Date: Sun, 14 Sep 2008 20:54:50 +0200 From: Jochen Keil User-Agent: Thunderbird 2.0.0.16 (X11/20080908) MIME-Version: 1.0 To: Alexander Motin References: <48CCCBDF.6060208@gmail.com> <48CD2D6A.1070709@FreeBSD.org> (sfid-20080914_17350_7B58DF70) In-Reply-To: <48CD2D6A.1070709@FreeBSD.org> (sfid-20080914_17350_7B58DF70) Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: alc889a/alc885 with hda.7.20080913.patch 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, 14 Sep 2008 18:54:54 -0000 Alexander Motin wrote: > Did you hear anything while playing it? Any noise? Did you player prints > anything? Did player progress bar is moving? How do you run your player > and what is it? Did your receiver detects some data stream and which > type (PCM/data)? > > Also try to make sure that Soft PCM vol will not touch binary data > stream - try to set both pcm and vol controls in mixer2 to 100. Oh dear.. that's really interesting.. a point i'd never thought of. Vol was set to 25:25 and pcm to 5:5. After setting both to 100:100 AC3 immediately worked! What i heard before might have been some undecoded raw pcm data.. i have the same issue when using windows and vlc when i'm not using the correct device in vlc settings. To sum it up: sysctl -w hw.snd.default_unit=2 && sysclt -w dev.pcm.2.play.vchans=0 && mixer vol 100 && mixer pcm 100 && mplayer -ac hwac3 (Mplayer won't work without forcing the audio codec: means mplayer using liba52 -> stereo output) == 5.1 dolby something playback with my receiver. Some mplayer output: $ mplayer -ac hwac3 "somefilewithac3stream" MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (Family: 6, Model: 23, Stepping: 6) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Playing "somefilewithac3stream". AVI file format detected. [aviheader] Video stream found, -vid 0 [aviheader] Audio stream found, -aid 1 VIDEO: [XVID] 672x276 12bpp 25.000 fps 1419.4 kbps (173.3 kbyte/s) Clip info: Software: VirtualDubMod 1.5.1.1a (build 1639/release) ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== ========================================================================== Forced audio codec: hwac3 Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF No accelerated IMDCT transform found hwac3: switched to AC3, 448000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3, 448.0 kbit/29.17% (ratio: 56000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) ========================================================================== [AO OSS] Can't set audio device /dev/dsp to ac3 output, trying s16le... AO: [oss] 48000Hz 2ch s16le (2 bytes per sample) [format] Sample format big-endian AC3 not yet supported [libaf] Reinitialization did not work, audio filter 'format' returned error code -2 Couldn't find matching filter/ao format! Starting playback... Don't let yourself fool by the error messages.. ac3/dolby digital/5.1 works. Thanks again for your help Alexander!