The NetBSD Project

CVS log for src/sys/dev/auconv.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.35.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:48 2018 UTC (2 weeks, 6 days ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.35.2.1: +20 -20 lines
Diff to previous 1.35.2.1 (unified) to branchpoint 1.35 (unified) next main 1.36 (unified)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.37 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:30 2018 UTC (3 weeks, 1 day ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-0906, HEAD
Changes since 1.36: +20 -20 lines
Diff to previous 1.36 (unified)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:49 2018 UTC (3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.35: +22 -108 lines
Diff to previous 1.35 (unified)

Sync with HEAD

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jun 23 03:18:49 2018 UTC (3 months ago) by nat
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi, pgoyette-compat-0728, pgoyette-compat-0625, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.35: +22 -108 lines
Diff to previous 1.35 (unified)

Add all encoding supported by the mixer.

Addresses PR kern/52585.

Revision 1.26.2.5 / (download) - annotate - [select for diffs], Mon Apr 16 14:11:44 2018 UTC (5 months, 1 week ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.26.2.4: +3 -3 lines
Diff to previous 1.26.2.4 (unified) to branchpoint 1.26 (unified) next main 1.27 (unified)

Pull up following revision(s) (requested by nat in ticket #759):

	sys/dev/audio.c: revision 1.367
	sys/dev/audio.c: revision 1.369
	sys/dev/audio.c: revision 1.376 (patch)
	sys/dev/audio.c: revision 1.377 (patch)
	sys/dev/audio.c: revision 1.378
	sys/dev/audio.c: revision 1.382 (patch)
	sys/dev/audio.c: revision 1.383 (patch)
	sys/dev/audio.c: revision 1.384
	sys/dev/audio.c: revision 1.388
	sys/dev/audio.c: revision 1.389
	sys/dev/audio.c: revision 1.395
	sys/dev/audio.c: revision 1.396 (patch)
	sys/dev/audio.c: revision 1.397
	sys/dev/audio.c: revision 1.403
	sys/dev/audio.c: revision 1.451
	sys/dev/audio.c: revision 1.452
	sys/dev/audiovar.h: revision 1.59 (patch)
	sys/dev/aurateconv.c: revision 1.21 (patch)
	sys/dev/auconv.c: revision 1.31 (patch)
	sys/dev/audiovar.h: revision 1.60 (patch)

Broadcast all conditional variables if in being deactivated so no readers
or writers get stuck.

Fix a panic caused by opening pad(4)'s mixer before the corresponding
audio device has attached.

Addresses PR kern/52424.

Improve audio_set_vchan_defaults().
- Correct confused input/output parameters.
- Remove sc->{sc_channels, sc_precision, sc_frequency}.  They are
  the same as sc->sc_vchan_params.{channels, precision, sample_rate}.
The input parameter of audio_set_vchan_defaults() is now only
sc->sc_vchan_params.

Fix PR kern/52437

const-ify.

0 -> NULL in audioattach()

"bits" sounds better than "name" for argument name.
I feel expression (name / NBBY) a little strange.

The audio module will now compile with WARNS=5.

Typo in debug message.

Remove a duplicated line.

Add missing initialization of sc_rfilters in audioattach().

Remove dead codes.

sc->sc_opens never changes in this loop and as a result of
previous sc_audiochan cleanup "sc_opens == 0" is the same as
"sc_audiochan is empty".

Clean up audio_allocbufs().

As a result of sc_audiochan cleanup, it is easy to access sc_hwvc.

Clean up audio_open().

As a result of sc_audiochan cleanup, this loop is the same as last + 1.
hw_if->set_params is mandatory, so it will never be NULL.

CID-1427745: kill possible buffer overflows.

Revert my wrong r1.380 and add a comment instead.

Revision 1.26.2.4 / (download) - annotate - [select for diffs], Tue Jan 9 19:35:03 2018 UTC (8 months, 2 weeks ago) by snj
Branch: netbsd-8
Changes since 1.26.2.3: +1392 -205 lines
Diff to previous 1.26.2.3 (unified) to branchpoint 1.26 (unified)

Pull up following revision(s) (requested by nat in ticket #485):
	sys/dev/auconv.c: 1.32-1.35
	sys/dev/auconv.h: 1.20-1.21
	sys/dev/mulaw.c: 1.33
	sys/dev/mulaw.h: 1.25
Improve LINEAR_LINEARN macro - inparticular BE/LE conversions.
Addresses part of PR kern/52586 analyzed and reported by isaki@.
--
Allow maxused to be an odd number of bytes.  This makes single byte
conversions work for the test described in the PR.
Addresses another part of PR kern/52586.
--
Remove 24 bit in a 32 bit container filters.
At present this filter did not work well and has caused problems with
the audio mixer disabled for hdaudio(4).
These filters may return when they are fixed.
--
Replace LINEARN_TO_LINEARN macro with individual optimized functions for
8, 16, 24 and 32 bits linear to linear conversions.
Addresses PR kern/52586.
--
mulaw/alaw_to_linearN macros replaced with individual faster filters.
NFC.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Dec 16 16:09:36 2017 UTC (9 months, 1 week ago) by nat
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.34: +1392 -221 lines
Diff to previous 1.34 (unified)

Replace LINEARN_TO_LINEARN macro with individual optimized functions for
8, 16, 24 and 32 bits linear to linear conversions.

Addresses PR kern/52586.

Revision 1.25.8.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:58 2017 UTC (9 months, 3 weeks ago) by jdolecek
Branch: tls-maxphys
Changes since 1.25: +421 -176 lines
Diff to previous 1.25 (unified) next main 1.26 (unified)

update from HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Tue Nov 7 01:15:42 2017 UTC (10 months, 2 weeks ago) by nat
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.33: +2 -22 lines
Diff to previous 1.33 (unified)

Remove 24 bit in a 32 bit container filters.

At present this filter did not work well and has caused problems with
the audio mixer disabled for hdaudio(4).

These filters may return when they are fixed.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Oct 2 07:06:15 2017 UTC (11 months, 3 weeks ago) by nat
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (unified)

Allow maxused to be an odd number of bytes.  This makes single byte
conversions work for the test described in the PR.

Addresses another part of PR kern/52586.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Oct 2 06:06:43 2017 UTC (11 months, 3 weeks ago) by nat
Branch: MAIN
Changes since 1.31: +76 -40 lines
Diff to previous 1.31 (unified)

Improve LINEAR_LINEARN macro - inparticular BE/LE conversions.

Addresses part of PR kern/52586 analyzed and reported by isaki@.

Revision 1.25.26.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:00 2017 UTC (12 months, 4 weeks ago) by skrll
Branch: nick-nhusb
Changes since 1.25: +407 -178 lines
Diff to previous 1.25 (unified) next main 1.26 (unified)

Sync with HEAD

Revision 1.25.24.1 / (download) - annotate - [select for diffs], Wed Aug 9 06:22:06 2017 UTC (13 months, 2 weeks ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (unified) next main 1.26 (unified)

Pull up following revision(s) (requested by nat in ticket #1460):
	sys/dev/auconv.c: revision 1.30 via patch
	sys/dev/ic/ac97.c: revision 1.97 via patch
	sys/dev/pci/azalia_codec.c: revision 1.81 via patch
Mixer device bounds checking.
Analysis by Ilja van Sprundel.

Revision 1.25.36.1 / (download) - annotate - [select for diffs], Wed Aug 9 06:21:18 2017 UTC (13 months, 2 weeks ago) by snj
Branch: netbsd-7-1
CVS Tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (unified) next main 1.26 (unified)

Pull up following revision(s) (requested by nat in ticket #1460):
	sys/dev/auconv.c: revision 1.30 via patch
	sys/dev/ic/ac97.c: revision 1.97 via patch
	sys/dev/pci/azalia_codec.c: revision 1.81 via patch
Mixer device bounds checking.
Analysis by Ilja van Sprundel.

Revision 1.25.28.1 / (download) - annotate - [select for diffs], Wed Aug 9 06:20:10 2017 UTC (13 months, 2 weeks ago) by snj
Branch: netbsd-7-0
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (unified) next main 1.26 (unified)

Pull up following revision(s) (requested by nat in ticket #1460):
	sys/dev/auconv.c: revision 1.30 via patch
	sys/dev/ic/ac97.c: revision 1.97 via patch
	sys/dev/pci/azalia_codec.c: revision 1.81 via patch
Mixer device bounds checking.
Analysis by Ilja van Sprundel.

Revision 1.26.2.3 / (download) - annotate - [select for diffs], Tue Aug 1 23:23:00 2017 UTC (13 months, 3 weeks ago) by snj
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.26.2.2: +3 -3 lines
Diff to previous 1.26.2.2 (unified) to branchpoint 1.26 (unified)

Pull up following revision(s) (requested by nat in ticket #166):
	sys/dev/auconv.c: revision 1.30
	sys/dev/audio.c: revision 1.372
	sys/dev/ic/ac97.c: revision 1.97
	sys/dev/pci/azalia_codec.c: revision 1.81
Mixer device bounds checking.
Analysis by Ilja van Sprundel.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Tue Aug 1 23:21:30 2017 UTC (13 months, 3 weeks ago) by snj
Branch: netbsd-8
Changes since 1.26.2.1: +20 -2 lines
Diff to previous 1.26.2.1 (unified) to branchpoint 1.26 (unified)

Pull up following revision(s) (requested by nat in ticket #165):
	sys/dev/auconv.c: revision 1.29
	sys/dev/auconv.h: revision 1.19
	sys/dev/ic/am7930.c: revision 1.56
Add a null_filter to help with the audio autoconfig of pmax.
Tested by flxd@.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jul 30 00:47:48 2017 UTC (13 months, 4 weeks ago) by nat
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (unified)

The audio module will now compile with WARNS=5.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 28 01:36:40 2017 UTC (13 months, 4 weeks ago) by nat
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (unified)

Mixer device bounds checking.

Analysis by Ilja van Sprundel.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jul 27 23:39:37 2017 UTC (13 months, 4 weeks ago) by nat
Branch: MAIN
Changes since 1.28: +20 -2 lines
Diff to previous 1.28 (unified)

Add a null_filter to help with the audio autoconfig of pmax.

Tested by flxd@.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Fri Jun 30 06:38:00 2017 UTC (14 months, 3 weeks ago) by snj
Branch: netbsd-8
Changes since 1.26: +386 -177 lines
Diff to previous 1.26 (unified)

Pull up following revision(s) (requested by nat in ticket #70):
	sys/dev/auconv.c: 1.27, 1.28
	sys/dev/mulaw.c: 1.29, 1.30
	sys/dev/mulaw.h: revision 1.21-1.24
	sys/dev/auconv.h: 1.17, 1.18
Add support for more formats.  At present 24 bit formats do not work and
have been disabled.
Ok christos@.
--
Fix defines to proper function names.
--
comment out unused variables.
--
Remove stray ";" from defines.
--
Use LINEARNTOMULAW for 8 bits as well.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jun 22 02:09:37 2017 UTC (15 months ago) by christos
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.27: +4 -2 lines
Diff to previous 1.27 (unified)

comment out unused variables.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jun 20 07:21:50 2017 UTC (15 months ago) by nat
Branch: MAIN
Changes since 1.26: +384 -177 lines
Diff to previous 1.26 (unified)

Add support for more formats.  At present 24 bit formats do not work and
have been disabled.

Ok christos@.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 1 09:44:30 2017 UTC (15 months, 3 weeks ago) by pgoyette
Branch: MAIN
CVS Tags: netbsd-8-base
Branch point for: netbsd-8
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (unified)

Add infrastructure for modularization of audio, midi, and sequencer

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:24 2012 UTC (6 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.24: +13 -11 lines
Diff to previous 1.24 (unified) next main 1.25 (unified)

sync with head

Revision 1.25 / (download) - annotate - [select for diffs], Wed Nov 23 23:07:31 2011 UTC (6 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, 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-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, 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-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, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.24: +13 -11 lines
Diff to previous 1.24 (unified)

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.

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Sat Nov 19 21:49:34 2011 UTC (6 years, 10 months ago) by jmcneill
Branch: jmcneill-audiomp3
Changes since 1.24: +13 -11 lines
Diff to previous 1.24 (unified) next main 1.25 (unified)

port ad-audiomp2 branch changes to 5.99.56
todo:
 - port ad-audiomp2 pcppi changes
 - these drivers need to be fixed:
   - emuxki
   - gcscaudio
   - hdafg
   - uaudio
   - umidi
   - MD audio drivers

Revision 1.24 / (download) - annotate - [select for diffs], Wed Sep 7 00:11:58 2011 UTC (7 years ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base
Branch point for: yamt-pagecache, jmcneill-audiomp3
Changes since 1.23: +11 -9 lines
Diff to previous 1.23 (unified)

auconv_exact_match: don't check precision, validbits, or channels for AC3

Revision 1.23 / (download) - annotate - [select for diffs], Tue Sep 6 01:16:44 2011 UTC (7 years ago) by jmcneill
Branch: MAIN
Changes since 1.22: +8 -5 lines
Diff to previous 1.22 (unified)

Add AUDIO_ENCODING_AC3 encoding type.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:32 2009 UTC (9 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (unified) next main 1.22 (unified)

sync with head.

Revision 1.21.12.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:51 2009 UTC (9 years, 8 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (unified) next main 1.22 (unified)

Sync with HEAD.

Revision 1.20.36.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:52 2009 UTC (9 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.20.36.1: +1 -1 lines
Diff to previous 1.20.36.1 (unified) to branchpoint 1.20 (unified) next main 1.21 (unified)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 3 03:43:21 2009 UTC (9 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, 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-base11, yamt-nfs-mp-base10, 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, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (unified)

remove extra semicolons.

Revision 1.21.16.1 / (download) - annotate - [select for diffs], Sun Dec 7 13:02:12 2008 UTC (9 years, 9 months ago) by ad
Branch: ad-audiomp2
Changes since 1.21: +13 -11 lines
Diff to previous 1.21 (unified) next main 1.22 (unified)

Ressurect the ad-audiomp branch at request of matt@.

With this commit:

- core audio subsystem made MPSAFE
- eap, btsco drivers made MPSAFE

TODO:

- midi
- convert remaining drivers

Revision 1.20.36.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:36 2008 UTC (10 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (unified)

Sync with HEAD.

Revision 1.20.32.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:11 2008 UTC (10 years, 6 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (unified) next main 1.21 (unified)

sync with head.

Revision 1.20.16.1 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:34 2008 UTC (10 years, 6 months ago) by matt
Branch: matt-armv6
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (unified) next main 1.21 (unified)

sync with HEAD

Revision 1.12.10.4 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:36 2008 UTC (10 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.12.10.3: +3 -2 lines
Diff to previous 1.12.10.3 (unified) to branchpoint 1.12 (unified) next main 1.13 (unified)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Mar 4 18:23:44 2008 UTC (10 years, 6 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, 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, 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, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base
Branch point for: yamt-nfs-mp, nick-hppapmap, ad-audiomp2
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (unified)

Split device_t and softc for audio(4), and other related cosmetic changes.

Revision 1.12.10.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:33:08 2007 UTC (11 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.12.10.2: +10 -11 lines
Diff to previous 1.12.10.2 (unified) to branchpoint 1.12 (unified)

sync with head.

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:01 2007 UTC (11 years, 6 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.19: +10 -11 lines
Diff to previous 1.19 (unified) next main 1.20 (unified)

Sync with HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Mar 1 17:31:35 2007 UTC (11 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs2, matt-armv6, keiichi-mipv6
Changes since 1.19: +10 -11 lines
Diff to previous 1.19 (unified)

TRUE -> true, FALSE -> false

Revision 1.12.10.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:49 2006 UTC (11 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.12.10.1: +4 -4 lines
Diff to previous 1.12.10.1 (unified) to branchpoint 1.12 (unified)

sync with head.

Revision 1.17.10.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:52 2006 UTC (11 years, 9 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.17.10.1: +6 -6 lines
Diff to previous 1.17.10.1 (unified) to branchpoint 1.17 (unified) next main 1.18 (unified)

sync with head.

Revision 1.17.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:02 2006 UTC (11 years, 10 months ago) by ad
Branch: newlock2
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (unified) next main 1.18 (unified)

Sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:44 2006 UTC (11 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (unified)

__unused removal on arguments; approved by core.

Revision 1.17.10.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:28 2006 UTC (11 years, 11 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.17: +7 -7 lines
Diff to previous 1.17 (unified)

sync with head

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:50 2006 UTC (11 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.17: +7 -7 lines
Diff to previous 1.17 (unified)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:49:09 2006 UTC (12 years ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.13: +13 -8 lines
Diff to previous 1.13 (unified) next main 1.14 (unified)

sync with head

Revision 1.12.10.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:11 2006 UTC (12 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.12: +13 -8 lines
Diff to previous 1.12 (unified)

sync with head.

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:45 2006 UTC (12 years, 5 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.13: +13 -8 lines
Diff to previous 1.13 (unified) next main 1.14 (unified)

Sync with head.

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:24:23 2006 UTC (12 years, 5 months ago) by elad
Branch: elad-kernelauth
Changes since 1.15: +6 -2 lines
Diff to previous 1.15 (unified) next main 1.16 (unified)

sync with head.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:06:43 2006 UTC (12 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.15: +6 -2 lines
Diff to previous 1.15 (unified) next main 1.16 (unified)

sync with head.

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:03 2006 UTC (12 years, 6 months ago) by tron
Branch: peter-altq
Changes since 1.15: +6 -2 lines
Diff to previous 1.15 (unified) next main 1.16 (unified)

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

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 18 14:31:26 2006 UTC (12 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.16: +2 -50 lines
Diff to previous 1.16 (unified)

Revert local changes not meant for previous commit.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Mar 18 13:12:15 2006 UTC (12 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.15: +54 -2 lines
Diff to previous 1.15 (unified)

Check the return value of AUCONV_MALLOC. Fixes a pile of CIDs related to
auconv.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:11 2006 UTC (12 years, 6 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.13: +9 -8 lines
Diff to previous 1.13 (unified) next main 1.14 (unified)

sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Feb 26 23:52:08 2006 UTC (12 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (unified)

fix tyop in debug printf

Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 26 23:23:59 2006 UTC (12 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.13: +8 -7 lines
Diff to previous 1.13 (unified)

make compile with AUCONV_DEBUG: rename encoding_names to encoding_dbg_names
to avoid -Wshadow collision

Revision 1.13 / (download) - annotate - [select for diffs], Sun Dec 11 12:20:53 2005 UTC (12 years, 9 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (unified)

merge ktrace-lwp.

Revision 1.10.12.2 / (download) - annotate - [select for diffs], Mon Jan 17 19:30:38 2005 UTC (13 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.10.12.1: +416 -287 lines
Diff to previous 1.10.12.1 (unified) to branchpoint 1.10 (unified) next main 1.11 (unified)

Sync with HEAD.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 10 22:01:36 2005 UTC (13 years, 8 months ago) by kent
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, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, 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, ktrace-lwp-base, kent-audio2-base, kent-audio2
Branch point for: yamt-lazymbuf
Changes since 1.11: +416 -287 lines
Diff to previous 1.11 (unified)

merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes

Revision 1.11.2.11 / (download) - annotate - [select for diffs], Wed Jan 5 03:31:36 2005 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.10: +30 -140 lines
Diff to previous 1.11.2.10 (unified) to branchpoint 1.11 (unified) next main 1.12 (unified)

introduce FILTER_LOOP_PROLOGUE() and FILTER_LOOP_EPILOGUE() macros, and
simplify filter implementations by the macros.

Revision 1.11.2.10 / (download) - annotate - [select for diffs], Mon Jan 3 16:40:26 2005 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.9: +5 -37 lines
Diff to previous 1.11.2.9 (unified) to branchpoint 1.11 (unified)

* remove stream_filter_list_append and stream_filter_list_prepend
* add stream_filter_list_t::{append(), prepend(), set()}

Revision 1.11.2.9 / (download) - annotate - [select for diffs], Sun Jan 2 15:54:44 2005 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.8: +30 -30 lines
Diff to previous 1.11.2.8 (unified) to branchpoint 1.11 (unified)

* audiosetinfo()
  rebuild filter pipeline only when audio_parameters is changed.

* audio_write()
  set uio_fetcher before calling fetch_to() every time because
  audio_pint() sets null_fetcher.

* introduce audio_stream::used, audio_stream_add_inp(), and
  audio_stream_add_outp()

* aurateconv
  fix infinite loop for up-sampling

Revision 1.11.2.8 / (download) - annotate - [select for diffs], Sat Jan 1 19:52:54 2005 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.7: +59 -17 lines
Diff to previous 1.11.2.7 (unified) to branchpoint 1.11 (unified)

* fix a bug of aurateconv support validation
* add some debug printf

Revision 1.11.2.7 / (download) - annotate - [select for diffs], Sat Jan 1 17:44:38 2005 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.6: +14 -2 lines
Diff to previous 1.11.2.6 (unified) to branchpoint 1.11 (unified)

add implementations for stream_filter::set_fetcher() and stream_filter::
set_inputbuffer().

Revision 1.11.2.6 / (download) - annotate - [select for diffs], Sat Jan 1 17:35:27 2005 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.5: +12 -19 lines
Diff to previous 1.11.2.5 (unified) to branchpoint 1.11 (unified)

* unconstfy some parameters of trigger_output() and start_output() because
  const pointers are harmful to unifying playing routine and recording
  routine in a hardware driver.

* strem_filter_list_t::filters[0] represents the most hardware-side filter
  even for playing filter pipeline to access hardware encoding by
  filters[0].param.

Revision 1.11.2.5 / (download) - annotate - [select for diffs], Thu Dec 30 16:02:27 2004 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.4: +13 -17 lines
Diff to previous 1.11.2.4 (unified) to branchpoint 1.11 (unified)

normalize encoding by audio_check_params()

Revision 1.11.2.4 / (download) - annotate - [select for diffs], Thu Dec 30 15:25:12 2004 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.3: +3 -3 lines
Diff to previous 1.11.2.3 (unified) to branchpoint 1.11 (unified)

initial value of minimum rate should be UINT_MAX, not ULONG_MAX.

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Thu Dec 30 15:22:17 2004 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.2: +8 -8 lines
Diff to previous 1.11.2.2 (unified) to branchpoint 1.11 (unified)

rename audio_format members:
	precision => validbits
	subframe_size => precision
change type of audio_format::frequency from u_long to u_int.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Thu Dec 30 15:15:52 2004 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11.2.1: +124 -84 lines
Diff to previous 1.11.2.1 (unified) to branchpoint 1.11 (unified)

auconv_set_converter() supports stream_filter_list_t.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Wed Dec 29 17:53:48 2004 UTC (13 years, 8 months ago) by kent
Branch: kent-audio1
Changes since 1.11: +390 -202 lines
Diff to previous 1.11 (unified)

re-implement sw_code functions as stream_filter

Revision 1.10.12.1 / (download) - annotate - [select for diffs], Sun Nov 14 08:15:43 2004 UTC (13 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.10: +815 -4 lines
Diff to previous 1.10 (unified)

Sync with HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 13 08:08:22 2004 UTC (13 years, 10 months ago) by kent
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base
Branch point for: kent-audio1
Changes since 1.10: +815 -4 lines
Diff to previous 1.10 (unified)

add the following four functions:
extern int auconv_set_converter(const struct audio_format *, int,
				int, struct audio_params *, int);
extern int auconv_create_encodings(const struct audio_format *, int,
				   struct audio_encoding_set **);
extern int auconv_delete_encodings(struct audio_encoding_set *);
extern int auconv_query_encoding(const struct audio_encoding_set *,
				 audio_encoding_t *);

These are helper functions for implementing audio_hw_if::set_params() and
audio_hw_if::query_encodings().

Revision 1.3.10.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:44:57 2002 UTC (16 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.10.3: +6 -6 lines
Diff to previous 1.3.10.3 (unified) to branchpoint 1.3 (unified) next main 1.4 (unified)

catch up with -current on kqueue branch

Revision 1.3.8.4 / (download) - annotate - [select for diffs], Mon Apr 1 07:44:58 2002 UTC (16 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.3.8.3: +6 -6 lines
Diff to previous 1.3.8.3 (unified) to branchpoint 1.3 (unified) next main 1.4 (unified)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.3.10.3 / (download) - annotate - [select for diffs], Sat Mar 16 16:00:46 2002 UTC (16 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.10.2: +52 -2 lines
Diff to previous 1.3.10.2 (unified) to branchpoint 1.3 (unified)

Catch up with -current.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 15 14:55:03 2002 UTC (16 years, 6 months ago) by kent
Branch: MAIN
CVS Tags: 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, 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, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: ktrace-lwp
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (unified)

audio.c: revert a part of previous change.
auconv.c: correct handling of size parameter.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 9 20:30:42 2002 UTC (16 years, 6 months ago) by kent
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.8: +2 -642 lines
Diff to previous 1.8 (unified)

Move sampling rate conversion functions to aurateconv.c.
Introduce "aurateconv" attribute for audio devices.
Add aurateconv to uaudio and auich.
(due to kern/15845 and kern/15848)

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 7 14:37:02 2002 UTC (16 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.7: +642 -2 lines
Diff to previous 1.7 (unified)

Sampling rate and mono-stereo conversion described in
http://mail-index.netbsd.org/tech-kern/2002/03/04/0005.html

auconv.c: Add conversion functions

audio.c: Sample alignment, calling conversion functions, etc.

audio_if.h: Add four hw_* members to "struct audio_params"

audiovar.h: Add conversion buffers, etc.

auich and uaudio: Add conversion request code to *_set_params().

Revision 1.3.8.3 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:09 2002 UTC (16 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.8.2: +54 -3 lines
Diff to previous 1.3.8.2 (unified) to branchpoint 1.3 (unified)

Catch up to -current.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 18 19:50:03 2002 UTC (16 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.6: +52 -2 lines
Diff to previous 1.6 (unified)

Add ulinear8 to/from slinear16 transforms.

Revision 1.3.10.2 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:36 2002 UTC (16 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.10.1: +4 -3 lines
Diff to previous 1.3.10.1 (unified) to branchpoint 1.3 (unified)

Sync w/ -current.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 15 16:39:50 2002 UTC (16 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (unified)

<dev/auconv.h> -> "auconv.h"; this makes auconv.c portable.

Revision 1.3.10.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:52:44 2002 UTC (16 years, 8 months ago) by thorpej
Branch: kqueue
Changes since 1.3: +16 -49 lines
Diff to previous 1.3 (unified)

Sync kqueue branch with -current.

Revision 1.3.8.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:13:40 2001 UTC (16 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.8.1: +4 -1 lines
Diff to previous 1.3.8.1 (unified) to branchpoint 1.3 (unified)

Catch up to -current.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 13 05:32:49 2001 UTC (16 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (unified)

add RCSIDs

Revision 1.3.12.1 / (download) - annotate - [select for diffs], Thu Oct 11 00:02:00 2001 UTC (16 years, 11 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.3: +13 -49 lines
Diff to previous 1.3 (unified) next main 1.4 (unified)

Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.3.8.1 / (download) - annotate - [select for diffs], Mon Oct 8 20:10:53 2001 UTC (16 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3: +13 -49 lines
Diff to previous 1.3 (unified)

Catch up to -current.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 2 23:31:55 2001 UTC (16 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Changes since 1.3: +13 -49 lines
Diff to previous 1.3 (unified)

ANSIfy.

Revision 1.2.18.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:39:45 2000 UTC (17 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2: +77 -25 lines
Diff to previous 1.2 (unified) next main 1.3 (unified)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.2.22.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:33 1999 UTC (18 years, 9 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.2: +77 -25 lines
Diff to previous 1.2 (unified) next main 1.3 (unified)

Pull up to last week's -current.

Revision 1.2.20.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:40:09 1999 UTC (18 years, 10 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.2: +77 -25 lines
Diff to previous 1.2 (unified) next main 1.3 (unified)

Sync with -current

Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 1 18:12:19 1999 UTC (18 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf, 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, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Changes since 1.2: +77 -25 lines
Diff to previous 1.2 (unified)

Make little endian and big endian version of all functions
that deal with 16 bit samples.  Let the drivers decide which ones
to use.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Aug 27 23:29:34 1997 UTC (21 years, 1 month ago) by thorpej
Branch: marc-pcmcia
Changes since 1.1.2.2: +32 -1 lines
Diff to previous 1.1.2.2 (unified) next main 1.2 (unified)

Update marc-pcmcia branch from trunk.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 24 22:20:24 1997 UTC (21 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, netbsd-1-3-base, 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, netbsd-1-3, marc-pcmcia-base, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, eeh-paddr_t-base, eeh-paddr_t, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.1: +32 -1 lines
Diff to previous 1.1 (unified)

Add trivial conversions between 8 and 16 bits.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sat Aug 23 07:12:41 1997 UTC (21 years, 1 month ago) by thorpej
Branch: marc-pcmcia
Changes since 1.1.2.1: +120 -0 lines
Diff to previous 1.1.2.1 (unified)

Update marc-pcmcia branch from trunk.

Revision 1.1.2.1, Thu Jul 31 22:33:17 1997 UTC (21 years, 2 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.1: +0 -120 lines
FILE REMOVED

file auconv.c was added on branch marc-pcmcia on 1997-08-23 07:12:41 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jul 31 22:33:17 1997 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Branch point for: marc-pcmcia

Audio changes:
	- Change the way attach and open works to allow multiple audio
	  devices.
	- Split the mulaw.c file into two to avoid dragging in mulaw
	  convertsion when they are not needed.  Add 16 bit alaw/mulaw tables.
	- Change the way audio properties are gotten.
	- Recognize more versions os SoundBlaster.

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>