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


Default branch: MAIN


Revision 1.183 / (download) - annotate - [select for diffs], Sun Feb 4 05:43:06 2024 UTC (2 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.182: +3 -3 lines
Diff to previous 1.182 (colored) to selected 1.111.6.1 (colored)

update my email address.

Revision 1.182 / (download) - annotate - [select for diffs], Mon Aug 14 21:17:08 2023 UTC (8 months ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored) to selected 1.111.6.1 (colored)

s/streadming/streaming/ in debug message.

Revision 1.181 / (download) - annotate - [select for diffs], Sun Apr 30 08:35:52 2023 UTC (11 months, 2 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored) to selected 1.111.6.1 (colored)

xhci doesn't like 80 packets per USB interval, but 40 seems to be fine
for xhci (and ehci).

Revision 1.180 / (download) - annotate - [select for diffs], Sun Apr 23 06:13:35 2023 UTC (11 months, 3 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.179: +27 -4 lines
Diff to previous 1.179 (colored) to selected 1.111.6.1 (colored)

Weed out duplicate sample rates and add comment about UAC2 clocks.

Revision 1.179 / (download) - annotate - [select for diffs], Sun Apr 16 19:26:20 2023 UTC (12 months ago) by mlelstv
Branch: MAIN
Changes since 1.178: +602 -291 lines
Diff to previous 1.178 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Apr 10 15:14:50 2023 UTC (12 months ago) by mlelstv
Branch: MAIN
Changes since 1.177: +283 -89 lines
Diff to previous 1.177 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Apr 3 16:00:17 2023 UTC (12 months, 1 week ago) by mlelstv
Branch: MAIN
Changes since 1.176: +2 -3 lines
Diff to previous 1.176 (colored) to selected 1.111.6.1 (colored)

Remove unconditional UAUDIO_DEBUG again.

Revision 1.176 / (download) - annotate - [select for diffs], Mon Apr 3 14:19:09 2023 UTC (12 months, 1 week ago) by mlelstv
Branch: MAIN
Changes since 1.175: +28 -24 lines
Diff to previous 1.175 (colored) to selected 1.111.6.1 (colored)

Fix UAUDIO_DEBUG build.

Revision 1.175 / (download) - annotate - [select for diffs], Sun Apr 2 14:42:55 2023 UTC (12 months, 2 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.174: +704 -168 lines
Diff to previous 1.174 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Jun 28 05:22:13 2022 UTC (21 months, 2 weeks ago) by skrll
Branch: MAIN
CVS Tags: netbsd-10-base, 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
Changes since 1.173: +3 -3 lines
Diff to previous 1.173 (colored) to selected 1.111.6.1 (colored)

Fix a null-deref

lgtm from mlelstv.

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

Revision 1.173 / (download) - annotate - [select for diffs], Sat Nov 13 10:34:00 2021 UTC (2 years, 5 months ago) by mlelstv
Branch: MAIN
Changes since 1.172: +32 -4 lines
Diff to previous 1.172 (colored) to selected 1.111.6.1 (colored)

Release interrupt lock while allocating ressources in trigger
functions.

Also be more verbose about errors.

Revision 1.169.4.2 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:32 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.169.4.1: +138 -85 lines
Diff to previous 1.169.4.1 (colored) to branchpoint 1.169 (colored) next main 1.170 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.172 / (download) - annotate - [select for diffs], Sat Jun 19 05:50:48 2021 UTC (2 years, 9 months ago) by mlelstv
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.171: +138 -85 lines
Diff to previous 1.171 (colored) to selected 1.111.6.1 (colored)

Relax identification of interfaces and endpoints. Now also attaches
headsets like Jabra Evolve 75.

Revision 1.169.4.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:30 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.169: +14 -9 lines
Diff to previous 1.169 (colored) to selected 1.111.6.1 (colored)

Sync w/ HEAD.

Revision 1.171 / (download) - annotate - [select for diffs], Sun Jun 13 07:51:09 2021 UTC (2 years, 10 months ago) by mlelstv
Branch: MAIN
Changes since 1.170: +8 -6 lines
Diff to previous 1.170 (colored) to selected 1.111.6.1 (colored)

Don't use aprint* for non-autoconf errors. Also print status value.

Revision 1.170 / (download) - annotate - [select for diffs], Sun Jun 13 07:49:43 2021 UTC (2 years, 10 months ago) by mlelstv
Branch: MAIN
Changes since 1.169: +8 -5 lines
Diff to previous 1.169 (colored) to selected 1.111.6.1 (colored)

Don't ignore detach errors from children.

Revision 1.165.4.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:50 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.165.4.1: +6 -5 lines
Diff to previous 1.165.4.1 (colored) to branchpoint 1.165 (colored) next main 1.166 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.161.2.2 / (download) - annotate - [select for diffs], Sun Mar 7 18:43:25 2021 UTC (3 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.161.2.1: +4 -3 lines
Diff to previous 1.161.2.1 (colored) to branchpoint 1.161 (colored) next main 1.162 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Feb 15 13:39:18 2021 UTC (3 years, 2 months ago) by isaki
Branch: 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
Changes since 1.168: +4 -3 lines
Diff to previous 1.168 (colored) to selected 1.111.6.1 (colored)

Fix my copy-and-paste bug in rev1.160.
This fixes recording sample dropout.

Revision 1.168 / (download) - annotate - [select for diffs], Sun Jan 10 15:50:16 2021 UTC (3 years, 3 months ago) by ryoon
Branch: MAIN
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored) to selected 1.111.6.1 (colored)

Add whitespace after comma

Revision 1.167 / (download) - annotate - [select for diffs], Sun Jan 10 13:17:44 2021 UTC (3 years, 3 months ago) by ryoon
Branch: MAIN
Changes since 1.166: +3 -3 lines
Diff to previous 1.166 (colored) to selected 1.111.6.1 (colored)

Fix a typo in debug message

Revision 1.165.4.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:02 2021 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.165: +26 -9 lines
Diff to previous 1.165 (colored) to selected 1.111.6.1 (colored)

Sync w/ HEAD.

Revision 1.166 / (download) - annotate - [select for diffs], Tue Dec 29 08:04:59 2020 UTC (3 years, 3 months ago) by jdc
Branch: MAIN
Changes since 1.165: +26 -9 lines
Diff to previous 1.165 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Apr 13 08:04:49 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.156.2.2: +1 -2 lines
Diff to previous 1.156.2.2 (colored) to branchpoint 1.156 (colored) next main 1.157 (colored) to selected 1.111.6.1 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.156.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:13 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.156.2.1: +21 -21 lines
Diff to previous 1.156.2.1 (colored) to branchpoint 1.156 (colored) to selected 1.111.6.1 (colored)

Merge changes from current as of 20200406

Revision 1.165 / (download) - annotate - [select for diffs], Sat Mar 14 02:35:33 2020 UTC (4 years, 1 month ago) by christos
Branch: 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
Changes since 1.164: +14 -14 lines
Diff to previous 1.164 (colored) to selected 1.111.6.1 (colored)

revert the 0x% -> %# change for fixed width formats pointed out by uwe.

Revision 1.164 / (download) - annotate - [select for diffs], Fri Mar 13 18:17:40 2020 UTC (4 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.163: +23 -23 lines
Diff to previous 1.163 (colored) to selected 1.111.6.1 (colored)

PR/55068: sc.dying: Fix printf formats:
- no %s/%p for kernel log
- 0x% -> %#
- always %j for kernel log

Revision 1.163 / (download) - annotate - [select for diffs], Sun Dec 1 08:27:54 2019 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.162: +12 -12 lines
Diff to previous 1.162 (colored) to selected 1.111.6.1 (colored)

localify

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Tue Nov 19 12:56:48 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.161: +3 -4 lines
Diff to previous 1.161 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Nov 4 05:46:39 2019 UTC (4 years, 5 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.161: +3 -4 lines
Diff to previous 1.161 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Jun 10 22:07:34 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.156: +56 -152 lines
Diff to previous 1.156 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

Revision 1.161 / (download) - annotate - [select for diffs], Thu Jun 6 12:59:33 2019 UTC (4 years, 10 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.160: +16 -3 lines
Diff to previous 1.160 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Wed May 8 13:40:19 2019 UTC (4 years, 11 months ago) by isaki
Branch: MAIN
Changes since 1.159: +27 -124 lines
Diff to previous 1.159 (colored) to selected 1.111.6.1 (colored)

Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c         -> dev/audio/audio.c (rewritten)
- dev/audiovar.h      -> dev/audio/audiovar.h
- dev/audio_dai.h     -> dev/audio/audio_dai.h
- dev/audio_if.h      -> dev/audio/audio_if.h
- dev/audiobell.c     -> dev/audio/audiobell.c
- dev/audiobellvar.h  -> dev/audio/audiobellvar.h
- dev/mulaw.[ch]      -> dev/audio/mulaw.[ch] + dev/audio/alaw.c

Revision 1.159 / (download) - annotate - [select for diffs], Sun May 5 03:17:54 2019 UTC (4 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.158: +3 -3 lines
Diff to previous 1.158 (colored) to selected 1.111.6.1 (colored)

remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h

Revision 1.158.2.4 / (download) - annotate - [select for diffs], Sat May 4 07:20:11 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.158.2.3: +3 -3 lines
Diff to previous 1.158.2.3 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.111.6.1 (colored)

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

Revision 1.158.2.3 / (download) - annotate - [select for diffs], Wed May 1 13:45:52 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.158.2.2: +3 -3 lines
Diff to previous 1.158.2.2 (colored) to branchpoint 1.158 (colored) to selected 1.111.6.1 (colored)

set_params -> set_format in comment.

Revision 1.158.2.2 / (download) - annotate - [select for diffs], Wed May 1 13:09:33 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.158.2.1: +2 -19 lines
Diff to previous 1.158.2.1 (colored) to branchpoint 1.158 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Wed May 1 12:42:14 2019 UTC (4 years, 11 months ago) by isaki
Branch: isaki-audio2
Changes since 1.158: +25 -105 lines
Diff to previous 1.158 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Mar 16 12:09:58 2019 UTC (5 years, 1 month ago) by isaki
Branch: MAIN
CVS Tags: isaki-audio2-base
Branch point for: isaki-audio2
Changes since 1.157: +18 -30 lines
Diff to previous 1.157 (colored) to selected 1.111.6.1 (colored)

Use C99 style struct initializer to audio_hw_if.

Revision 1.155.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:04 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.155.2.1: +4 -4 lines
Diff to previous 1.155.2.1 (colored) to branchpoint 1.155 (colored) next main 1.156 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

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

Revision 1.157 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:34 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.156: +4 -4 lines
Diff to previous 1.156 (colored) to selected 1.111.6.1 (colored)

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

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

HOWEVER!  Some subsystems have

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

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

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

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

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

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

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

Revision 1.155.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:02 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.155: +7 -7 lines
Diff to previous 1.155 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

Revision 1.156 / (download) - annotate - [select for diffs], Sat Jun 16 08:24:55 2018 UTC (5 years, 10 months ago) by nakayama
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.155: +7 -7 lines
Diff to previous 1.155 (colored) to selected 1.111.6.1 (colored)

Change aprint_error_dev to aprint_normal_dev for normal completion case.

Revision 1.133.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:34 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.133.2.3: +157 -128 lines
Diff to previous 1.133.2.3 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored) to selected 1.111.6.1 (colored)

update from HEAD

Revision 1.140.2.18 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:28 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.17: +24 -20 lines
Diff to previous 1.140.2.17 (colored) to branchpoint 1.140 (colored) next main 1.141 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

Revision 1.155 / (download) - annotate - [select for diffs], Wed Jul 26 07:45:05 2017 UTC (6 years, 8 months ago) by maya
Branch: 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
Changes since 1.154: +8 -4 lines
Diff to previous 1.154 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Jun 10 06:23:01 2017 UTC (6 years, 10 months ago) by snj
Branch: netbsd-8
CVS Tags: 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
Changes since 1.153: +8 -6 lines
Diff to previous 1.153 (colored) next main 1.154 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri Jun 9 10:11:20 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.153: +8 -6 lines
Diff to previous 1.153 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Jun 1 02:45:12 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: netbsd-8-base
Branch point for: netbsd-8
Changes since 1.152: +2 -12 lines
Diff to previous 1.152 (colored) to selected 1.111.6.1 (colored)

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

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

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

Revision 1.152 / (download) - annotate - [select for diffs], Tue May 23 04:58:49 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
Changes since 1.151: +2 -6 lines
Diff to previous 1.151 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri May 19 09:58:28 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
Changes since 1.150: +10 -6 lines
Diff to previous 1.150 (colored) to selected 1.111.6.1 (colored)

Fix locking around calls to [p/r]int with a patch from skrll@.

Revision 1.150 / (download) - annotate - [select for diffs], Fri May 19 04:20:45 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
Changes since 1.149: +6 -6 lines
Diff to previous 1.149 (colored) to selected 1.111.6.1 (colored)

Release sc_intr_lock between successive calls to audio[p/r]int to allow
mixing to occur.

Revision 1.149 / (download) - annotate - [select for diffs], Fri May 19 04:16:06 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
Changes since 1.148: +6 -2 lines
Diff to previous 1.148 (colored) to selected 1.111.6.1 (colored)

Fix locking botch.  Ensure that sc_lock is still held when exiting
trigger_[input/output].

Revision 1.147.8.1 / (download) - annotate - [select for diffs], Fri May 19 00:22:57 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.147: +6 -2 lines
Diff to previous 1.147 (colored) next main 1.148 (colored) to selected 1.111.6.1 (colored)

Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)

Revision 1.148 / (download) - annotate - [select for diffs], Tue May 16 23:49:43 2017 UTC (6 years, 11 months ago) by nat
Branch: MAIN
CVS Tags: prg-localcount2-base3
Changes since 1.147: +6 -2 lines
Diff to previous 1.147 (colored) to selected 1.111.6.1 (colored)

Drop sc_lock whilst doing uaudio_chan_open uaudio[pr]transfer.
uaudio now works again.

Revision 1.139.4.1 / (download) - annotate - [select for diffs], Wed Apr 5 19:54:19 2017 UTC (7 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.139: +143 -118 lines
Diff to previous 1.139 (colored) next main 1.140 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Sep 6 20:33:09 2016 UTC (7 years, 7 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.139: +143 -118 lines
Diff to previous 1.139 (colored) next main 1.140 (colored) to selected 1.111.6.1 (colored)

First pass at netbsd-7 updated with USB code from HEAD

Revision 1.140.2.17 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:16 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.16: +4 -6 lines
Diff to previous 1.140.2.16 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

Revision 1.147 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:42 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: 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
Changes since 1.146: +4 -6 lines
Diff to previous 1.146 (colored) to selected 1.111.6.1 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Apr 23 10:15:32 2016 UTC (7 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.145: +107 -95 lines
Diff to previous 1.145 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Wed Mar 23 22:18:30 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.15: +4 -3 lines
Diff to previous 1.140.2.15 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Whitespace / Update a comment

Revision 1.140.2.15 / (download) - annotate - [select for diffs], Wed Mar 23 22:11:20 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.14: +21 -27 lines
Diff to previous 1.140.2.14 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

sc_intr_lock is protecting against usb callbacks so can be IPL_SOFTUSB

Revision 1.140.2.14 / (download) - annotate - [select for diffs], Wed Mar 23 22:04:18 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.13: +3 -3 lines
Diff to previous 1.140.2.13 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Whitespace

Revision 1.140.2.13 / (download) - annotate - [select for diffs], Sun Mar 13 07:11:01 2016 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.12: +3 -3 lines
Diff to previous 1.140.2.12 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

KNF (on the right branch this time)

Revision 1.145 / (download) - annotate - [select for diffs], Sun Mar 13 07:01:43 2016 UTC (8 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.144: +3 -3 lines
Diff to previous 1.144 (colored) to selected 1.111.6.1 (colored)

KNF

Revision 1.140.2.12 / (download) - annotate - [select for diffs], Mon Dec 28 09:26:33 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.11: +23 -7 lines
Diff to previous 1.140.2.11 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Oct 6 21:32:15 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.10: +26 -27 lines
Diff to previous 1.140.2.10 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Sep 29 11:38:29 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.9: +4 -4 lines
Diff to previous 1.140.2.9 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

sizeof KNF

Revision 1.140.2.9 / (download) - annotate - [select for diffs], Sat May 9 09:35:20 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.8: +3 -3 lines
Diff to previous 1.140.2.8 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Use NULL not 0 for pointer comparison

Revision 1.140.2.8 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:13 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.7: +34 -19 lines
Diff to previous 1.140.2.7 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

Revision 1.140.2.7 / (download) - annotate - [select for diffs], Sat Mar 21 11:33:37 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.6: +15 -15 lines
Diff to previous 1.140.2.6 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Add prefixes to attach_arg structure member names. No functional change.

Revision 1.140.2.6 / (download) - annotate - [select for diffs], Thu Mar 19 17:26:43 2015 UTC (9 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.5: +14 -14 lines
Diff to previous 1.140.2.5 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads

Revision 1.144 / (download) - annotate - [select for diffs], Mon Jan 26 20:56:44 2015 UTC (9 years, 2 months ago) by gson
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.143: +5 -5 lines
Diff to previous 1.143 (colored) to selected 1.111.6.1 (colored)

Fix URLs of USB audio specs

Revision 1.143 / (download) - annotate - [select for diffs], Mon Jan 26 20:37:44 2015 UTC (9 years, 2 months ago) by gson
Branch: MAIN
Changes since 1.142: +6 -2 lines
Diff to previous 1.142 (colored) to selected 1.111.6.1 (colored)

Don't crash with a division by zero if a bControlSize field is 0.

Revision 1.142 / (download) - annotate - [select for diffs], Mon Jan 26 20:32:17 2015 UTC (9 years, 2 months ago) by gson
Branch: MAIN
Changes since 1.141: +23 -16 lines
Diff to previous 1.141 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Jan 26 09:25:08 2015 UTC (9 years, 2 months ago) by gson
Branch: MAIN
Changes since 1.140: +6 -2 lines
Diff to previous 1.140 (colored) to selected 1.111.6.1 (colored)

Include opt_usb.h so that "options UAUDIO_DEBUG" works.

Revision 1.140.2.5 / (download) - annotate - [select for diffs], Sun Dec 7 20:42:11 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.4: +3 -4 lines
Diff to previous 1.140.2.4 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Fix a kmem_free size. From Takahiro HAYASHI

Revision 1.140.2.4 / (download) - annotate - [select for diffs], Wed Dec 3 14:18:07 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.3: +13 -10 lines
Diff to previous 1.140.2.3 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

Replace malloc(9) with kmem(9)

Revision 1.140.2.3 / (download) - annotate - [select for diffs], Wed Dec 3 12:52:07 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.2: +3 -3 lines
Diff to previous 1.140.2.2 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

The grand renaming of structure members.

No functional change.

Revision 1.140.2.2 / (download) - annotate - [select for diffs], Tue Dec 2 09:00:34 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140.2.1: +4 -4 lines
Diff to previous 1.140.2.1 (colored) to branchpoint 1.140 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Nov 30 12:18:58 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.140: +4 -4 lines
Diff to previous 1.140 (colored) to selected 1.111.6.1 (colored)

Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.

No functional change.

Revision 1.140 / (download) - annotate - [select for diffs], Mon Sep 22 14:25:32 2014 UTC (9 years, 6 months ago) by nat
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.139: +3 -3 lines
Diff to previous 1.139 (colored) to selected 1.111.6.1 (colored)

Fix trouble setting recording parameters.

Addresses PR 48394.

This commit was approved by christos@

Revision 1.133.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:51 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.133.2.2: +5 -7 lines
Diff to previous 1.133.2.2 (colored) to branchpoint 1.133 (colored) to selected 1.111.6.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.120.8.5 / (download) - annotate - [select for diffs], Thu May 22 11:40:37 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.120.8.4: +21 -23 lines
Diff to previous 1.120.8.4 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored) to selected 1.111.6.1 (colored)

sync with head.

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

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

Revision 1.136.2.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:47 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.136.2.1: +5 -7 lines
Diff to previous 1.136.2.1 (colored) to branchpoint 1.136 (colored) next main 1.137 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.139 / (download) - annotate - [select for diffs], Fri Sep 27 13:34:48 2013 UTC (10 years, 6 months ago) by skrll
Branch: 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
Changes since 1.138: +2 -4 lines
Diff to previous 1.138 (colored) to selected 1.111.6.1 (colored)

Don't call mutex_spin_exit on already released lock.

Revision 1.138 / (download) - annotate - [select for diffs], Sun Sep 15 15:04:47 2013 UTC (10 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.137: +5 -5 lines
Diff to previous 1.137 (colored) to selected 1.111.6.1 (colored)

Avoid unused variable warnings

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:27 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.136: +4 -4 lines
Diff to previous 1.136 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.137 / (download) - annotate - [select for diffs], Thu Aug 15 15:26:50 2013 UTC (10 years, 8 months ago) by aymeric
Branch: MAIN
Changes since 1.136: +4 -4 lines
Diff to previous 1.136 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Jun 23 06:20:22 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.133.2.1: +15 -15 lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored) to selected 1.111.6.1 (colored)

resync from head

Revision 1.136 / (download) - annotate - [select for diffs], Sun May 12 09:54:55 2013 UTC (10 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.135: +15 -15 lines
Diff to previous 1.135 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Feb 25 00:29:38 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.133: +6 -5 lines
Diff to previous 1.133 (colored) to selected 1.111.6.1 (colored)

resync with head

Revision 1.135 / (download) - annotate - [select for diffs], Thu Jan 24 08:22:38 2013 UTC (11 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: khorben-n900, agc-symver-base, agc-symver
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored) to selected 1.111.6.1 (colored)

oops, turn uaudiodebug off by default again.

Revision 1.120.8.4 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:13 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.120.8.3: +5 -4 lines
Diff to previous 1.120.8.3 (colored) to branchpoint 1.120 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.134 / (download) - annotate - [select for diffs], Tue Jan 22 12:40:43 2013 UTC (11 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.133: +5 -4 lines
Diff to previous 1.133 (colored) to selected 1.111.6.1 (colored)

- 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) - annotate - [select for diffs], Tue Oct 30 17:22:07 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.120.8.2: +14 -34 lines
Diff to previous 1.120.8.2 (colored) to branchpoint 1.120 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.133 / (download) - annotate - [select for diffs], Sun Jun 10 06:15:53 2012 UTC (11 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.132: +14 -34 lines
Diff to previous 1.132 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Jun 2 11:09:29 2012 UTC (11 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.124.2.5: +4 -8 lines
Diff to previous 1.124.2.5 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored) to selected 1.111.6.1 (colored)

sync to latest -current.

Revision 1.120.8.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:06 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.120.8.1: +8 -10 lines
Diff to previous 1.120.8.1 (colored) to branchpoint 1.120 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.132 / (download) - annotate - [select for diffs], Fri May 18 07:52:54 2012 UTC (11 years, 11 months ago) by jdc
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.131: +4 -8 lines
Diff to previous 1.131 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Apr 29 23:05:01 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.124.2.4: +6 -4 lines
Diff to previous 1.124.2.4 (colored) to branchpoint 1.124 (colored) to selected 1.111.6.1 (colored)

sync to latest -current.

Revision 1.114.6.2 / (download) - annotate - [select for diffs], Sun Apr 22 03:13:21 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.114.6.1: +6 -4 lines
Diff to previous 1.114.6.1 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Apr 22 01:31:48 2012 UTC (11 years, 11 months ago) by jakllsch
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.130: +6 -4 lines
Diff to previous 1.130 (colored) to selected 1.111.6.1 (colored)

Use usbd_get_device_descriptor() instead of groping for it directly
in the usbd_device struct.

Revision 1.114.6.1 / (download) - annotate - [select for diffs], Sat Apr 21 15:57:27 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-5
Changes since 1.114: +12 -18 lines
Diff to previous 1.114 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Apr 17 00:08:07 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.120: +222 -144 lines
Diff to previous 1.120 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.124.2.4 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:34 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.124.2.3: +8 -2 lines
Diff to previous 1.124.2.3 (colored) to branchpoint 1.124 (colored) to selected 1.111.6.1 (colored)

sync to latest -current.

Revision 1.130 / (download) - annotate - [select for diffs], Thu Mar 15 18:40:32 2012 UTC (12 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base8
Changes since 1.129: +8 -2 lines
Diff to previous 1.129 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Feb 25 13:17:16 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.124.2.2: +8 -12 lines
Diff to previous 1.124.2.2 (colored) to branchpoint 1.124 (colored) to selected 1.111.6.1 (colored)

remove remaining splusb() calls, update some comments.

Revision 1.124.2.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:42 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.124.2.1: +2 -6 lines
Diff to previous 1.124.2.1 (colored) to branchpoint 1.124 (colored) to selected 1.111.6.1 (colored)

sync to -current.

Revision 1.129 / (download) - annotate - [select for diffs], Fri Feb 24 06:48:24 2012 UTC (12 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.128: +2 -6 lines
Diff to previous 1.128 (colored) to selected 1.111.6.1 (colored)

remove any remnants of freebsd/openbsd code.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Dec 23 00:51:44 2011 UTC (12 years, 3 months ago) by jakllsch
Branch: 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
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored) to selected 1.111.6.1 (colored)

Revert previous due to active usbmp branch(es).

Revision 1.127 / (download) - annotate - [select for diffs], Thu Dec 22 20:07:00 2011 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored) to selected 1.111.6.1 (colored)

Adjust-away inconsistent and trailing whitespace.

Revision 1.126 / (download) - annotate - [select for diffs], Tue Dec 13 12:26:32 2011 UTC (12 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.125: +2 -6 lines
Diff to previous 1.125 (colored) to selected 1.111.6.1 (colored)

- 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) - annotate - [select for diffs], Fri Dec 9 05:03:18 2011 UTC (12 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.124: +6 -2 lines
Diff to previous 1.124 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri Dec 9 01:53:00 2011 UTC (12 years, 4 months ago) by mrg
Branch: jmcneill-usbmp
CVS Tags: jmcneill-usbmp-pre-base2
Changes since 1.124: +8 -24 lines
Diff to previous 1.124 (colored) to selected 1.111.6.1 (colored)

- 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) - annotate - [select for diffs], Sun Nov 27 07:36:54 2011 UTC (12 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.123: +7 -4 lines
Diff to previous 1.123 (colored) to selected 1.111.6.1 (colored)

also apply the previous spin mutex hack to uaudio_trigger_input()

Revision 1.123 / (download) - annotate - [select for diffs], Sun Nov 27 04:32:41 2011 UTC (12 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.122: +4 -2 lines
Diff to previous 1.122 (colored) to selected 1.111.6.1 (colored)

drop sc_intr_lock when calling into uaudio_chan_ptransfer().

Revision 1.122 / (download) - annotate - [select for diffs], Sun Nov 27 04:10:38 2011 UTC (12 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.121: +129 -123 lines
Diff to previous 1.121 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Wed Nov 23 23:07:36 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.120: +84 -19 lines
Diff to previous 1.120 (colored) to selected 1.111.6.1 (colored)

Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.

Revision 1.120.10.2 / (download) - annotate - [select for diffs], Tue Nov 22 22:47:11 2011 UTC (12 years, 4 months ago) by jmcneill
Branch: jmcneill-audiomp3
Changes since 1.120.10.1: +2 -3 lines
Diff to previous 1.120.10.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored) to selected 1.111.6.1 (colored)

get rid of unused 'powerstate' callback in audio_hw_if

Revision 1.120.10.1 / (download) - annotate - [select for diffs], Tue Nov 22 02:39:59 2011 UTC (12 years, 4 months ago) by mrg
Branch: jmcneill-audiomp3
Changes since 1.120: +84 -18 lines
Diff to previous 1.120 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Mar 5 20:54:13 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.117: +70 -71 lines
Diff to previous 1.117 (colored) next main 1.118 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.120 / (download) - annotate - [select for diffs], Tue Dec 28 20:11:18 2010 UTC (13 years, 3 months ago) by jakllsch
Branch: 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
Changes since 1.119: +12 -18 lines
Diff to previous 1.119 (colored) to selected 1.111.6.1 (colored)

Address PR#44279.

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

Revision 1.119 / (download) - annotate - [select for diffs], Fri Dec 24 20:49:55 2010 UTC (13 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.118: +11 -9 lines
Diff to previous 1.118 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Nov 6 08:08:37 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.117: +51 -48 lines
Diff to previous 1.117 (colored) next main 1.118 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:23 2010 UTC (13 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.117: +51 -48 lines
Diff to previous 1.117 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Mar 11 15:04:05 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.111.10.2: +13 -19 lines
Diff to previous 1.111.10.2 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.117 / (download) - annotate - [select for diffs], Thu Nov 12 19:50:01 2009 UTC (14 years, 5 months ago) by dyoung
Branch: 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
Changes since 1.116: +8 -15 lines
Diff to previous 1.116 (colored) to selected 1.111.6.1 (colored)

Simplify activation hook.  (sc_dying must die!)

s/device_ptr_t/device_t/.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Sep 23 19:07:19 2009 UTC (14 years, 6 months ago) by plunky
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.115: +7 -6 lines
Diff to previous 1.115 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Wed May 13 17:21:35 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.114: +2 -3 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

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

Revision 1.111.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:21 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.111.10.1: +154 -75 lines
Diff to previous 1.111.10.1 (colored) to branchpoint 1.111 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.114.4.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:39 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.114: +2 -3 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Mar 9 15:59:33 2009 UTC (15 years, 1 month ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.114: +2 -3 lines
Diff to previous 1.114 (colored) to selected 1.111.6.1 (colored)

These don't need <sys/tty.h>.

Revision 1.112.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:11 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.112.2.1: +75 -2 lines
Diff to previous 1.112.2.1 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored) to selected 1.111.6.1 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:05 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.113: +75 -2 lines
Diff to previous 1.113 (colored) next main 1.114 (colored) to selected 1.111.6.1 (colored)

Sync with head.

Revision 1.111.6.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:11 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.111.6.1: +73 -0 lines
Diff to previous 1.111.6.1 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored)

Sync with HEAD.

Revision 1.114 / (download) - annotate - [select for diffs], Sat Jun 28 09:14:56 2008 UTC (15 years, 9 months ago) by kent
Branch: 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
Changes since 1.113: +75 -2 lines
Diff to previous 1.113 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Jun 23 04:31:36 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.112: +81 -74 lines
Diff to previous 1.112 (colored) to selected 1.111.6.1 (colored)

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

Revision 1.111.8.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:20 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.111.8.1: +81 -74 lines
Diff to previous 1.111.8.1 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.111.6.1 / (download) - annotate - [selected], Mon Jun 2 13:23:54 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.111: +81 -81 lines
Diff to previous 1.111 (colored)

Sync with HEAD.

Revision 1.113 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (15 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.112: +81 -74 lines
Diff to previous 1.112 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun May 18 14:13:16 2008 UTC (15 years, 11 months ago) by itohy
Branch: itohy-usb1
Changes since 1.109.8.3: +3 -3 lines
Diff to previous 1.109.8.3 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored) to selected 1.111.6.1 (colored)

Fix typo, which caused panic at the end of recording.

Revision 1.111.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:50 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.111: +2 -9 lines
Diff to previous 1.111 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.111.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:10 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.111: +2 -9 lines
Diff to previous 1.111 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:59 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.111: +2 -9 lines
Diff to previous 1.111 (colored) to selected 1.111.6.1 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.110.12.1 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:53 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.110: +24 -6 lines
Diff to previous 1.110 (colored) next main 1.111 (colored) to selected 1.111.6.1 (colored)

sync with HEAD

Revision 1.99.2.5 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:47 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.4: +24 -6 lines
Diff to previous 1.99.2.4 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.110.18.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:25 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.110: +24 -6 lines
Diff to previous 1.110 (colored) next main 1.111 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Feb 18 05:31:24 2008 UTC (16 years, 2 months ago) by dyoung
Branch: 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
Changes since 1.110: +24 -6 lines
Diff to previous 1.110 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Sep 3 14:39:08 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.3: +11 -17 lines
Diff to previous 1.99.2.3 (colored) to branchpoint 1.99 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.109.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:36 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.109: +6 -12 lines
Diff to previous 1.109 (colored) next main 1.110 (colored) to selected 1.111.6.1 (colored)

Sync with head.

Revision 1.109.8.3 / (download) - annotate - [select for diffs], Mon Jun 18 13:45:13 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.109.8.2: +19 -3 lines
Diff to previous 1.109.8.2 (colored) to branchpoint 1.109 (colored) to selected 1.111.6.1 (colored)

Pullup 1.110 (attach driver per interface) with #ifdef USB_USE_IFATTACH.

Revision 1.109.8.2 / (download) - annotate - [select for diffs], Sat Jun 16 04:11:35 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.109.8.1: +86 -46 lines
Diff to previous 1.109.8.1 (colored) to branchpoint 1.109 (colored) to selected 1.111.6.1 (colored)

- 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) - annotate - [select for diffs], Tue May 22 14:57:39 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Mar 24 14:55:49 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.108.2.1: +6 -12 lines
Diff to previous 1.108.2.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.109.4.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:33 2007 UTC (17 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.109: +6 -12 lines
Diff to previous 1.109 (colored) next main 1.110 (colored) to selected 1.111.6.1 (colored)

Sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Mar 13 13:51:54 2007 UTC (17 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, 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
Changes since 1.109: +6 -12 lines
Diff to previous 1.109 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Feb 27 16:54:05 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.108: +7 -7 lines
Diff to previous 1.108 (colored) to selected 1.111.6.1 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Feb 26 13:15:32 2007 UTC (17 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans, itohy-usb1
Changes since 1.108: +7 -7 lines
Diff to previous 1.108 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Feb 26 09:10:44 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.2: +2 -3 lines
Diff to previous 1.99.2.2 (colored) to branchpoint 1.99 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:29 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.104.2.1: +2 -3 lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored) to selected 1.111.6.1 (colored)

Sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Jan 29 01:52:45 2007 UTC (17 years, 2 months ago) by hubertf
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.107: +2 -3 lines
Diff to previous 1.107 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Dec 30 20:49:38 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99.2.1: +9 -5 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.104.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:17 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.104.4.1: +11 -11 lines
Diff to previous 1.104.4.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:50 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.104: +8 -5 lines
Diff to previous 1.104 (colored) to selected 1.111.6.1 (colored)

Sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:26 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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
Changes since 1.106: +11 -11 lines
Diff to previous 1.106 (colored) to selected 1.111.6.1 (colored)

__unused removal on arguments; approved by core.

Revision 1.104.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:52 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.104: +13 -10 lines
Diff to previous 1.104 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.106 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:59 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.105: +11 -9 lines
Diff to previous 1.105 (colored) to selected 1.111.6.1 (colored)

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

Revision 1.105 / (download) - annotate - [select for diffs], Wed Oct 4 16:00:15 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.104: +4 -3 lines
Diff to previous 1.104 (colored) to selected 1.111.6.1 (colored)

fix empty if

Revision 1.100.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:55:33 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.100: +11 -6 lines
Diff to previous 1.100 (colored) next main 1.101 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.100.8.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:03 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.100.8.2: +3 -2 lines
Diff to previous 1.100.8.2 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.104 / (download) - annotate - [select for diffs], Sun Sep 3 07:07:20 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.103: +3 -2 lines
Diff to previous 1.103 (colored) to selected 1.111.6.1 (colored)

add missing initializer

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:07:44 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.99: +10 -6 lines
Diff to previous 1.99 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.100.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:37:41 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.100.6.1: +4 -2 lines
Diff to previous 1.100.6.1 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored) to selected 1.111.6.1 (colored)

Sync with head.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:30 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.101: +6 -2 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.111.6.1 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.100.8.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:24 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.100.8.1: +6 -2 lines
Diff to previous 1.100.8.1 (colored) to branchpoint 1.100 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.100.10.2 / (download) - annotate - [select for diffs], Thu May 11 23:29:59 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.100.10.1: +4 -2 lines
Diff to previous 1.100.10.1 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored) to selected 1.111.6.1 (colored)

sync with head

Revision 1.103 / (download) - annotate - [select for diffs], Thu May 11 19:09:25 2006 UTC (17 years, 11 months ago) by mrg
Branch: 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
Changes since 1.102: +4 -2 lines
Diff to previous 1.102 (colored) to selected 1.111.6.1 (colored)

in uaudio_process_as() initialise ai.aformat and ai.ifaceh.

Revision 1.100.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:38 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.100: +8 -6 lines
Diff to previous 1.100 (colored) to selected 1.111.6.1 (colored)

Sync with head.

Revision 1.100.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:29 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.100: +8 -6 lines
Diff to previous 1.100 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Apr 14 17:00:55 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.101: +4 -2 lines
Diff to previous 1.101 (colored) to selected 1.111.6.1 (colored)

Coverity CID 730: Ifdef dead code appropriately.

Revision 1.100.8.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:32 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.100: +6 -6 lines
Diff to previous 1.100 (colored) to selected 1.111.6.1 (colored)

sync with head.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Mar 8 00:14:20 2006 UTC (18 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq
Changes since 1.100: +6 -6 lines
Diff to previous 1.100 (colored) to selected 1.111.6.1 (colored)

Rename BIT(n) macro to _BIT(n) to avoid a conflict with forthcoming
bit-twiddling macros.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (18 years, 4 months ago) by christos
Branch: 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
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored) to selected 1.111.6.1 (colored)

merge ktrace-lwp.

Revision 1.67.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:08:05 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.9: +40 -39 lines
Diff to previous 1.67.2.9 (colored) next main 1.68 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.99 / (download) - annotate - [select for diffs], Mon May 30 04:21:39 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.98: +36 -36 lines
Diff to previous 1.98 (colored) to selected 1.111.6.1 (colored)

- const poisoning
- eliminate variable shadowing

Revision 1.98 / (download) - annotate - [select for diffs], Wed May 11 10:02:28 2005 UTC (18 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.97: +6 -5 lines
Diff to previous 1.97 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri Apr 29 11:29:18 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.96.2.1: +3048 -0 lines
Diff to previous 1.96.2.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.111.6.1 (colored)

sync with -current

Revision 1.96.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:58 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.96: +5 -3 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.111.6.1 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.67.2.9 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:54 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.8: +5 -3 lines
Diff to previous 1.67.2.8 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.97 / (download) - annotate - [select for diffs], Thu Feb 24 08:19:38 2005 UTC (19 years, 1 month ago) by martin
Branch: 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
Changes since 1.96: +5 -3 lines
Diff to previous 1.96 (colored) to selected 1.111.6.1 (colored)

Fix memory leak reported by Ted Unangst as bug #3 on tech-kern.

Revision 1.67.2.8 / (download) - annotate - [select for diffs], Mon Jan 17 19:31:53 2005 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.7: +264 -203 lines
Diff to previous 1.67.2.7 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.96.2.1, Sun Jan 16 12:46:00 2005 UTC (19 years, 3 months ago) by kent
Branch: kent-audio2
Changes since 1.96: +0 -3046 lines
FILE REMOVED

file uaudio.c was added on branch kent-audio2 on 2005-04-29 11:29:18 +0000

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jan 16 12:46:00 2005 UTC (19 years, 3 months ago) by kent
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km, kent-audio2
Changes since 1.95: +27 -18 lines
Diff to previous 1.95 (colored) to selected 1.111.6.1 (colored)

* uaudio_round_blocksize()
  calculate playing blocksize and recording blocksize independently

Revision 1.95 / (download) - annotate - [select for diffs], Sun Jan 16 06:02:19 2005 UTC (19 years, 3 months ago) by dsainty
Branch: MAIN
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored) to selected 1.111.6.1 (colored)

Make this compile (after previous commit) with UAUDIO_DEBUG defined

Revision 1.94 / (download) - annotate - [select for diffs], Sat Jan 15 15:19:53 2005 UTC (19 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.93: +209 -169 lines
Diff to previous 1.93 (colored) to selected 1.111.6.1 (colored)

ansify and KNF

Revision 1.93 / (download) - annotate - [select for diffs], Mon Jan 10 22:01:38 2005 UTC (19 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.92: +32 -20 lines
Diff to previous 1.92 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Jan 9 08:42:46 2005 UTC (19 years, 3 months ago) by kent
Branch: kent-audio1
Changes since 1.92.2.1: +5 -4 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Jan 2 20:03:40 2005 UTC (19 years, 3 months ago) by kent
Branch: kent-audio1
Changes since 1.92: +30 -19 lines
Diff to previous 1.92 (colored) to selected 1.111.6.1 (colored)

adopt the filter pipeline framework

Revision 1.67.2.7 / (download) - annotate - [select for diffs], Mon Nov 29 07:24:33 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.6: +81 -344 lines
Diff to previous 1.67.2.6 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.67.2.6 / (download) - annotate - [select for diffs], Sun Nov 14 08:15:57 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.5: +47 -2 lines
Diff to previous 1.67.2.5 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Nov 13 15:01:48 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base
Branch point for: kent-audio1
Changes since 1.91: +81 -344 lines
Diff to previous 1.91 (colored) to selected 1.111.6.1 (colored)

adopt auconv_set_converter()

Revision 1.91 / (download) - annotate - [select for diffs], Fri Nov 5 17:46:14 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.90: +47 -2 lines
Diff to previous 1.90 (colored) to selected 1.111.6.1 (colored)

print cluster information if UAUDIO_DEBUG is defined.

Revision 1.67.2.5 / (download) - annotate - [select for diffs], Tue Nov 2 07:53:03 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.4: +832 -293 lines
Diff to previous 1.67.2.4 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Oct 29 17:12:53 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.89: +13 -11 lines
Diff to previous 1.89 (colored) to selected 1.111.6.1 (colored)

* 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) - annotate - [select for diffs], Fri Oct 29 16:42:47 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.88: +31 -31 lines
Diff to previous 1.88 (colored) to selected 1.111.6.1 (colored)

replace printf() inside UAUDIO_DEBUG with logprintf()

Revision 1.88 / (download) - annotate - [select for diffs], Fri Oct 29 12:57:26 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored) to selected 1.111.6.1 (colored)

constify audio_hw_if, midi_hw_if, and radio_hw_if.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Oct 22 17:00:22 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.86: +37 -31 lines
Diff to previous 1.86 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri Oct 22 16:01:49 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.85: +142 -149 lines
Diff to previous 1.85 (colored) to selected 1.111.6.1 (colored)

style fixes
 - consistent folding in function declarations
 - define a function as Static if the function is declared as Static

Revision 1.85 / (download) - annotate - [select for diffs], Fri Oct 22 15:36:30 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored) to selected 1.111.6.1 (colored)

enclose debug macros with do {...} while (0)
from OpenBSD

Revision 1.84 / (download) - annotate - [select for diffs], Fri Oct 22 15:34:04 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.83: +20 -11 lines
Diff to previous 1.83 (colored) to selected 1.111.6.1 (colored)

fix wrong realloc() usage.
from OpenBSD

Revision 1.83 / (download) - annotate - [select for diffs], Fri Oct 22 15:25:56 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.82: +23 -7 lines
Diff to previous 1.82 (colored) to selected 1.111.6.1 (colored)

fix typos in comments.
add open/close code of sync pipe (not enabled)

Revision 1.82 / (download) - annotate - [select for diffs], Thu Oct 21 12:41:07 2004 UTC (19 years, 5 months ago) by kent
Branch: MAIN
Changes since 1.81: +657 -144 lines
Diff to previous 1.81 (colored) to selected 1.111.6.1 (colored)

make mixer names compatible with other audio devices
patch provided by Kazuhito HONDA in PR#15441

Revision 1.81 / (download) - annotate - [select for diffs], Wed Oct 20 13:48:32 2004 UTC (19 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.111.6.1 (colored)

mixer item for a selctor should start with "sel" not "fea"

Revision 1.67.2.4 / (download) - annotate - [select for diffs], Tue Oct 19 15:57:33 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.3: +339 -230 lines
Diff to previous 1.67.2.3 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

Revision 1.80 / (download) - annotate - [select for diffs], Sat Oct 16 18:08:50 2004 UTC (19 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.79: +72 -8 lines
Diff to previous 1.79 (colored) to selected 1.111.6.1 (colored)

add code to recognize sync-pipe audio stream.
The code is not enabled yet.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Oct 3 06:01:09 2004 UTC (19 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.78: +57 -14 lines
Diff to previous 1.78 (colored) to selected 1.111.6.1 (colored)

add source selector support.  The patch was provided by Kazuhito HONDA.
PR#26538

Revision 1.78 / (download) - annotate - [select for diffs], Sat Oct 2 19:14:54 2004 UTC (19 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.77: +214 -212 lines
Diff to previous 1.77 (colored) to selected 1.111.6.1 (colored)

- 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) - annotate - [select for diffs], Tue Sep 21 13:33:44 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.2: +2 -2 lines
Diff to previous 1.67.2.2 (colored) to selected 1.111.6.1 (colored)

Fix the sync with head I botched.

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:46 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67.2.1: +0 -0 lines
Diff to previous 1.67.2.1 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:33 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.67: +91 -97 lines
Diff to previous 1.67 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Fri Jul 16 22:39:23 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.76: +6 -3 lines
Diff to previous 1.76 (colored) to selected 1.111.6.1 (colored)

AUOPEN_* != AUMODE_*.  Duh.  Make unidirectional devices work again.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Jul 16 20:08:23 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.75: +7 -3 lines
Diff to previous 1.75 (colored) to selected 1.111.6.1 (colored)

The previous change was not complete.  /brick me

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jul 9 18:08:00 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.111.6.1 (colored)

Whoops!  Don't try to set parameters for a direction that doesn't exist.
(audio_set_defaults() can do this.)

Revision 1.74 / (download) - annotate - [select for diffs], Fri Jul 9 02:57:48 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.73: +7 -24 lines
Diff to previous 1.73 (colored) to selected 1.111.6.1 (colored)

Clean up a little.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jul 7 22:04:28 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.72: +16 -19 lines
Diff to previous 1.72 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Wed Jul 7 20:21:06 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.71: +14 -13 lines
Diff to previous 1.71 (colored) to selected 1.111.6.1 (colored)

Rearrange to fix a potential crash when changing parameters with audioctl and
the device is closed.  Reported in PR 24066.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Apr 23 17:25:25 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.70: +21 -18 lines
Diff to previous 1.70 (colored) to selected 1.111.6.1 (colored)

use bounded string ops (snprintf, strl*)

Revision 1.70 / (download) - annotate - [select for diffs], Thu Apr 22 00:17:13 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.69: +38 -35 lines
Diff to previous 1.69 (colored) to selected 1.111.6.1 (colored)

sprintf -> snprintf

Revision 1.69 / (download) - annotate - [select for diffs], Tue Oct 14 13:12:19 2003 UTC (20 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.68: +5 -5 lines
Diff to previous 1.68 (colored) to selected 1.111.6.1 (colored)

Fix mixer wraparound. Closes PR 16652.
Patch from Sergey Svishchev. mycroft says "looks ok".

Revision 1.68 / (download) - annotate - [select for diffs], Mon Sep 29 11:54:26 2003 UTC (20 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.67: +5 -5 lines
Diff to previous 1.67 (colored) to selected 1.111.6.1 (colored)

Update URLs.  From PR 23004.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Tue Jun 24 09:46:44 2003 UTC (20 years, 9 months ago) by grant
Branch: 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
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.111.6.1 (colored)

Pull up revision 1.61 (requested by nakayama in ticket #1334):

Correct test for busy-ness when setting parameters.

Revision 1.67 / (download) - annotate - [select for diffs], Sat May 3 18:11:41 2003 UTC (20 years, 11 months ago) by wiz
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.111.6.1 (colored)

DMA, not dma nor Dma.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Apr 17 16:38:02 2003 UTC (21 years ago) by jdolecek
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Mar 30 04:47:13 2003 UTC (21 years ago) by toshii
Branch: MAIN
Changes since 1.64: +15 -14 lines
Diff to previous 1.64 (colored) to selected 1.111.6.1 (colored)

Use MaxPacketSize for setting up isochronous pipe for recording.
This fixes dropping samples.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Feb 23 04:20:06 2003 UTC (21 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.63: +3 -4 lines
Diff to previous 1.63 (colored) to selected 1.111.6.1 (colored)

Remove assigned-to but not used variable.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Feb 16 18:16:07 2003 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.62: +52 -33 lines
Diff to previous 1.62 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Wed Dec 11 06:38:50 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.41.2.8: +19 -19 lines
Diff to previous 1.41.2.8 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Dec 2 02:36:14 2002 UTC (21 years, 4 months ago) by toshii
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.61: +21 -21 lines
Diff to previous 1.61 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri Oct 18 02:44:30 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.41.2.7: +4 -4 lines
Diff to previous 1.41.2.7 (colored) to branchpoint 1.41 (colored) to selected 1.111.6.1 (colored)

Catch up to -current.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Oct 6 10:01:08 2002 UTC (21 years, 6 months ago) by kristerw
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) to selected 1.111.6.1 (colored)

Correct test for busy-ness when setting parameters.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:05 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.42.2.2: +176 -167 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.111.6.1 (colored)

catch up with -current on kqueue branch

Revision 1.41.2.7 / (download) - annotate - [select for diffs], Thu Jun 20 03:46:53 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.41.2.6: +6 -3 lines
Diff to previous 1.41.2.6 (colored) to branchpoint 1.41 (colored) to selected 1.111.6.1 (colored)

Catch up to -current.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Thu May 30 14:47:33 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored) next main 1.60 (colored) to selected 1.111.6.1 (colored)

Catch up with -current.

Revision 1.60 / (download) - annotate - [select for diffs], Sat May 18 15:14:39 2002 UTC (21 years, 11 months ago) by kent
Branch: 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
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored) to selected 1.111.6.1 (colored)

USB_ATTACH: Initialize sc_plachan.altidx and sc_recchan.altidx with -1.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Apr 20 17:36:16 2002 UTC (22 years ago) by kent
Branch: MAIN
Branch point for: gehenna-devsw
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.111.6.1 (colored)

uaudio_set_params():
  Correct a parameter of uaudio_chan_init() for recording.
  This change fixes kern/16385.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Apr 20 17:04:32 2002 UTC (22 years ago) by kent
Branch: MAIN
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored) to selected 1.111.6.1 (colored)

Clear the busy flag of an alt when a channel is closed.

Revision 1.41.2.6 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:14 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.41.2.5: +1 -1 lines
Diff to previous 1.41.2.5 (colored) to branchpoint 1.41 (colored) to selected 1.111.6.1 (colored)

Catch up to -current.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Apr 5 16:16:43 2002 UTC (22 years ago) by toshii
Branch: MAIN
Changes since 1.56: +1 -1 lines
Diff to previous 1.56 (colored) to selected 1.111.6.1 (colored)

Make recording functional again.

Revision 1.41.2.5 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:32 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.41.2.4: +347 -166 lines
Diff to previous 1.41.2.4 (colored) to branchpoint 1.41 (colored) to selected 1.111.6.1 (colored)

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

Revision 1.56 / (download) - annotate - [select for diffs], Sat Mar 23 17:17:11 2002 UTC (22 years ago) by kent
Branch: MAIN
Changes since 1.55: +86 -86 lines
Diff to previous 1.55 (colored) to selected 1.111.6.1 (colored)

whitespace and folding fix.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Mar 23 16:23:20 2002 UTC (22 years ago) by kent
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.111.6.1 (colored)

Decrease UAUDIO_NFRAMES: 20 -> 10
This change eliminates noise of 6ch audio.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Mar 18 14:06:08 2002 UTC (22 years, 1 month ago) by kent
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.53: +19 -13 lines
Diff to previous 1.53 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Mar 17 16:14:22 2002 UTC (22 years, 1 month ago) by kent
Branch: MAIN
Changes since 1.52: +35 -50 lines
Diff to previous 1.52 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sat Mar 16 16:01:36 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.42.2.1: +364 -148 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) to selected 1.111.6.1 (colored)

Catch up with -current.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Mar 15 17:20:14 2002 UTC (22 years, 1 month ago) by kent
Branch: MAIN
Changes since 1.51: +40 -25 lines
Diff to previous 1.51 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Mar 12 15:12:03 2002 UTC (22 years, 1 month ago) by kent
Branch: MAIN
Changes since 1.50: +14 -9 lines
Diff to previous 1.50 (colored) to selected 1.111.6.1 (colored)

Accept 24bit precision.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Mar 7 14:37:03 2002 UTC (22 years, 1 month ago) by kent
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.49: +215 -45 lines
Diff to previous 1.49 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Feb 28 04:14:29 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.41.2.3: +152 -111 lines
Diff to previous 1.41.2.3 (colored) to branchpoint 1.41 (colored) to selected 1.111.6.1 (colored)

Catch up to -current.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Feb 19 14:07:26 2002 UTC (22 years, 2 months ago) by simonb
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.111.6.1 (colored)

Fix indentation botch.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Feb 14 12:55:51 2002 UTC (22 years, 2 months ago) by kent
Branch: MAIN
Changes since 1.47: +11 -11 lines
Diff to previous 1.47 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Feb 12 19:52:43 2002 UTC (22 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.46: +103 -66 lines
Diff to previous 1.46 (colored) to selected 1.111.6.1 (colored)

split the channel stuff into record and play parts, so that this driver is
full duplex, independent

Revision 1.46 / (download) - annotate - [select for diffs], Mon Feb 11 07:10:36 2002 UTC (22 years, 2 months ago) by kent
Branch: MAIN
Changes since 1.45: +28 -26 lines
Diff to previous 1.45 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Sun Feb 10 06:37:45 2002 UTC (22 years, 2 months ago) by kent
Branch: MAIN
Changes since 1.44: +24 -22 lines
Diff to previous 1.44 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Jan 10 19:58:54 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.42: +5 -1 lines
Diff to previous 1.42 (colored) to selected 1.111.6.1 (colored)

Sync kqueue branch with -current.

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:16 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.41.2.2: +4 -1 lines
Diff to previous 1.41.2.2 (colored) to branchpoint 1.41 (colored) to selected 1.111.6.1 (colored)

Catch up to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Nov 13 06:24:54 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.43: +4 -1 lines
Diff to previous 1.43 (colored) to selected 1.111.6.1 (colored)

add RCSIDs

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Thu Oct 11 00:02:28 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Oct 8 20:11:35 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.41.2.1: +2 -1 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored) to selected 1.111.6.1 (colored)

Catch up to -current.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Oct 3 00:04:53 2001 UTC (22 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Jun 21 20:06:20 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.41: +15 -15 lines
Diff to previous 1.41 (colored) to selected 1.111.6.1 (colored)

Catch up to -current.

Revision 1.42 / (download) - annotate - [select for diffs], Sat May 12 19:18:57 2001 UTC (22 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, kqueue
Changes since 1.41: +15 -15 lines
Diff to previous 1.41 (colored) to selected 1.111.6.1 (colored)

Don't leak memory in case of a realloc failure.
Reported by: grendel@heorot.stanford.edu (Ted U)

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:24 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.3: +17 -10 lines
Diff to previous 1.4.2.3 (colored) next main 1.5 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jan 23 14:04:13 2001 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored) to selected 1.111.6.1 (colored)

Make sure driver attach/detach events are generated in a consistent manner.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jan 21 00:07:13 2001 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.39: +14 -7 lines
Diff to previous 1.39 (colored) to selected 1.111.6.1 (colored)

Cosmetic changes.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:38 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.2: +0 -1 lines
Diff to previous 1.4.2.2 (colored) to selected 1.111.6.1 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jan 6 12:12:24 2001 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.38: +1 -2 lines
Diff to previous 1.38 (colored) to selected 1.111.6.1 (colored)

Don't #define UAUDIO_DEBUG here.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:30 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4.2.1: +219 -153 lines
Diff to previous 1.4.2.1 (colored) to selected 1.111.6.1 (colored)

Sync with HEAD

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jan 4 07:05:00 2001 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +137 -119 lines
Diff to previous 1.37 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Jan 4 06:20:49 2001 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +48 -40 lines
Diff to previous 1.36 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Jan 4 05:25:24 2001 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored) to selected 1.111.6.1 (colored)

No really, this is half-duplex for now.  Lame.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jan 4 03:53:09 2001 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.34: +12 -7 lines
Diff to previous 1.34 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri Dec 29 14:49:28 2000 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.33: +12 -10 lines
Diff to previous 1.33 (colored) to selected 1.111.6.1 (colored)

Try to get rounding right when setting mixer values.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Dec 29 13:28:41 2000 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.32: +14 -2 lines
Diff to previous 1.32 (colored) to selected 1.111.6.1 (colored)

Set the mixer delta field.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Dec 29 01:14:15 2000 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.31: +5 -5 lines
Diff to previous 1.31 (colored) to selected 1.111.6.1 (colored)

Update location of specs.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Dec 28 11:56:22 2000 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.30: +25 -6 lines
Diff to previous 1.30 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Dec 28 01:01:42 2000 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored) to selected 1.111.6.1 (colored)

Make message about ignored endpoint a little clearer.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:43:22 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4: +566 -382 lines
Diff to previous 1.4 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri Oct 6 23:43:38 2000 UTC (23 years, 6 months ago) by augustss
Branch: 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
Changes since 1.27: +7 -7 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.111.6.1 (colored)

Pull up 1.28-1.29.  Make 16-bit only speakers work.
Approved by thorpej.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Oct 5 01:35:07 2000 UTC (23 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.28: +7 -7 lines
Diff to previous 1.28 (colored) to selected 1.111.6.1 (colored)

Allow 16-bit only speakers to work.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 24 14:11:09 2000 UTC (23 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.27: +4 -1 lines
Diff to previous 1.27 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Jun 22 17:08:32 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.25: +163 -274 lines
Diff to previous 1.25 (colored) next main 1.26 (colored) to selected 1.111.6.1 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jun 19 11:43:48 2000 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored) to selected 1.111.6.1 (colored)

Unswap functiona arguments that got swapped during ANSIfication.  Now
mixer controls work again.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 1 14:28:58 2000 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.25: +163 -274 lines
Diff to previous 1.25 (colored) to selected 1.111.6.1 (colored)

Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.

Revision 1.25 / (download) - annotate - [select for diffs], Fri May 19 04:34:42 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.111.6.1 (colored)

NULL != 0

Revision 1.24 / (download) - annotate - [select for diffs], Thu Apr 27 15:26:47 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.111.6.1 (colored)

Change my email address.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 29 18:24:53 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored) to selected 1.111.6.1 (colored)

Some OpenBSD portability fixes.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Mar 29 01:47:25 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored) to selected 1.111.6.1 (colored)

Do not use all xfers at the same time, this can cause problems in the HC
drivers.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 27 12:33:55 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.20: +52 -52 lines
Diff to previous 1.20 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Fri Mar 24 13:02:00 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.19: +6 -2 lines
Diff to previous 1.19 (colored) to selected 1.111.6.1 (colored)

Some more debug when selecting sample rate.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Feb 29 21:37:00 2000 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.18: +7 -7 lines
Diff to previous 1.18 (colored) to selected 1.111.6.1 (colored)

Distinguish between device and interface classes.
(I finally found a document that said that they were different.)

Revision 1.18 / (download) - annotate - [select for diffs], Tue Feb 8 18:45:27 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) to selected 1.111.6.1 (colored)

Use NULL instead of 0.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 2 13:18:45 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.16: +7 -1 lines
Diff to previous 1.16 (colored) to selected 1.111.6.1 (colored)

Generate usb events on attach and detach.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jan 16 09:32:56 2000 UTC (24 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.15: +46 -1 lines
Diff to previous 1.15 (colored) to selected 1.111.6.1 (colored)

Start of implementation of UpDown processing unit control.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jan 6 21:13:55 2000 UTC (24 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.14: +34 -7 lines
Diff to previous 1.14 (colored) to selected 1.111.6.1 (colored)

Implement the ENABLE control for processig units.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:41 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.2: +424 -217 lines
Diff to previous 1.2 (colored) next main 1.3 (colored) to selected 1.111.6.1 (colored)

Pull up to last week's -current.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 6 21:06:59 1999 UTC (24 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.13: +9 -9 lines
Diff to previous 1.13 (colored) to selected 1.111.6.1 (colored)

Cosmetics and a couple of diagnostic messages.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Nov 26 01:38:40 1999 UTC (24 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.12: +26 -4 lines
Diff to previous 1.12 (colored) to selected 1.111.6.1 (colored)

Generate an error message when attachment fails.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 18 23:32:27 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.111.6.1 (colored)

Cosmetic changes and some small improvements.  From FreeBSD and Nick Hibma.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 17 23:00:50 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.10: +12 -12 lines
Diff to previous 1.10 (colored) to selected 1.111.6.1 (colored)

A few more purely stylistic changes that I missed in the last round.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 15 22:04:14 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Nov 15 00:41:32 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.4: +370 -187 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.111.6.1 (colored)

Sync with -current

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 12 00:34:57 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.8: +160 -154 lines
Diff to previous 1.8 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Tue Nov 9 16:52:14 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.7: +14 -1 lines
Diff to previous 1.7 (colored) to selected 1.111.6.1 (colored)

Make detach wait for interrupts to finish.
Bail out in interrupt routine when device is dying.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Nov 2 16:54:27 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Changes since 1.6: +11 -4 lines
Diff to previous 1.6 (colored) to selected 1.111.6.1 (colored)

Print a little more information when attaching.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 1 18:12:21 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Mon Oct 25 10:16:49 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.4: +207 -50 lines
Diff to previous 1.4 (colored) to selected 1.111.6.1 (colored)

Add some code for recording, still untested.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 14 01:18:40 1999 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.3: +10 -10 lines
Diff to previous 1.3 (colored) to selected 1.111.6.1 (colored)

Give uaudio its own debug flag.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 13 20:13:29 1999 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.2: +12 -11 lines
Diff to previous 1.2 (colored) to selected 1.111.6.1 (colored)

Format tag and format type tests were interchanged.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 12 08:23:42 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.1: +7 -3 lines
Diff to previous 1.1 (colored) to selected 1.111.6.1 (colored)

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) - annotate - [select for diffs], Thu Sep 9 12:28:25 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Diff to selected 1.111.6.1 (colored)

An EXPERIMENTAL audio driver.  It still needs work, e.g., in the mixer
part to give reasonable names to the mixer controls.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>