The NetBSD Project

CVS log for src/sys/dev/ic/ac97.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Oct 18 11:51:08 2020 UTC (4 years, 6 months ago) by rin
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-futex, 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.99: preferred, colored
Changes since revision 1.99: +5 -4 lines
Fix undefined behaviors found by kUBSan.
Tested on VirtualBox with amd64 kernel.

Revision 1.97.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:05 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.97.4.1: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.4.1: +3 -3 lines
Merge changes from current as of 20200406

Revision 1.99: download - view: text, markup, annotated - select for diffs
Thu Nov 28 05:07:27 2019 UTC (5 years, 5 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -3 lines
Use NULL for pointer.

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

Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:18 2019 UTC (5 years, 11 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3 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.97.8.1: download - view: text, markup, annotated - select for diffs
Sat May 4 07:20:09 2019 UTC (5 years, 11 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +3 -3 lines
Move dev/audio_if.h -> dev/audio/audio_if.h

Revision 1.94.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:02 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.94.2.1: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94.2.1: +4 -3 lines
update from HEAD

Revision 1.95.14.2: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:03 2017 UTC (7 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.95.14.1: preferred, colored; branchpoint 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.14.1: +3 -3 lines
Sync with HEAD

Revision 1.95.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 9 06:22:06 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.95.12.1: preferred, colored; branchpoint 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.12.1: +3 -3 lines
Pull up following revision(s) (requested by nat in ticket #1460):
	sys/dev/auconv.c: revision 1.30 via patch
	sys/dev/ic/ac97.c: revision 1.97 via patch
	sys/dev/pci/azalia_codec.c: revision 1.81 via patch
Mixer device bounds checking.
Analysis by Ilja van Sprundel.

Revision 1.95.12.1.6.1: download - view: text, markup, annotated - select for diffs
Wed Aug 9 06:21:18 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-7-1
CVS tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Diff to: previous 1.95.12.1: preferred, colored; next MAIN 1.95.12.2: preferred, colored
Changes since revision 1.95.12.1: +3 -3 lines
Pull up following revision(s) (requested by nat in ticket #1460):
	sys/dev/auconv.c: revision 1.30 via patch
	sys/dev/ic/ac97.c: revision 1.97 via patch
	sys/dev/pci/azalia_codec.c: revision 1.81 via patch
Mixer device bounds checking.
Analysis by Ilja van Sprundel.

Revision 1.95.12.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 9 06:20:10 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-7-0
Diff to: previous 1.95.12.1: preferred, colored; next MAIN 1.95.12.2: preferred, colored
Changes since revision 1.95.12.1: +3 -3 lines
Pull up following revision(s) (requested by nat in ticket #1460):
	sys/dev/auconv.c: revision 1.30 via patch
	sys/dev/ic/ac97.c: revision 1.97 via patch
	sys/dev/pci/azalia_codec.c: revision 1.81 via patch
Mixer device bounds checking.
Analysis by Ilja van Sprundel.

Revision 1.96.10.1: download - view: text, markup, annotated - select for diffs
Tue Aug 1 23:23:00 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96: +3 -3 lines
Pull up following revision(s) (requested by nat in ticket #166):
	sys/dev/auconv.c: revision 1.30
	sys/dev/audio.c: revision 1.372
	sys/dev/ic/ac97.c: revision 1.97
	sys/dev/pci/azalia_codec.c: revision 1.81
Mixer device bounds checking.
Analysis by Ilja van Sprundel.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Fri Jul 28 01:36:40 2017 UTC (7 years, 9 months ago) by nat
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, 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, pgoyette-compat, nick-nhusb-base-20170825, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base
Branch point for: phil-wifi, isaki-audio2
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3 lines
Mixer device bounds checking.

Analysis by Ilja van Sprundel.

Revision 1.95.12.1: download - view: text, markup, annotated - select for diffs
Sun Jul 5 20:37:01 2015 UTC (9 years, 9 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: netbsd-7-1, netbsd-7-0
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -2 lines
Pull up following revision(s) (requested by maxv in ticket #858):
	sys/dev/ic/ac97.c: revision 1.96
fix memory leak, found by Brainy.
XXX: is there anything else that we need to cleanup at this point?

Revision 1.95.14.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:09 2015 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -2 lines
Sync with HEAD

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Apr 4 15:09:45 2015 UTC (10 years ago) by christos
Branches: MAIN
CVS tags: 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -2 lines
fix memory leak, found by Brainy.
XXX: is there anything else that we need to cleanup at this point?

Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:01 2012 UTC (12 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.91.12.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:59 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.91.12.1: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.12.1: +6 -6 lines
sync with head

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Oct 27 17:18:18 2012 UTC (12 years, 6 months ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base, netbsd-7-base, netbsd-7-0-RC1, khorben-n900, agc-symver-base, agc-symver
Branch point for: nick-nhusb, netbsd-7
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4 lines
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Jun 2 21:36:44 2012 UTC (12 years, 10 months ago) by dsl
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +4 -4 lines
Add some pre-processor magic to verify that the type of the data item
  passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.

Revision 1.91.12.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:31 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +86 -7 lines
sync with head

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Nov 27 15:08:04 2011 UTC (13 years, 5 months ago) by mbalmer
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, 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-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
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +6 -4 lines
Add the Avance Logic ALC203 code, found on e.g. alix3d3 boards.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Wed Nov 23 23:07:31 2011 UTC (13 years, 5 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +82 -5 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.91.14.1: download - view: text, markup, annotated - select for diffs
Sat Nov 19 21:49:36 2011 UTC (13 years, 5 months ago) by jmcneill
Branches: jmcneill-audiomp3
Diff to: previous 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +82 -5 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.89.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:47 2009 UTC (15 years, 9 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.89.2.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.2.1: +40 -3 lines
Sync with HEAD.

Revision 1.87.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:53:01 2009 UTC (15 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.87.4.2: preferred, colored; branchpoint 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87.4.2: +40 -3 lines
sync with head.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Jul 13 12:54:11 2009 UTC (15 years, 9 months ago) by kiyohara
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, 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.90: preferred, colored
Changes since revision 1.90: +40 -3 lines
Support UCB1400.
  It tested on GUMSTIX with audiostix.  However GUMSTIX needs more ad-hoc patch.

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

Revision 1.89.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:21 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4 lines
Sync with HEAD.

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

Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue May 12 14:25:17 2009 UTC (15 years, 11 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4 lines
struct device * -> device_t, no functional changes intended.

Revision 1.87.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:39 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +122 -14 lines
sync with head.

Revision 1.88.4.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:54 2009 UTC (16 years, 3 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +8 -10 lines
Sync with HEAD.

Revision 1.86.38.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:54 2009 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.86.38.2: preferred, colored; branchpoint 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86.38.2: +6 -8 lines
Sync with HEAD.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Tue Dec 16 22:35:30 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +8 -10 lines
replace bitmask_snprintf(9) with snprintb(3)

Revision 1.88.8.1: download - view: text, markup, annotated - select for diffs
Sun Dec 7 13:02:13 2008 UTC (16 years, 4 months ago) by ad
Branches: ad-audiomp2
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +83 -5 lines
Ressurect the ad-audiomp branch at request of matt@.

With this commit:

- core audio subsystem made MPSAFE
- eap, btsco drivers made MPSAFE

TODO:

- midi
- convert remaining drivers

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

Revision 1.86.38.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:06 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.86.38.1: preferred, colored; branchpoint 1.86: preferred, colored
Changes since revision 1.86.38.1: +114 -4 lines
Sync with HEAD.

Revision 1.87.8.1: download - view: text, markup, annotated - select for diffs
Fri Jun 27 15:11:21 2008 UTC (16 years, 10 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +116 -6 lines
Sync with head.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue Jun 24 10:57:45 2008 UTC (16 years, 10 months ago) by gmcgarry
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, 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, 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
Branch point for: nick-hppapmap, ad-audiomp2
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +116 -6 lines
Array range designated initializers are a gcc extension.  Replace with
explicit initialization with zeros, although it probably isn't necessary.

Revision 1.86.38.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:17 2008 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +13 -17 lines
Sync with HEAD.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue Apr 8 12:07:25 2008 UTC (17 years ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +13 -17 lines
use aprint_*_dev and device_xname

Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:53:51 2007 UTC (18 years, 2 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +3 -3 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.86.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 14:16:01 2007 UTC (18 years, 2 months ago) by ad
Branches: ad-audiomp
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +86 -5 lines
Add MP locking for audio drivers.

Revision 1.76.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:05 2007 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.2: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.2.2: +5 -5 lines
sync with head.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Feb 21 22:59:59 2007 UTC (18 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-lazymbuf-base15, yamt-lazymbuf-base14, 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, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-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, ad-socklock-base1, ad-audiomp-base
Branch point for: mjf-devfs2, ad-audiomp
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -3 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.85: download - view: text, markup, annotated - select for diffs
Fri Feb 16 21:05:40 2007 UTC (18 years, 2 months ago) by alc
Branches: MAIN
Branch point for: yamt-idlelwp
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -4 lines
Update documentation URL. Previous one was leading to a "Page not found".

Revision 1.76.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:00 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.2.1: preferred, colored
Changes since revision 1.76.2.1: +257 -179 lines
sync with head.

Revision 1.79.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:00 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +294 -189 lines
sync with head

Revision 1.79.8.3: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:56 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.79.8.2: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.8.2: +200 -173 lines
sync with head.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Sep 2 17:02:57 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +174 -163 lines
add missing initializers

Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Aug 23 11:24:07 2006 UTC (18 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +71 -55 lines
implement auto-detection of volume resolutions

Revision 1.79.8.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:44:10 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.79.8.1: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.8.1: +61 -10 lines
sync with head

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Jul 26 14:44:33 2006 UTC (18 years, 9 months ago) by kent
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +61 -10 lines
add capability to support for S/PDIF.
If a codec supports for AC'97 S/PDIF, it will have an mixer "spdif.enable."
However, we can't change the value of the mixer without AC'97 host
driver's support.

Revision 1.76.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:52 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +42 -12 lines
sync with head.

Revision 1.79.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:20 2006 UTC (18 years, 11 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.79.6.1: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.6.1: +5 -6 lines
Sync with head.

Revision 1.79.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:24 2006 UTC (18 years, 11 months ago) by tron
Branches: peter-altq
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +39 -12 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.79.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:40 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +39 -12 lines
sync with head.

Revision 1.79.10.2: download - view: text, markup, annotated - select for diffs
Thu May 11 23:28:30 2006 UTC (18 years, 11 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.79.10.1: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.10.1: +5 -6 lines
sync with head

Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed May 10 09:07:57 2006 UTC (18 years, 11 months ago) by uebayasi
Branches: MAIN
CVS tags: 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
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -6 lines
Update URLs to ASAHI KASEI CODECs.

Revision 1.79.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:54 2006 UTC (19 years ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +36 -8 lines
Sync with head.

Revision 1.79.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:36 2006 UTC (19 years ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +36 -8 lines
sync with head.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Apr 15 21:18:34 2006 UTC (19 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +36 -8 lines
* Add a flag AC97_HOST_INVERTED_EAMP. (kern/18880, kern/24488).
* Make reset callback optional; not all devices need it. (port-i386/14260, kern/12603, kern/12723, kern/24957).

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:21:25 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +2 -2 lines
merge ktrace-lwp.

Revision 1.43.2.11: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:13 2005 UTC (19 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.10: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.10: +419 -109 lines
Sync with HEAD. Here we go again...

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Nov 6 10:08:24 2005 UTC (19 years, 5 months ago) by rpaulo
Branches: MAIN
CVS tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -2 lines
Add "Conexant CXT48". This should have a more meaningful name, but I
couldn't find it. So, I added this because it's better than printing
"unknown codec". When we find a more decent name later, we can change this.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Sep 27 05:24:40 2005 UTC (19 years, 7 months ago) by simonb
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, thorpej-vnode-attr-base, thorpej-vnode-attr
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -2 lines
Add SigmaTel STAC9752/53 codec ID.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Jun 20 02:49:18 2005 UTC (19 years, 10 months ago) by atatat
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +5 -5 lines
Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone.  Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon May 30 04:43:46 2005 UTC (19 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +12 -12 lines
- add missing const
- fix variable shadowing
- remove unneeded casts

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed May 11 13:13:11 2005 UTC (19 years, 11 months ago) by scw
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +44 -28 lines
Add a heuristic to test if an audio CODEC's AC97_REG_POWER register supports
the AC97_POWER_ANL bit.

The heuristic simply checks if AC97_REG_POWER's AC97_POWER_MIXER  bit can
be set, implying the CODEC can control power to its mixer. If the bit
reads back as zero after we set it, assume ANL is reserved.

Without this patch, some CODECs (e.g. Philips UCB1400) will experience long
delays during attach and resume while the driver waits for a bit which will
never set.

Thanks to jmcneill@ for reviewing this WRT AC97 modem power control.

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:47 2005 UTC (20 years ago) by kent
Branches: kent-audio2
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +376 -85 lines
sync with -current

Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Apr 12 21:11:43 2005 UTC (20 years ago) by jmcneill
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +8 -6 lines
* Reduce timeout for codec powerup
* Return ENXIO from ac97_attach_type if the modem codec fails to power-on.
  This will prevent broken AC97 modems *cough*Conexant*cough* from giving
  the impression that they will actually work.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Apr 12 17:28:02 2005 UTC (20 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +122 -160 lines
Don't touch AC97_REG_RESET if we're dealing with a modem (modems use
AC97_REG_EXT_MODEM_ID instead). Also set the default audio rate to 8000;
12000 was a stupid choice since we don't actually support it in the driver
yet.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Apr 11 18:26:48 2005 UTC (20 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +26 -16 lines
Add ac97_attach_type(), to allow the hw driver to skip probes for audio or
modem devices. ac97_attach now calls ac97_attach_type() with
AC97_CODEC_TYPE_AUDIO, for backwords compatibility.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Apr 8 12:50:00 2005 UTC (20 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -2 lines
Add identifiers for Intel ICH3 AC'97 modems and CXT33 modem codecs, from
Nicolas Joly <njoly _at_ pasteur _dot_ fr>.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu Apr 7 23:24:05 2005 UTC (20 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +162 -28 lines
AC'97 modems don't have the same mixer controls as audio devices. Treat
them differently. Mixers are built depending on the features returned
in the ext_mid -- any combination of LINE1, LINE2, and HANDSET.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Apr 4 18:52:30 2005 UTC (20 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +139 -15 lines
* Add more AC97 modem registers (from AC'97 revision 2.2)
* Add sysctls to control the modem's off-hook status (work in progress)

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Apr 4 02:08:58 2005 UTC (20 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +65 -8 lines
* Add support for skipping either the modem or audio AC'97 probes
  via host_flags: AC97_HOST_SKIP_AUDIO, AC97_HOST_SKIP_MODEM
* If we're dealing with a modem codec, print the extended modem
  capabilities.
* Add basic AC'97 modem initialization support.
* Add some (but not all) AC'97 modem registers. More will be added later.

Revision 1.43.2.10: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:30:39 2005 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.9: preferred, colored
Changes since revision 1.43.2.9: +35 -39 lines
Sync with HEAD.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Jan 10 22:01:37 2005 UTC (20 years, 3 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
Branch point for: kent-audio2
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +35 -39 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.65.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 2 16:19:55 2005 UTC (20 years, 3 months ago) by kent
Branches: kent-audio1
Diff to: previous 1.65.2.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.1: +14 -14 lines
unify to uintXX_t

Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 2 16:12:37 2005 UTC (20 years, 3 months ago) by kent
Branches: kent-audio1
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +23 -27 lines
* add "struct device *" parameter to ac97_attach() as discussion in tech-kern
* change the type of sampling rate parameter of ac97_set_rate():
	u_long * -> u_int *
* other cosmetic changes

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

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Nov 8 14:24:17 2004 UTC (20 years, 5 months ago) by kent
Branches: MAIN
CVS tags: kent-audio1-beforemerge, kent-audio1-base
Branch point for: kent-audio1
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +16 -2 lines
- nuke __P()
- add ac97_codec_if_vtbl::detach()

Revision 1.43.2.8: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:56:53 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.7: preferred, colored
Changes since revision 1.43.2.7: +26 -10 lines
Sync with HEAD

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Oct 17 08:20:15 2004 UTC (20 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +17 -6 lines
make sure of readiness of an AC'97 codec by writing a value and
reading it.  There is a codec which is not operational just
after power states become ready.

PR#26457

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Oct 12 14:34:41 2004 UTC (20 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +12 -7 lines
split outputs.tone to outputs.bass and outputs.treble

from OpenBSD

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

Revision 1.52.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 22 20:58:04 2004 UTC (20 years, 7 months ago) by jmc
Branches: netbsd-2-0
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-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
Diff to: previous 1.52.2.2: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.2: +6 -3 lines
Pullup rev 1.62 (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.62: download - view: text, markup, annotated - select for diffs
Wed Sep 22 12:20:24 2004 UTC (20 years, 7 months ago) by kent
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +6 -3 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.43.2.6: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:27:46 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.5: preferred, colored
Changes since revision 1.43.2.5: +2 -2 lines
Fix the sync with head I botched.

Revision 1.43.2.5: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:45:55 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.4: preferred, colored
Changes since revision 1.43.2.4: +2 -2 lines
Sync with HEAD.

Revision 1.52.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 10 06:52:02 2004 UTC (20 years, 7 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.52.2.1: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.2.1: +32 -8 lines
Pull up revision 1.59 (requested by kent in ticket #823):
Check power states after codec reset.  This change fixes a
resume problem on some boards.
Patch provided by Joachim Thiemann in PR kern/26457

Revision 1.43.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 3 12:45:18 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.3: preferred, colored
Changes since revision 1.43.2.3: +38 -2 lines
Sync with HEAD

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Aug 28 07:02:11 2004 UTC (20 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +38 -2 lines
add debug code for ac97_write().
It is enabled by defining AC97_IO_DEBUG.

Revision 1.43.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 25 06:57:35 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.2: preferred, colored
Changes since revision 1.43.2.2: +71 -46 lines
Sync with HEAD.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Aug 24 00:53:28 2004 UTC (20 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +41 -40 lines
Use ANSI function decls and more use of static.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Aug 20 14:36:13 2004 UTC (20 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +32 -8 lines
Check power states after codec reset.  This change fixes a
resume problem on some boards.
Patch provided by Joachim Thiemann in PR kern/26457

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 12 20:06:24 2004 UTC (20 years, 8 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +48 -31 lines
Pullup rev 1.54-1.58 (requested by kent in ticket #758)

Support for some AC'97 codecs

Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 12 11:41:22 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.1: preferred, colored
Changes since revision 1.43.2.1: +48 -31 lines
Sync with HEAD.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Aug 8 10:41:57 2004 UTC (20 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -3 lines
VT1616i support

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Aug 8 03:52:19 2004 UTC (20 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3 lines
correct the mask value for CMI9739

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Aug 8 03:50:56 2004 UTC (20 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +11 -2 lines
recognize CMI9739 codec.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Aug 7 17:37:31 2004 UTC (20 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +26 -29 lines
AD1888 support.
PR kern/25949

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:59:54 2004 UTC (20 years, 8 months ago) by kent
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +12 -3 lines
recognize ALC655/658/850

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:46:06 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +212 -179 lines
Sync with HEAD

Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Jun 1 13:35:59 2004 UTC (20 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +6 -3 lines
- update URLs for sigmatel.
- add entry for "SigmaTel STAC9758/59" (seen on a new emuxki card)

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Nov 24 16:05:10 2003 UTC (21 years, 5 months ago) by kent
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
An ICH board needs reading AC97_REG_RESET before reading AC97_VENDOR_ID.
(why?)
http://mail-index.netbsd.org/current-users/2003/11/22/0007.html

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Nov 22 06:15:29 2003 UTC (21 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -6 lines
AD1985 codec needs the same quirk as AD1980.
The patch was provided by Lars Heidieker.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Nov 22 05:40:48 2003 UTC (21 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +104 -120 lines
Cosmetic changes
 - ANSIfy
 - no argument names in prototypes
 - variable declaration with initialization

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Sep 28 22:24:09 2003 UTC (21 years, 7 months ago) by cube
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +17 -5 lines
Change the way of setting a port value so that a change too small to
fit in the number of bits used for the port still does something.

This fixes PR pkg/18741 for ac97-based hardware. Other audio drivers
might need a similar fix.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Sep 28 15:39:09 2003 UTC (21 years, 7 months ago) by kent
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -2 lines
codec id for AD1985

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Sep 11 09:21:29 2003 UTC (21 years, 7 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +13 -2 lines
After initialization of the AD1980 codec, swap master and surround volume
controls.  As it was before, the master volume control in all mixer programs
did nothing.  It seems that this codec is not correctly wired in (almost?)
all motherboards.

Patch by Quentin Garnier.  Fixes first part of PR kern/22548.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Sep 8 13:58:21 2003 UTC (21 years, 7 months ago) by kent
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +32 -14 lines
Correct flag names of AD1980

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Sep 7 11:59:40 2003 UTC (21 years, 7 months ago) by kent
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -5 lines
Codec id ADS 0x70 is AD1980, not AD1981.
http://mail-index.netbsd.org/tech-kern/2003/09/03/0005.html

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Sep 7 11:27:32 2003 UTC (21 years, 7 months ago) by kent
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +44 -42 lines
Use bitmask_snprintf() for printing ext id features.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Jun 13 05:31:29 2003 UTC (21 years, 10 months ago) by kent
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +27 -3 lines
Add AD1981-specific initialization.
The patch provided by Lars Heideker.

PR: kern/20368

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Jun 11 14:22:27 2003 UTC (21 years, 10 months ago) by scw
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +10 -2 lines
In ac97_restore_shadow(), make sure to restore the codec's extended
control register if we configured it during ac97_attach().

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Mar 3 02:14:12 2003 UTC (22 years, 2 months ago) by bsh
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -2 lines
add Philips UCB1400

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Jan 31 00:26:26 2003 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +24 -23 lines
Use aprint_*().

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Jan 20 07:22:15 2003 UTC (22 years, 3 months ago) by simonb
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -4 lines
Remove variable that is only assigned too but not referenced.

Revision 1.18.2.9: download - view: text, markup, annotated - select for diffs
Sun Dec 29 20:49:16 2002 UTC (22 years, 4 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.18.2.8: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.8: +4 -2 lines
Sync with HEAD.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Dec 26 20:56:52 2002 UTC (22 years, 4 months ago) by matt
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -2 lines
Recognize AD1981 codec (0x41445370).  XXX name is a guess but it follows
the existing pattern.

Revision 1.24.10.1: download - view: text, markup, annotated - select for diffs
Wed Dec 11 18:10:06 2002 UTC (22 years, 4 months ago) by he
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +8 -8 lines
Pull up revision 1.37 (via patch, requested by kent in ticket #980):
  Fix LR reversal problem of mixer and record gain
  polarity problem.  Based on PR#12878 and PR#18901.

Revision 1.18.2.8: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:09:14 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.18.2.7: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.7: +106 -42 lines
Catch up to -current

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Nov 6 16:58:37 2002 UTC (22 years, 5 months ago) by kent
Branches: MAIN
CVS tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +8 -8 lines
Fix LR contrary problem of mixer and record gain polarity
problem.  The change is based on the patches in PR kern/12878 by
Zdenek Salvet and PR kern/18901 by SUNAKAWA Hirokatsu.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Nov 6 13:41:22 2002 UTC (22 years, 5 months ago) by kent
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +29 -16 lines
Add codec IDs for AD1981B, STAC9750/51, and STAC9766/67.
Whitespace.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Oct 22 13:48:30 2002 UTC (22 years, 6 months ago) by kent
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +75 -24 lines
Correct codec id of VT1611A.
Add codec id of VT1616.

ALC650 codec specific chagne:
 Add outputs.surround.mixtofront,
 outputs.center.mixtofront, and outputs.lfe.mixtofront.

VT1616 codec specific change:
 Add outputs.surround.mixtofront,
 outputs.center.mixtofront, and outputs.lfe.mixtofront.
 (Not tested)

XXX: We should provide ac97(4) manual page and describe
codec-specific features.

Revision 1.18.2.7: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:41:45 2002 UTC (22 years, 6 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.18.2.6: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.6: +715 -134 lines
Catch up to -current.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Oct 16 16:38:25 2002 UTC (22 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +68 -9 lines
Add all vendor/codec IDs which OpenBSD has and NetBSD doesn't have.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Oct 14 08:48:15 2002 UTC (22 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +375 -113 lines
Mixer changes:
 - Add "outputs.surround", "outputs.center", and "outputs.lfe"
 - If the codec is not capable of a feature, mixer variables
about the feature is not created.  For example, no
"outputs.tone" for a codec without tone control.
 - Set the following mixer values in ac97_attach():
	outputs.master=127,127
	outputs.master.mute=off
	outputs.headphones.mute=off
	outputs.surround=127,127
	outputs.surround.mute=off
	outputs.center=127
	outputs.center.mute=off
	outputs.lfe=127
	outputs.lfe.mute=off
	inputs.dac.mute=off
	inputs.cd.mute=off
	inputs.line.mute=off
	inputs.aux.mute=off
	inputs.video.mute=off
	record.volume.mute=off
    because the default setting of AC'97 codec (all mutes are on,
    and maximum volume) is troublesome.
 - Make "char*" parameters of ac97_get_portnum_by_name() "const char*"

Codec ID changes:
 - If a codec ID is unknown but its vendor ID is known,
ac97_attach() prints the vendor name like "dev0: <vendor name>
unknown (0xXXXXXXXX) codec;"
 - Add IDs of Asahi Kasei AK4542, AK4544, AK4544A, AK4545,
Realtek ALC100
 - Correct a vendor name: "Advance Logic" -> "Avance Logic"
 - Add capability of codec-specific initialization

ac97_attach():
 - CDAC, SDAC, and LDAC are eanabled.
 - DELAY() before mixer settings.  ThinkPad X24 needs it.

ALC650 codec specific change:
 - Add "outputs.surround.lineinjack" to switch the line-in jack
to the surround output
 - Add "outputs.center.micjack" and "outputs.lfe.micjack" (alias
of "outputs.center.micjack") to switch the mic jack to the
center/lfe output.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Oct 11 02:32:23 2002 UTC (22 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -2 lines
ac97_attach(): Restore the default rate value after VRA checking.
This change might solve PR kern/18613.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Oct 9 12:06:17 2002 UTC (22 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +102 -44 lines
Add 'mask' member to the struct ac97_codecid.
Cirrus Logic Crystal codec uses lower three bits in ID for a
revision number.  We should mask an actual ID value before
matching to this table.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Oct 8 21:40:04 2002 UTC (22 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
fill in name for TriTech unknown: TR28602

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Oct 8 12:33:34 2002 UTC (22 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +13 -2 lines
If the codec is fixed-rate, ac97_set_rate() returns 48kHz.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Oct 8 09:19:44 2002 UTC (22 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +165 -22 lines
Add IDs for YMF743-S and YMF753-S.

ac97_attach(): Enable VRA/VRM if the codec is capable of them.

The struct ac97_softc keeps the clock of the codec, the basic
features flag (the value of AC97_REG_RESET), and the extended
features flag (the value of AC97_REG_EXT_AUDIO_ID).

ac97_codec_if: Add get_extcaps(), set_rate(), and set_clock()
methods.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Oct 6 16:33:35 2002 UTC (22 years, 6 months ago) by kent
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +42 -4 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.26: download - view: text, markup, annotated - select for diffs
Fri Oct 4 19:22:40 2002 UTC (22 years, 6 months ago) by joda
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +9 -2 lines
more device names

Revision 1.20.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:44:06 2002 UTC (22 years, 7 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.20.2.2: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.2: +4 -2 lines
sync kqueue branch with HEAD

Revision 1.18.2.6: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:44:38 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.18.2.5: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.5: +4 -2 lines
Catch up to -current.

Revision 1.24.8.1: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:35:16 2002 UTC (22 years, 9 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +4 -2 lines
catch up with -current.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jul 5 13:50:47 2002 UTC (22 years, 9 months ago) by joda
Branches: MAIN
CVS tags: kqueue-base, gehenna-devsw-base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -2 lines
add a couple of Analog device names

Revision 1.18.2.5: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:13:19 2002 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.18.2.4: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.4: +5 -7 lines
Catch up to -current.

Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:09:42 2002 UTC (23 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.1: +5 -7 lines
Sync w/ -current.

Revision 1.11.2.5: download - view: text, markup, annotated - select for diffs
Sat Feb 9 18:19:50 2002 UTC (23 years, 2 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.11.2.4: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.4: +3 -3 lines
Pull up revision 1.24 (requested by ichiro):
  Add accidentally omitted comma.

Revision 1.11.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 24 22:34:47 2002 UTC (23 years, 3 months ago) by he
Branches: netbsd-1-5
Diff to: previous 1.11.2.3: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.3: +2 -1 lines
Pull up revision 1.22 (requested by he):
  Add driver for the ESS Allegro-1 / Maestro-3 audio hardware.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Jan 23 14:50:45 2002 UTC (23 years, 3 months ago) by ichiro
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4 lines
It corrected forgetting to attach ","

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jan 12 16:03:11 2002 UTC (23 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -5 lines
Call malloc(9) with M_ZERO flag instead of memset() after malloc().

Revision 1.18.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 11 23:38:58 2002 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.18.2.3: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.3: +3 -2 lines
More catchup.

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

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Jan 6 17:03:17 2002 UTC (23 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -2 lines
For cosmetic reasons, add 'ESS Technology ES1921' to the table of codec Ids.

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

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Nov 13 13:14:31 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -1 lines
add/cleanup RCSID

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:11 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.1: +4 -4 lines
Catch up with -current.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jul 7 15:56:07 2001 UTC (23 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4 lines
bcopy -> memcpy

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:01:51 2001 UTC (23 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +11 -2 lines
Catch up to -current.

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Thu May 3 21:13:05 2001 UTC (24 years ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.2: +2 -11 lines
Pull down revision 1.19 (requested by he):
  Previous pull-up was a bit too aggressive, causing a compile
  problem.  Sorry.

Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Thu May 3 20:59:27 2001 UTC (24 years ago) by he
Branches: netbsd-1-5
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.1: +209 -103 lines
Pull up revisions 1.13-1.19 (requested by skrll and he):
  Add a driver for the ESS Technology Maestro-1/2/2E AC97 audio chips,
  ES1968 and ES1978.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Apr 29 02:47:25 2001 UTC (24 years ago) by erh
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +11 -2 lines
Set the delta for the particular source so telling mixerctl to decrease the
volume (using --) adjusts it far enough to stick.

Revision 1.15.2.6: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:15:23 2001 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.5: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.5: +21 -21 lines
Sync with HEAD.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jan 18 20:28:16 2001 UTC (24 years, 3 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +21 -21 lines
constify

Revision 1.15.2.5: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:16 2001 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.4: preferred, colored
Changes since revision 1.15.2.4: +16 -5 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jan 9 23:14:25 2001 UTC (24 years, 3 months ago) by rh
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +16 -5 lines
Add new AC97_HOST_SWAPPED_CHANNELS host flag that causes left and right
mixer channels to be swapped (required for hardware that has wiring
reversed).

Revision 1.15.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:35:33 2001 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.3: preferred, colored
Changes since revision 1.15.2.3: +5 -3 lines
Sync with HEAD

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Jan 5 03:32:11 2001 UTC (24 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -3 lines
Add some codecs.

Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:03:09 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.2: preferred, colored
Changes since revision 1.15.2.2: +166 -82 lines
Sync with HEAD.

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:40:03 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.1: preferred, colored
Changes since revision 1.15.2.1: +766 -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.15.2.1
Sun Nov 5 05:41:25 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
FILE REMOVED
Changes since revision 1.15: +0 -850 lines
file ac97.c was added on branch thorpej_scsipi on 2000-11-20 11:40:03 +0000

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Nov 5 05:41:25 2000 UTC (24 years, 5 months ago) by thorpej
Branches: MAIN
Branch point for: thorpej_scsipi
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -7 lines
Feh, fix st00p1d braino in last.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Nov 4 08:07:14 2000 UTC (24 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +141 -72 lines
Shadow the AC'97 codec registers.  This adds two capabilities:
* support devices that crash when reading the codec registers; a flags
  interface is added to the host interface and one flag is defined
  (AC97_HOST_DONT_READ).
* new API (restore_ports) for restoring the user's settings.  This
  can be useful after an APM resume after a suspend to disk.

From OpenBSD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Nov 4 05:45:57 2000 UTC (24 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +26 -11 lines
Add some more codec IDs.  From OpenBSD.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 3 22:47:53 2000 UTC (24 years, 7 months ago) by soren
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Pull up rev 1.12:
> date: 2000/07/14 21:09:45;  author: soren;  state: Exp;  lines: +2 -2
> Merge-o (printf format mistake).

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jul 14 21:09:45 2000 UTC (24 years, 9 months ago) by soren
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Merge-o.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:06:25 2000 UTC (24 years, 10 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +6 -6 lines
Sync w/ netbsd-1-5-base.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jun 6 17:25:52 2000 UTC (24 years, 10 months ago) by soren
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -6 lines
Make ID printing a little more robust in case of problems reading
AC97 registers.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon May 15 01:32:03 2000 UTC (24 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -35 lines
Move register definitions into ac97reg.h

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon May 15 01:27:44 2000 UTC (24 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
ac97.h -> ac97var.h

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Apr 28 12:39:59 2000 UTC (25 years ago) by augustss
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +24 -1 lines
Unmute some mixer controls by default.  From OpenBSD.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Apr 26 00:00:41 2000 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +31 -18 lines
Recognize the Crystal CS4297A codec, and add a couple of macros
to manipulate AC97 codec IDs.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Mar 15 22:41:29 2000 UTC (25 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -1 lines
Fix an uninitialized variable.  From Krister Walfridsson <cato@df.lth.se>

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:42 1999 UTC (25 years, 4 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +1 -1 lines
Pull up to last week's -current.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Nov 24 23:21:01 1999 UTC (25 years, 5 months ago) by augustss
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Branch point for: wrstuden-devbsize
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2 lines
Change CS4297 id entry.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Nov 20 01:16:15 1999 UTC (25 years, 5 months ago) by augustss
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +12 -2 lines
Print the PnP id of unknown codecs.

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:40:22 1999 UTC (25 years, 5 months ago) by fvdl
Branches: fvdl-softdep
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: +749 -0 lines
Sync with -current

Revision 1.3.4.1
Tue Nov 2 17:48:02 1999 UTC (25 years, 6 months ago) by fvdl
Branches: fvdl-softdep
FILE REMOVED
Changes since revision 1.3: +0 -749 lines
file ac97.c was added on branch fvdl-softdep on 1999-11-15 00:40:22 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Nov 2 17:48:02 1999 UTC (25 years, 6 months ago) by augustss
Branches: MAIN
CVS tags: fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Branch point for: fvdl-softdep
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -3 lines
Shorten some delay()s.  From WITEK Wnuk <witek@atari.org>

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Nov 2 05:41:27 1999 UTC (25 years, 6 months ago) by soren
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +17 -8 lines
Clean up attachment printing a bit.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Oct 27 13:18:03 1999 UTC (25 years, 6 months ago) by augustss
Branches: MAIN
Add AC97 mixer/codec support.  From OpenBSD and FreeBSD.

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>