The NetBSD Project

CVS log for src/sys/dev/pci/auvia.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.86.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:46 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +2 -6 lines
Sync with HEAD.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Feb 6 09:45:17 2021 UTC (4 years, 1 month ago) by isaki
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -6 lines
Hold sc_intr_lock in open()/close().
vtbl->{lock,unlock} (in fact ac97_{lock,unlock}) don't seem to need
releasing an interrupt lock.
Confirmed on auich.

Revision 1.78.10.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:16 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.78.10.2: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.10.2: +4 -1 lines
Sync with HEAD

Revision 1.85.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:04 2020 UTC (4 years, 11 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +6 -3 lines
Sync with HEAD

Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun Apr 19 08:18:19 2020 UTC (4 years, 11 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Branch point for: thorpej-futex
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -3 lines
Fix round_blocksize not to return 0.

Revision 1.78.10.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:08 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.78.10.1: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.10.1: +3 -4 lines
Merge changes from current as of 20200406

Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 21 15:31:50 2020 UTC (5 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +3 -4 lines
Pull up following revision(s) (requested by isaki in ticket #792):

	sys/arch/amiga/dev/aucc.c: revision 1.48
	sys/dev/pci/auixp.c: revision 1.49
	sys/dev/pci/gcscaudio.c: revision 1.19
	sys/dev/pci/auich.c: revision 1.159
	sys/dev/sbus/dbri.c: revision 1.42
	sys/dev/pci/auvia.c: revision 1.85
	sys/dev/pci/auacer.c: revision 1.39

Drop 512 bytes limit on auvia_round_blocksize().

This fixes attach on 6 channels device.
PR kern/55017.

round_blocksize must return a multiple of the framesize.
aucc(4) supports 3 channels mode.

round_blocksize must return a multiple of the framesize
even if passed blocksize is greater than the upper limit.

round_blocksize must return a multiple of the framesize.

It's not divisible when blk=GCSCAUDI_PRD_SIZE_MAX and channels=4.
round_blocksize must return a multiple of the framesize
even if 6 channels mode.

I believe that keeping "good alignment" is just a wish, not constraint.

Revision 1.84.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:10 2020 UTC (5 years ago) by ad
Branches: ad-namecache
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +3 -4 lines
Sync with head.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Feb 28 13:31:03 2020 UTC (5 years ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3
Branch point for: bouyer-xenpvh
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -4 lines
Drop 512 bytes limit on auvia_round_blocksize().
This fixes attach on 6 channels device.
PR kern/55017.

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

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Jun 8 08:02:38 2019 UTC (5 years, 9 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -14 lines
Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly.
  This eliminates need for audio.c to take care of such (old)
  drivers which don't return both of PLAYBACK and CAPTURE.
- All get_props() doesn't need to return AUDIO_PROP_MMAP.
  It is handled in the audio layer now.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:18 2019 UTC (5 years, 10 months ago) by isaki
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +61 -127 lines
Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

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

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

Revision 1.82.2.3: download - view: text, markup, annotated - select for diffs
Fri May 3 06:19:42 2019 UTC (5 years, 10 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.82.2.2: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.2.2: +0 -0 lines
Remove unnecessary header file.

Revision 1.82.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 27 13:52:55 2019 UTC (5 years, 10 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.82.2.1: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.2.1: +40 -128 lines
Adapt to audio2.
- auvia_set_params_sub is also renamed because caller auvia_set_params
  is renamed to auvia_set_format.

Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 21 05:11:22 2019 UTC (5 years, 11 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +42 -20 lines
Use C99 style struct initializer to audio_format.

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

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Mar 16 04:41:09 2019 UTC (6 years ago) by isaki
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
Fix (probably) typo.  SLINEAR_LE -> ULINEAR_LE.

Revision 1.78.8.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:49 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.78.8.1: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.8.1: +4 -3 lines
Sync with HEAD, resolve a few conflicts

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Dec 9 11:14:01 2018 UTC (6 years, 3 months ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -3 lines
use pci_intr_establish_xname() everywhere

Revision 1.78.8.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:51 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
Sync with HEAD

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

Revision 1.79: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:32 2018 UTC (6 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
Rename min/max -> uimin/uimax for better honesty.

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

HOWEVER!  Some subsystems have

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

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

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

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

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

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

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

Revision 1.75.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:07 2017 UTC (7 years, 3 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.75.8.1: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.8.1: +0 -2 lines
update from HEAD

Revision 1.77.6.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:05 2017 UTC (7 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +2 -4 lines
Sync with HEAD

Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:11 2017 UTC (7 years, 9 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -4 lines
remove checks for failure after memory allocation calls that cannot fail:

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

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

Revision 1.75.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:42 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -5 lines
Rebase to HEAD as of a few days ago.

Revision 1.73.8.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:24 2014 UTC (10 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.73.8.1: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.8.1: +4 -5 lines
sync with head.

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

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

Revision 1.75.12.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:39 2014 UTC (10 years, 10 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +4 -5 lines
sync with head

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Mar 29 19:28:24 2014 UTC (10 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, 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, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -3 lines
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Oct 16 18:20:16 2013 UTC (11 years, 5 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +2 -4 lines
remove unused variables.

Revision 1.73.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:43 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +151 -61 lines
sync with head

Revision 1.75: download - view: text, markup, annotated - select for diffs
Thu Nov 24 03:35:58 2011 UTC (13 years, 4 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
put back IPL_AUDIO and splaudio(), at the request of rmind.  they are
aliases and now we can easily revert audio to IPL_VM if necessary,
without having to revert the whole branch.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Nov 23 23:07:34 2011 UTC (13 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +150 -60 lines
Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

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

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

Welcome to 5.99.57.

Revision 1.73.10.2: download - view: text, markup, annotated - select for diffs
Tue Nov 22 22:47:08 2011 UTC (13 years, 4 months ago) by jmcneill
Branches: jmcneill-audiomp3
Diff to: previous 1.73.10.1: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.10.1: +2 -3 lines
get rid of unused 'powerstate' callback in audio_hw_if

Revision 1.73.10.1: download - view: text, markup, annotated - select for diffs
Sat Nov 19 21:49:41 2011 UTC (13 years, 4 months ago) by jmcneill
Branches: jmcneill-audiomp3
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +152 -61 lines
port ad-audiomp2 branch changes to 5.99.56
todo:
 - port ad-audiomp2 pcppi changes
 - these drivers need to be fixed:
   - emuxki
   - gcscaudio
   - hdafg
   - uaudio
   - umidi
   - MD audio drivers

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:36 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +2 -4 lines
sync with head

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Nov 13 13:52:05 2010 UTC (14 years, 4 months ago) by uebayasi
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-audiomp3
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -4 lines
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.

Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:30 2010 UTC (14 years, 10 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +4 -4 lines
Sync with HEAD.

Revision 1.64.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:43 2010 UTC (15 years ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.4.3: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.4.3: +6 -6 lines
sync with head

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:59 2010 UTC (15 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -4 lines
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Jan 8 19:56:51 2010 UTC (15 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -4 lines
Expand PMF_FN_* macros.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Thu Nov 26 15:17:08 2009 UTC (15 years, 3 months ago) by njoly
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.

Revision 1.64.4.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:32 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.4.2: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.4.2: +21 -20 lines
sync with head

Revision 1.67.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:20:23 2009 UTC (15 years, 10 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +21 -20 lines
Sync with HEAD.

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

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed May 6 18:25:28 2009 UTC (15 years, 10 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +19 -18 lines
device_t/softc split
tested by jakllsch@

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue May 5 21:50:15 2009 UTC (15 years, 10 months ago) by cegger
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -4 lines
struct cfdata * -> cfdata_t

Revision 1.64.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:54 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.4.1: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.4.1: +7 -2 lines
sync with head.

Revision 1.62.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:59 2009 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.62.6.3: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.6.3: +2 -0 lines
Sync with HEAD.

Revision 1.67.6.3: download - view: text, markup, annotated - select for diffs
Sat Dec 13 13:38:00 2008 UTC (16 years, 3 months ago) by ad
Branches: ad-audiomp2
Diff to: previous 1.67.6.2: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.6.2: +14 -2 lines
Fix locking for ac97.

Revision 1.67.6.2: download - view: text, markup, annotated - select for diffs
Thu Dec 11 19:49:30 2008 UTC (16 years, 3 months ago) by ad
Branches: ad-audiomp2
Diff to: previous 1.67.6.1: preferred, colored; branchpoint 1.67: preferred, colored
Changes since revision 1.67.6.1: +38 -37 lines
Checkpoint work in progress.

Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Mon Dec 8 13:06:36 2008 UTC (16 years, 3 months ago) by ad
Branches: ad-audiomp2
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +131 -51 lines
Convert some more drivers.

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:37 2008 UTC (16 years, 5 months ago) by haad
Branches: haad-dm
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +4 -2 lines
Sync with HEAD.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Oct 11 20:08:15 2008 UTC (16 years, 5 months ago) by dholland
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, 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, 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, netbsd-5, 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, ad-audiomp2-base
Branch point for: jym-xensuspend, ad-audiomp2
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -2 lines
Print a message on two previously silent error paths in auvia_attach.

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

Revision 1.58.6.1: download - view: text, markup, annotated - select for diffs
Thu Sep 4 08:46:44 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +5 -2 lines
Sync with netbsd-4.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 6 17:36:31 2008 UTC (16 years, 8 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +5 -2 lines
Pull up following revision(s) (requested by sborrill in ticket #1161):
	sys/dev/pci/auvia.c: revision 1.66
VT8233+ uses a different register base for capturing, tested by sborrill

Revision 1.65.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:38:04 2008 UTC (16 years, 8 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +5 -2 lines
Sync with head.

Revision 1.62.6.3: download - view: text, markup, annotated - select for diffs
Wed Jul 2 19:08:19 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.62.6.2: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.6.2: +3 -0 lines
Sync with HEAD.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Jul 1 12:43:03 2008 UTC (16 years, 8 months ago) by jmcneill
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +5 -2 lines
VT8233+ uses a different register base for capturing, tested by sborrill

Revision 1.62.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:37 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.62.6.1: preferred, colored; branchpoint 1.62: preferred, colored
Changes since revision 1.62.6.1: +15 -25 lines
Sync with HEAD.

Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:19 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +2 -9 lines
sync with head.

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

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:54 2008 UTC (16 years, 10 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Apr 10 19:13:36 2008 UTC (16 years, 11 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +17 -20 lines
use aprint_*_dev and device_xname

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

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:47 2008 UTC (17 years ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +52 -19 lines
sync with head.

Revision 1.60.16.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:44 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.60.16.1: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.16.1: +55 -22 lines
sync with HEAD

Revision 1.52.2.6: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:35 2008 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.52.2.5: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.5: +52 -19 lines
sync with head.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Feb 23 01:54:44 2008 UTC (17 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base, ad-socklock-base1
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +52 -19 lines
Detach self and children.  Use device_t and accessors.  Use PMF_FN_*.

Revision 1.60.22.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:55 2008 UTC (17 years, 1 month ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +5 -5 lines
Sync with HEAD.

Revision 1.52.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:43:38 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.52.2.4: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.2.4: +15 -39 lines
sync with head

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:15:03 2008 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +5 -5 lines
Sync with HEAD

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Jan 14 06:32:10 2008 UTC (17 years, 2 months ago) by tsutsui
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -5 lines
Use htole32() to write parameters to DMA descriptors for big endian machines.
Tested on Pegasos by mrg@ on port-ofppc.

Revision 1.60.16.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:53:35 2008 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +12 -36 lines
sync with HEAD

Revision 1.60.24.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:46:41 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +12 -36 lines
Sync with head.

Revision 1.60.26.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:31:48 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +12 -36 lines
sync with head.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:28:06 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-merge1
Branch point for: bouyer-xeni386
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +12 -36 lines
Merge jmcneill-pm branch.

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

Revision 1.60.14.2: download - view: text, markup, annotated - select for diffs
Tue Nov 6 14:27:21 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.60.14.1: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.14.1: +8 -11 lines
Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.60.14.1: download - view: text, markup, annotated - select for diffs
Thu Oct 4 19:10:13 2007 UTC (17 years, 5 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +15 -36 lines
Convert auvia(4) to PNP power management.

Revision 1.52.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:36:24 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.52.2.3: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.2.3: +3 -3 lines
sync with head.

Revision 1.58.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:55:11 2007 UTC (18 years ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.1: +3 -3 lines
Sync with HEAD.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:16 2007 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base, yamt-idlelwp-base8, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, vmlocking, 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, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-kmem, vmlocking2, mjf-devfs, matt-armv6, jmcneill-pm
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:53:56 2007 UTC (18 years ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -4 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 14:16:14 2007 UTC (18 years ago) by ad
Branches: ad-audiomp
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +37 -8 lines
Add MP locking for audio drivers.

Revision 1.52.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:20 2007 UTC (18 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.52.2.2: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.2.2: +4 -4 lines
sync with head.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Feb 21 23:00:00 2007 UTC (18 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: ad-audiomp-base
Branch point for: ad-audiomp
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -4 lines
Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.52.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:41 2006 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.52.2.1: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.2.1: +78 -26 lines
sync with head.

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

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:28 2006 UTC (18 years, 4 months ago) by ad
Branches: newlock2
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +15 -15 lines
Sync with head.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:08 2006 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, post-newlock2-merge, newlock2-nbase, newlock2-base, 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, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +11 -11 lines
__unused removal on arguments; approved by core.

Revision 1.55.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:16 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +19 -19 lines
sync with head

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:28 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +17 -18 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Sep 24 03:53:09 2006 UTC (18 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -3 lines
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:52:16 2006 UTC (18 years, 6 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +65 -13 lines
sync with head

Revision 1.53.8.2: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:24:21 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.53.8.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.8.1: +3 -2 lines
sync with head.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Aug 28 00:02:21 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -2 lines
add missing initializer

Revision 1.53.8.1: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:44:25 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +64 -13 lines
sync with head

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Jul 27 15:35:01 2006 UTC (18 years, 7 months ago) by kent
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +64 -13 lines
add support for AC'97 S/PDIF

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:05:03 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +7 -2 lines
sync with head.

Revision 1.31.2.11: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:28:57 2005 UTC (19 years, 3 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.31.2.10: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.10: +7 -2 lines
Sync with head.

Revision 1.52.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 29 21:23:14 2005 UTC (19 years, 3 months ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +7 -2 lines
sync with head.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Nov 28 19:00:49 2005 UTC (19 years, 3 months ago) by rpaulo
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-readahead-base3, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, ktrace-lwp-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +7 -2 lines
PR 32178: Nicolas Joly: VT8233 AC'97 Audio revision 0x10 small display
fix. I just changed the comment a bit.

Revision 1.31.2.10: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:06:00 2005 UTC (19 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.9: preferred, colored
Changes since revision 1.31.2.9: +69 -64 lines
Sync with HEAD. Here we go again...

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Jun 28 00:28:41 2005 UTC (19 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead, yamt-lazymbuf
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +69 -64 lines
Use ANSI function decls and static.

Revision 1.36.2.2.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 30 13:17:07 2005 UTC (20 years, 1 month ago) by he
Branches: netbsd-2
CVS tags: 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
Diff to: previous 1.36.2.2: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.2: +41 -4 lines
Pull up revision 1.43 (requested by kent in ticket #949):
  Add support for suspending/resuming.  Fixes PR#26432.

Revision 1.31.2.9: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:31:23 2005 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.8: preferred, colored
Changes since revision 1.31.2.8: +119 -121 lines
Sync with HEAD.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Jan 15 15:19:52 2005 UTC (20 years, 2 months ago) by kent
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +84 -77 lines
ansify and KNF

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


Summary of changes:

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

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

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

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

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

* all of audio HW drivers follow audio_hw_if and ac97 changes

Revision 1.49.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 9 08:42:45 2005 UTC (20 years, 2 months ago) by kent
Branches: kent-audio1
Diff to: previous 1.49.2.1: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.2.1: +7 -22 lines
audio_hw_if change
 * make open() and close() optional
 * add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 2 20:03:11 2005 UTC (20 years, 2 months ago) by kent
Branches: kent-audio1
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +32 -26 lines
* adopt the filter pipeline framework
* follow ac97_attach() change

Revision 1.31.2.8: download - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:15 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.7: preferred, colored
Changes since revision 1.31.2.7: +75 -164 lines
Sync with HEAD.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Nov 16 17:15:01 2004 UTC (20 years, 4 months ago) by xtraeme
Branches: MAIN
CVS tags: kent-audio1-beforemerge, kent-audio1-base
Branch point for: kent-audio1
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
Fix typo.

Revision 1.31.2.7: download - view: text, markup, annotated - select for diffs
Sun Nov 14 08:15:43 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.6: preferred, colored
Changes since revision 1.31.2.6: +13 -15 lines
Sync with HEAD.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Nov 13 15:00:48 2004 UTC (20 years, 4 months ago) by kent
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +74 -163 lines
adopt auconv_set_converter()

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Nov 10 04:22:31 2004 UTC (20 years, 4 months ago) by kent
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -4 lines
remove unused variable

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Nov 10 04:20:26 2004 UTC (20 years, 4 months ago) by kent
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +8 -11 lines
move IS_FIXED_RATE(), SUPPORTS_4CH(), and SUPPORTS_6CH to ac97var.h

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Nov 8 06:20:58 2004 UTC (20 years, 4 months ago) by kent
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +7 -4 lines
print dmesg correctly for VT8237

Revision 1.31.2.6: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:52:09 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.5: preferred, colored
Changes since revision 1.31.2.5: +3 -3 lines
Sync with HEAD.

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

Revision 1.31.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:56:57 2004 UTC (20 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.4: preferred, colored
Changes since revision 1.31.2.4: +41 -4 lines
Sync with HEAD

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Oct 17 08:46:39 2004 UTC (20 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +41 -4 lines
add support for suspending/resuming.
patch provided by Rhialto in PR#26432

Revision 1.31.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 24 10:53:27 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.3: preferred, colored
Changes since revision 1.31.2.3: +8 -5 lines
Sync with HEAD.

Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Wed Sep 22 20:58:15 2004 UTC (20 years, 6 months ago) by jmc
Branches: netbsd-2-0
CVS tags: netbsd-2-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
Branch point for: netbsd-2
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.1: +8 -5 lines
Pullup rev 1.42 (requested by kent in ticket #867)

ac97_host_if::reset() returns non-zero value if codec reset fails, and
ac97 is not attached in that case. PR#26973

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Sep 22 12:20:25 2004 UTC (20 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +8 -5 lines
ac97_host_if::reset() returns non-zero value if codec reset fails, and
ac97 is not attached in that case.

PR: kern/26973

Revision 1.31.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:31:01 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.2: preferred, colored
Changes since revision 1.31.2.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:49:02 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31.2.1: preferred, colored
Changes since revision 1.31.2.1: +0 -0 lines
Sync with HEAD.

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:49:06 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +49 -24 lines
Sync with HEAD

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Jul 9 02:42:45 2004 UTC (20 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -2 lines
Clean up.  Attempt to make these safer against stray interrupts.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Jul 9 01:02:32 2004 UTC (20 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -9 lines
There's no need to halt the input and output pipes in the close routine --
audio_close() takes care of this.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Apr 22 00:17:12 2004 UTC (20 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -4 lines
sprintf -> snprintf

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Apr 12 15:44:53 2004 UTC (20 years, 11 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -6 lines
Be consistent with other messages: output "VIA Technologies" instead of
only "VIA".  Also add a missing "Audio" word to a message.
Closes PR kern/25152 by Nicolas Joly.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 1 05:23:14 2004 UTC (20 years, 11 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +8 -2 lines
Pullup rev 1.37 (requested by jmcneill in ticket #36)

Don't allow block sizes < 288 bytes on VT823x chips. PR#22788

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Mar 31 21:10:04 2004 UTC (20 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +8 -2 lines
Don't allow block sizes < 288 bytes on VT823x chips (patch from kent@).
Fixes kern/22788.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Mar 25 23:07:09 2004 UTC (21 years ago) by xtraeme
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -4 lines
err fix previous (return -> break) in case statement.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Mar 25 22:48:43 2004 UTC (21 years ago) by xtraeme
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -6 lines
There are two revisions of the VT8235 audio chipset (0x50 and 0x60), so
print any of them as VT8235, approved by martin@.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Mar 25 10:20:27 2004 UTC (21 years ago) by martin
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +30 -8 lines
Better identify some revisions of via 823* audio chips.
From PR kern/24906.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Oct 30 01:58:17 2003 UTC (21 years, 4 months ago) by simonb
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -4 lines
Remove some assigned-to but otherwise unused variables.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Sep 14 14:48:17 2003 UTC (21 years, 6 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +9 -5 lines
Enable auvia_reset_codec's code and wait until the card is available.
Fixes 'invalid codec' problems (at least with AD1980).  Ok'ed by tsarna@.

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

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Feb 1 06:23:38 2003 UTC (22 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +7 -6 lines
Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Jan 31 00:07:40 2003 UTC (22 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +15 -12 lines
Use aprint_*().

Revision 1.11.2.7: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:11:02 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.11.2.6: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.6: +17 -6 lines
Catch up to -current

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Nov 4 16:38:49 2002 UTC (22 years, 4 months ago) by kent
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +19 -8 lines
auvia_set_params:
For a fixed-rate codec, when AUMODE_RECORD and AUDIO_ENCODING_MULAW or
AUDIO_ENCODING_ALAW, use AUDIO_ENCODING_SLINEAR_LE/16bit for native encoding
instead of AUDIO_ENCODING_ULINEAR/8bit because aurateconv does not support
sampling rate conversion for 8 bit PCM.
This change fixes PR kern/18834.

Revision 1.11.2.6: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:42:55 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.11.2.5: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.5: +279 -159 lines
Catch up to -current.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Oct 16 15:27:28 2002 UTC (22 years, 5 months ago) by kent
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +162 -120 lines
Support for 4ch/6ch audio playback with VT8233/VT8235.

Revision 1.11.4.4: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:40:27 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.11.4.3: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.4.3: +6 -7 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Oct 8 13:10:24 2002 UTC (22 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +23 -31 lines
- Enable in-kernel sampling rate conversion for fixed-rate codec
- Remove VRA/VRM enabling in auvia_attach()
- Use ac97_codec_if::set_rate()
- Return no AUDIO_PROPS_MMAP for fixed-rate codec
- Remove unused variables in auvia_softc

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Oct 7 16:28:24 2002 UTC (22 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +10 -2 lines
Revive VIA8233_RP_DXS_[LR]VOL in auvia_trigger_*().

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Oct 6 23:14:25 2002 UTC (22 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +21 -29 lines
- auvia_trigger_output(): correct register;
	AUVIA_RP_CONTROL -> AUVIA_RP_MODE
- auvia_trigger_output(), auvia_trigger_input(): Remove DXS_[LR]VOL setting.
- whitespace

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Oct 6 16:33:36 2002 UTC (22 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -6 lines
Add some constant symbols for AC97 registers and values based on OpenBSD.
Rename some symbols to sync with OpenBSD:
	AC97_REG_EXTENDED_ID
	-> AC97_REG_EXT_AUDIO_ID
	AC97_REG_EXTENDED_STATUS
	-> AC97_REG_EXT_AUDIO_CTRL
	AC97_CODEC_DOES_VRA/AC97_ENAB_VRA
	-> AC97_EXT_AUDIO_VRA
	AC97_CODEC_DOES_MICVRA/AC97_ENAB_MICVRA
	-> AC97_EXT_AUDIO_VRM

ac97feature: "mic channel" -> "dedicated mic channel"
ac97_attach(): print extended capabilities; VRA, DRA, SPDIF, VRM, CDAC,
SDAC, LDAC.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Oct 5 18:08:30 2002 UTC (22 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +160 -73 lines
Add support for VIA VT8233/VT8235.  The patch was provided by Ola Eriksson
<ola at mreriksson dot net> in PR kern/18375.  It is based on auvia of
OpenBSD.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Oct 2 16:51:03 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-base
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Add trailing ; to CFATTACH_DECL.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Sep 30 20:37:09 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -5 lines
Use CFATTACH_DECL().

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Sep 27 20:39:46 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Declare all cfattach structures const.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:37:24 2002 UTC (22 years, 5 months ago) by provos
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
remove trailing \n in panic().  approved perry.

Revision 1.11.4.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:47:34 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.11.4.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.4.2: +13 -4 lines
catch up with -current on kqueue branch

Revision 1.11.2.5: download - view: text, markup, annotated - select for diffs
Wed Apr 17 00:06:00 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.11.2.4: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.4: +6 -1 lines
Catch up to -current.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Apr 2 16:02:38 2002 UTC (22 years, 11 months ago) by fvdl
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-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, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, gehenna-devsw-base, gehenna-devsw
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -3 lines
Return 0 when no interrupt was handled.

Revision 1.11.2.4: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:46:19 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.11.2.3: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.3: +6 -2 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Mar 16 21:45:49 2002 UTC (23 years ago) by jmcneill
Branches: MAIN
CVS tags: eeh-devprop-base, eeh-devprop
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -3 lines
Backout addition of the VIA VT8233.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Mar 16 17:20:05 2002 UTC (23 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -3 lines
Add support for the VT8233 AC'97.

Revision 1.11.4.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:56:27 2002 UTC (23 years, 2 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.11.4.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.4.1: +5 -1 lines
Sync kqueue branch with -current.

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:15:07 2001 UTC (23 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.2: +4 -1 lines
Catch up to -current.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Nov 13 07:48:41 2001 UTC (23 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: newlock-base, newlock, ifpoll-base
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -1 lines
add RCSID

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

Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:11:10 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.1: +2 -1 lines
Catch up to -current.

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

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Sat Aug 25 06:16:22 2001 UTC (23 years, 7 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
Merge Aug 24 -current into the kqueue branch.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:10:00 2001 UTC (23 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
Catch up with -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Aug 4 22:15:56 2001 UTC (23 years, 7 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
It seems the fixed rate versions are actually fixed at 48 kHz, not 44.1 kHz.

Revision 1.7.2.6: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:31:03 2001 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.5: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.5: +2 -1 lines
Sync with HEAD.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Feb 19 21:14:49 2001 UTC (24 years, 1 month ago) by fvdl
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa, kqueue
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -1 lines
Switch line in mute off by default.

Revision 1.7.2.5: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:02 2001 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.4: preferred, colored
Changes since revision 1.7.2.4: +7 -15 lines
Sync with HEAD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jan 5 03:33:39 2001 UTC (24 years, 2 months ago) by augustss
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -13 lines
Don't make local defines for stuff that's already in ac97reg.h.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Dec 28 22:59:11 2000 UTC (24 years, 2 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -3 lines
Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q

Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:08 2000 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.3: preferred, colored
Changes since revision 1.7.2.3: +12 -6 lines
Sync with HEAD (for UBC fixes).

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Dec 10 15:43:02 2000 UTC (24 years, 3 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +12 -6 lines
do not try to get/set sample rate on codecs which don't support variable
rate audio - always report/use fixed rate of 44100 for them, so that the
other audio code DTRT

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:04:00 2000 UTC (24 years, 4 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7.2.2: preferred, colored
Changes since revision 1.7.2.2: +9 -9 lines
Sync with HEAD.

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

Revision 1.7.2.1
Wed Nov 15 21:06:33 2000 UTC (24 years, 4 months ago) by bouyer
Branches: thorpej_scsipi
FILE REMOVED
Changes since revision 1.7: +0 -967 lines
file auvia.c was added on branch thorpej_scsipi on 2000-11-20 11:42:14 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Nov 15 21:06:33 2000 UTC (24 years, 4 months ago) by jdolecek
Branches: MAIN
Branch point for: thorpej_scsipi
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -7 lines
if AC97_CODEC_DOES_VRA is not supported, only print warning than
hw Variable Rate Audio is not supported and continue attaching the driver.
This is I believe more correct than what was done in rev 1.5

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Nov 14 18:42:55 2000 UTC (24 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -3 lines
NBPG -> PAGE_SIZE

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Fri Sep 1 08:35:48 2000 UTC (24 years, 6 months ago) by jdolecek
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.1: +7 -2 lines
pullup rev. 1.5 (approved by thorpej):
rev. H apparently doesn't set AC97_CODEC_DOES_VRA bit but works ok with
this driver, so only require the bit set for revisions < H

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Sep 1 00:02:04 2000 UTC (24 years, 6 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -2 lines
even through the integrated audio on my MSI 694D Pro
does not set AC97_CODEC_DOES_VRA in AC97_REG_EXT_AUDIO_ID request, it
works okay; only require the bit set for revision < 'H'

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Fri Jun 30 16:27:49 2000 UTC (24 years, 8 months ago) by simonb
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
Pull up mmap paddr_t/off_t changes from trunk.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jun 26 04:56:22 2000 UTC (24 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes.  Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon May 15 01:27:46 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
ac97.h -> ac97var.h

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Apr 8 03:33:58 2000 UTC (24 years, 11 months ago) by tsarna
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +26 -12 lines
Fix auvia_free, clean up more on close, and be more careful in interrupt
handler.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 04:45:28 2000 UTC (24 years, 11 months ago) by tsarna
Branches: MAIN
Add auvia, a driver for the integrated AC'97 audio on the VIA VT82C686A
southbridge.

Tested on a ASUS K7M (w/ AD1881 codec). Please report any problems.

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>