OpenBSD CVS

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


[BACK] Up to [local] / src / sys / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.18 / (download) - annotate - [select for diffs], Thu Jun 25 06:43:46 2015 UTC (8 years, 11 months ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, HEAD
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

Reimplement the audio driver in a simpler way, removing unused/unusable
functionality. Same API and ABI except for the removed bits and no
behaviour change for programs using libsndio. With help from armani@
and mpi@, thanks.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jun 4 06:03:11 2015 UTC (9 years ago) by jsg
Branch: MAIN
Changes since 1.16: +1 -68 lines
Diff to previous 1.16 (colored)

remove the now unused alawtolin16 table
ok ratchov@

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 11 06:46:21 2015 UTC (9 years, 1 month ago) by ratchov
Branch: MAIN
Changes since 1.15: +11 -404 lines
Diff to previous 1.15 (colored)

Remove all audio format conversion code from the kernel (btw holding
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi

ok armani@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:46 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Oct 23 19:54:36 2007 UTC (16 years, 7 months ago) by jakemsr
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.13: +50 -1 lines
Diff to previous 1.13 (colored)

- add a couple more mono-to-stereo conversions
- add stereo-to-mono conversions for mono recording
  on stereo only devices

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 17 08:35:33 2007 UTC (16 years, 10 months ago) by jakemsr
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

when looping through an array and advancing your pointer to the array
2x on each loop, only loop .5x times

fixes hard hangs on i386 and "hiccups" on sgi when these functions are
used through e.g. dd if=/dev/audio of=foo, since mulaw is the default
encoding.

the commit history wrt this code is interesting.  I am responsible for
introducing this braindamage to OpenBSD ... and note that
linear16_to_linear8_[lb]e had it right ...

Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 14 01:24:20 2005 UTC (19 years, 2 months ago) by pascoe
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.11: +31 -1 lines
Diff to previous 1.11 (colored)

Correct signed/unsigned mismatches in compatibility macros and add
mono-to-stereo variants for mulaw_to_slinear16

ok dlg@ jason@ mickey@

Revision 1.4.6.6 / (download) - annotate - [select for diffs], Sat Jun 5 23:12:36 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.4.6.5: +26 -1 lines
Diff to previous 1.4.6.5 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Merge with the trunk

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 23 23:59:21 2004 UTC (20 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.10: +27 -2 lines
Diff to previous 1.10 (colored)

slinear to alaw converters; from netbsd, via jakemsr@jakemsr.com

Revision 1.4.6.5 / (download) - annotate - [select for diffs], Thu Feb 19 10:56:13 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.4.6.4: +38 -80 lines
Diff to previous 1.4.6.4 (colored) to branchpoint 1.4 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 27 00:23:43 2003 UTC (20 years, 11 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.9: +39 -81 lines
Diff to previous 1.9 (colored)

ansify and add an alaw <-> mulaw conversion

Revision 1.4.6.4 / (download) - annotate - [select for diffs], Fri Mar 28 00:38:09 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.4.6.3: +11 -0 lines
Diff to previous 1.4.6.3 (colored) to branchpoint 1.4 (colored)

Sync the SMP branch with 3.3

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Tue Jun 11 03:42:15 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.7.4.1: +12 -1 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Sync UBC branch to -current

Revision 1.9 / (download) - annotate - [select for diffs], Mon May 6 02:34:57 2002 UTC (22 years, 1 month ago) by nate
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.8: +12 -1 lines
Diff to previous 1.8 (colored)

new conversion functions from NetBSD for uaudio

Revision 1.4.6.3 / (download) - annotate - [select for diffs], Wed Mar 6 02:11:42 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.4.6.2: +84 -0 lines
Diff to previous 1.4.6.2 (colored) to branchpoint 1.4 (colored)

Merge in trunk

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Thu Jan 31 22:55:29 2002 UTC (22 years, 4 months ago) by niklas
Branch: UBC
Changes since 1.7: +85 -1 lines
Diff to previous 1.7 (colored)

Merge in -current, builds on i386, otherwise untested

Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 31 04:14:00 2001 UTC (22 years, 5 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.7: +85 -1 lines
Diff to previous 1.7 (colored)

add a mono-to-stereo versions; from Kazuhiko Fukuhara <zaa83571@oak.zero.ad.jp>

Revision 1.4.6.2 / (download) - annotate - [select for diffs], Wed Jul 4 10:40:11 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.4.6.1: +7 -6 lines
Diff to previous 1.4.6.1 (colored) to branchpoint 1.4 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Mon May 14 22:23:02 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.4: +85 -23 lines
Diff to previous 1.4 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 1 01:54:43 2001 UTC (23 years, 1 month ago) by aaron
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.6: +7 -7 lines
Diff to previous 1.6 (colored)

Fix a typo in comment. Constify. From NetBSD.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 1 01:49:48 2001 UTC (23 years, 1 month ago) by aaron
Branch: MAIN
Changes since 1.5: +1 -0 lines
Diff to previous 1.5 (colored)

Add $OpenBSD$ tags.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 20 21:44:34 2000 UTC (23 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.4: +85 -23 lines
Diff to previous 1.4 (colored)

extend with new netbsd api, and add backwards compat hacks for drivers

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 28 18:01:01 1998 UTC (25 years, 7 months ago) by downsj
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Branch point for: SMP
Changes since 1.3: +97 -8 lines
Diff to previous 1.3 (colored)

More conversion routines, from NetBSD

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 26 21:03:10 1998 UTC (26 years, 1 month ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.2: +274 -89 lines
Diff to previous 1.2 (colored)

update audio from NetBSD, mostly by Lennart Augustsson <augustss@cs.chalmers.se>

Revision 1.2 / (download) - annotate - [select for diffs], Fri Nov 7 08:06:36 1997 UTC (26 years, 7 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)

$OpenBSD$

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:52:29 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:52:29 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

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.