The NetBSD Project

CVS log for src/sys/sys/audioio.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.40 / (download) - annotate - [select for diffs], Thu Apr 7 19:33:38 2022 UTC (9 months, 4 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

fix various typos in comments.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Aug 21 11:55:25 2021 UTC (17 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

fix some more typos in comments/log messages, improve wording as well.

Revision 1.37.14.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:57 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.37: +105 -1 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Sync with HEAD

Revision 1.38 / (download) - annotate - [select for diffs], Wed May 8 13:40:19 2019 UTC (3 years, 8 months ago) by isaki
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.37: +105 -1 lines
Diff to previous 1.37 (colored)

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c         -> dev/audio/audio.c (rewritten)
- dev/audiovar.h      -> dev/audio/audiovar.h
- dev/audio_dai.h     -> dev/audio/audio_dai.h
- dev/audio_if.h      -> dev/audio/audio_if.h
- dev/audiobell.c     -> dev/audio/audiobell.c
- dev/audiobellvar.h  -> dev/audio/audiobellvar.h
- dev/mulaw.[ch]      -> dev/audio/mulaw.[ch] + dev/audio/alaw.c

Revision 1.37.16.1 / (download) - annotate - [select for diffs], Sun Apr 21 04:28:59 2019 UTC (3 years, 9 months ago) by isaki
Branch: isaki-audio2
Changes since 1.37: +105 -1 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Reimplement audio subsystem.
http://mail-index.netbsd.org/tech-kern/2019/04/01/msg024944.html
At first step, audio and devices tightly coupled to audio.
 audio.c -> dev/audio.c: completely rewritten.
 mulaw.c -> audio/mulaw.c, audio/alaw.c: improve quality.
 audiovar.h, mulaw.h: should be removed.
 audio/linear.c: efficient new linear-linear converter.
 auconv.[ch]: should be removed but need some functions for now.
 aurateconv, auvolconv: removed (new audio.c handles it).
 audiobell.c: efficient and small new bell driver.
 audiobelldata.h: removed 4KB sine wave data.
 pad/pad.c: catch up audio, but not cloneable for now.

Revision 1.34.12.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:20 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.34: +6 -1 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

update from HEAD

Revision 1.34.30.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:16 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.34.30.1: +6 -7 lines
Diff to previous 1.34.30.1 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

Sync with HEAD

Revision 1.34.34.3 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:31 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.34.34.2: +3 -2 lines
Diff to previous 1.34.34.2 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

Sync with HEAD

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:08 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.35: +6 -7 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with HEAD

Revision 1.37 / (download) - annotate - [select for diffs], Tue Mar 21 07:04:29 2017 UTC (5 years, 10 months ago) by nat
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, bouyer-socketcan-base1
Branch point for: phil-wifi, isaki-audio2
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

Renane ioctl AUDIO_SETPROC to AUDIO_SETCHAN.

Add an ioctl to return channel number (AUDIO_GETCHAN). This can be used
on audio/sound/audioctl devices.

Return EIO in read/write/ioctl/poll/stat if fp has been closed or is
invalid.

Update audio.4, audioio.h and audioctl(1) to reflect these changes.

Revision 1.34.34.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:53 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.34.34.1: +5 -7 lines
Diff to previous 1.34.34.1 (colored) to branchpoint 1.34 (colored)

Sync with HEAD

Revision 1.36 / (download) - annotate - [select for diffs], Fri Feb 10 19:31:42 2017 UTC (5 years, 11 months ago) by nat
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.35: +5 -7 lines
Diff to previous 1.35 (colored)

Audio now uses fdclone, there is no longer a limitation of one audio
instance per process.  Virtual channels are placed in a queue, so there is
no longer a compile time limit of VAUDIOCHANS.

A new sysctl has been added to control multiple user access.
Mixer labels on virtual channels are now prefixed by vchan.

audiobell.c and audioctl have been updated to reflect these changes.

Use of fdclone was posted to tech-kern@ and improvements made.
Multiuser access control changes and the use of a queue were suggessted by
pgoyette@

Revision 1.34.30.1 / (download) - annotate - [select for diffs], Sun Feb 5 13:41:01 2017 UTC (5 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.34: +7 -1 lines
Diff to previous 1.34 (colored)

Sync with HEAD

Revision 1.34.34.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:53 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.34: +7 -1 lines
Diff to previous 1.34 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.35 / (download) - annotate - [select for diffs], Thu Dec 8 10:28:44 2016 UTC (6 years, 1 month ago) by nat
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.34: +7 -1 lines
Diff to previous 1.34 (colored)

The audio sub-system now supports the following features as
posted to tech-kern:

    * Simultaneous playback and mixing of multiple streams
    * Playback streams can be of different encoding, frequency, precision
      and number of channels
    * Simultaneous recording to different formats
    * One audio device per process
    * Sysctls to set the common format frequency, precision and channels
    * Independent mixer controls for recording/playback per stream
    * Utilizes little cpu time for multiple streams / good performance
    * Compatible with existing programs that use OSS/NetBSD audio
    * Changes to audioctl(1) to allow specifying process id for corresponding
      audio device

Revision 1.34 / (download) - annotate - [select for diffs], Tue Sep 6 01:16:43 2011 UTC (11 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: tls-maxphys, pgoyette-localcount, nick-nhusb
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

Add AUDIO_ENCODING_AC3 encoding type.

Revision 1.32.52.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:24 2010 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

sync to netbsd-5

Revision 1.32.32.1 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:41 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

sync with head

Revision 1.32.44.1 / (download) - annotate - [select for diffs], Fri Oct 16 05:43:38 2009 UTC (13 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Pull up following revision(s) (requested by sborrill in ticket #1038):
	share/man/man4/audio.4: revision 1.70 via patch
	sys/dev/audio.c: revision 1.248
	sys/dev/audio_if.h: revision 1.66
	sys/dev/pci/hdaudio/hdaudio_afg.c: revision 1.16
	sys/sys/audioio.h: revision 1.33
Add support for playback- or capture-only devices.
Fixes PR 42050

Revision 1.33 / (download) - annotate - [select for diffs], Tue Sep 29 15:58:54 2009 UTC (13 years, 4 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

Add support for playback- or capture-only devices by adding
AUDIO_PROP_PLAYBACK and AUDIO_PROP_CAPTURE properties.

From jmcneill@.

Fixes PR#42050

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:45:58 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28.2.1: +2 -1 lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

sync with head.

Revision 1.31.22.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:05:15 2007 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.31.14.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:28:07 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with head.

Revision 1.31.16.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:20 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with head.

Revision 1.31.8.1 / (download) - annotate - [select for diffs], Tue Jun 12 10:11:08 2007 UTC (15 years, 7 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #716):
	share/man/man4/audio.4: revision 1.66
	sys/compat/ossaudio/ossaudio.c: revision 1.56
	sys/sys/audioio.h: revision 1.32
	lib/libossaudio/ossaudio.c: revision 1.21
	sys/dev/audio.c: revision 1.222
Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but
doesn't obtain the ports, gain and balance related parameters.
Those generally require reading from the hardware and therefore are
much
more expensive to obtain. Modify OSS emulation to use the new ioctl
where possible.
This reduces CPU usage of mplayer during mp3 playback with my Thinkpad
from 20% to < 1% and from 50% to 20% during Xvid playback.
Review and comments from jmcneill@

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 11 13:05:47 2007 UTC (15 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-ufs-trans-base, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, netbsd-5, matt-nb5-mips64
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but
doesn't obtain the ports, gain and balance related parameters.
Those generally require reading from the hardware and therefore are much
more expensive to obtain. Modify OSS emulation to use the new ioctl
where possible.

This reduces CPU usage of mplayer during mp3 playback with my Thinkpad
from 20% to < 1% and from 50% to 20% during Xvid playback.

Review and comments from jmcneill@

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:59:41 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.29: +8 -1 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

sync with head

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:50:06 2006 UTC (16 years, 6 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.30: +5 -1 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Merge from HEAD.

Revision 1.29.8.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:54:29 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.29.8.1: +5 -1 lines
Diff to previous 1.29.8.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

sync with head.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 03:39:50 2006 UTC (16 years, 7 months ago) by chap
Branch: chap-midi
Changes since 1.30: +5 -1 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Complete a sync sys/ with head.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:02 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.28: +8 -1 lines
Diff to previous 1.28 (colored)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jun 18 20:45:09 2006 UTC (16 years, 7 months ago) by scw
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, thorpej-atomic, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, chap-midi-nbase, chap-midi-base, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, vmlocking, netbsd-4, mjf-ufs-trans
Changes since 1.30: +5 -1 lines
Diff to previous 1.30 (colored)

Pull in <string.h> if !_KERNEL, otherwise gcc4 complains about no
prototype for memset(3) (in AUDIO_INITINFO()).

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:18 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with head.

Revision 1.29.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 04:36:01 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

sync with head.

Revision 1.29.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:51 2006 UTC (16 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored)

sync with head.

Revision 1.29.12.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:29 2006 UTC (16 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Mar 28 21:12:04 2006 UTC (16 years, 10 months ago) by kleink
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, elad-kernelauth-base
Branch point for: gdamore-uart, chap-midi
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored)

Make <sys/audioio.h> include prerequisite headers; audio(4) was incomplete
with regard to required headers, and besides that it also matches Solaris.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:20 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.28: +1 -1 lines
Diff to previous 1.28 (colored)

merge ktrace-lwp.

Revision 1.26.6.1 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:12 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD. Here we go again...

Revision 1.26.14.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:37 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

sync with -current

Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 5 16:06:49 2005 UTC (17 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Replace tab after #define with space.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Apr 5 16:05:56 2005 UTC (17 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Add new mixer class 'AudioCmodem' -> "modem", used to set the line/handset
levels on soft modems.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Fri Oct 18 02:45:38 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.25: +6 -2 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Catch up to -current.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 12 07:39:00 2002 UTC (20 years, 3 months ago) by kent
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, kent-audio1-beforemerge, kent-audio1-base, kent-audio1, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: ktrace-lwp, kent-audio2
Changes since 1.25: +6 -2 lines
Diff to previous 1.25 (colored)

Add AudioNvideo, AudioNcenter, AudioNdepth, and AudioNlfe
to sync with OpenBSD.

Revision 1.24.12.1 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:58 2001 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD

Revision 1.25 / (download) - annotate - [select for diffs], Fri Dec 29 10:00:08 2000 UTC (22 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, kqueue-base, kqueue, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: nathanw_sa
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

Add a field in mixer_devinfo_t that indicates the minimum delta to
change mixer value.  A value of 0 indicates that the driver doesn't
supply a delta.
The change is backwards compatible.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Aug 13 06:28:41 1998 UTC (24 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: thorpej_scsipi
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

change the value of audio_prinfo.seek from u_long to u_int before it causes
too much damange.  everything else here is the same in a 64bit vs. 32bit
world, so keep it all simple.  the alpha was the only port to have any real
affect for this, and it only very recently begun to support some audio
devices so it doesn't really apply here.  1.3/alpha did not support audio..

Revision 1.23 / (download) - annotate - [select for diffs], Wed Aug 12 03:18:35 1998 UTC (24 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

enhanced -> preamp

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 6 11:11:34 1998 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Add AudioNselect.

Revision 1.21 / (download) - annotate - [select for diffs], Wed May 27 17:21:29 1998 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.20: +6 -1 lines
Diff to previous 1.20 (colored)

#define a few more useful strings.

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 22 18:16:16 1998 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.19: +2 -10 lines
Diff to previous 1.19 (colored)

Clean up a little now that memset is in the kernel.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 27 19:11:38 1998 UTC (24 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Add "aux" unit.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Tue Oct 28 04:41:02 1997 UTC (25 years, 3 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.17: +8 -8 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Pull rev 1.18 up from trunk (mikel)

Revision 1.18 / (download) - annotate - [select for diffs], Tue Oct 28 03:26:45 1997 UTC (25 years, 3 months ago) by mikel
Branch: MAIN
Changes since 1.17: +8 -8 lines
Diff to previous 1.17 (colored)

update some comments, no functional change

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 19 07:42:55 1997 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.16: +56 -22 lines
Diff to previous 1.16 (colored)

Make the audio API (almost) SunOS compatible.
The changes is to allow some limited mixer manipulation through
the audio device (instead of the mixer device).
This rendered 4 methods in audio_hw_if unused so garbage collect these.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 16 23:57:56 1997 UTC (25 years, 3 months ago) by is
Branch: MAIN
Changes since 1.15: +7 -1 lines
Diff to previous 1.15 (colored)

TMS320AV110 (mpeg layer 2 decoder chip) and ZBUS Melody board, which uses it.
No optionboards yet for Melody, only audio driver.
MPEG data types for audio.c

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Tue Oct 14 16:03:03 1997 UTC (25 years, 3 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.12.2.1: +12 -12 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 11 11:24:34 1997 UTC (25 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.14: +12 -12 lines
Diff to previous 1.14 (colored)

Make class and port names consistently lower case.  Also, change `linear' to
`slinear'.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Thu Aug 28 00:23:49 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Aug 26 19:03:57 1997 UTC (25 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Make sure audio device starts in half-duplex mode and document the fact.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Aug 24 22:31:37 1997 UTC (25 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

- Change audio_hw_if a little: set_param now sets the play and record modes
  at the same time instead by using two different calls.  This enables
  it to check more easily if the combined mode is all right.
- Improve the error checking in audio.c.
- Add a new audio property, AUDIO_PROP_INDEPENDENT, show if the
  play and record settings are independent.
- Fix some buglets in audio.c.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jul 27 01:17:10 1997 UTC (25 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.11: +13 -2 lines
Diff to previous 1.11 (colored)

Changes to the sudio system:
  - It is now possible to handle devices that want "looping" DMA,
    e.g. the SoundBlaster correctly.  The WSS and SB drivers use this.
    To do this several new methods were introduced in audio_hw_if.
  - Different silence handling (forced by previous change).
  - The audio driver can now be mmap()-ed, but due to problems in
    the VM system only for writing for now.
  - The OSS (Linux) audio emulation takes advantage of some of the
    new features.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 15 07:46:22 1997 UTC (25 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.10: +8 -9 lines
Diff to previous 1.10 (colored)

In the name of backwards compatibility AUDIO_ENCODING_LINEAR has been
renamed AUDIO_ENCODING_SLINEAR and AUDIO_ENCODING_LINEAR reverts to the
NetBSD 1.2 sematics.  A kernel with COMPAT_12 defined will accept
AUDIO_ENCODING_LINEAR and treat it as before, without COMPAT_12 it
will be rejected.

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 24 23:23:17 1997 UTC (25 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.9: +5 -1 lines
Diff to previous 1.9 (colored)

Add defines to be backwards compatible with 1.2 encoding names.

Revision 1.9 / (download) - annotate - [select for diffs], Wed May 7 19:24:37 1997 UTC (25 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Return audio buffer size in audio_info_t with ioctl() AUDIO_GETINFO.
Use the buffer size to implement one more OSS ioctl().

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 7 18:51:51 1997 UTC (25 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.7: +21 -12 lines
Diff to previous 1.7 (colored)

Convert to new orthogonal audio encoding scheme and implement
some of the new encodings.  The change to ioctl AUDIO_GETENC is
NOT backwards compatible.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 22 07:09:05 1997 UTC (26 years ago) by mikel
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

add multiple inclusion protection

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 9 20:55:22 1996 UTC (26 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

fix extra spaces at ends of lines, etc.  (all spacing nits.)

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 11 05:12:28 1996 UTC (26 years, 11 months ago) by scottr
Branch: MAIN
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)

XXX - stop-gap fix for use of memset() if we're compiling a kernel; it's
      not included in the kernel programming interface.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 17 02:28:56 1996 UTC (26 years, 11 months ago) by jtk
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

Fix PR#2060 (add AUDIO_PERROR ioctl to query # of playback drops), also
fix semantics of AUDIO_WERROR (now returns a count).

Also repair audio driver back to "real-time mode" where user must
provide data quickly enough for real time audio or silence is played
until user catches up.  Add optional "play all" mode (additional bit in
mode field) to play all samples provided, with silence when needed to
avoid buffer underrun.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 7 01:43:35 1995 UTC (27 years, 7 months ago) by brezak
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.2: +16 -5 lines
Diff to previous 1.2 (colored)

 Add typedef for audio_prinfo_t (PR#1167), Change AUMODE_* to flags, and add new strings for mixer devs

Revision 1.2 / (download) - annotate - [select for diffs], Mon May 8 22:21:29 1995 UTC (27 years, 9 months ago) by brezak
Branch: MAIN
Changes since 1.1: +1 -2 lines
Diff to previous 1.1 (colored)

Cleanup

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 21 01:37:22 1995 UTC (27 years, 11 months ago) by brezak
Branch: MAIN

New audio subsystem

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>