alc889a/alc885 with hda.7.20080913.patch

Jochen Keil Jochen.Keil at gmail.com
Sun Sep 14 18:54:54 UTC 2008


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 <somefile>

(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!


More information about the freebsd-multimedia mailing list