Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2010 18:17:18 +0000
From:      Thomas Hummel <googhummel@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Sound (micro-)interrupts with 8.0 stable/snd_hda/mplayer/vlc
Message-ID:  <f21a6851001161017v5e1b3134l1a60ab186340cb40@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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: <HDA Realtek ALC888 PCM #0 Analog> at cad 0 nid 1 on hdac0 kld snd_hda
[MPSAFE] (1p:2v/1r:1v channels duplex default)
pcm1: <HDA Realtek ALC888 PCM #1 Analog> at cad 0 nid 1 on hdac0 kld snd_hda
[MPSAFE] (1p:1v/1r:1v channels duplex)
pcm2: <HDA Realtek ALC888 PCM #2 Digital> at cad 0 nid 1 on hdac0 kld
snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)
pcm3: <HDA Realtek ALC888 PCM #3 Digital> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f21a6851001161017v5e1b3134l1a60ab186340cb40>