Commit Graph

6 Commits

Author SHA1 Message Date
jmcneill
8a962f23f2 Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.
2011-11-23 23:07:28 +00:00
riz
a110815e0b Use le16enc()/be16enc() to encode LE/BE values back into the audio stream.
This fixes the tests/dev/audio test on my macppc box.

While I'm here, use le16dec()/be16dec() directly instead of rewriting them.
2011-02-28 16:56:39 +00:00
jmcneill
839e47bbd7 Catch up to audio(4) device_t/softc split. 2009-09-07 18:23:06 +00:00
mlelstv
208ba41bb4 mutex.h is implied by condvar.h
param.h is required for xen
2008-06-06 20:51:51 +00:00
jmcneill
e1557cc154 Use 2-clause license. 2008-05-09 03:44:51 +00:00
jmcneill
b6ed7a1236 Implement volume controls for pseudo audio device. 2007-11-11 19:53:38 +00:00