The NetBSD Project

CVS log for src/sys/dev/usb/uaudio.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.183.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:22:36 2026 UTC (11 days, 9 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.183.2.1: preferred, colored; branchpoint 1.183: preferred, colored; next MAIN 1.184: preferred, colored
Changes since revision 1.183.2.1: +12 -5 lines
Sync with HEAD

Revision 1.185: download - view: text, markup, annotated - select for diffs
Sat Jan 10 08:54:07 2026 UTC (10 months ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +12 -5 lines
Also use atomic operation to store pipe pointers, not just to clear them.

Probably fixes PR 56194.

Revision 1.183.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:57:05 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +8 -7 lines
Sync with HEAD

Revision 1.184: download - view: text, markup, annotated - select for diffs
Sat Apr 12 08:12:39 2025 UTC (19 months ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20250801, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +8 -7 lines
Use the right (play or record) channel data for computing block size.

Revision 1.183: download - view: text, markup, annotated - select for diffs
Sun Feb 4 05:43:06 2024 UTC (2 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +3 -3 lines
update my email address.

Revision 1.182: download - view: text, markup, annotated - select for diffs
Mon Aug 14 21:17:08 2023 UTC (3 years, 3 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +3 -3 lines
s/streadming/streaming/ in debug message.

Revision 1.181: download - view: text, markup, annotated - select for diffs
Sun Apr 30 08:35:52 2023 UTC (3 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +3 -3 lines
xhci doesn't like 80 packets per USB interval, but 40 seems to be fine
for xhci (and ehci).

Revision 1.180: download - view: text, markup, annotated - select for diffs
Sun Apr 23 06:13:35 2023 UTC (3 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +27 -4 lines
Weed out duplicate sample rates and add comment about UAC2 clocks.

Revision 1.179: download - view: text, markup, annotated - select for diffs
Sun Apr 16 19:26:20 2023 UTC (3 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +602 -291 lines
Handle packet scheduling for high/super speed.
More UAC2 handling for input/output/feature/selector units.
Setting sample rate for UAC2 now works, still no support for clock selectors
and multipliers.
Added sysctl to set debug level.
Minor fixes.

Revision 1.178: download - view: text, markup, annotated - select for diffs
Mon Apr 10 15:14:50 2023 UTC (3 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +283 -89 lines
Handle more UAC2 descriptors and add debug output.
Fix handling of clock sources (mix.wIndex wasn't set).

UAC2 can use separate clock sources (and thus sample rates) for each terminal.
That doesn't match the audio(4) model where sample rates are part of an audio
format and global. For now, try to match clocks for input and output terminals
separately.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Mon Apr 3 16:00:17 2023 UTC (3 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +2 -3 lines
Remove unconditional UAUDIO_DEBUG again.

Revision 1.176: download - view: text, markup, annotated - select for diffs
Mon Apr 3 14:19:09 2023 UTC (3 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +28 -24 lines
Fix UAUDIO_DEBUG build.

Revision 1.175: download - view: text, markup, annotated - select for diffs
Sun Apr 2 14:42:55 2023 UTC (3 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +704 -168 lines
Add code for USB Audio Class 2.0.

This is only half of the game as UAC2 devices tend to use 24bit or 32bit
samples. This requires more support in audio(4).

Revision 1.174: download - view: text, markup, annotated - select for diffs
Tue Jun 28 05:22:13 2022 UTC (4 years, 4 months ago) by skrll
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, 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, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +3 -3 lines
Fix a null-deref

lgtm from mlelstv.

Reported-by: syzbot+ec264ed7faf603906b93@syzkaller.appspotmail.com

Revision 1.173: download - view: text, markup, annotated - select for diffs
Sat Nov 13 10:34:00 2021 UTC (5 years ago) by mlelstv
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +32 -4 lines
Release interrupt lock while allocating ressources in trigger
functions.

Also be more verbose about errors.

Revision 1.169.4.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:32 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.169.4.1: preferred, colored; branchpoint 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169.4.1: +138 -85 lines
Sync with HEAD.

Revision 1.172: download - view: text, markup, annotated - select for diffs
Sat Jun 19 05:50:48 2021 UTC (5 years, 4 months ago) by mlelstv
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.171: preferred, colored
Changes since revision 1.171: +138 -85 lines
Relax identification of interfaces and endpoints. Now also attaches
headsets like Jabra Evolve 75.

Revision 1.169.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:30 2021 UTC (5 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +14 -9 lines
Sync w/ HEAD.

Revision 1.171: download - view: text, markup, annotated - select for diffs
Sun Jun 13 07:51:09 2021 UTC (5 years, 5 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +8 -6 lines
Don't use aprint* for non-autoconf errors. Also print status value.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Sun Jun 13 07:49:43 2021 UTC (5 years, 5 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +8 -5 lines
Don't ignore detach errors from children.

Revision 1.165.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:50 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.165.4.1: preferred, colored; branchpoint 1.165: preferred, colored; next MAIN 1.166: preferred, colored
Changes since revision 1.165.4.1: +6 -5 lines
Sync with HEAD.

Revision 1.161.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 7 18:43:25 2021 UTC (5 years, 8 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Diff to: previous 1.161.2.1: preferred, colored; branchpoint 1.161: preferred, colored; next MAIN 1.162: preferred, colored
Changes since revision 1.161.2.1: +4 -3 lines
Pull up following revision(s) (requested by isaki in ticket #1225):

	sys/dev/usb/uaudio.c: revision 1.169

Fix my copy-and-paste bug in rev1.160.

This fixes recording sample dropout.

Revision 1.169: download - view: text, markup, annotated - select for diffs
Mon Feb 15 13:39:18 2021 UTC (5 years, 9 months ago) by isaki
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +4 -3 lines
Fix my copy-and-paste bug in rev1.160.
This fixes recording sample dropout.

Revision 1.168: download - view: text, markup, annotated - select for diffs
Sun Jan 10 15:50:16 2021 UTC (5 years, 10 months ago) by ryoon
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +3 -3 lines
Add whitespace after comma

Revision 1.167: download - view: text, markup, annotated - select for diffs
Sun Jan 10 13:17:44 2021 UTC (5 years, 10 months ago) by ryoon
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -3 lines
Fix a typo in debug message

Revision 1.165.4.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:35:02 2021 UTC (5 years, 10 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +26 -9 lines
Sync w/ HEAD.

Revision 1.166: download - view: text, markup, annotated - select for diffs
Tue Dec 29 08:04:59 2020 UTC (5 years, 10 months ago) by jdc
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +26 -9 lines
During detach, re-use the functions that halt playback and record DMA.
Prevents a panic during shutdown when media is playing.

Revision 1.156.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:49 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.156.2.2: preferred, colored; branchpoint 1.156: preferred, colored; next MAIN 1.157: preferred, colored
Changes since revision 1.156.2.2: +1 -2 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.156.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:13 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.156.2.1: preferred, colored; branchpoint 1.156: preferred, colored
Changes since revision 1.156.2.1: +21 -21 lines
Merge changes from current as of 20200406

Revision 1.165: download - view: text, markup, annotated - select for diffs
Sat Mar 14 02:35:33 2020 UTC (6 years, 8 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Branch point for: thorpej-futex
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +14 -14 lines
revert the 0x% -> %# change for fixed width formats pointed out by uwe.

Revision 1.164: download - view: text, markup, annotated - select for diffs
Fri Mar 13 18:17:40 2020 UTC (6 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +23 -23 lines
PR/55068: sc.dying: Fix printf formats:
- no %s/%p for kernel log
- 0x% -> %#
- always %j for kernel log

Revision 1.163: download - view: text, markup, annotated - select for diffs
Sun Dec 1 08:27:54 2019 UTC (6 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +12 -12 lines
localify

Revision 1.161.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 19 12:56:48 2019 UTC (6 years, 11 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +3 -4 lines
Pull up following revision(s) (requested by isaki in ticket #447):

	sys/dev/usb/uaudio.c: revision 1.162

Use kmem_zalloc() instead of kmem_alloc() to initialize structure.
struct audio_format added a member since isaki-audio2.

Fix PR kern/54662 "uaudio sometimes not recognized".

Revision 1.162: download - view: text, markup, annotated - select for diffs
Mon Nov 4 05:46:39 2019 UTC (7 years ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +3 -4 lines
Use kmem_zalloc() instead of kmem_alloc() to initialize structure.
struct audio_format added a member since isaki-audio2.
Fix PR kern/54662 "uaudio sometimes not recognized".

Revision 1.156.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:34 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +56 -152 lines
Sync with HEAD

Revision 1.161: download - view: text, markup, annotated - select for diffs
Thu Jun 6 12:59:33 2019 UTC (7 years, 5 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +16 -3 lines
Return correct properties.
It fixes PR kern/54264.
XXX I'm not sure all bidirectional uaudio devices support FULLDUPLEX
    or INDEPENDENT.

Revision 1.160: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:19 2019 UTC (7 years, 6 months ago) by isaki
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +27 -124 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.159: download - view: text, markup, annotated - select for diffs
Sun May 5 03:17:54 2019 UTC (7 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +3 -3 lines
remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h

Revision 1.158.2.4: download - view: text, markup, annotated - select for diffs
Sat May 4 07:20:11 2019 UTC (7 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.158.2.3: preferred, colored; branchpoint 1.158: preferred, colored; next MAIN 1.159: preferred, colored
Changes since revision 1.158.2.3: +3 -3 lines
Move dev/audio_if.h -> dev/audio/audio_if.h

Revision 1.158.2.3: download - view: text, markup, annotated - select for diffs
Wed May 1 13:45:52 2019 UTC (7 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.158.2.2: preferred, colored; branchpoint 1.158: preferred, colored
Changes since revision 1.158.2.2: +3 -3 lines
set_params -> set_format in comment.

Revision 1.158.2.2: download - view: text, markup, annotated - select for diffs
Wed May 1 13:09:33 2019 UTC (7 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.158.2.1: preferred, colored; branchpoint 1.158: preferred, colored
Changes since revision 1.158.2.1: +2 -19 lines
Don't release sc_lock and sc_intr_lock in trigger_{input,output}.
In the past, sc_lock was IPL_SCHED and (probably) it had conflicted
with usb subroutines.  But at some point, sc_lock has changed to use
IPL_SOFTUSB so such problems should been gone.

Revision 1.158.2.1: download - view: text, markup, annotated - select for diffs
Wed May 1 12:42:14 2019 UTC (7 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +25 -105 lines
Adapt to audio2.
- Remove obsoleted or empty methods.
- Remove AUFMT_VALIDATE()/INVALIDATE().  At first, this flag is
  set/cleared but no one in the driver seems to refer at least now.
  And second, don't use such flag for other purpose.  If you need
  to do such thing, use .driver_data instead.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Sat Mar 16 12:09:58 2019 UTC (7 years, 8 months ago) by isaki
Branches: MAIN
CVS tags: isaki-audio2-base
Branch point for: isaki-audio2
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +18 -30 lines
Use C99 style struct initializer to audio_hw_if.

Revision 1.155.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:04 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.155.2.1: preferred, colored; branchpoint 1.155: preferred, colored; next MAIN 1.156: preferred, colored
Changes since revision 1.155.2.1: +4 -4 lines
Sync with HEAD

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

Revision 1.157: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:34 2018 UTC (8 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +4 -4 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.155.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:02 2018 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +7 -7 lines
Sync with HEAD

Revision 1.156: download - view: text, markup, annotated - select for diffs
Sat Jun 16 08:24:55 2018 UTC (8 years, 5 months ago) by nakayama
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +7 -7 lines
Change aprint_error_dev to aprint_normal_dev for normal completion case.

Revision 1.133.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:34 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.133.2.3: preferred, colored; branchpoint 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133.2.3: +157 -128 lines
update from HEAD

Revision 1.140.2.18: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:28 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.17: preferred, colored; branchpoint 1.140: preferred, colored; next MAIN 1.141: preferred, colored
Changes since revision 1.140.2.17: +24 -20 lines
Sync with HEAD

Revision 1.155: download - view: text, markup, annotated - select for diffs
Wed Jul 26 07:45:05 2017 UTC (9 years, 3 months ago) by maya
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, nick-nhusb-base-20170825
Branch point for: pgoyette-compat
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +8 -4 lines
uaudio: don't block suspend.

audio after resume hasn't been fully tested due to other issues, but
the problem machine resumes. tested by Ricardo Mottola

Revision 1.153.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 10 06:23:01 2017 UTC (9 years, 5 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.153: preferred, colored; next MAIN 1.154: preferred, colored
Changes since revision 1.153: +8 -6 lines
Pull up following revision(s) (requested by nat in ticket #24):
	sys/dev/usb/uaudio.c: revision 1.154
Start as half as many transfers for recording.  This fixes recording and
play back when uaudio is used in full duplex mode.
The transfer scheduling probably is to blame.
Ok skrll@.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Fri Jun 9 10:11:20 2017 UTC (9 years, 5 months ago) by nat
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +8 -6 lines
Start as half as many transfers for recording.  This fixes recording and
play back when uaudio is used in full duplex mode.
The transfer scheduling probably is to blame.

Ok skrll@.

Revision 1.153: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:12 2017 UTC (9 years, 5 months ago) by chs
Branches: MAIN
CVS tags: netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +2 -12 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.152: download - view: text, markup, annotated - select for diffs
Tue May 23 04:58:49 2017 UTC (9 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +2 -6 lines
Revert locking changes back to rev 1.149.  Dropping and reaquiring the
interrupt lock was not necessary for the proper operation of uaudio
devices.

Revision 1.151: download - view: text, markup, annotated - select for diffs
Fri May 19 09:58:28 2017 UTC (9 years, 6 months ago) by nat
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +10 -6 lines
Fix locking around calls to [p/r]int with a patch from skrll@.

Revision 1.150: download - view: text, markup, annotated - select for diffs
Fri May 19 04:20:45 2017 UTC (9 years, 6 months ago) by nat
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +6 -6 lines
Release sc_intr_lock between successive calls to audio[p/r]int to allow
mixing to occur.

Revision 1.149: download - view: text, markup, annotated - select for diffs
Fri May 19 04:16:06 2017 UTC (9 years, 6 months ago) by nat
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +6 -2 lines
Fix locking botch.  Ensure that sc_lock is still held when exiting
trigger_[input/output].

Revision 1.147.8.1: download - view: text, markup, annotated - select for diffs
Fri May 19 00:22:57 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.147: preferred, colored; next MAIN 1.148: preferred, colored
Changes since revision 1.147: +6 -2 lines
Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)

Revision 1.148: download - view: text, markup, annotated - select for diffs
Tue May 16 23:49:43 2017 UTC (9 years, 6 months ago) by nat
Branches: MAIN
CVS tags: prg-localcount2-base3
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +6 -2 lines
Drop sc_lock whilst doing uaudio_chan_open uaudio[pr]transfer.
uaudio now works again.

Revision 1.139.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 5 19:54:19 2017 UTC (9 years, 7 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139: +143 -118 lines
Pull up following revision(s) (requested by skrll in ticket #1395):
	share/man/man4/axe.4: netbsd-7-nhusb
	share/man/man4/axen.4: netbsd-7-nhusb
	share/man/man4/cdce.4: netbsd-7-nhusb
	share/man/man4/uaudio.4: netbsd-7-nhusb
	share/man/man4/ucom.4: netbsd-7-nhusb
	share/man/man4/uep.4: netbsd-7-nhusb
	share/man/man4/urtw.4: netbsd-7-nhusb
	share/man/man4/usb.4: netbsd-7-nhusb
	share/man/man4/uyap.4: netbsd-7-nhusb
	share/man/man4/xhci.4: netbsd-7-nhusb
	share/man/man9/usbdi.9: netbsd-7-nhusb
	sys/arch/amd64/conf/ALL: netbsd-7-nhusb
	sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb
	sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb
	sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb
	sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb
	sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb
	sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb
	sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb
	sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb
	sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb
	sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb
	sys/arch/arm/imx/files.imx23: netbsd-7-nhusb
	sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb
	sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb
	sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb
	sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb
	sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb
	sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb
	sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb
	sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb
	sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb
	sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb
	sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb
	sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb
	sys/arch/i386/conf/ALL: netbsd-7-nhusb
	sys/arch/i386/conf/GENERIC: netbsd-7-nhusb
	sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb
	sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb
	sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb
	sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb
	sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb
	sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb
	sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb
	sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb
	sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb
	sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb
	sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb
	sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb
	sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb
	sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb
	sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb
	sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb
	sys/conf/files: netbsd-7-nhusb
	sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb
	sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb
	sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb
	sys/dev/ic/sl811hs.c: netbsd-7-nhusb
	sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb
	sys/dev/isa/slhci_isa.c: netbsd-7-nhusb
	sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb
	sys/dev/pci/ehci_pci.c: netbsd-7-nhusb
	sys/dev/pci/ohci_pci.c: netbsd-7-nhusb
	sys/dev/pci/uhci_pci.c: netbsd-7-nhusb
	sys/dev/pci/xhci_pci.c: netbsd-7-nhusb
	sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb
	sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb
	sys/dev/usb/TODO: netbsd-7-nhusb
	sys/dev/usb/TODO.usbmp: netbsd-7-nhusb
	sys/dev/usb/aubtfwl.c: netbsd-7-nhusb
	sys/dev/usb/auvitek.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_video.c: netbsd-7-nhusb
	sys/dev/usb/auvitekvar.h: netbsd-7-nhusb
	sys/dev/usb/ehci.c: netbsd-7-nhusb
	sys/dev/usb/ehcireg.h: netbsd-7-nhusb
	sys/dev/usb/ehcivar.h: netbsd-7-nhusb
	sys/dev/usb/emdtv.c: netbsd-7-nhusb
	sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb
	sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb
	sys/dev/usb/emdtvvar.h: netbsd-7-nhusb
	sys/dev/usb/ezload.c: netbsd-7-nhusb
	sys/dev/usb/ezload.h: netbsd-7-nhusb
	sys/dev/usb/files.usb: netbsd-7-nhusb
	sys/dev/usb/hid.c: netbsd-7-nhusb
	sys/dev/usb/hid.h: netbsd-7-nhusb
	sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb
	sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb
	sys/dev/usb/if_atu.c: netbsd-7-nhusb
	sys/dev/usb/if_atureg.h: netbsd-7-nhusb
	sys/dev/usb/if_aue.c: netbsd-7-nhusb
	sys/dev/usb/if_auereg.h: netbsd-7-nhusb
	sys/dev/usb/if_axe.c: netbsd-7-nhusb
	sys/dev/usb/if_axen.c: netbsd-7-nhusb
	sys/dev/usb/if_axenreg.h: netbsd-7-nhusb
	sys/dev/usb/if_axereg.h: netbsd-7-nhusb
	sys/dev/usb/if_cdce.c: netbsd-7-nhusb
	sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb
	sys/dev/usb/if_cue.c: netbsd-7-nhusb
	sys/dev/usb/if_cuereg.h: netbsd-7-nhusb
	sys/dev/usb/if_kue.c: netbsd-7-nhusb
	sys/dev/usb/if_kuereg.h: netbsd-7-nhusb
	sys/dev/usb/if_otus.c: netbsd-7-nhusb
	sys/dev/usb/if_otusvar.h: netbsd-7-nhusb
	sys/dev/usb/if_rum.c: netbsd-7-nhusb
	sys/dev/usb/if_rumreg.h: netbsd-7-nhusb
	sys/dev/usb/if_rumvar.h: netbsd-7-nhusb
	sys/dev/usb/if_run.c: netbsd-7-nhusb
	sys/dev/usb/if_runvar.h: netbsd-7-nhusb
	sys/dev/usb/if_smsc.c: netbsd-7-nhusb
	sys/dev/usb/if_smscreg.h: netbsd-7-nhusb
	sys/dev/usb/if_smscvar.h: netbsd-7-nhusb
	sys/dev/usb/if_udav.c: netbsd-7-nhusb
	sys/dev/usb/if_udavreg.h: netbsd-7-nhusb
	sys/dev/usb/if_upgt.c: netbsd-7-nhusb
	sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb
	sys/dev/usb/if_upl.c: netbsd-7-nhusb
	sys/dev/usb/if_ural.c: netbsd-7-nhusb
	sys/dev/usb/if_uralreg.h: netbsd-7-nhusb
	sys/dev/usb/if_uralvar.h: netbsd-7-nhusb
	sys/dev/usb/if_url.c: netbsd-7-nhusb
	sys/dev/usb/if_urlreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urndis.c: netbsd-7-nhusb
	sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urtw.c: netbsd-7-nhusb
	sys/dev/usb/if_urtwn.c: netbsd-7-nhusb
	sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb
	sys/dev/usb/if_zyd.c: netbsd-7-nhusb
	sys/dev/usb/if_zydreg.h: netbsd-7-nhusb
	sys/dev/usb/irmce.c: netbsd-7-nhusb
	sys/dev/usb/moscom.c: netbsd-7-nhusb
	sys/dev/usb/motg.c: netbsd-7-nhusb
	sys/dev/usb/motgvar.h: netbsd-7-nhusb
	sys/dev/usb/ohci.c: netbsd-7-nhusb
	sys/dev/usb/ohcireg.h: netbsd-7-nhusb
	sys/dev/usb/ohcivar.h: netbsd-7-nhusb
	sys/dev/usb/pseye.c: netbsd-7-nhusb
	sys/dev/usb/slurm.c: netbsd-7-nhusb
	sys/dev/usb/stuirda.c: netbsd-7-nhusb
	sys/dev/usb/u3g.c: netbsd-7-nhusb
	sys/dev/usb/uark.c: netbsd-7-nhusb
	sys/dev/usb/uatp.c: netbsd-7-nhusb
	sys/dev/usb/uaudio.c: netbsd-7-nhusb
	sys/dev/usb/uberry.c: netbsd-7-nhusb
	sys/dev/usb/ubsa.c: netbsd-7-nhusb
	sys/dev/usb/ubsa_common.c: netbsd-7-nhusb
	sys/dev/usb/ubsavar.h: netbsd-7-nhusb
	sys/dev/usb/ubt.c: netbsd-7-nhusb
	sys/dev/usb/uchcom.c: netbsd-7-nhusb
	sys/dev/usb/ucom.c: netbsd-7-nhusb
	sys/dev/usb/ucomvar.h: netbsd-7-nhusb
	sys/dev/usb/ucycom.c: netbsd-7-nhusb
	sys/dev/usb/udl.c: netbsd-7-nhusb
	sys/dev/usb/udl.h: netbsd-7-nhusb
	sys/dev/usb/udsbr.c: netbsd-7-nhusb
	sys/dev/usb/udsir.c: netbsd-7-nhusb
	sys/dev/usb/uep.c: netbsd-7-nhusb
	sys/dev/usb/uftdi.c: netbsd-7-nhusb
	sys/dev/usb/uftdireg.h: netbsd-7-nhusb
	sys/dev/usb/ugen.c: netbsd-7-nhusb
	sys/dev/usb/ugensa.c: netbsd-7-nhusb
	sys/dev/usb/uhci.c: netbsd-7-nhusb
	sys/dev/usb/uhcireg.h: netbsd-7-nhusb
	sys/dev/usb/uhcivar.h: netbsd-7-nhusb
	sys/dev/usb/uhid.c: netbsd-7-nhusb
	sys/dev/usb/uhidev.c: netbsd-7-nhusb
	sys/dev/usb/uhidev.h: netbsd-7-nhusb
	sys/dev/usb/uhmodem.c: netbsd-7-nhusb
	sys/dev/usb/uhso.c: netbsd-7-nhusb
	sys/dev/usb/uhub.c: netbsd-7-nhusb
	sys/dev/usb/uipad.c: netbsd-7-nhusb
	sys/dev/usb/uipaq.c: netbsd-7-nhusb
	sys/dev/usb/uirda.c: netbsd-7-nhusb
	sys/dev/usb/uirdavar.h: netbsd-7-nhusb
	sys/dev/usb/ukbd.c: netbsd-7-nhusb
	sys/dev/usb/ukbdmap.c: netbsd-7-nhusb
	sys/dev/usb/ukyopon.c: netbsd-7-nhusb
	sys/dev/usb/ukyopon.h: netbsd-7-nhusb
	sys/dev/usb/ulpt.c: netbsd-7-nhusb
	sys/dev/usb/umass.c: netbsd-7-nhusb
	sys/dev/usb/umass_isdata.c: netbsd-7-nhusb
	sys/dev/usb/umass_isdata.h: netbsd-7-nhusb
	sys/dev/usb/umass_quirks.c: netbsd-7-nhusb
	sys/dev/usb/umass_quirks.h: netbsd-7-nhusb
	sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb
	sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb
	sys/dev/usb/umassvar.h: netbsd-7-nhusb
	sys/dev/usb/umcs.c: netbsd-7-nhusb
	sys/dev/usb/umct.c: netbsd-7-nhusb
	sys/dev/usb/umidi.c: netbsd-7-nhusb
	sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb
	sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb
	sys/dev/usb/umodem.c: netbsd-7-nhusb
	sys/dev/usb/umodem_common.c: netbsd-7-nhusb
	sys/dev/usb/umodemvar.h: netbsd-7-nhusb
	sys/dev/usb/ums.c: netbsd-7-nhusb
	sys/dev/usb/uplcom.c: netbsd-7-nhusb
	sys/dev/usb/urio.c: netbsd-7-nhusb
	sys/dev/usb/urio.h: netbsd-7-nhusb
	sys/dev/usb/usb.c: netbsd-7-nhusb
	sys/dev/usb/usb.h: netbsd-7-nhusb
	sys/dev/usb/usb_mem.c: netbsd-7-nhusb
	sys/dev/usb/usb_mem.h: netbsd-7-nhusb
	sys/dev/usb/usb_quirks.c: netbsd-7-nhusb
	sys/dev/usb/usb_quirks.h: netbsd-7-nhusb
	sys/dev/usb/usb_subr.c: netbsd-7-nhusb
	sys/dev/usb/usbdevices.config: netbsd-7-nhusb
	sys/dev/usb/usbdevs: netbsd-7-nhusb
	sys/dev/usb/usbdevs.h: netbsd-7-nhusb
	sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb
	sys/dev/usb/usbdi.c: netbsd-7-nhusb
	sys/dev/usb/usbdi.h: netbsd-7-nhusb
	sys/dev/usb/usbdi_util.c: netbsd-7-nhusb
	sys/dev/usb/usbdi_util.h: netbsd-7-nhusb
	sys/dev/usb/usbdivar.h: netbsd-7-nhusb
	sys/dev/usb/usbhid.h: netbsd-7-nhusb
	sys/dev/usb/usbhist.h: netbsd-7-nhusb
	sys/dev/usb/usbroothub.c: netbsd-7-nhusb
	sys/dev/usb/usbroothub.h: netbsd-7-nhusb
	sys/dev/usb/usbroothub_subr.c: delete
	sys/dev/usb/usbroothub_subr.h: delete
	sys/dev/usb/uscanner.c: netbsd-7-nhusb
	sys/dev/usb/uslsa.c: netbsd-7-nhusb
	sys/dev/usb/usscanner.c: netbsd-7-nhusb
	sys/dev/usb/ustir.c: netbsd-7-nhusb
	sys/dev/usb/uthum.c: netbsd-7-nhusb
	sys/dev/usb/utoppy.c: netbsd-7-nhusb
	sys/dev/usb/uts.c: netbsd-7-nhusb
	sys/dev/usb/uvideo.c: netbsd-7-nhusb
	sys/dev/usb/uvisor.c: netbsd-7-nhusb
	sys/dev/usb/uvscom.c: netbsd-7-nhusb
	sys/dev/usb/uyap.c: netbsd-7-nhusb
	sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb
	sys/dev/usb/uyurex.c: netbsd-7-nhusb
	sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb
	sys/dev/usb/xhci.c: netbsd-7-nhusb
	sys/dev/usb/xhcireg.h: netbsd-7-nhusb
	sys/dev/usb/xhcivar.h: netbsd-7-nhusb
	sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb
	sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb
	sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb
	sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb
	sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb
	sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb
	sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb
	sys/external/bsd/drm2/include/linux/err.h: delete
	sys/external/bsd/drm2/include/linux/workqueue.h: delete
	sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb
	sys/external/bsd/drm2/linux/linux_work.c: delete
	sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb
	sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb
	sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb
	sys/modules/i915drmkms/Makefile: netbsd-7-nhusb
	sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete
	sys/rump/dev/lib/libusb/opt/opt_usb.h: delete
	sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete
	sys/sys/mbuf.h: netbsd-7-nhusb
	usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb
	usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb
Merge netbsd-7-nhusb:
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
     - kern/48308
     - uhub status notification improvements
     - umass(4) probe fix (applied to HEAD already)
     - ohci(4) short transfer fix
- Change the SOFTINT level from NET to SERIAL for the USB softint handler.
  This gives the callback a chance of running when another softint handler
  at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of
  the network stack.
     - kern/49065 - ifconfig tun0 ... sequence locks up system / lockup:
       softnet_lock held across usb xfr
     - kern/50491 - unkillable wait in usbd_transfer while using usmsc0
       on raspberry pi 2
     - kern/51395 - USB Ethernet makes xhci hang
- Various improvements to slhci(4)
- Various improvements to dwc2(4)

Revision 1.139.8.1: download - view: text, markup, annotated - select for diffs
Tue Sep 6 20:33:09 2016 UTC (10 years, 2 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139: +143 -118 lines
First pass at netbsd-7 updated with USB code from HEAD

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

Revision 1.147: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:42 2016 UTC (10 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +4 -6 lines
KNF. Remove extra spaces. No functional change.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Sat Apr 23 10:15:32 2016 UTC (10 years, 6 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +107 -95 lines
Merge nick-nhusb

- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
    - kern/48308
    - uhub status notification improvements
    - umass(4) probe fix (applied to HEAD already)
    - ohci(4) short transfer fix

Revision 1.140.2.16: download - view: text, markup, annotated - select for diffs
Wed Mar 23 22:18:30 2016 UTC (10 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.15: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.15: +4 -3 lines
Whitespace / Update a comment

Revision 1.140.2.15: download - view: text, markup, annotated - select for diffs
Wed Mar 23 22:11:20 2016 UTC (10 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.14: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.14: +21 -27 lines
sc_intr_lock is protecting against usb callbacks so can be IPL_SOFTUSB

Revision 1.140.2.14: download - view: text, markup, annotated - select for diffs
Wed Mar 23 22:04:18 2016 UTC (10 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.13: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.13: +3 -3 lines
Whitespace

Revision 1.140.2.13: download - view: text, markup, annotated - select for diffs
Sun Mar 13 07:11:01 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.12: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.12: +3 -3 lines
KNF (on the right branch this time)

Revision 1.145: download - view: text, markup, annotated - select for diffs
Sun Mar 13 07:01:43 2016 UTC (10 years, 8 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +3 -3 lines
KNF

Revision 1.140.2.12: download - view: text, markup, annotated - select for diffs
Mon Dec 28 09:26:33 2015 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.11: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.11: +23 -7 lines
Strictly follow the sequence abort pipe, destroy xfers, and close pipe as
API now requires.  Plug some memory leaks in some drivers while doing
this.

Also, remove up_refcnt as it was broken and helped leak more memory.

Revision 1.140.2.11: download - view: text, markup, annotated - select for diffs
Tue Oct 6 21:32:15 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.10: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.10: +26 -27 lines
Move from usbd_{alloc,free}_xfer and usbd_{alloc,free}_buffer to
usbd_{create,destroy}_xfer.  The API change will allow future changes
to HCDs to simplify the transfer resource allocation and activation.

Several devices tested including ucom, umass, smsc, uvideo, and uaudio.

Revision 1.140.2.10: download - view: text, markup, annotated - select for diffs
Tue Sep 29 11:38:29 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.9: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.9: +4 -4 lines
sizeof KNF

Revision 1.140.2.9: download - view: text, markup, annotated - select for diffs
Sat May 9 09:35:20 2015 UTC (11 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.8: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.8: +3 -3 lines
Use NULL not 0 for pointer comparison

Revision 1.140.2.8: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:13 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.7: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.7: +34 -19 lines
Sync with HEAD

Revision 1.140.2.7: download - view: text, markup, annotated - select for diffs
Sat Mar 21 11:33:37 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.6: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.6: +15 -15 lines
Add prefixes to attach_arg structure member names. No functional change.

Revision 1.140.2.6: download - view: text, markup, annotated - select for diffs
Thu Mar 19 17:26:43 2015 UTC (11 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.5: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.5: +14 -14 lines
Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads

Revision 1.144: download - view: text, markup, annotated - select for diffs
Mon Jan 26 20:56:44 2015 UTC (11 years, 9 months ago) by gson
Branches: MAIN
CVS tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +5 -5 lines
Fix URLs of USB audio specs

Revision 1.143: download - view: text, markup, annotated - select for diffs
Mon Jan 26 20:37:44 2015 UTC (11 years, 9 months ago) by gson
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +6 -2 lines
Don't crash with a division by zero if a bControlSize field is 0.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Mon Jan 26 20:32:17 2015 UTC (11 years, 9 months ago) by gson
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +23 -16 lines
When dumping iot[] contents to the console for debugging, don't crash
if iot[i].output is NULL for some i.  Share code with the dumping of
iot[i].inputs[], which already handled NULLs.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Mon Jan 26 09:25:08 2015 UTC (11 years, 9 months ago) by gson
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +6 -2 lines
Include opt_usb.h so that "options UAUDIO_DEBUG" works.

Revision 1.140.2.5: download - view: text, markup, annotated - select for diffs
Sun Dec 7 20:42:11 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.4: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.4: +3 -4 lines
Fix a kmem_free size. From Takahiro HAYASHI

Revision 1.140.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 3 14:18:07 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.3: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.3: +13 -10 lines
Replace malloc(9) with kmem(9)

Revision 1.140.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 3 12:52:07 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.2: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.2: +3 -3 lines
The grand renaming of structure members.

No functional change.

Revision 1.140.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 2 09:00:34 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140.2.1: preferred, colored; branchpoint 1.140: preferred, colored
Changes since revision 1.140.2.1: +4 -4 lines
Step #1 of memory allocation re-organisation.

Centralised the buffer allocation routine which now supports DMA
and non-DMA capable host controllers.  Remove the
ubm_{alloc,free}m methods from usbd_bus_methods.

The buffer allocation is only allowed in thread context and,
therefore, negates the usefulness of the reserve dma code which
is removed in this change.

USBD_NO_COPY is also no longer required as usbd_transfer and
usbd_transfer_complete now track buffer usage and handle any
copying.

Revision 1.140.2.1: download - view: text, markup, annotated - select for diffs
Sun Nov 30 12:18:58 2014 UTC (11 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -4 lines
Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.

No functional change.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Mon Sep 22 14:25:32 2014 UTC (12 years, 1 month ago) by nat
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +3 -3 lines
Fix trouble setting recording parameters.

Addresses PR 48394.

This commit was approved by christos@

Revision 1.133.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:51 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.133.2.2: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.2: +5 -7 lines
Rebase to HEAD as of a few days ago.

Revision 1.120.8.5: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:37 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.120.8.4: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.8.4: +21 -23 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.136.2.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:47 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.136.2.1: preferred, colored; branchpoint 1.136: preferred, colored; next MAIN 1.137: preferred, colored
Changes since revision 1.136.2.1: +5 -7 lines
sync with head

Revision 1.139: download - view: text, markup, annotated - select for diffs
Fri Sep 27 13:34:48 2013 UTC (13 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-base, 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
Branch point for: netbsd-7-nhusb, netbsd-7
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +2 -4 lines
Don't call mutex_spin_exit on already released lock.

Revision 1.138: download - view: text, markup, annotated - select for diffs
Sun Sep 15 15:04:47 2013 UTC (13 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +5 -5 lines
Avoid unused variable warnings

Revision 1.136.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:27 2013 UTC (13 years, 2 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +4 -4 lines
sync with head

Revision 1.137: download - view: text, markup, annotated - select for diffs
Thu Aug 15 15:26:50 2013 UTC (13 years, 3 months ago) by aymeric
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +4 -4 lines
In the error paths where uaudio_chan_free_buffers() has to be called, acquire
the uaudio spinlock after the call because another spinlock is used indirectly
during the call.
Fixes a panic with LOCKDEBUG when a low-speed uaudio attached to a high-speed
hub is opened.

Revision 1.133.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:22 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.133.2.1: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.1: +15 -15 lines
resync from head

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sun May 12 09:54:55 2013 UTC (13 years, 6 months ago) by wiz
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +15 -15 lines
Atomicly swap out pipe pointer before closing the pipe.
Hopefully fixes "ohci_device_isoc_start: not in progress 0xfffffe874ec259c0"

At least, for me, it increased the uptime during my normal use of uaudio@ohci
from 1,5d to over 3d.

Remove some trailing whitespace and unnecessary initialization
(memset before that) while here.

Revision 1.133.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:38 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +6 -5 lines
resync with head

Revision 1.135: download - view: text, markup, annotated - select for diffs
Thu Jan 24 08:22:38 2013 UTC (13 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: khorben-n900, agc-symver-base, agc-symver
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3 lines
oops, turn uaudiodebug off by default again.

Revision 1.120.8.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:13 2013 UTC (13 years, 9 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.120.8.3: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.8.3: +5 -4 lines
sync with head

Revision 1.134: download - view: text, markup, annotated - select for diffs
Tue Jan 22 12:40:43 2013 UTC (13 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +5 -4 lines
- Add a USBD_MPSAFE flag to usbd_open_pipe. If not set, acquire KERNEL_LOCK
  before invoking xfer callbacks on this pipe.
- Add an extra flags parameter to usb_init_task. If USBD_TASKQ_MPSAFE is not
  present, acquire KERNEL_LOCK before invoking the task callback.

Revision 1.120.8.3: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:07 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.120.8.2: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.8.2: +14 -34 lines
sync with head

Revision 1.133: download - view: text, markup, annotated - select for diffs
Sun Jun 10 06:15:53 2012 UTC (14 years, 5 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +14 -34 lines
merge the jmcneill-usbmp branch.  many thanks to jared for the
initial work, and every one else who has tested things for me.
this is largely my fault at this point :-)

the main changes are something like:

        - usbd_bus_methods{} gains a get_lock() to enable the
          host controller to provide a lock for the USB code.
          if the lock isn't provided, old-style protection is
          (partially) applied.

        - ehci/ohci/uhci have been converted to the new
          interfaces, including mutex/cv/etc conversion.

        - usbdivar.h contains a discussion about locking and
          what locks are held for which method calls.  more
          to come for usbdi(9) here.

        - audio drivers (uaudio, umidi, auvitek) have been
          properly SMPified now that USB is ready.

        - scsi drivers have been modified to take the kernel
          lock explicitly before calling into scsi code.

        - usb pipes are associated with a lock, that is the
          same as the controller lock.  (this could be split
          up further in the future.)

        - several usbfoo_locked() or usbfoo_unlocked()
          functions have been added to the usbdi(9) to
          enable functionality with or without the USB
          lock (per controller) already being held.

the TODO.usbmp file has specific details on what is left to
do, including what device-specific changes should be done now
that the whole framework is ready.

Revision 1.124.2.6: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:29 2012 UTC (14 years, 5 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.124.2.5: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.2.5: +4 -8 lines
sync to latest -current.

Revision 1.120.8.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:08:06 2012 UTC (14 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.120.8.1: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.8.1: +8 -10 lines
sync with head.

Revision 1.132: download - view: text, markup, annotated - select for diffs
Fri May 18 07:52:54 2012 UTC (14 years, 6 months ago) by jdc
Branches: MAIN
CVS tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +4 -8 lines
Increase the number of frequencies in the usb_audio_streaming_type1_descriptor
to be the same number that we support elsewhere (AUFMT_MAX_FREQUENCIES).
Set frequency_type to be AUFMT_MAX_FREQUENCIES in the case where a uaudio
device reports more frequencies than we handle.
Fixes a crash in uaudio_chan_ptransfer() because we read uninitialised data
in uaudio_identify_as().

Revision 1.124.2.5: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:05:01 2012 UTC (14 years, 6 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.124.2.4: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.2.4: +6 -4 lines
sync to latest -current.

Revision 1.114.6.2: download - view: text, markup, annotated - select for diffs
Sun Apr 22 03:13:21 2012 UTC (14 years, 6 months 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
Diff to: previous 1.114.6.1: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.6.1: +6 -4 lines
Pull up following revision(s) (requested by jakllsch in ticket #1751):
	sys/dev/usb/uaudio.c: revision 1.131
Use usbd_get_device_descriptor() instead of groping for it directly
in the usbd_device struct.

Revision 1.131: download - view: text, markup, annotated - select for diffs
Sun Apr 22 01:31:48 2012 UTC (14 years, 6 months ago) by jakllsch
Branches: MAIN
CVS tags: jmcneill-usbmp-base9
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +6 -4 lines
Use usbd_get_device_descriptor() instead of groping for it directly
in the usbd_device struct.

Revision 1.114.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 21 15:57:27 2012 UTC (14 years, 6 months ago) by riz
Branches: netbsd-5
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +12 -18 lines
Pull up following revision(s) (requested by jakllsch in ticket #1746):
	sys/dev/usb/uaudio.c: revision 1.120
Address PR#44279.
- Be more lenient to device descriptor inconsistencies.
- Apply Roland SD-90 quirk only to the SD-90.

Revision 1.120.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:07 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +222 -144 lines
sync with head

Revision 1.124.2.4: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:34 2012 UTC (14 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.124.2.3: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.2.3: +8 -2 lines
sync to latest -current.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Thu Mar 15 18:40:32 2012 UTC (14 years, 8 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-pagecache-base4, jmcneill-usbmp-base8
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +8 -2 lines
Also print and bail out if the hardware returned a too large bSamFreqType,
instead of reading past descriptor array. Found by gcc -O3

Revision 1.124.2.3: download - view: text, markup, annotated - select for diffs
Sat Feb 25 13:17:16 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.124.2.2: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.2.2: +8 -12 lines
remove remaining splusb() calls, update some comments.

Revision 1.124.2.2: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:42 2012 UTC (14 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.124.2.1: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.2.1: +2 -6 lines
sync to -current.

Revision 1.129: download - view: text, markup, annotated - select for diffs
Fri Feb 24 06:48:24 2012 UTC (14 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +2 -6 lines
remove any remnants of freebsd/openbsd code.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri Dec 23 00:51:44 2011 UTC (14 years, 10 months ago) by jakllsch
Branches: MAIN
CVS tags: 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, jmcneill-usbmp-base2
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +4 -4 lines
Revert previous due to active usbmp branch(es).

Revision 1.127: download - view: text, markup, annotated - select for diffs
Thu Dec 22 20:07:00 2011 UTC (14 years, 10 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +4 -4 lines
Adjust-away inconsistent and trailing whitespace.

Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue Dec 13 12:26:32 2011 UTC (14 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +2 -6 lines
- convert the audio softintr's to SOFTINT_SERIAL.  right now they're on
  the same priority level as USB and if an audio softintr is blocked
  waiting for a usb event, they'll dead lock.  also, audio being higher
  priority is a fine idea.

- revert the previous audio.c changes as they were unsafe and this change
  obviates the need for them.

XXX:  convert the audio softint's to use a high priority thread or a
XXX:  workqueue would be better again.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Fri Dec 9 05:03:18 2011 UTC (14 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +6 -2 lines
from the usbmp branch:
- drop the thread lock when usbd might sleep on us.

this also makes mixerctl -s vs play work without usbmp.

Revision 1.124.2.1: download - view: text, markup, annotated - select for diffs
Fri Dec 9 01:53:00 2011 UTC (14 years, 11 months ago) by mrg
Branches: jmcneill-usbmp
CVS tags: jmcneill-usbmp-pre-base2
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +8 -24 lines
- make pipe->close method take the thread lock

- convert usb_taskq to use mutex/cv

- convert needs_explore usage into a cv on the thread lock

- remove KERNEL_*LOCK from uaudio and umidi, since we're supposedly
  MPSAFE here now

- use IPL_SCHED instead of IPL_USB (aka biglocked) interrupts

- drop the audio thread lock when calling into usb when it may sleep,
  avoiding a deadlock between audiowrite and audioioctl.  this fixes
  mixerctl -a vs. playing hanging the system
  XXX probably need to check this in a bunch more places.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Nov 27 07:36:54 2011 UTC (14 years, 11 months ago) by mrg
Branches: MAIN
CVS tags: mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +7 -4 lines
also apply the previous spin mutex hack to uaudio_trigger_input()

Revision 1.123: download - view: text, markup, annotated - select for diffs
Sun Nov 27 04:32:41 2011 UTC (14 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +4 -2 lines
drop sc_intr_lock when calling into uaudio_chan_ptransfer().

Revision 1.122: download - view: text, markup, annotated - select for diffs
Sun Nov 27 04:10:38 2011 UTC (14 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +129 -123 lines
re-write most of the debug messages using c99 varaidic macros and always
include the __func__ and pid:lid.  remove the handful of other __func__
uses and the 100+ other hard coded function name uses.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Wed Nov 23 23:07:36 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +84 -19 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.120.10.2: download - view: text, markup, annotated - select for diffs
Tue Nov 22 22:47:11 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: jmcneill-audiomp3
Diff to: previous 1.120.10.1: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.10.1: +2 -3 lines
get rid of unused 'powerstate' callback in audio_hw_if

Revision 1.120.10.1: download - view: text, markup, annotated - select for diffs
Tue Nov 22 02:39:59 2011 UTC (14 years, 11 months ago) by mrg
Branches: jmcneill-audiomp3
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +84 -18 lines
port to audiomp.  mostly from jared, tested and completed by me.

this one is a little more tricky.  besides the usual spl and get_locks
changes, we have to deal with the USB subsystem wanting to sleep and
expecting to be called with the kernel lock held.  so we always take
the kernel lock and drop the interrupt lock before calling into usbd.

Revision 1.117.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:13 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117: +70 -71 lines
sync with head

Revision 1.120: download - view: text, markup, annotated - select for diffs
Tue Dec 28 20:11:18 2010 UTC (15 years, 10 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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.119: preferred, colored
Changes since revision 1.119: +12 -18 lines
Address PR#44279.

- Be more lenient to device descriptor inconsistencies.
- Apply Roland SD-90 quirk only to the SD-90.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Fri Dec 24 20:49:55 2010 UTC (15 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +11 -9 lines
fill audio_info.config with the string "usb:<cookie>" instead of "uaudio",
where <cookie> comes from the usbd device handle:

  $ audioctl -d /dev/sound1 config
  config=usb:00000009

this can be used by software to find the audio device(s) associated with a
USB video capture device

Revision 1.117.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:37 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117: +51 -48 lines
Sync with HEAD.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Wed Nov 3 22:34:23 2010 UTC (16 years ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base4
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +51 -48 lines
Stop using the compatibility macros USB_ATTACH(), USB_DETACH(),
USB_MATCH(), et cetera.  These files produce the same assembly
(according to objdump -d) before and after the change

Revision 1.111.10.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:05 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.111.10.2: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.10.2: +13 -19 lines
sync with head

Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu Nov 12 19:50:01 2009 UTC (17 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +8 -15 lines
Simplify activation hook.  (sc_dying must die!)

s/device_ptr_t/device_t/.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Sep 23 19:07:19 2009 UTC (17 years, 1 month ago) by plunky
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +7 -6 lines
fix up USB drivers printing of autoconf information

1. expand the USB_ATTACH_SETUP macro (requested by jmcneill)

2. reorder the attach function so that the first thing it does is print
   newlines.

3. after this, we can call usbd_devinfo_alloc(), which polls the device
   allowing a context switch, and aprint_normal() the device information.

this avoids problems where autoconf messages are getting mixed up.

Revision 1.114.10.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:35 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +2 -3 lines
Sync with HEAD.

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

Revision 1.111.10.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:21 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.111.10.1: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.10.1: +154 -75 lines
sync with head.

Revision 1.114.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:39 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +2 -3 lines
Sync with HEAD.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Mon Mar 9 15:59:33 2009 UTC (17 years, 8 months ago) by uebayasi
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, jymxensuspend-base, jym-xensuspend-base
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +2 -3 lines
These don't need <sys/tty.h>.

Revision 1.112.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:11 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.112.2.1: preferred, colored; branchpoint 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.2.1: +75 -2 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.113.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:38:05 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +75 -2 lines
Sync with head.

Revision 1.111.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:11 2008 UTC (18 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.111.6.1: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.6.1: +73 -0 lines
Sync with HEAD.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Sat Jun 28 09:14:56 2008 UTC (18 years, 4 months ago) by kent
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, 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-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +75 -2 lines
Make uaudio compilable as a kmod.

XXX:
"modload uaudio.kmod" doesn't attach the uaudio driver to
plugged USB devices for now because uhub_rescan() is not
implemented yet.  We need to re-plug USB devices after modload.

Revision 1.112.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:36 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +81 -74 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.111.8.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:20 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.111.8.1: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.8.1: +81 -74 lines
sync with head

Revision 1.111.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:54 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +81 -81 lines
Sync with HEAD.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Sat May 24 16:40:58 2008 UTC (18 years, 5 months ago) by cube
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +81 -74 lines
Split device_t and softc for all USB device drivers, and related cosmetic
changes.

Matthias Drochner kindly reviewed this patch, and tested ums, ubt, uaudio
and ral.  I tested umass myself.

Revision 1.109.8.4: download - view: text, markup, annotated - select for diffs
Sun May 18 14:13:16 2008 UTC (18 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.109.8.3: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.8.3: +3 -3 lines
Fix typo, which caused panic at the end of recording.

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

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

Revision 1.112: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:59 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.110.12.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:53 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +24 -6 lines
sync with HEAD

Revision 1.99.2.5: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:47 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.99.2.4: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.2.4: +24 -6 lines
sync with head.

Revision 1.110.18.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:25 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +24 -6 lines
Sync with HEAD.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Mon Feb 18 05:31:24 2008 UTC (18 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +24 -6 lines
Use device_t and its accessor functions.

Register _childdetached methods with drivers that attach children.
Wait to set child references to NULL there, instead of doing that
in the detach method.

Replace many uses of USB_DECLARE_DRIVER() with CFATTACH_DECL2().

Revision 1.99.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:39:08 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.99.2.3: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.3: +11 -17 lines
sync with head.

Revision 1.109.6.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:08:36 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +6 -12 lines
Sync with head.

Revision 1.109.8.3: download - view: text, markup, annotated - select for diffs
Mon Jun 18 13:45:13 2007 UTC (19 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.109.8.2: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.8.2: +19 -3 lines
Pullup 1.110 (attach driver per interface) with #ifdef USB_USE_IFATTACH.

Revision 1.109.8.2: download - view: text, markup, annotated - select for diffs
Sat Jun 16 04:11:35 2007 UTC (19 years, 5 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.109.8.1: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.8.1: +86 -46 lines
- Map audio buffer directly and eliminate memory to memory copy
  by (ab)using mbuf(9).
- Change order to fit current API: usbd_open_pipe() -> usbd_alloc_xfer;
  usbd_abort_pipe() -> usbd_free_xfer() -> usbd_close_pipe().

XXX Untested

Revision 1.109.8.1: download - view: text, markup, annotated - select for diffs
Tue May 22 14:57:39 2007 UTC (19 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3 lines
Overhaul of USB stack, mostly DMA related

This applies to NetBSD 4.99.13 (March 1, 2007)

usbdi(9) interface is based on FreeBSD version, excluding
 - removal of portability code

Patch most NetBSD changes, excluding
 - DMA memory "reserve", since we don't need contiguous buffers any longer
 - volatiles in DMA structure, since it should not be needed
   with proper bus_dmamap_sync(9)s

DMA/non-DMA memory management overhaul
 - Move all DMA related code to usb_mem.[ch]
   (add usb_alloc_buffer_dma(), usb_free_buffer_dma(), etc.).
   XXX Should usb_mem.[ch] be renamed as usb_mem_dma.[ch] ?
 - Add corresponding non-DMA code to usb_mem_nodma.[ch] .
   Currently just use malloc(9).
 - Above files are conditionally used by config framework (added
   attributes to conf/files and dev/usb/files.usb).
 - Add diagnostic panics when resource allocation is requested
   on interrupt context.
 - Change memory allocations (that require context) from NOWAIT to WAITOK.

Allocate DMA/non-DMA buffer per host interface, not globally.
 advantage:	Buffers can be freed on detaching host interface.
		Activity of a host interface does not affect others.
 disadvantages:	It possibly consumes more memory.

API changes
 - usbd_alloc_xfer() is changed:
    old: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev);
    new: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev,
		usbd_pipe_handle pipe);
 - pipe argument of usbd_setup_*xfer() are now unused
   XXX the pipe argument should be removed?
 - add mapping APIs
 - async request will be processed as a task (kernel thread context),
   and delayed to some extent
 - usbdivar.h: struct usbd_xfer: renamed a member "allocbuf" to "hcbuffer"
   (mapped/allocated/refered buffer for HCI driver)
 - usb_port.h: change usb_proc_ptr from  struct ptoc *  to struct lwp *
 - usb_port.h: add usb_sigproc_ptr for psignal(9) (struct proc *)
 - usb.h: add UE_MAXPKTSZ(ep) and UE_MAXPKTSZ_MASK macros for USB 2.0

changes to USB device drivers
 - atu, aue, axe, cdce, cue, kue, rum, udav, upl, ural, url,
   uaudio, ubt, ucom, ugen, uhidev, uirda, ulpt, umidi, urio,
   uscanner, ustir, utoppy:
    * catch up API change of usbd_alloc_xfer()
 - umass, usscanner:
    * catch up API change of usbd_alloc_xfer()
    * eliminate memory copy for large transfer

ohci
 - free resources on detach
 - add lots of bus_dmamap_sync() operations
 - simplify the code of loading std chain
 - rewrite code of looking up TD/ITD from DMA addr by using allocation chunk
 - add workaround for CMD Tech 670 and 673 chipsets
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf

slhci
 - allocate xfer and slhci_xfer at once, and simplify relevant code
 - add slhci_detach()
 - remove second arg of slhci_attach() since it is the same as the first arg.
 - add support for "mapping" (no, it doesn't map since it doesn't do DMA)
   buffer and mbuf
 - add pcmcia frontend
 - NOT TESTED, missing hardware

ehci
 - add lots of bus_dmamap_sync() operations, possibly too many
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf
 - done only simple test

uhci
 - add lots of bus_dmamap_sync() operations, possibly too many
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf

To do
 - review, test, debug
 - rewrite network drivers to utilize usbd_map_buffer_mbuf()
 - rewrite uaudio(4) to eliminate memcpy
 - "pipe" argument of usbd_setup_*xfer() should eventually be removed

Revision 1.108.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:55:49 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.108.2.1: preferred, colored; branchpoint 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108.2.1: +6 -12 lines
sync with head.

Revision 1.109.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:50:33 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +6 -12 lines
Sync with head.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Mar 13 13:51:54 2007 UTC (19 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +6 -12 lines
Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
 stage, but did configuration again. I've converted them to match
 in the device stage.
ustir, utoppy: matched in the interface stage, but only against
 vendor/device information, and used any configuration/interface
 without checking. Changed to match in device stage, and added
 some simple code to configure and use the first interface.
If you have one of those devices, please test!

Revision 1.108.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:05 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +7 -7 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Mon Feb 26 13:15:32 2007 UTC (19 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans, itohy-usb1
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +7 -7 lines
Don't assume that usb_descriptor_t contains a bDescriptorSubtype field.
This is class specific and shouldn't be in a generic definition.

Revision 1.99.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:44 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.99.2.2: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.2: +2 -3 lines
sync with head.

Revision 1.104.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:29 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.104.2.1: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.2.1: +2 -3 lines
Sync with head.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Jan 29 01:52:45 2007 UTC (19 years, 9 months ago) by hubertf
Branches: MAIN
CVS tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +2 -3 lines
Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.

Revision 1.99.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:49:38 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.99.2.1: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.2.1: +9 -5 lines
sync with head.

Revision 1.104.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:17 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.104.4.1: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.4.1: +11 -11 lines
sync with head.

Revision 1.104.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:50 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +8 -5 lines
Sync with head.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:26 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +11 -11 lines
__unused removal on arguments; approved by core.

Revision 1.104.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:52 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +13 -10 lines
sync with head

Revision 1.106: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:59 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +11 -9 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Oct 4 16:00:15 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -3 lines
fix empty if

Revision 1.100.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:55:33 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100: +11 -6 lines
sync with head

Revision 1.100.8.3: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:03 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.100.8.2: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.8.2: +3 -2 lines
sync with head.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Sep 3 07:07:20 2006 UTC (20 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -2 lines
add missing initializer

Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:07:44 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +10 -6 lines
sync with head.

Revision 1.100.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:37:41 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.100.6.1: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.6.1: +4 -2 lines
Sync with head.

Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:30 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +6 -2 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.100.8.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:24 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.100.8.1: preferred, colored; branchpoint 1.100: preferred, colored
Changes since revision 1.100.8.1: +6 -2 lines
sync with head.

Revision 1.100.10.2: download - view: text, markup, annotated - select for diffs
Thu May 11 23:29:59 2006 UTC (20 years, 6 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.100.10.1: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.10.1: +4 -2 lines
sync with head

Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu May 11 19:09:25 2006 UTC (20 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -2 lines
in uaudio_process_as() initialise ai.aformat and ai.ifaceh.

Revision 1.100.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:38 2006 UTC (20 years, 6 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +8 -6 lines
Sync with head.

Revision 1.100.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:26:29 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +8 -6 lines
sync with head.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Fri Apr 14 17:00:55 2006 UTC (20 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +4 -2 lines
Coverity CID 730: Ifdef dead code appropriately.

Revision 1.100.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 13 09:07:32 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +6 -6 lines
sync with head.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:14:20 2006 UTC (20 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +6 -6 lines
Rename BIT(n) macro to _BIT(n) to avoid a conflict with forthcoming
bit-twiddling macros.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:01 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, elad-kernelauth
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +2 -2 lines
merge ktrace-lwp.

Revision 1.67.2.10: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:08:05 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.9: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.2.9: +40 -39 lines
Sync with HEAD. Here we go again...

Revision 1.99: download - view: text, markup, annotated - select for diffs
Mon May 30 04:21:39 2005 UTC (21 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +36 -36 lines
- const poisoning
- eliminate variable shadowing

Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed May 11 10:02:28 2005 UTC (21 years, 6 months ago) by augustss
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +6 -5 lines
Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.

Revision 1.96.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:18 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.96.2.1: preferred, colored; branchpoint 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96.2.1: +3048 -0 lines
sync with -current

Revision 1.96.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:35:58 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96: +5 -3 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.67.2.9: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:50:54 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.8: preferred, colored
Changes since revision 1.67.2.8: +5 -3 lines
Sync with HEAD.

Hi Perry!

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Feb 24 08:19:38 2005 UTC (21 years, 8 months ago) by martin
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +5 -3 lines
Fix memory leak reported by Ted Unangst as bug #3 on tech-kern.

Revision 1.67.2.8: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:31:53 2005 UTC (21 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.7: preferred, colored
Changes since revision 1.67.2.7: +264 -203 lines
Sync with HEAD.

Revision 1.96.2.1
Sun Jan 16 12:46:00 2005 UTC (21 years, 10 months ago) by kent
Branches: kent-audio2
FILE REMOVED
Changes since revision 1.96: +0 -3046 lines
file uaudio.c was added on branch kent-audio2 on 2005-04-29 11:29:18 +0000

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Jan 16 12:46:00 2005 UTC (21 years, 10 months ago) by kent
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +27 -18 lines
* uaudio_round_blocksize()
  calculate playing blocksize and recording blocksize independently

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun Jan 16 06:02:19 2005 UTC (21 years, 10 months ago) by dsainty
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3 lines
Make this compile (after previous commit) with UAUDIO_DEBUG defined

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Jan 15 15:19:53 2005 UTC (21 years, 10 months ago) by kent
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +209 -169 lines
ansify and KNF

Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Jan 10 22:01:38 2005 UTC (21 years, 10 months ago) by kent
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +32 -20 lines
merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

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

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

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

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

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

* all of audio HW drivers follow audio_hw_if and ac97 changes

Revision 1.92.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 9 08:42:46 2005 UTC (21 years, 10 months ago) by kent
Branches: kent-audio1
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.1: +5 -4 lines
audio_hw_if change
 * make open() and close() optional
 * add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 2 20:03:40 2005 UTC (21 years, 10 months ago) by kent
Branches: kent-audio1
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +30 -19 lines
adopt the filter pipeline framework

Revision 1.67.2.7: download - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:33 2004 UTC (21 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.6: preferred, colored
Changes since revision 1.67.2.6: +81 -344 lines
Sync with HEAD.

Revision 1.67.2.6: download - view: text, markup, annotated - select for diffs
Sun Nov 14 08:15:57 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.5: preferred, colored
Changes since revision 1.67.2.5: +47 -2 lines
Sync with HEAD.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Nov 13 15:01:48 2004 UTC (22 years ago) by kent
Branches: MAIN
CVS tags: kent-audio1-beforemerge, kent-audio1-base
Branch point for: kent-audio1
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +81 -344 lines
adopt auconv_set_converter()

Revision 1.91: download - view: text, markup, annotated - select for diffs
Fri Nov 5 17:46:14 2004 UTC (22 years ago) by kent
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +47 -2 lines
print cluster information if UAUDIO_DEBUG is defined.

Revision 1.67.2.5: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:53:03 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.4: preferred, colored
Changes since revision 1.67.2.4: +832 -293 lines
Sync with HEAD.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Fri Oct 29 17:12:53 2004 UTC (22 years ago) by kent
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +13 -11 lines
* uaudio_chan_open()
  Call uaudio_set_speed() if and only if the selected Audio Streaming
interface supports multiple sampling rates.
  Address PR#27237

Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Oct 29 16:42:47 2004 UTC (22 years ago) by kent
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +31 -31 lines
replace printf() inside UAUDIO_DEBUG with logprintf()

Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Oct 29 12:57:26 2004 UTC (22 years ago) by yamt
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
constify audio_hw_if, midi_hw_if, and radio_hw_if.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Fri Oct 22 17:00:22 2004 UTC (22 years ago) by kent
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +37 -31 lines
assign AudioNlfe to UATO_SUBWOOFER
assign "phone" to telephony terimnal types.  The label "phone" is used
in ac97 though it is not defined as AudioN* macro.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Fri Oct 22 16:01:49 2004 UTC (22 years ago) by kent
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +142 -149 lines
style fixes
 - consistent folding in function declarations
 - define a function as Static if the function is declared as Static

Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Oct 22 15:36:30 2004 UTC (22 years ago) by kent
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -4 lines
enclose debug macros with do {...} while (0)
from OpenBSD

Revision 1.84: download - view: text, markup, annotated - select for diffs
Fri Oct 22 15:34:04 2004 UTC (22 years ago) by kent
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +20 -11 lines
fix wrong realloc() usage.
from OpenBSD

Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri Oct 22 15:25:56 2004 UTC (22 years ago) by kent
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +23 -7 lines
fix typos in comments.
add open/close code of sync pipe (not enabled)

Revision 1.82: download - view: text, markup, annotated - select for diffs
Thu Oct 21 12:41:07 2004 UTC (22 years, 1 month ago) by kent
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +657 -144 lines
make mixer names compatible with other audio devices
patch provided by Kazuhito HONDA in PR#15441

Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Oct 20 13:48:32 2004 UTC (22 years, 1 month ago) by kent
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
mixer item for a selctor should start with "sel" not "fea"

Revision 1.67.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:57:33 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.3: preferred, colored
Changes since revision 1.67.2.3: +339 -230 lines
Sync with HEAD

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Oct 16 18:08:50 2004 UTC (22 years, 1 month ago) by kent
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +72 -8 lines
add code to recognize sync-pipe audio stream.
The code is not enabled yet.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun Oct 3 06:01:09 2004 UTC (22 years, 1 month ago) by kent
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +57 -14 lines
add source selector support.  The patch was provided by Kazuhito HONDA.
PR#26538

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Oct 2 19:14:54 2004 UTC (22 years, 1 month ago) by kent
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +214 -212 lines
- add some debug prints
- no parameter names in prototypes
- use const pointers if dereferenced object should not be modified

Revision 1.67.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:33:44 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.2: preferred, colored
Changes since revision 1.67.2.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.67.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:51:46 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67.2.1: preferred, colored
Changes since revision 1.67.2.1: +0 -0 lines
Sync with HEAD.

Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:51:33 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +91 -97 lines
Sync with HEAD

Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Jul 16 22:39:23 2004 UTC (22 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +6 -3 lines
AUOPEN_* != AUMODE_*.  Duh.  Make unidirectional devices work again.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Jul 16 20:08:23 2004 UTC (22 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +7 -3 lines
The previous change was not complete.  /brick me

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Jul 9 18:08:00 2004 UTC (22 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3 lines
Whoops!  Don't try to set parameters for a direction that doesn't exist.
(audio_set_defaults() can do this.)

Revision 1.74: download - view: text, markup, annotated - select for diffs
Fri Jul 9 02:57:48 2004 UTC (22 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +7 -24 lines
Clean up a little.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Wed Jul 7 22:04:28 2004 UTC (22 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +16 -19 lines
Previous fix was not right.  Also fix a couple of other problems -- we were
never actually setting the mode if using audioctl.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Jul 7 20:21:06 2004 UTC (22 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +14 -13 lines
Rearrange to fix a potential crash when changing parameters with audioctl and
the device is closed.  Reported in PR 24066.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Apr 23 17:25:25 2004 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +21 -18 lines
use bounded string ops (snprintf, strl*)

Revision 1.70: download - view: text, markup, annotated - select for diffs
Thu Apr 22 00:17:13 2004 UTC (22 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +38 -35 lines
sprintf -> snprintf

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Oct 14 13:12:19 2003 UTC (23 years, 1 month ago) by wiz
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +5 -5 lines
Fix mixer wraparound. Closes PR 16652.
Patch from Sergey Svishchev. mycroft says "looks ok".

Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Sep 29 11:54:26 2003 UTC (23 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +5 -5 lines
Update URLs.  From PR 23004.

Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 24 09:46:44 2003 UTC (23 years, 4 months ago) by grant
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +4 -4 lines
Pull up revision 1.61 (requested by nakayama in ticket #1334):

Correct test for busy-ness when setting parameters.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat May 3 18:11:41 2003 UTC (23 years, 6 months ago) by wiz
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
DMA, not dma nor Dma.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Thu Apr 17 16:38:02 2003 UTC (23 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3 lines
uaudio_match_alt_sub(): fix the rate check in UA_SAMP_CONTNUOUS case
to match if UA_SAMP_LO() == UA_SAMP_HI() == rate
problem reported and fix provided in PR kern/18986 by Yasushi Oshima

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Mar 30 04:47:13 2003 UTC (23 years, 7 months ago) by toshii
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +15 -14 lines
Use MaxPacketSize for setting up isochronous pipe for recording.
This fixes dropping samples.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Feb 23 04:20:06 2003 UTC (23 years, 8 months ago) by simonb
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -4 lines
Remove assigned-to but not used variable.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Feb 16 18:16:07 2003 UTC (23 years, 9 months ago) by augustss
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +52 -33 lines
Rework the mixer controls somewhat and give the controls in a FEATURE
unit alias names so normal mixer programs can access them.

Revision 1.41.2.9: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:38:50 2002 UTC (23 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.41.2.8: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.8: +19 -19 lines
Sync with HEAD.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Dec 2 02:36:14 2002 UTC (23 years, 11 months ago) by toshii
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +21 -21 lines
Don't stuff extra data when we receive data less than expected.
This situation is normal for asynchronous sources, and the byte stuffing
algorithm used generates unpleasant noise.
Also take care of scattered data buffer and do memcpy correctly.

This should fix PR kern/16385.

Revision 1.41.2.8: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:44:30 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.41.2.7: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.7: +4 -4 lines
Catch up to -current.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Oct 6 10:01:08 2002 UTC (24 years, 1 month ago) by kristerw
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -4 lines
Correct test for busy-ness when setting parameters.

Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:49:05 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.42.2.2: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.2: +176 -167 lines
catch up with -current on kqueue branch

Revision 1.41.2.7: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:46:53 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.41.2.6: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.6: +6 -3 lines
Catch up to -current.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Thu May 30 14:47:33 2002 UTC (24 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +4 -2 lines
Catch up with -current.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat May 18 15:14:39 2002 UTC (24 years, 6 months ago) by kent
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, kqueue-base, gehenna-devsw-base
Branch point for: netbsd-1-6
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -2 lines
USB_ATTACH: Initialize sc_plachan.altidx and sc_recchan.altidx with -1.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Apr 20 17:36:16 2002 UTC (24 years, 7 months ago) by kent
Branches: MAIN
Branch point for: gehenna-devsw
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
uaudio_set_params():
  Correct a parameter of uaudio_chan_init() for recording.
  This change fixes kern/16385.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Apr 20 17:04:32 2002 UTC (24 years, 7 months ago) by kent
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -2 lines
Clear the busy flag of an alt when a channel is closed.

Revision 1.41.2.6: download - view: text, markup, annotated - select for diffs
Wed Apr 17 00:06:14 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.41.2.5: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.5: +1 -1 lines
Catch up to -current.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Apr 5 16:16:43 2002 UTC (24 years, 7 months ago) by toshii
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +1 -1 lines
Make recording functional again.

Revision 1.41.2.5: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:47:32 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.41.2.4: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.4: +347 -166 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Mar 23 17:17:11 2002 UTC (24 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +86 -86 lines
whitespace and folding fix.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Mar 23 16:23:20 2002 UTC (24 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
Decrease UAUDIO_NFRAMES: 20 -> 10
This change eliminates noise of 6ch audio.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Mar 18 14:06:08 2002 UTC (24 years, 8 months ago) by kent
Branches: MAIN
CVS tags: eeh-devprop-base, eeh-devprop
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +19 -13 lines
Create new uaudio_chan_init() and move sample_size/bytes_per_frame
initialization to it from uaudio_chan_set_param().  uaudio_set_params()
calls uaudio_chan_init().
These are required because bytes_per_frame is used in
uaudio_round_blocksize(), which is called before uaudio_set_params().

Noise of 4ch playing disappears by this change.  6ch playing still has
cyclic noise.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Mar 17 16:14:22 2002 UTC (24 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +35 -50 lines
aurateconv.c:
  - Simplify the source
  - Accept any convresions such that sample_rate < hw_sample_rate

uaudio.c:
  - Request the above conversion.  This is needed for 4ch-only devices to
    play monaural/stereo data.

Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:01:36 2002 UTC (24 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.1: +364 -148 lines
Catch up with -current.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Mar 15 17:20:14 2002 UTC (24 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +40 -25 lines
uaudio_set_params(): Set conversions:
  - 8bit slinear/ulinear to 16bit slinear for playing
  - 16bit slinear to 8bit slinear/ulinear for recording

Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Mar 12 15:12:03 2002 UTC (24 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +14 -9 lines
Accept 24bit precision.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Mar 7 14:37:03 2002 UTC (24 years, 8 months ago) by kent
Branches: MAIN
CVS tags: newlock-base, newlock
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +215 -45 lines
Sampling rate and mono-stereo conversion described in
http://mail-index.netbsd.org/tech-kern/2002/03/04/0005.html

auconv.c: Add conversion functions

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

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

audiovar.h: Add conversion buffers, etc.

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

Revision 1.41.2.4: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:14:29 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.41.2.3: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.3: +152 -111 lines
Catch up to -current.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Feb 19 14:07:26 2002 UTC (24 years, 9 months ago) by simonb
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
Fix indentation botch.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Feb 14 12:55:51 2002 UTC (24 years, 9 months ago) by kent
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +11 -11 lines
uaudio_set_params() for mulaw:
Give priority to 16bit again in the case the device has no hardware
support for mulaw.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Feb 12 19:52:43 2002 UTC (24 years, 9 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +103 -66 lines
split the channel stuff into record and play parts, so that this driver is
full duplex, independent

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Feb 11 07:10:36 2002 UTC (24 years, 9 months ago) by kent
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +28 -26 lines
uaudio_chan_set_param:
  Take care of param->factor.

uaudio_set_params:
  Fix a problem of precision matching for mulaw/alaw with 16bit.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Feb 10 06:37:45 2002 UTC (24 years, 9 months ago) by kent
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +24 -22 lines
uaudio_set_params:
  Use slinear16_to_mulaw_le() if ULAW recording is requested and the device
supports neither signed 8bit nor unsigned 8bit and supports 16bit.

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:58:54 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +5 -1 lines
Sync kqueue branch with -current.

Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:16:16 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.2: +4 -1 lines
Catch up to -current.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Nov 13 06:24:54 2001 UTC (25 years ago) by lukem
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -1 lines
add RCSIDs

Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:28 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +2 -1 lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:11:35 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +2 -1 lines
Catch up to -current.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Oct 3 00:04:53 2001 UTC (25 years, 1 month ago) by augustss
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -1 lines
Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:06:20 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +15 -15 lines
Catch up to -current.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat May 12 19:18:57 2001 UTC (25 years, 6 months ago) by christos
Branches: MAIN
CVS tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, kqueue
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +15 -15 lines
Don't leak memory in case of a realloc failure.
Reported by: grendel@heorot.stanford.edu (Ted U)

Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:16:24 2001 UTC (25 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4.2.3: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.3: +17 -10 lines
Sync with HEAD.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jan 23 14:04:13 2001 UTC (25 years, 9 months ago) by augustss
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4 lines
Make sure driver attach/detach events are generated in a consistent manner.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jan 21 00:07:13 2001 UTC (25 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +14 -7 lines
Cosmetic changes.

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:38 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4.2.2: preferred, colored
Changes since revision 1.4.2.2: +0 -1 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jan 6 12:12:24 2001 UTC (25 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +1 -2 lines
Don't #define UAUDIO_DEBUG here.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:30 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4.2.1: preferred, colored
Changes since revision 1.4.2.1: +219 -153 lines
Sync with HEAD

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Jan 4 07:05:00 2001 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +137 -119 lines
Set the play and record parameters separately.
If the device is unidirectional, just ignore parameters in the other direction.
(XXX We need a better way of dealing with this.)
Only set curaltidx if we're setting usemode.
This makes both the Altec Lansing speaker set and the Telex bidirectional frob
work again.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Jan 4 06:20:49 2001 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +48 -40 lines
Several things:
* Only match an alternate which is in the same direction.
* Use 16-bit ulaw and alaw conversions for output, if possible.
* Store the interface handle in the `alternate' table, so we use the right
  interface when creating pipes for devices with both play and record.
Record doesn't seem to actually return any data from the Telex frob, but at
least it doesn't crash or return EIO now.

XXXXXXXX
This is a big f*cking hack.  Play and record need to be separated completely
if this code is ever going to even pretend to support full duplex.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Jan 4 05:25:24 2001 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -1 lines
No really, this is half-duplex for now.  Lame.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Jan 4 03:53:09 2001 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +12 -7 lines
Make some vague attempt to handle devices that do both input and output.  This
probably needs more work, but at least my Telex frob can play music now.
Also, AUDIO_DEBUG -> UAUDIO_DEBUG.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Dec 29 14:49:28 2000 UTC (25 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +12 -10 lines
Try to get rounding right when setting mixer values.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Dec 29 13:28:41 2000 UTC (25 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +14 -2 lines
Set the mixer delta field.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Dec 29 01:14:15 2000 UTC (25 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -5 lines
Update location of specs.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Dec 28 11:56:22 2000 UTC (25 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +25 -6 lines
Add two more quirks:
  UQ_AU_NO_FRAC for audio devices that cannot handle adjustment for fractional
    sample size.
  UQ_AU_INP_ASYNC for input devices that claim to be adaptive, but are in fact
    asynchronous (an easy mistake to make unless you read the specs carefully :)

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Dec 28 01:01:42 2000 UTC (25 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Make message about ignored endpoint a little clearer.

Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:43:22 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +566 -382 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 6 23:43:38 2000 UTC (26 years, 1 month ago) by augustss
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +7 -7 lines
Pull up 1.28-1.29.  Make 16-bit only speakers work.
Approved by thorpej.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Oct 5 01:35:07 2000 UTC (26 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +7 -7 lines
Allow 16-bit only speakers to work.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Aug 24 14:11:09 2000 UTC (26 years, 2 months ago) by augustss
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -1 lines
Add a quirk for audio devices that claim to have an extension unit, but it
can't be manipulated.

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:08:32 2000 UTC (26 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +163 -274 lines
Sync w/ netbsd-1-5-base.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jun 19 11:43:48 2000 UTC (26 years, 5 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
Unswap functiona arguments that got swapped during ANSIfication.  Now
mixer controls work again.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jun 1 14:28:58 2000 UTC (26 years, 5 months ago) by augustss
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +163 -274 lines
Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri May 19 04:34:42 2000 UTC (26 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
NULL != 0

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Apr 27 15:26:47 2000 UTC (26 years, 6 months ago) by augustss
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Change my email address.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Mar 29 18:24:53 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -1 lines
Some OpenBSD portability fixes.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Mar 29 01:47:25 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
Do not use all xfers at the same time, this can cause problems in the HC
drivers.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Mar 27 12:33:55 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +52 -52 lines
Change (almost) all static to Static.  The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Mar 24 13:02:00 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -2 lines
Some more debug when selecting sample rate.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Feb 29 21:37:00 2000 UTC (26 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -7 lines
Distinguish between device and interface classes.
(I finally found a document that said that they were different.)

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Feb 8 18:45:27 2000 UTC (26 years, 9 months ago) by augustss
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Use NULL instead of 0.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Feb 2 13:18:45 2000 UTC (26 years, 9 months ago) by augustss
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -1 lines
Generate usb events on attach and detach.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jan 16 09:32:56 2000 UTC (26 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +46 -1 lines
Start of implementation of UpDown processing unit control.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jan 6 21:13:55 2000 UTC (26 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +34 -7 lines
Implement the ENABLE control for processig units.

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:41 1999 UTC (26 years, 10 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +424 -217 lines
Pull up to last week's -current.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Dec 6 21:06:59 1999 UTC (26 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -9 lines
Cosmetics and a couple of diagnostic messages.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Nov 26 01:38:40 1999 UTC (26 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +26 -4 lines
Generate an error message when attachment fails.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Nov 18 23:32:27 1999 UTC (27 years ago) by augustss
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Cosmetic changes and some small improvements.  From FreeBSD and Nick Hibma.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Nov 17 23:00:50 1999 UTC (27 years ago) by augustss
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -12 lines
A few more purely stylistic changes that I missed in the last round.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Nov 15 22:04:14 1999 UTC (27 years ago) by augustss
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -2 lines
Add quirk for speakers that pretend to support the audio class, but don't.
Add quirk for mice that geberate spurious button up events (XXX fix not fully
implemented).

Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:41:32 1999 UTC (27 years ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +370 -187 lines
Sync with -current

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Nov 12 00:34:57 1999 UTC (27 years ago) by augustss
Branches: MAIN
CVS tags: fvdl-softdep-base
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +160 -154 lines
A number of stylistic changes to increase readability (many suggested
by Nick Hibma):
	use NULL not 0
	declare all local definitions static
	rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
	rename s/r/err/
	use implicit test for no err
	KNF

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Nov 9 16:52:14 1999 UTC (27 years ago) by augustss
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +14 -1 lines
Make detach wait for interrupts to finish.
Bail out in interrupt routine when device is dying.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Nov 2 16:54:27 1999 UTC (27 years ago) by augustss
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -4 lines
Print a little more information when attaching.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Nov 1 18:12:21 1999 UTC (27 years ago) by augustss
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
Make little endian and big endian version of all functions
that deal with 16 bit samples.  Let the drivers decide which ones
to use.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Oct 25 10:16:49 1999 UTC (27 years ago) by augustss
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +207 -50 lines
Add some code for recording, still untested.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Oct 14 01:18:40 1999 UTC (27 years, 1 month ago) by augustss
Branches: MAIN
Branch point for: thorpej_scsipi, fvdl-softdep
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -10 lines
Give uaudio its own debug flag.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Oct 13 20:13:29 1999 UTC (27 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +12 -11 lines
Format tag and format type tests were interchanged.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Sep 12 08:23:42 1999 UTC (27 years, 2 months ago) by augustss
Branches: MAIN
Branch point for: wrstuden-devbsize
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -3 lines
Add a flag in the request to determine if the data copying is done by the
driver or the usbdi layer.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Sep 9 12:28:25 1999 UTC (27 years, 2 months ago) by augustss
Branches: MAIN
An EXPERIMENTAL audio driver.  It still needs work, e.g., in the mixer
part to give reasonable names to the mixer controls.

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>