From owner-freebsd-questions@FreeBSD.ORG Sat Jan 16 18:42:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF32A1065670 for ; Sat, 16 Jan 2010 18:42:14 +0000 (UTC) (envelope-from googhummel@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 4007C8FC13 for ; Sat, 16 Jan 2010 18:42:13 +0000 (UTC) Received: by bwz5 with SMTP id 5so1366896bwz.3 for ; Sat, 16 Jan 2010 10:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=azmZAL7dxHguvUyl2Ouma/Al3sVbrkO+pVLkNGwb3So=; b=hhsEvesjMCN6+QSl3DK6b/TWoOGbc2/75LFxcI9z/FK+bw1Oe+nwN4DwxiIstXmk3Z 5HKSfh7S/TPctgrIsapc/pObF0IPDtCPH/dL9SmY0sfP76fvUSYMWPFYS144Gw6td+sg f9FN69pEsPw/SjfGFrtu9xDeYgVCBfc+39i7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Q7EaOlIxKdUcF7gqKLVyx+4NHD9WcKWzlcVBpIQF7APZSfQEVcv78LMK+lGloKfNOD hBx/dqrpXR/hcZ7JtT8kpbb1eBAvQ+0o1L22snkMpQ6cLAENMqya4uVm7YU7LvWjnhN0 1FoRUD2YOfU0BE3vCnIjZmwbQLlJsE2X6M0So= MIME-Version: 1.0 Received: by 10.204.32.140 with SMTP id c12mr2204553bkd.59.1263665838461; Sat, 16 Jan 2010 10:17:18 -0800 (PST) Date: Sat, 16 Jan 2010 18:17:18 +0000 Message-ID: From: Thomas Hummel To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Sound (micro-)interrupts with 8.0 stable/snd_hda/mplayer/vlc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2010 18:42:15 -0000 Hello, I'm not really sure what the right list is since I cannot isolate the part of the system which cause the problem : I could use a little help on a weird sound issue I'm struggling with : 1. Description : ------------------------ When playing audio files, the sound has from few to many "micro-interrupts" (less than 1/4 of a second), randomly but frequently (so this is not hard to reproduce). This seem to occur : . with any file (I can pick a random audio file to experience it) . with either mp3 or flaac encoded files . with mplayer (from the ports collection or hand compiled from svn), either with oss or sdl audio output (although sdl seems to have less "interrupts") . with vlc but . not with ffplay . apparently not with xine . apparently not with amarok -> so I doubt this may be a harware or a driver issue. and on a almost idle 4GB RAM machine running only KDE-4 and firefox-3 no hints shows in /var/log/messages 2. Config : ------------ I'm running : . 8.0-STABLE FreeBSD amd64 . full zfs (no ufs) (files are on a "slow" disk pool (5400 rpm) but moving them to the "fast" system disk (7200 rpm) doesn't change anything . on a (bios up to date) P5Q3 ASUS motherboard . with snd_hda sound driver 3. Detailed sound config : --------------------------- % cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:2v/1r:1v channels duplex default) pcm1: at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) pcm2: at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) pcm3: at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) % sysctl -a | grep -i pcm dev.pcm.0.%desc: HDA Realtek ALC888 PCM #0 Analog dev.pcm.0.%driver: pcm dev.pcm.0.%parent: hdac0 dev.pcm.0.play.vchans: 2 dev.pcm.0.play.vchanmode: fixed dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanformat: s16le:2.0 dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.vchanmode: fixed dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le:2.0 dev.pcm.0.buffersize: 16384 dev.pcm.0.bitperfect: 0 dev.pcm.1.%desc: HDA Realtek ALC888 PCM #1 Analog dev.pcm.1.%driver: pcm dev.pcm.1.%parent: hdac0 dev.pcm.1.play.vchans: 1 dev.pcm.1.play.vchanmode: fixed dev.pcm.1.play.vchanrate: 48000 dev.pcm.1.play.vchanformat: s16le:2.0 dev.pcm.1.rec.vchans: 1 dev.pcm.1.rec.vchanmode: fixed dev.pcm.1.rec.vchanrate: 48000 dev.pcm.1.rec.vchanformat: s16le:2.0 dev.pcm.1.buffersize: 16384 dev.pcm.1.bitperfect: 0 dev.pcm.2.%desc: HDA Realtek ALC888 PCM #2 Digital dev.pcm.2.%driver: pcm dev.pcm.2.%parent: hdac0 dev.pcm.2.play.vchans: 1 dev.pcm.2.play.vchanmode: passthrough dev.pcm.2.play.vchanrate: 48000 dev.pcm.2.play.vchanformat: s16le:2.0 dev.pcm.2.buffersize: 16384 dev.pcm.2.bitperfect: 0 dev.pcm.3.%desc: HDA Realtek ALC888 PCM #3 Digital dev.pcm.3.%driver: pcm dev.pcm.3.%parent: hdac0 dev.pcm.3.play.vchans: 1 dev.pcm.3.play.vchanmode: passthrough dev.pcm.3.play.vchanrate: 48000 dev.pcm.3.play.vchanformat: s16le:2.0 dev.pcm.3.buffersize: 16384 dev.pcm.3.bitperfect: 0 4. mplayer output details : ---------------------------- . mplayer output for mp3 (no error nor warning message) : ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 mpg123: Can't rewind stream by 1606 bits! AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) . mplayer output for flaac (no error nor warning message) : ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, s16le, 987.7 kbit/69.99% (ratio: 123457->176400) Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio decoder) ========================================================================== AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) 5. ports compile options -------------------------- a) mplayer % cat mplayer/options # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for mplayer-0.99.11_14 _OPTIONS_READ=mplayer-0.99.11_14 WITHOUT_DEBUG=true WITH_RTCPU=true WITH_OCFLAGS=true WITH_SIMD=true WITH_IPV6=true WITH_X11=true WITH_X11XV=true WITH_X11DGA=true WITH_X11GL=true WITHOUT_X11XIN=true WITH_X11VM=true WITHOUT_X11XVMC=true WITHOUT_GUI=true WITH_SDL=true WITH_VIDIX=true WITHOUT_SKINS=true WITH_FREETYPE=true WITHOUT_RTC=true WITHOUT_ARTS=true WITHOUT_ESOUND=true WITHOUT_JACK=true WITHOUT_NAS=true WITHOUT_OPENAL=true WITH_LIBUNGIF=true WITHOUT_AALIB=true WITHOUT_LIBCACA=true WITHOUT_SVGALIB=true WITH_LIBDV=true WITHOUT_MAD=true WITH_DTS=true WITHOUT_LIBMPCDEC=true WITHOUT_LADSPA=true WITH_SPEEX=true WITHOUT_TREMOR=true WITHOUT_XMMS=true WITH_THEORA=true WITHOUT_WIN32=true WITHOUT_AMR=true WITH_X264=true WITHOUT_XANIM=true WITH_XVID=true WITHOUT_REALPLAYER=true WITHOUT_LIVEMEDIA=true WITHOUT_SMB=true WITHOUT_FRIBIDI=true WITHOUT_LIRC=true WITH_LIBCDIO=true WITH_CDPARANOIA=true WITHOUT_LIBLZO=true WITHOUT_JOYSTICK=true b) ffmpeg % cat ffmpeg/options # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for ffmpeg-0.5_2,1 _OPTIONS_READ=ffmpeg-0.5_2,1 WITHOUT_AMR_NB=true WITHOUT_AMR_WB=true WITHOUT_DIRAC=true WITHOUT_FAAC=true WITH_FAAD=true WITHOUT_FFSERVER=true WITHOUT_GSM=true WITHOUT_IPV6=true WITH_LAME=true WITH_OPENJPEG=true WITH_OPTIMIZED_CFLAGS=true WITH_SCHROEDINGER=true WITH_SDL=true WITHOUT_SPEEX=true WITHOUT_THEORA=true WITHOUT_VHOOK=true WITHOUT_VORBIS=true WITHOUT_X11GRAB=true WITH_X264=true WITH_XVID=true