The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.79 / (download) - annotate - [select for diffs], Tue Jan 24 08:17:11 2023 UTC (2 weeks ago) by mlelstv
Branch: MAIN
CVS Tags: HEAD
Changes since 1.78: +47 -17 lines
Diff to previous 1.78 (colored)

Pace I/O timing to match the audio interface.
Enable interrupts while copying buffers.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Mar 31 19:30:16 2022 UTC (10 months, 1 week ago) by pgoyette
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.77: +10 -17 lines
Diff to previous 1.77 (colored)

For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence.  This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

	devsw_attach()
	config_init_component() or config_cf*_attach()
	...
	config_fini_component() or config_cf*_detach()
	devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
	1. compile without build break
	2. no related test failures from atf
	3. modload/modunload work as well as
	   before.

No functional device testing done, since I don't have any
of these devices.  Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken;  see kern/56772.  This commit does not break
any additional modules (as far as I know).

Revision 1.77 / (download) - annotate - [select for diffs], Mon Mar 28 12:33:21 2022 UTC (10 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.76: +3 -5 lines
Diff to previous 1.76 (colored)

driver(9): devsw_detach never fails.  Make it return void.

Prune a whole lotta dead branches as a result of this.  (Some logic
calling this is also wrong for other reasons; devsw_detach is final
-- you should never have any reason to decide to roll it back.  To be
cleaned up in subsequent commits...)

XXX kernel ABI change to devsw_detach signature requires bump

Revision 1.76 / (download) - annotate - [select for diffs], Sat Mar 12 17:07:10 2022 UTC (10 months, 4 weeks ago) by riastradh
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

pad(4): Do harmless, not harmful, integer truncation.

Reported-by: syzbot+917ff3551897f1a99cf6@syzkaller.appspotmail.com

Revision 1.65.10.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:29 2021 UTC (19 months, 3 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.65: +178 -250 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync w/ HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Jun 14 18:44:53 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.74: +32 -2 lines
Diff to previous 1.74 (colored)

pad(4): Explain what's wrong with using device pointers like this.

...and why the kernel lock is not enough.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Jun 14 18:44:45 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.73: +2 -3 lines
Diff to previous 1.73 (colored)

pad(4): Omit unused sc_blksize.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Jun 14 18:44:37 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.72: +29 -28 lines
Diff to previous 1.72 (colored)

pad(4): Refactor for clarity, and fix locking bugs.

- Don't touch sc_buflen outside sc_intr_lock.

- Omit needless broadcast in pad_halt_output -- nothing wakes on the
  new condition (sc_buflen == 0), so this can't make a difference
  except possibly in buggy code.

- Sprinkle KASSERTs.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Jun 14 10:21:21 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored)

pad(4): Destroy the callout when done.

Should not be possible for it to be pending or firing at this point,
because we have detached the audio(4) child and so it should have
halted output.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 14 10:14:58 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.70: +61 -118 lines
Diff to previous 1.70 (colored)

pad(4): Make this exclusively a cloning device.

padN numbering never corresponded with audioM numbering except by
accident, so the non-cloning device never worked reliably for
scripting.  This simplifies the logic substantially.

While here, fix drvctl detach race.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jun 14 10:14:46 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.69: +11 -10 lines
Diff to previous 1.69 (colored)

pad(4): Sort includes.  Add missing includes to padvar.h.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Jun 14 10:14:01 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.68: +21 -40 lines
Diff to previous 1.68 (colored)

pad(4): Fix some locking.

- No need for sc_cond_lock.
- Issue cv_broadcast under the correct lock.
- Use callout_halt, not haphazard callout_stop.
- IPL_SOFTCLOCK for a mutex taken from a callout.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jun 14 00:21:09 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.67: +62 -90 lines
Diff to previous 1.67 (colored)

pad(4): Some incomplete tidying.

- Put pseudo-device softc setup/teardown back in pad_attach/detach,
  not in the cdev/fops operations which are about file descriptors.
- Remove unnecessary sc_dying flag.
- Omit needless config_deactivate(sc->sc_audiodev); the only effect
  of this is already done by config_detach anyway, which is done in
  the same context.
- Issue config_detach_children and free softc stuff in the right
  order.
- Omit needless `if (sc == NULL) return ENXIO'.

Survives eight parallel t_mixerctl tests many times over on an
8-thread/4-core machine.

XXX TODO:
- Remove padconfig; it is not appropriate to hold a mutex over
  sleeping allocation or autoconf config_attach operations.  This
  should be done another way.
- Fix agreement of sc_condvar with locks: is it sc_cond_lock or
  sc_intr_lock?  Can't be both; unclear why both exist.
- Determine whether both cdev and fops are really needed -- it is
  confusing to have two types of paths into all this logic, and it
  seems to me only one of them should be necessary.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jun 13 23:09:22 2021 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.66: +4 -2 lines
Diff to previous 1.66 (colored)

pad(4): Take kernel lock around autoconf stuff.

This is not really enough -- the padconfig locking logic violates
rules about sleeping while holding locks, might be deadlocky, and may
also be racy.  But, it'll serve to make progress.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Jun 8 09:09:28 2021 UTC (20 months ago) by nia
Branch: MAIN
Changes since 1.65: +3 -5 lines
Diff to previous 1.65 (colored)

pad(4): run the callout if the buffer is saturated instead of returning

reverts to the same behavior as in -8 and -9. prevents immediate failures
and device timeouts if there's a slight delay in the buffer being
consumed.

this is reproducible with the example in the man page that uses
ffmpeg to record the output of audioplay:

$ ffmpeg -f s16le -ar 44100 -ac 2 -i /dev/pad0 output.wav
$ audioplay -d /dev/audio1 input.wav

if output.wav already exists, ffmpeg will prompt for confirmation
to overwrite as soon as audioplay starts, causing a noticable delay,
followed by a write failure that causes audioplay to immediately
exit.

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:25 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.52.4.1: +145 -165 lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:10 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.63: +2 -37 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Feb 23 04:02:46 2020 UTC (2 years, 11 months ago) by isaki
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, 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
Branch point for: thorpej-i2c-spi-conf
Changes since 1.64: +2 -32 lines
Diff to previous 1.64 (colored)

Make start_input/halt_input optional if the driver has no recording,
make start_output/halt_output optional if the driver has no playback.
And remove such never called functions.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Feb 22 08:15:09 2020 UTC (2 years, 11 months ago) by isaki
Branch: MAIN
Changes since 1.63: +2 -7 lines
Diff to previous 1.63 (colored)

Make calling get_props() lockless.
get_props() of all MD drivers now can be called without sc_lock.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jun 26 12:21:40 2019 UTC (3 years, 7 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20191119, 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, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.62: +4 -3 lines
Diff to previous 1.62 (colored)

Fix return value.  fo_poll expects revents, not errno.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 26 11:53:15 2019 UTC (3 years, 7 months ago) by isaki
Branch: MAIN
Changes since 1.61: +148 -136 lines
Diff to previous 1.61 (colored)

Style fixes.  No functional changes intended.
- Rename some functions for consistency.
- Rearrange some functions for readability.
- Unify to struct pad_softc.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jun 19 12:52:41 2019 UTC (3 years, 7 months ago) by isaki
Branch: MAIN
Changes since 1.60: +5 -3 lines
Diff to previous 1.60 (colored)

Don't call next callout when an error occurs in start_output.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jun 19 12:51:26 2019 UTC (3 years, 7 months ago) by isaki
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

pad(4)'s output format is LE even on big endian arch.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:15 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.52: +111 -220 lines
Diff to previous 1.52 (colored)

Sync with HEAD

Revision 1.59 / (download) - annotate - [select for diffs], Wed May 8 13:40:18 2019 UTC (3 years, 9 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.58: +107 -220 lines
Diff to previous 1.58 (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.58.2.4 / (download) - annotate - [select for diffs], Mon May 6 13:40:03 2019 UTC (3 years, 9 months ago) by isaki
Branch: isaki-audio2
Changes since 1.58.2.3: +293 -146 lines
Diff to previous 1.58.2.3 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

Revive clonify.
XXX should clean code more.

Revision 1.58.2.3 / (download) - annotate - [select for diffs], Sun May 5 02:01:34 2019 UTC (3 years, 9 months ago) by isaki
Branch: isaki-audio2
Changes since 1.58.2.2: +3 -3 lines
Diff to previous 1.58.2.2 (colored) to branchpoint 1.58 (colored)

Remove unnecessary __diagused (which was imported in this branch).

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Sat May 4 07:20:10 2019 UTC (3 years, 9 months ago) by isaki
Branch: isaki-audio2
Changes since 1.58.2.1: +3 -3 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored)

Move dev/audio_if.h -> dev/audio/audio_if.h

Revision 1.58.2.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.58: +241 -501 lines
Diff to previous 1.58 (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.32.2.3 / (download) - annotate - [select for diffs], Wed Oct 3 17:50:57 2018 UTC (4 years, 4 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.32.2.2: +6 -2 lines
Diff to previous 1.32.2.2 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

Pull up following revision(s) (requested by nakayama in ticket #1044):

	sys/dev/pad/pad.c: revision 1.58

pad(4) mixer has only 1 channel, so return EINVAL in the case other than 1.

This fixes the following strange output of mixerctl(1):

        outputs.master=255,0
        inputs.dac=255,0

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:50 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.52.2.1: +6 -2 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

Ssync with HEAD

Revision 1.58 / (download) - annotate - [select for diffs], Tue Sep 25 06:55:23 2018 UTC (4 years, 4 months ago) by nakayama
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, isaki-audio2-base
Branch point for: isaki-audio2
Changes since 1.57: +6 -2 lines
Diff to previous 1.57 (colored)

pad(4) mixer has only 1 channel, so return EINVAL in the case other than 1.

This fixes the following strange output of mixerctl(1):

        outputs.master=255,0
        inputs.dac=255,0

Revision 1.57 / (download) - annotate - [select for diffs], Tue Sep 25 06:53:49 2018 UTC (4 years, 4 months ago) by nakayama
Branch: MAIN
Changes since 1.56: +317 -142 lines
Diff to previous 1.56 (colored)

Revert to rev.1.53.
I accidentally committed the netbsd-8 branch file in rev.1.54.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Sep 23 23:34:45 2018 UTC (4 years, 4 months ago) by kre
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored)


Since we need an int paramater, and uio_resid is size_t cast it to int
to avoid warnings from the ever friendly compiler... (check that size if
in range was already made).

Revision 1.55 / (download) - annotate - [select for diffs], Sun Sep 23 23:30:51 2018 UTC (4 years, 4 months ago) by kre
Branch: MAIN
Changes since 1.54: +4 -3 lines
Diff to previous 1.54 (colored)


Open code min() so we don't need to find its prototype ...

Revision 1.54 / (download) - annotate - [select for diffs], Sun Sep 23 21:18:30 2018 UTC (4 years, 4 months ago) by nakayama
Branch: MAIN
Changes since 1.53: +141 -317 lines
Diff to previous 1.53 (colored)

pad(4) mixer has only 1 channel, so return EINVAL in the case other than 1.

This fixes the following strange output of mixerctl(1):

	outputs.master=255,0
	inputs.dac=255,0

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:51 2018 UTC (4 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Sync with HEAD

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

Revision 1.53 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:32 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

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.52 / (download) - annotate - [select for diffs], Fri Jan 26 23:36:01 2018 UTC (5 years ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

Fix typo in previous.  mea culpa, mea culpa, mea maxima culpa

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jan 26 22:48:22 2018 UTC (5 years ago) by pgoyette
Branch: MAIN
Changes since 1.50: +4 -2 lines
Diff to previous 1.50 (colored)

Unitialized variable - CID/1428657

Revision 1.50 / (download) - annotate - [select for diffs], Tue Jan 9 04:23:59 2018 UTC (5 years, 1 month ago) by nat
Branch: MAIN
Changes since 1.49: +62 -34 lines
Diff to previous 1.49 (colored)

Fix pad on systems with many cores/cpus:

	* Introduce a lock to serialize attach/detach of pad devices.
	* Forcefully detach children of pad on close.
	* Be more carefull in pad_open with regards to config_detach only
	  if new instances of the pad device are created and fail to open.

Addresses PR kern/52889.

These changes were developed with and tested by pgoyette@.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sat Dec 23 18:48:41 2017 UTC (5 years, 1 month ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.32.2.1: +23 -19 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored)

Pull up following revision(s) (requested by pgoyette in ticket #450):
	sys/dev/pad/pad.c: revision 1.44
Rework so that module infrastructure is provided even when the module
is built-in to the kernel.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Dec 17 21:57:11 2017 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

If config_fini_component() fails (due to device driver busy), don't
discard its error value when re-attaching the devsw.  If the devsw
is successfully re-attached and we return success, the module will
get detached anyway.  And, since the device is actually busy, we'll
eventually panic.

Thanks to nat@ for providing the reproduction instructions.

XXX A driver-busy condition will currently still trigger the error
XXX message from config_fini_component()
XXX	configure: attachment `pad' of `pad' driver fini failed: 16
XXX This will be addresses separately by having pad maintain its own
XXX ref-count and not relying on config_fini_component() to detect
XXX the busy state.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Dec 16 06:39:07 2017 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.47: +21 -44 lines
Diff to previous 1.47 (colored)

Use config(1) and IOCONF= to generate most of the auto-config data
structures.  (Note that bin/52823 documents the reasons for still
requiring hand-crafted cfattach structures.)

Revision 1.47 / (download) - annotate - [select for diffs], Sat Dec 16 02:45:14 2017 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.46: +3 -4 lines
Diff to previous 1.46 (colored)

Remove the correct extra #endif

:)

Revision 1.46 / (download) - annotate - [select for diffs], Sat Dec 16 02:13:13 2017 UTC (5 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.45: +2 -3 lines
Diff to previous 1.45 (colored)

remove extra #endif left in previous commit.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Dec 15 23:57:42 2017 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.44: +33 -38 lines
Diff to previous 1.44 (colored)

Replace manipulation of individual config structures with calls to
config_{init,fini}_component()

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 15 11:49:32 2017 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.43: +23 -19 lines
Diff to previous 1.43 (colored)

Rework so that module infrastructure is provided even when the module
is built-in to the kernel.

XXX pullup-8?

Revision 1.19.8.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:07 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.19.8.1: +369 -92 lines
Diff to previous 1.19.8.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

update from HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Thu Nov 30 20:25:55 2017 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored)

add fo_name so we can identify the fileops in a simple way.

Revision 1.22.2.6 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:04 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.22.2.5: +274 -93 lines
Diff to previous 1.22.2.5 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Sync with HEAD

Revision 1.42 / (download) - annotate - [select for diffs], Sun Jul 30 00:50:52 2017 UTC (5 years, 6 months ago) by nat
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

The pad module will now compile with WARNS=5.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jul 2 13:32:50 2017 UTC (5 years, 7 months ago) by nat
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.40: +93 -34 lines
Diff to previous 1.40 (colored)

If a particular pad device is opened, ie pad1 then configure and use pad1
if it is not already configured.

This improves scriptability as you will know the particular pad(4) device
you have opened.

pad(4) devices still have a cloning interface if pad device (minor
number 254) is opened it will attach the next free device.  This action
can be repeated.

XXX update MAKEDEV scripts to make /dev/pad the cloning device.

Ok christos@.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 2 05:59:27 2017 UTC (5 years, 7 months ago) by nat
Branch: MAIN
Changes since 1.39: +7 -3 lines
Diff to previous 1.39 (colored)

Return early from read if kpause is interrupted by a signal.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jul 1 23:31:19 2017 UTC (5 years, 7 months ago) by nat
Branch: MAIN
Changes since 1.38: +179 -67 lines
Diff to previous 1.38 (colored)

Pad is now clones its device, attaching upon open and detaching upon close.
This means that only one pad device is required in /dev.

The code contains a compile time limit of 128 units.

Ok christos@.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jul 1 05:50:10 2017 UTC (5 years, 7 months ago) by nat
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

sc_audiodev should be defined as a device_t as this is what audio_attach_mi
returns.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jun 19 23:54:00 2017 UTC (5 years, 7 months ago) by nat
Branch: MAIN
Changes since 1.36: +11 -6 lines
Diff to previous 1.36 (colored)

Use defines to specify pad audio format.  NFCI.

Ok christos@.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Sat Jun 10 06:05:47 2017 UTC (5 years, 8 months ago) by snj
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.32: +13 -20 lines
Diff to previous 1.32 (colored)

Pull up following revision(s) (requested by nat in ticket #20):
	sys/dev/pad/pad.c: revisions 1.33-1.35
	sys/dev/pad/padvar.h: revision 1.9
Express BYTESTOSLEEP as an 64 bit integer.
Use BYTESTOSLEEP in expresson of BYTES_PER_SEC.
--
sc_bytes_count needs to be set in pad_audio_open not pad_open.
--
Simplification of rate limiter.  It now works uni/multiprocessor.
--
pad blocksize 1024 -> 8192.  Helps when sleeping in rate limiter.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jun 6 07:32:41 2017 UTC (5 years, 8 months ago) by nat
Branch: MAIN
Changes since 1.35: +3 -4 lines
Diff to previous 1.35 (colored)

Style change.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jun 6 07:29:35 2017 UTC (5 years, 8 months ago) by nat
Branch: MAIN
Changes since 1.34: +10 -14 lines
Diff to previous 1.34 (colored)

Simplification of rate limiter.  It now works uni/multiprocessor.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jun 6 07:27:15 2017 UTC (5 years, 8 months ago) by nat
Branch: MAIN
Changes since 1.33: +3 -6 lines
Diff to previous 1.33 (colored)

sc_bytes_count needs to be set in pad_audio_open not pad_open.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jun 6 07:18:38 2017 UTC (5 years, 8 months ago) by nat
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

Express BYTESTOSLEEP as an 64 bit integer.
Use BYTESTOSLEEP in expresson of BYTES_PER_SEC.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jun 1 09:44:30 2017 UTC (5 years, 8 months ago) by pgoyette
Branch: MAIN
CVS Tags: netbsd-8-base
Branch point for: netbsd-8
Changes since 1.31: +10 -3 lines
Diff to previous 1.31 (colored)

Add infrastructure for modularization of audio, midi, and sequencer

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:10 2017 UTC (5 years, 8 months ago) by chs
Branch: MAIN
Changes since 1.30: +2 -7 lines
Diff to previous 1.30 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 27 10:43:30 2017 UTC (5 years, 8 months ago) by nat
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

Add missing sc_bytes_count.

Revision 1.29 / (download) - annotate - [select for diffs], Sat May 27 10:02:26 2017 UTC (5 years, 8 months ago) by nat
Branch: MAIN
Changes since 1.28: +26 -11 lines
Diff to previous 1.28 (colored)

Rework of previous.
Math for BYTESTOSLEEP and TIMENEXTREAD is now correct.

Revision 1.28.4.3 / (download) - annotate - [select for diffs], Wed May 17 01:44:17 2017 UTC (5 years, 8 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.28.4.2: +8 -4 lines
Diff to previous 1.28.4.2 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.

Adapt callers to expect the reference to exist, and to ensure that the
reference is released.

Revision 1.28.4.2 / (download) - annotate - [select for diffs], Sat Apr 29 11:12:14 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.28.4.1: +2 -3 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored)

Remove more unnecessary #include for sys/localcount.h

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:36 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.28: +4 -2 lines
Diff to previous 1.28 (colored)

Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:47 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.26: +19 -28 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD

Revision 1.25.2.6 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:29 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.25.2.5: +19 -28 lines
Diff to previous 1.25.2.5 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Sync with HEAD

Revision 1.28 / (download) - annotate - [select for diffs], Thu Feb 23 23:13:27 2017 UTC (5 years, 11 months ago) by nat
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.27: +10 -19 lines
Diff to previous 1.27 (colored)

Update pad due to changes in audio.  sc_bytes_count and BYTESTOSLEEP are
no longer required.

Revision 1.22.2.5 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:29 2017 UTC (6 years ago) by skrll
Branch: nick-nhusb
Changes since 1.22.2.4: +11 -11 lines
Diff to previous 1.22.2.4 (colored) to branchpoint 1.22 (colored)

Sync with HEAD

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 26 04:10:27 2017 UTC (6 years ago) by nat
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.26: +11 -11 lines
Diff to previous 1.26 (colored)

Don't hold the thread_lock between successive calls to sc_intr as it
breaks mixing.

This will help passing the atf test.  Changes to audio.c to ensue this
will be in a followup commit.

Revision 1.22.2.4 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:02 2016 UTC (6 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.22.2.3: +20 -3 lines
Diff to previous 1.22.2.3 (colored) to branchpoint 1.22 (colored)

Sync with HEAD

Revision 1.25.2.5 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:09 2016 UTC (6 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.25.2.4: +20 -3 lines
Diff to previous 1.25.2.4 (colored) to branchpoint 1.25 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 15 07:08:06 2016 UTC (6 years, 3 months ago) by nat
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.25: +20 -3 lines
Diff to previous 1.25 (colored)

pad(4) must be open before corresponding audio device is opened.

OK christos@

Revision 1.25.2.4 / (download) - annotate - [select for diffs], Tue Jul 26 05:54:39 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.25.2.3: +3 -3 lines
Diff to previous 1.25.2.3 (colored) to branchpoint 1.25 (colored)

Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Tue Jul 19 06:26:59 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.25.2.2: +3 -9 lines
Diff to previous 1.25.2.2 (colored) to branchpoint 1.25 (colored)

Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Mon Jul 18 11:25:07 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.25.2.1: +3 -3 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored)

Good grief - what was I thinking?

Let's make the d_localcount pointer point to a 'struct localcount' as
intended.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Jul 18 11:12:11 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.25: +10 -2 lines
Diff to previous 1.25 (colored)

Add 'struct localcount' for modular builds

Revision 1.22.2.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:03 2016 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.22.2.2: +6 -5 lines
Diff to previous 1.22.2.2 (colored) to branchpoint 1.22 (colored)

Sync with HEAD

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:41 2016 UTC (6 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.24: +6 -5 lines
Diff to previous 1.24 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:10 2016 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.22.2.1: +41 -16 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored)

Sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Fri Feb 26 13:17:04 2016 UTC (6 years, 11 months ago) by nat
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.23: +41 -16 lines
Diff to previous 1.23 (colored)

Allow reads from pad(4) less or greater than PAD_BLKSIZE.

Ensure that audio data is ready before reading.
Addresses PR 39204.

OK jmcneil@.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:59 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.22: +5 -2 lines
Diff to previous 1.22 (colored)

Sync with HEAD

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jul 10 21:58:56 2015 UTC (7 years, 7 months ago) by nat
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.22: +5 -2 lines
Diff to previous 1.22 (colored)

Wrap up calls to sc_intr in kpreempt[en/dis]able.

This commit was approved by christos@

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sun Nov 23 13:07:04 2014 UTC (8 years, 2 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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
Changes since 1.21: +54 -5 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #249):
	sys/modules/pad/Makefile: revision 1.2
	sys/arch/arm/allwinner/awin_hdmiaudio.c: revision 1.5
	sys/dev/pad/pad.c: revision 1.22
	sys/dev/pad/padvol.c: file removal
	sys/dev/pad/files.pad: revision 1.5
	sys/dev/auvolconv.c: revision 1.1
	sys/dev/pad/padvol.h: file removal
	sys/dev/audio.c: revision 1.266
	sys/dev/files.audio: revision 1.3 (via patch: sys/conf/files)
	sys/dev/auvolconv.h: revision 1.1
	sys/dev/pad/padvar.h: revision 1.5
	sys/dev/audio_if.h: revision 1.70
	sys/arch/arm/allwinner/files.awin: revision 1.26
Add common audio converters for software volume control. Only supports
slinear16_le and slinear16_be for now.
Convert pad(4) and awin_hdmiaudio to use the new converters.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 18 01:53:17 2014 UTC (8 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.21: +54 -5 lines
Diff to previous 1.21 (colored)

Add common audio converters for software volume control. Only supports
slinear16_le and slinear16_be for now.

Convert pad(4) to use the new converters.

Revision 1.19.8.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:41 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.19: +9 -8 lines
Diff to previous 1.19 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:54 2014 UTC (8 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Rebase.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:38 2014 UTC (8 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.16.8.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:24 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.16.8.1: +8 -8 lines
Diff to previous 1.16.8.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.19.12.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:39 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.19: +8 -8 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Sat Nov 2 00:37:12 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.19: +8 -8 lines
Diff to previous 1.19 (colored)

sprinke __diagused

Revision 1.16.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:42 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.16: +91 -39 lines
Diff to previous 1.16 (colored)

sync with head

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 24 01:54:08 2011 UTC (11 years, 2 months ago) by agc
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, 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, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

get rid of a variable which is no longer used after the demise of splaudio

Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 24 01:11:04 2011 UTC (11 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.17: +0 -2 lines
Diff to previous 1.17 (colored)

splaudio is no more

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 23 23:07:33 2011 UTC (11 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.16: +90 -36 lines
Diff to previous 1.16 (colored)

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.16.10.1 / (download) - annotate - [select for diffs], Sat Nov 19 21:49:40 2011 UTC (11 years, 2 months ago) by jmcneill
Branch: jmcneill-audiomp3
Changes since 1.16: +90 -36 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

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.12.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:33 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.12.4.2: +8 -10 lines
Diff to previous 1.12.4.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

sync with head

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Sat Nov 20 17:41:26 2010 UTC (12 years, 2 months ago) by riz
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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.10: +3 -5 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull up following revision(s) (requested by hubertf in ticket #1386):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.258
	sys/dev/pad/pad.c: revision 1.11
	sys/dev/scsipi/cd.c: revision 1.288
	sys/dev/isa/pcppi.c: revision 1.33
	sys/kern/subr_autoconf.c: revision 1.169
'boot -z' bogons

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:04 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.12.2.2: +6 -8 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD (-D20101022).

Revision 1.6.4.5 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:08 2010 UTC (12 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.4.4: +8 -10 lines
Diff to previous 1.6.4.4 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

sync with head

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 3 19:19:48 2010 UTC (12 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-audiomp3
Changes since 1.15: +8 -10 lines
Diff to previous 1.15 (colored)

- return EIO if audio data is received and /dev/pad isn't open
- give a better description for AUDIO_GETDEV

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:21 2010 UTC (12 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.12.2.1: +5 -3 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD.

Revision 1.6.4.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:41 2010 UTC (12 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.4.3: +104 -4 lines
Diff to previous 1.6.4.3 (colored) to branchpoint 1.6 (colored)

sync with head.

Revision 1.12.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:36 2010 UTC (12 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.12.4.1: +6 -4 lines
Diff to previous 1.12.4.1 (colored) to branchpoint 1.12 (colored)

sync with head

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jun 28 17:45:08 2010 UTC (12 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.14: +6 -4 lines
Diff to previous 1.14 (colored)

Don't print spammy message if read is interrupted (ctrl-c)
while waiting for data.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:31 2010 UTC (12 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.12: +100 -2 lines
Diff to previous 1.12 (colored)

sync with head

Revision 1.14 / (download) - annotate - [select for diffs], Sat May 1 23:40:21 2010 UTC (12 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

fix field initializers

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:29 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.12: +100 -2 lines
Diff to previous 1.12 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 9 13:39:17 2010 UTC (12 years, 10 months ago) by ahoka
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.12: +100 -2 lines
Diff to previous 1.12 (colored)

Add support to be built as a kernel module.

Revision 1.6.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:42 2010 UTC (12 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.4.2: +5 -5 lines
Diff to previous 1.6.4.2 (colored) to branchpoint 1.6 (colored)

sync with head

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 18 23:57:14 2010 UTC (13 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

If the device does not exist, return ENXIO, as is customary, instead of
ENODEV.  Ok jmcneill@.

Revision 1.10.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:22 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.10: +3 -5 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:53 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.4.1: +13 -28 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored)

sync with head.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:55 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.10: +3 -5 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 14 11:08:28 2009 UTC (13 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.10: +3 -5 lines
Diff to previous 1.10 (colored)

'boot -z' bogons

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Thu Dec 11 19:49:30 2008 UTC (14 years, 2 months ago) by ad
Branch: ad-audiomp2
Changes since 1.10: +96 -37 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Checkpoint work in progress.

Revision 1.8.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:37 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.8: +9 -9 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.4.12.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:25 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.4.12.3: +7 -7 lines
Diff to previous 1.4.12.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.6.6.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:05 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.6.6.1: +9 -9 lines
Diff to previous 1.6.6.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 4 10:42:55 2008 UTC (14 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, nick-hppapmap-base2, netbsd-5-base, 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, mjf-devfs2-base, 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, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend, ad-audiomp2
Changes since 1.9: +9 -8 lines
Diff to previous 1.9 (colored)

fix device is not split warning

Revision 1.9 / (download) - annotate - [select for diffs], Wed Aug 6 16:31:15 2008 UTC (14 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

remove a KASSERT which is wrong since audio(4)'s device/softc were split

Revision 1.4.12.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:08 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.4.12.2: +3 -16 lines
Diff to previous 1.4.12.2 (colored) to branchpoint 1.4 (colored)

Sync with HEAD.

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:10 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.6: +5 -24 lines
Diff to previous 1.6 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:40 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.6.2.1: +5 -18 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

sync with head.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 8 18:14:31 2008 UTC (14 years, 8 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.7: +5 -18 lines
Diff to previous 1.7 (colored)

Replace homegrown pad_find_softc() with device_lookup_private().

Revision 1.4.12.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:36 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.4.12.1: +0 -6 lines
Diff to previous 1.4.12.1 (colored) to branchpoint 1.4 (colored)

Sync with HEAD.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:18 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.6: +2 -8 lines
Diff to previous 1.6 (colored)

sync with head.

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:42 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6: +2 -8 lines
Diff to previous 1.6 (colored)

sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Fri May 9 03:44:51 2008 UTC (14 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Changes since 1.6: +2 -8 lines
Diff to previous 1.6 (colored)

Use 2-clause license.

Revision 1.4.12.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:48 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.4: +43 -9 lines
Diff to previous 1.4 (colored)

Sync with HEAD.

Revision 1.4.8.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:46 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.4: +43 -9 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.4.6.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:44 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.4.6.2: +43 -9 lines
Diff to previous 1.4.6.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with HEAD

Revision 1.2.6.6 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:10 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.6.5: +3 -3 lines
Diff to previous 1.2.6.5 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 4 18:23:44 2008 UTC (14 years, 11 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

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

Revision 1.2.6.5 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:34 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.6.4: +43 -9 lines
Diff to previous 1.2.6.4 (colored) to branchpoint 1.2 (colored)

sync with head.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 22 20:52:14 2008 UTC (14 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.4: +43 -9 lines
Diff to previous 1.4 (colored)

Add methods to detach self and children.

Revision 1.2.6.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:32 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.6.3: +5 -3 lines
Diff to previous 1.2.6.3 (colored) to branchpoint 1.2 (colored)

sync with head

Revision 1.4.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:28 2008 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.4.6.1: +555 -0 lines
Diff to previous 1.4.6.1 (colored) to branchpoint 1.4 (colored)

sync with HEAD

Revision 1.2.8.4 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:12 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.2.8.3: +5 -3 lines
Diff to previous 1.2.8.3 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.2.10.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:26 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.2.10.1: +5 -3 lines
Diff to previous 1.2.10.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with head.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:31:42 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-kmem
Changes since 1.3: +5 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.4.6.1, Sun Dec 9 20:28:04 2007 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.4: +0 -555 lines
FILE REMOVED

file pad.c was added on branch matt-armv6 on 2008-01-09 01:53:28 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:04 2007 UTC (15 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Branch point for: mjf-devfs2, matt-armv6, keiichi-mipv6
Changes since 1.3: +5 -3 lines
Diff to previous 1.3 (colored)

Merge jmcneill-pm branch.

Revision 1.2.4.5 / (download) - annotate - [select for diffs], Sun Dec 9 19:37:52 2007 UTC (15 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.2.4.4: +3 -3 lines
Diff to previous 1.2.4.4 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.2.8.3 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:39 2007 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2.8.2: +3 -3 lines
Diff to previous 1.2.8.2 (colored) to branchpoint 1.2 (colored)

Sync with HEAD.

Revision 1.2.10.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:25 2007 UTC (15 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Sync with head.

Revision 1.2.4.4 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:21 2007 UTC (15 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.2.4.3: +3 -3 lines
Diff to previous 1.2.4.3 (colored) to branchpoint 1.2 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.2.6.3 / (download) - annotate - [select for diffs], Fri Dec 7 17:30:21 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.6.2: +3 -3 lines
Diff to previous 1.2.6.2 (colored) to branchpoint 1.2 (colored)

sync with head

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 5 07:06:52 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Tue Dec 4 00:43:39 2007 UTC (15 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.2.4.2: +5 -3 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored)

Register with power management framework, and de-noisify attachment.

Revision 1.2.8.2 / (download) - annotate - [select for diffs], Mon Nov 19 19:58:38 2007 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2.8.1: +553 -0 lines
Diff to previous 1.2.8.1 (colored) to branchpoint 1.2 (colored)

Try to fix sync botch.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:16 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.6.1: +553 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored)

sync with head.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:26 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.2.4.1: +553 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:32:17 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.2.2.1: +553 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.2.8.1, Sun Nov 11 19:53:38 2007 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2: +0 -553 lines
FILE REMOVED

file pad.c was added on branch mjf-devfs on 2007-11-19 19:58:38 +0000

Revision 1.2.6.1, Sun Nov 11 19:53:38 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2: +0 -553 lines
FILE REMOVED

file pad.c was added on branch yamt-lazymbuf on 2007-11-15 11:44:16 +0000

Revision 1.2.4.1, Sun Nov 11 19:53:38 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.2: +0 -553 lines
FILE REMOVED

file pad.c was added on branch jmcneill-pm on 2007-11-14 19:04:26 +0000

Revision 1.2.2.1, Sun Nov 11 19:53:38 2007 UTC (15 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.2: +0 -553 lines
FILE REMOVED

file pad.c was added on branch bouyer-xenamd64 on 2007-11-13 16:32:17 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 11 19:53:38 2007 UTC (15 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-lazymbuf, vmlocking2, mjf-devfs, jmcneill-pm, bouyer-xenamd64
Changes since 1.1: +83 -20 lines
Diff to previous 1.1 (colored)

Implement volume controls for pseudo audio device.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 11 17:37:45 2007 UTC (15 years, 3 months ago) by jmcneill
Branch: MAIN

Add pseudo audio device driver. With this pseudo-device, audio played back
via the standard audio interfaces is redirected back to userland as raw
PCM data on /dev/padN.

One example usage is to stream audio to an AirTunes compatible device using
rtunes (http://www.nazgul.ch/dev_rtunes.html), ie:

	$ rtunes - < /dev/pad0
	$ mpg123 -a /dev/sound1 blah.mp3

Another option is to capture audio output from eg. Real Player, by simply
instructing Real Player to output to /dev/sound1, and running:

	$ cat /dev/pad0 > blah.pcm

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>