Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2007 03:37:29 +0000 (UTC)
From:      Ariff Abdullah <ariff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/sound version.h src/sys/dev/sound/pci es137x.c src/sys/dev/sound/pcm buffer.c channel.c channel.h dsp.c dsp.h feeder.c feeder_rate.c mixer.c mixer.h sndstat.c sound.c sound.h vchan.c src/sys/dev/sound/usb uaudio.c
Message-ID:  <200706160337.l5G3bTd8066242@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ariff       2007-06-16 03:37:29 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/sound        version.h 
    sys/dev/sound/pci    es137x.c 
    sys/dev/sound/pcm    buffer.c channel.c channel.h dsp.c dsp.h 
                         feeder.c feeder_rate.c mixer.c mixer.h 
                         sndstat.c sound.c sound.h vchan.c 
    sys/dev/sound/usb    uaudio.c 
  Log:
  Last (again ?!?) major commit for RELENG_7, featuring total Giant
  eradication in/from userland path, countless locking fixes, etc.
  
  - General sleep call through msleep(9) has been converted to condvar(9)
    with better consistencies.
  - Heavily guard every possible "slow path" entries (open(), close(),
    few ioctl()s, sysctls), but once it entering "fast path" (io, interrupt
    started), they are free to fly on their own.
  - Rearrange locking sequences, resulting better concurrency and
    serialization. Large part doesn't even need locking at all, and will be
    removed in future. Less clutter, except in few places due to lock
    ordering.
  - Anonymous mixer object creation/deletion to simplify mixer handling
    beyond typical mixer ioctls.
    Submitted by:         chibis (with modifications)
  - Add few mix_[get|set|..] functions to avoid calling mixer_ioctl()
    directly using cryptic arguments.
  - Locking fixes to avoid possible deadlock with (still under Giant) USB.
  - Better simplex/duplex device handling.
  - Recover mmap() functionality for recording, which has been lost
    since 2.2.x - 3.x (the introduction of newpcm). Full-duplex mmap still
    doesn't work (due to VM/page design), but people still can mmap
    both by opening each direction separately. mmaped playback is guarantee
    to work either way.
  - New sysctl: "hw.snd.compat_linux_mmap" to allow PROT_EXEC page
    mapping, due to recent changes in linux compatibility layer which
    require it. All linux applications that using sound + mmap() (mostly games)
    require this to be enabled. Disabled by default.
  - Other goodies.. too many, that will increase releng7 shareholder value
    and make users of releng6 (and below) cry ;)
  
  * This commit should be atomic. If anything goes wrong (not counting problem
    originated from elsewhere), I will not hesitate to revert everything back
    within 12 hours. This substantial changes itself not a rocket science
    and the process has begun for almost 2 years, and lots of incremental
    changes are already in place during that period of time.
  * Some issues does occur in snd_emu10kx (note the 'x') due to various
    internal locking issues and it is currently being worked on by chibis.
  
  Tested by:      chibis (Yuriy Tsibizov), joel, Alexandre Vieira,
                  many innocent souls...
  
  Revision  Changes    Path
  1.69      +30 -28    src/sys/dev/sound/pci/es137x.c
  1.37      +1 -1      src/sys/dev/sound/pcm/buffer.c
  1.121     +167 -223  src/sys/dev/sound/pcm/channel.c
  1.37      +28 -2     src/sys/dev/sound/pcm/channel.h
  1.106     +702 -420  src/sys/dev/sound/pcm/dsp.c
  1.13      +5 -0      src/sys/dev/sound/pcm/dsp.h
  1.43      +0 -21     src/sys/dev/sound/pcm/feeder.c
  1.23      +5 -5      src/sys/dev/sound/pcm/feeder_rate.c
  1.61      +389 -157  src/sys/dev/sound/pcm/mixer.c
  1.19      +20 -3     src/sys/dev/sound/pcm/mixer.h
  1.28      +25 -15    src/sys/dev/sound/pcm/sndstat.c
  1.116     +347 -267  src/sys/dev/sound/pcm/sound.c
  1.78      +208 -0    src/sys/dev/sound/pcm/sound.h
  1.36      +68 -63    src/sys/dev/sound/pcm/vchan.c
  1.34      +10 -10    src/sys/dev/sound/usb/uaudio.c
  1.2       +1 -1      src/sys/dev/sound/version.h



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