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


Keyword substitution: kv
Default branch: MAIN


Revision 1.85: download - view: text, markup, annotated - select for diffs
Sat May 27 14:51:47 2023 UTC (18 months ago) by nat
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -4 lines
Revert to previous.

This change broke the intention of recent changes to pad(4).

The solution to address PR/57436 must be done in bta2dpd(8).

Revision 1.84: download - view: text, markup, annotated - select for diffs
Fri May 26 12:10:13 2023 UTC (18 months, 1 week ago) by nat
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +5 -5 lines
Fix previous.

The previous commit was misleading due to the flag names used.

The rationale for this change is that it is ok to return EAGAIN on first
read as playback has not started.  Then it shoud wait on every subsequent read.

This is what makes the high precsision throttling of pad(4), for which these
degree of fine-grained sleeps are not possible in userland.  This is a
requirement of users of pad(4) such as bta2dpd(8).

Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri May 26 10:39:56 2023 UTC (18 months, 1 week ago) by nat
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
Fix logic for timing.

Addresses PR/57436.

XXX pullup-10.

Revision 1.78.4.1: download - view: text, markup, annotated - select for diffs
Tue May 2 17:39:54 2023 UTC (19 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +90 -21 lines
Pull up following revision(s) (requested by mlelstv in ticket #153):

	sys/dev/pad/pad.c: revision 1.80
	sys/dev/pad/pad.c: revision 1.81
	sys/dev/pad/pad.c: revision 1.82
	sys/dev/pad/pad.c: revision 1.79
	sys/dev/pad/padvar.h: revision 1.17

Pace I/O timing to match the audio interface.

Enable interrupts while copying buffers.

Write slinear_le 16bit samples, independent from platform and
AUDIO_INTERNAL_BITS.

No longer use AUDIO_INTERNAL_BITS but rely on passed audio format.
Don't overflow when scaling 32bit samples.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon May 1 16:35:47 2023 UTC (19 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
Don't overflow when scaling 32bit samples.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Apr 23 08:21:11 2023 UTC (19 months, 1 week ago) by mlelstv
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +26 -10 lines
No longer use AUDIO_INTERNAL_BITS but rely on passed audio format.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon Apr 10 15:04:49 2023 UTC (19 months, 3 weeks ago) by mlelstv
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +27 -4 lines
Write slinear_le 16bit samples, independent from platform and
AUDIO_INTERNAL_BITS.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Jan 24 08:17:11 2023 UTC (22 months, 1 week ago) by mlelstv
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +47 -17 lines
Pace I/O timing to match the audio interface.
Enable interrupts while copying buffers.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:30:16 2022 UTC (2 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +10 -17 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 28 12:33:21 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -5 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 12 17:07:10 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3 lines
pad(4): Do harmless, not harmful, integer truncation.

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

Revision 1.65.10.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:29 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +178 -250 lines
Sync w/ HEAD.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Jun 14 18:44:53 2021 UTC (3 years, 5 months ago) by riastradh
Branches: 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
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +32 -2 lines
pad(4): Explain what's wrong with using device pointers like this.

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

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Jun 14 18:44:45 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -3 lines
pad(4): Omit unused sc_blksize.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Jun 14 18:44:37 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +29 -28 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 14 10:21:21 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 14 10:14:58 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +61 -118 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 14 10:14:46 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +11 -10 lines
pad(4): Sort includes.  Add missing includes to padvar.h.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Jun 14 10:14:01 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +21 -40 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 14 00:21:09 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +62 -90 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 13 23:09:22 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Jun 8 09:09:28 2021 UTC (3 years, 5 months ago) by nia
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:25 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.52.4.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.4.1: +145 -165 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:10 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +2 -37 lines
Sync with head.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Feb 23 04:02:46 2020 UTC (4 years, 9 months ago) by isaki
Branches: 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
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -32 lines
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 - view: text, markup, annotated - select for diffs
Sat Feb 22 08:15:09 2020 UTC (4 years, 9 months ago) by isaki
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -7 lines
Make calling get_props() lockless.
get_props() of all MD drivers now can be called without sc_lock.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Jun 26 12:21:40 2019 UTC (5 years, 5 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-4-RELEASE, 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
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -3 lines
Fix return value.  fo_poll expects revents, not errno.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Jun 26 11:53:15 2019 UTC (5 years, 5 months ago) by isaki
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +148 -136 lines
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 - view: text, markup, annotated - select for diffs
Wed Jun 19 12:52:41 2019 UTC (5 years, 5 months ago) by isaki
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -3 lines
Don't call next callout when an error occurs in start_output.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Jun 19 12:51:26 2019 UTC (5 years, 5 months ago) by isaki
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
pad(4)'s output format is LE even on big endian arch.

Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:15 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +111 -220 lines
Sync with HEAD

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:18 2019 UTC (5 years, 6 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +107 -220 lines
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 - view: text, markup, annotated - select for diffs
Mon May 6 13:40:03 2019 UTC (5 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.58.2.3: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.3: +293 -146 lines
Revive clonify.
XXX should clean code more.

Revision 1.58.2.3: download - view: text, markup, annotated - select for diffs
Sun May 5 02:01:34 2019 UTC (5 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.58.2.2: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.2: +3 -3 lines
Remove unnecessary __diagused (which was imported in this branch).

Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Sat May 4 07:20:10 2019 UTC (5 years, 7 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.1: +3 -3 lines
Move dev/audio_if.h -> dev/audio/audio_if.h

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 21 04:28:59 2019 UTC (5 years, 7 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +241 -501 lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 3 17:50:57 2018 UTC (6 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.32.2.2: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.2: +6 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:50 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.52.2.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.1: +6 -2 lines
Ssync with HEAD

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Sep 25 06:55:23 2018 UTC (6 years, 2 months ago) by nakayama
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 25 06:53:49 2018 UTC (6 years, 2 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +317 -142 lines
Revert to rev.1.53.
I accidentally committed the netbsd-8 branch file in rev.1.54.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Sep 23 23:34:45 2018 UTC (6 years, 2 months ago) by kre
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -4 lines

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 - view: text, markup, annotated - select for diffs
Sun Sep 23 23:30:51 2018 UTC (6 years, 2 months ago) by kre
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -3 lines

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

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Sep 23 21:18:30 2018 UTC (6 years, 2 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +141 -317 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:51 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
Sync with HEAD

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

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:32 2018 UTC (6 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-0906
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 26 23:36:01 2018 UTC (6 years, 10 months ago) by pgoyette
Branches: 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
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
Fix typo in previous.  mea culpa, mea culpa, mea maxima culpa

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Jan 26 22:48:22 2018 UTC (6 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2 lines
Unitialized variable - CID/1428657

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Jan 9 04:23:59 2018 UTC (6 years, 10 months ago) by nat
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +62 -34 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 23 18:48:41 2017 UTC (6 years, 11 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.1: +23 -19 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 17 21:57:11 2017 UTC (6 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 16 06:39:07 2017 UTC (6 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +21 -44 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 16 02:45:14 2017 UTC (6 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -4 lines
Remove the correct extra #endif

:)

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Dec 16 02:13:13 2017 UTC (6 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -3 lines
remove extra #endif left in previous commit.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Dec 15 23:57:42 2017 UTC (6 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +33 -38 lines
Replace manipulation of individual config structures with calls to
config_{init,fini}_component()

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Dec 15 11:49:32 2017 UTC (6 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +23 -19 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:07 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.19.8.1: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.8.1: +369 -92 lines
update from HEAD

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Nov 30 20:25:55 2017 UTC (7 years ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2 lines
add fo_name so we can identify the fileops in a simple way.

Revision 1.22.2.6: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:04 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.22.2.5: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.2.5: +274 -93 lines
Sync with HEAD

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Jul 30 00:50:52 2017 UTC (7 years, 4 months ago) by nat
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3 lines
The pad module will now compile with WARNS=5.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jul 2 13:32:50 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +93 -34 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 2 05:59:27 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +7 -3 lines
Return early from read if kpause is interrupted by a signal.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jul 1 23:31:19 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +179 -67 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 1 05:50:10 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
sc_audiodev should be defined as a device_t as this is what audio_attach_mi
returns.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Jun 19 23:54:00 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +11 -6 lines
Use defines to specify pad audio format.  NFCI.

Ok christos@.

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 10 06:05:47 2017 UTC (7 years, 5 months ago) by snj
Branches: netbsd-8
CVS tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +13 -20 lines
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 - view: text, markup, annotated - select for diffs
Tue Jun 6 07:32:41 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -4 lines
Style change.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Jun 6 07:29:35 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +10 -14 lines
Simplification of rate limiter.  It now works uni/multiprocessor.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Jun 6 07:27:15 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -6 lines
sc_bytes_count needs to be set in pad_audio_open not pad_open.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Jun 6 07:18:38 2017 UTC (7 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4 lines
Express BYTESTOSLEEP as an 64 bit integer.
Use BYTESTOSLEEP in expresson of BYTES_PER_SEC.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jun 1 09:44:30 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +10 -3 lines
Add infrastructure for modularization of audio, midi, and sequencer

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:10 2017 UTC (7 years, 6 months ago) by chs
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -7 lines
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 - view: text, markup, annotated - select for diffs
Sat May 27 10:43:30 2017 UTC (7 years, 6 months ago) by nat
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -2 lines
Add missing sc_bytes_count.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat May 27 10:02:26 2017 UTC (7 years, 6 months ago) by nat
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +26 -11 lines
Rework of previous.
Math for BYTESTOSLEEP and TIMENEXTREAD is now correct.

Revision 1.28.4.3: download - view: text, markup, annotated - select for diffs
Wed May 17 01:44:17 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.28.4.2: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.4.2: +8 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 29 11:12:14 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.28.4.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.4.1: +2 -3 lines
Remove more unnecessary #include for sys/localcount.h

Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:36 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:47 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +19 -28 lines
Sync with HEAD

Revision 1.25.2.6: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:29 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.25.2.5: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.2.5: +19 -28 lines
Sync with HEAD

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Feb 23 23:13:27 2017 UTC (7 years, 9 months ago) by nat
Branches: 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
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -19 lines
Update pad due to changes in audio.  sc_bytes_count and BYTESTOSLEEP are
no longer required.

Revision 1.22.2.5: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:29 2017 UTC (7 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.22.2.4: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.2.4: +11 -11 lines
Sync with HEAD

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Jan 26 04:10:27 2017 UTC (7 years, 10 months ago) by nat
Branches: MAIN
CVS tags: nick-nhusb-base-20170204
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -11 lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:02 2016 UTC (7 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.22.2.3: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.2.3: +20 -3 lines
Sync with HEAD

Revision 1.25.2.5: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:09 2016 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.25.2.4: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.4: +20 -3 lines
Sync with HEAD

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Oct 15 07:08:06 2016 UTC (8 years, 1 month ago) by nat
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +20 -3 lines
pad(4) must be open before corresponding audio device is opened.

OK christos@

Revision 1.25.2.4: download - view: text, markup, annotated - select for diffs
Tue Jul 26 05:54:39 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.25.2.3: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.3: +3 -3 lines
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

Revision 1.25.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 19 06:26:59 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.25.2.2: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.2: +3 -9 lines
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 - view: text, markup, annotated - select for diffs
Mon Jul 18 11:25:07 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.25.2.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.1: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Jul 18 11:12:11 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -2 lines
Add 'struct localcount' for modular builds

Revision 1.22.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:03 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.22.2.2: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.2.2: +6 -5 lines
Sync with HEAD

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:41 2016 UTC (8 years, 4 months ago) by msaitoh
Branches: 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
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -5 lines
KNF. Remove extra spaces. No functional change.

Revision 1.22.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:10 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.22.2.1: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.2.1: +41 -16 lines
Sync with HEAD

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Feb 26 13:17:04 2016 UTC (8 years, 9 months ago) by nat
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +41 -16 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:59 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -2 lines
Sync with HEAD

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jul 10 21:58:56 2015 UTC (9 years, 4 months ago) by nat
Branches: MAIN
CVS tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -2 lines
Wrap up calls to sc_intr in kpreempt[en/dis]able.

This commit was approved by christos@

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Sun Nov 23 13:07:04 2014 UTC (10 years ago) by martin
Branches: 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
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +54 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue Nov 18 01:53:17 2014 UTC (10 years ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +54 -5 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:41 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +9 -8 lines
Rebase to HEAD as of a few days ago.

Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:54 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +3 -2 lines
Rebase.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:38 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu May 22 11:40:24 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.16.8.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.8.1: +8 -8 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:45:39 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +8 -8 lines
sync with head

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Nov 2 00:37:12 2013 UTC (11 years, 1 month ago) by christos
Branches: 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
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -8 lines
sprinke __diagused

Revision 1.16.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:42 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +91 -39 lines
sync with head

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Nov 24 01:54:08 2011 UTC (13 years ago) by agc
Branches: 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
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
get rid of a variable which is no longer used after the demise of splaudio

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Nov 24 01:11:04 2011 UTC (13 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +0 -2 lines
splaudio is no more

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Nov 23 23:07:33 2011 UTC (13 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +90 -36 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 19 21:49:40 2011 UTC (13 years ago) by jmcneill
Branches: jmcneill-audiomp3
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +90 -36 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:33 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.12.4.2: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.4.2: +8 -10 lines
sync with head

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 20 17:41:26 2010 UTC (14 years ago) by riz
Branches: 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
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +3 -5 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 22 07:22:04 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.12.2.2: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.2: +6 -8 lines
Sync with HEAD (-D20101022).

Revision 1.6.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:08 2010 UTC (14 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.4.4: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.4.4: +8 -10 lines
sync with head

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Sep 3 19:19:48 2010 UTC (14 years, 3 months ago) by jmcneill
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -10 lines
- 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 - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:21 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.1: +5 -3 lines
Sync with HEAD.

Revision 1.6.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:41 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.4.3: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.4.3: +104 -4 lines
sync with head.

Revision 1.12.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:36 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.12.4.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.4.1: +6 -4 lines
sync with head

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jun 28 17:45:08 2010 UTC (14 years, 5 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -4 lines
Don't print spammy message if read is interrupted (ctrl-c)
while waiting for data.

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:31 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +100 -2 lines
sync with head

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat May 1 23:40:21 2010 UTC (14 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
fix field initializers

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:29 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +100 -2 lines
Sync with HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Apr 9 13:39:17 2010 UTC (14 years, 7 months ago) by ahoka
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +100 -2 lines
Add support to be built as a kernel module.

Revision 1.6.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:42 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.4.2: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.4.2: +5 -5 lines
sync with head

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jan 18 23:57:14 2010 UTC (14 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -5 lines
If the device does not exist, return ENXIO, as is customary, instead of
ENODEV.  Ok jmcneill@.

Revision 1.10.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:20:22 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +3 -5 lines
Sync with HEAD.

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

Revision 1.6.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:53 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.4.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.4.1: +13 -28 lines
sync with head.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:55 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +3 -5 lines
Sync with HEAD.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Mar 14 11:08:28 2009 UTC (15 years, 8 months ago) by ad
Branches: 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
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -5 lines
'boot -z' bogons

Revision 1.10.6.1: download - view: text, markup, annotated - select for diffs
Thu Dec 11 19:49:30 2008 UTC (15 years, 11 months ago) by ad
Branches: ad-audiomp2
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +96 -37 lines
Checkpoint work in progress.

Revision 1.8.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:37 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +9 -9 lines
Sync with HEAD.

Revision 1.4.12.4: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:25 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.4.12.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.12.3: +7 -7 lines
Sync with HEAD.

Revision 1.6.6.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:05 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.6.6.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.6.1: +9 -9 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Sep 4 10:42:55 2008 UTC (16 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +9 -8 lines
fix device is not split warning

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Aug 6 16:31:15 2008 UTC (16 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -3 lines
remove a KASSERT which is wrong since audio(4)'s device/softc were split

Revision 1.4.12.3: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:08 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.4.12.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.12.2: +3 -16 lines
Sync with HEAD.

Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:10 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -24 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:14:40 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.1: +5 -18 lines
sync with head.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Jun 8 18:14:31 2008 UTC (16 years, 5 months ago) by tsutsui
Branches: 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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -18 lines
Replace homegrown pad_find_softc() with device_lookup_private().

Revision 1.4.12.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:36 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.4.12.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.12.1: +0 -6 lines
Sync with HEAD.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:18 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -8 lines
sync with head.

Revision 1.6.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:24:42 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -8 lines
sync with head.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri May 9 03:44:51 2008 UTC (16 years, 6 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -8 lines
Use 2-clause license.

Revision 1.4.12.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:48 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +43 -9 lines
Sync with HEAD.

Revision 1.4.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:46 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +43 -9 lines
sync with head.

Revision 1.4.6.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:44 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.4.6.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.2: +43 -9 lines
sync with HEAD

Revision 1.2.6.6: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:10 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.5: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.6.5: +3 -3 lines
sync with head.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Mar 4 18:23:44 2008 UTC (16 years, 9 months ago) by cube
Branches: 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
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Split device_t and softc for audio(4), and other related cosmetic changes.

Revision 1.2.6.5: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:34 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.4: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.4: +43 -9 lines
sync with head.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Feb 22 20:52:14 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: hpcarm-cleanup-base
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +43 -9 lines
Add methods to detach self and children.

Revision 1.2.6.4: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:43:32 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.3: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.3: +5 -3 lines
sync with head

Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:53:28 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.4.6.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.1: +555 -0 lines
sync with HEAD

Revision 1.2.8.4: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:12 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.2.8.3: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.8.3: +5 -3 lines
Sync with HEAD.

Revision 1.2.10.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:26 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.2.10.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.10.1: +5 -3 lines
Sync with head.

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:31:42 2007 UTC (16 years, 11 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +5 -3 lines
sync with head.

Revision 1.4.6.1
Sun Dec 9 20:28:04 2007 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.4: +0 -555 lines
file pad.c was added on branch matt-armv6 on 2008-01-09 01:53:28 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:28:04 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: 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
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -3 lines
Merge jmcneill-pm branch.

Revision 1.2.4.5: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:52 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.2.4.4: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.4: +3 -3 lines
Sync with HEAD.

Revision 1.2.8.3: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:39 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.2.8.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.8.2: +3 -3 lines
Sync with HEAD.

Revision 1.2.10.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:25 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
Sync with head.

Revision 1.2.4.4: download - view: text, markup, annotated - select for diffs
Sat Dec 8 16:21:21 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.2.4.3: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.3: +3 -3 lines
Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.2.6.3: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:30:21 2007 UTC (16 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.2: +3 -3 lines
sync with head

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Dec 5 07:06:52 2007 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Tue Dec 4 00:43:39 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.2.4.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.2: +5 -3 lines
Register with power management framework, and de-noisify attachment.

Revision 1.2.8.2: download - view: text, markup, annotated - select for diffs
Mon Nov 19 19:58:38 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.2.8.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.8.1: +553 -0 lines
Try to fix sync botch.

Revision 1.2.6.2: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:16 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.1: +553 -0 lines
sync with head.

Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:04:26 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.1: +553 -0 lines
Sync with HEAD.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:32:17 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +553 -0 lines
Sync with HEAD

Revision 1.2.8.1
Sun Nov 11 19:53:38 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
FILE REMOVED
Changes since revision 1.2: +0 -553 lines
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 (17 years ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.2: +0 -553 lines
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 (17 years ago) by joerg
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.2: +0 -553 lines
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 (17 years ago) by bouyer
Branches: bouyer-xenamd64
FILE REMOVED
Changes since revision 1.2: +0 -553 lines
file pad.c was added on branch bouyer-xenamd64 on 2007-11-13 16:32:17 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Nov 11 19:53:38 2007 UTC (17 years ago) by jmcneill
Branches: 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
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +83 -20 lines
Implement volume controls for pseudo audio device.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Nov 11 17:37:45 2007 UTC (17 years ago) by jmcneill
Branches: 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

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>