Skip site navigation (1)Skip section navigation (2)

CVS log for src/sys/dev/sound/pci/ich.c

[BACK] Up to [FreeBSD] / src / sys / dev / sound / pci

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.82.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (3 months ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.82.2.1: preferred, colored
Changes since revision 1.82.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.78.2.1.10.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.78.2.1: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.1: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.81.2.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.81.2.1: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Dec 18 14:21:28 2010 UTC (13 months, 3 weeks ago) by tijl
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +0 -6 lines
SVN rev 216518 on 2010-12-18 14:21:28Z by tijl

Use convenience functions where possible instead of accessing the PCI
configuration registers directly.

Remove pci_enable_io calls where they are redundant. The PCI bus driver
will set the right bits when the corresponding bus resource is activated.

Remove redundant pci_* function calls from suspend/resume methods. The
bus driver already saves and restores the PCI configuration.

Reviewed by:	jhb
Approved by:	kib (mentor)

Revision 1.81.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.81.2.1: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.78.2.1.8.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.78.2.1: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.1: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.81.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.81.2.1: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Jun 7 19:12:08 2009 UTC (2 years, 8 months ago) by ariff
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +13 -10 lines
SVN rev 193640 on 2009-06-07 19:12:08Z by ariff

Sound Mega-commit. Expect further cleanup until code freeze.

For a slightly thorough explaination, please refer to
	[1] http://people.freebsd.org/~ariff/SOUND_4.TXT.html .

Summary of changes includes:

1 Volume Per-Channel (vpc).  Provides private / standalone volume control
  unique per-stream pcm channel without touching master volume / pcm.
  Applications can directly use SNDCTL_DSP_[GET|SET][PLAY|REC]VOL, or for
  backwards compatibility, SOUND_MIXER_PCM through the opened dsp device
  instead of /dev/mixer.  Special "bypass" mode is enabled through
  /dev/mixer which will automatically detect if the adjustment is made
  through /dev/mixer and forward its request to this private volume
  controller.  Changes to this volume object will not interfere with
  other channels.

  Requirements:
    - SNDCTL_DSP_[GET|SET][PLAY|REC]_VOL are newer ioctls (OSSv4) which
      require specific application modifications (preferred).
    - No modifications required for using bypass mode, so applications
      like mplayer or xmms should work out of the box.

  Kernel hints:
    - hint.pcm.%d.vpc (0 = disable vpc).

  Kernel sysctls:
    - hw.snd.vpc_mixer_bypass (default: 1).  Enable or disable /dev/mixer
      bypass mode.
    - hw.snd.vpc_autoreset (default: 1).  By default, closing/opening
      /dev/dsp will reset the volume back to 0 db gain/attenuation.
      Setting this to 0 will preserve its settings across device
      closing/opening.
    - hw.snd.vpc_reset (default: 0).  Panic/reset button to reset all
      volume settings back to 0 db.
    - hw.snd.vpc_0db (default: 45).  0 db relative to linear mixer value.

2 High quality fixed-point Bandlimited SINC sampling rate converter,
  based on Julius O'Smith's Digital Audio Resampling -
  http://ccrma.stanford.edu/~jos/resample/.  It includes a filter design
  script written in awk (the clumsiest joke I've ever written)
    - 100% 32bit fixed-point, 64bit accumulator.
    - Possibly among the fastest (if not fastest) of its kind.
    - Resampling quality is tunable, either runtime or during kernel
      compilation (FEEDER_RATE_PRESETS).
    - Quality can be further customized during kernel compilation by
      defining FEEDER_RATE_PRESETS in /etc/make.conf.

  Kernel sysctls:
    - hw.snd.feeder_rate_quality.
      0 - Zero-order Hold (ZOH).  Fastest, bad quality.
      1 - Linear Interpolation (LINEAR).  Slightly slower than ZOH,
          better quality but still does not eliminate aliasing.
      2 - (and above) - Sinc Interpolation(SINC).  Best quality.  SINC
          quality always start from 2 and above.

  Rough quality comparisons:
    - http://people.freebsd.org/~ariff/z_comparison/

3 Bit-perfect mode.  Bypasses all feeder/dsp effects.  Pure sound will be
  directly fed into the hardware.

4 Parametric (compile time) Software Equalizer (Bass/Treble mixer). Can
  be customized by defining FEEDER_EQ_PRESETS in /etc/make.conf.

5 Transparent/Adaptive Virtual Channel. Now you don't have to disable
  vchans in order to make digital format pass through.  It also makes
  vchans more dynamic by choosing a better format/rate among all the
  concurrent streams, which means that dev.pcm.X.play.vchanformat/rate
  becomes sort of optional.

6 Exclusive Stream, with special open() mode O_EXCL.  This will "mute"
  other concurrent vchan streams and only allow a single channel with
  O_EXCL set to keep producing sound.

Other Changes:
    * most feeder_* stuffs are compilable in userland. Let's not
      speculate whether we should go all out for it (save that for
      FreeBSD 16.0-RELEASE).
    * kobj signature fixups, thanks to Andriy Gapon <avg@freebsd.org>
    * pull out channel mixing logic out of vchan.c and create its own
      feeder_mixer for world justice.
    * various refactoring here and there, for good or bad.
    * activation of few more OSSv4 ioctls() (see [1] above).
    * opt_snd.h for possible compile time configuration:
      (mostly for debugging purposes, don't try these at home)
        SND_DEBUG
        SND_DIAGNOSTIC
        SND_FEEDER_MULTIFORMAT
        SND_FEEDER_FULL_MULTIFORMAT
        SND_FEEDER_RATE_HP
        SND_PCM_64
        SND_OLDSTEREO

Manual page updates are on the way.

Tested by:	joel, Olivier SMEDTS <olivier at gid0 d org>, too many
          	unsung / unnamed heroes.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri May 8 03:19:57 2009 UTC (2 years, 9 months ago) by mav
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +1 -0 lines
SVN rev 191911 on 2009-05-08 03:19:57Z by mav

Add one more board ID with inverted external amplifier control.

PR:		kern/121156

Revision 1.78.2.1.6.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.78.2.1: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.1: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.78.2.1.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.78.2.1: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.1: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.53.2.12.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.53.2.12: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.12: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 15 04:06:52 2007 UTC (4 years, 1 month ago) by ariff
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +6 -1 lines
MFC:

Disable AC97 microphone channel. Due to the channel allocation priority
that favours true hardware channel, the first instance of recording
request will grab this channel (the first channel is being used as
vchan master). In many cases, it is not really work as intended and give
false impression of broken recording.

PR:		kern/118546
Approved by:	re (kensmith)

Revision 1.79: download - view: text, markup, annotated - select for diffs
Wed Dec 12 18:21:05 2007 UTC (4 years, 2 months ago) by ariff
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +6 -1 lines
Disable AC97 microphone channel. Due to the channel allocation priority
that favours true hardware channel, the first instance of recording
request will grab this channel (the first channel is being used as
vchan master). In many cases, it is not really work as intended and give
false impression of broken recording.

PR:		kern/118546
MFC after:	3 days

Revision 1.53.2.12: download - view: text, markup, annotated - select for diffs
Thu Jul 12 06:39:38 2007 UTC (4 years, 7 months ago) by ariff
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3
Branch point for: RELENG_6_4
Diff to: previous 1.53.2.11: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.11: +9 -7 lines
MFC (revision: 1.78):

- malloc M_NOWAIT -> M_WAITOK.

- Protect against divide by zero while calculating bus speed due to
  possible broken kernel timecounter.

  Reported/Tested by:     silby

Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed Jul 11 14:27:45 2007 UTC (4 years, 7 months ago) by ariff
Branches: MAIN
CVS tags: RELENG_7_BP
Branch point for: RELENG_7
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +5 -1 lines
Protect against divide by zero while calculating bus speed due to
possible broken kernel timecounter.

Reported/Tested by:	silby
Approved by:		re (hrs)
MFC after:		1 day

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Jun 17 06:10:42 2007 UTC (4 years, 7 months ago) by ariff
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +1 -5 lines
Flush remaining malloc() cleanups (M_NOWAIT -> M_WAITOK).

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Jun 11 00:49:44 2007 UTC (4 years, 8 months ago) by ariff
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -1 lines
Filter/compress the amount of channel trigger. This should reduce
much of lock/unlock contentions within the interrupt handler. Most
of these drivers only need PCMTRIG_START or STOP (ABORT).

Discussed with:		scottl

Revision 1.53.2.11: download - view: text, markup, annotated - select for diffs
Mon May 28 21:07:41 2007 UTC (4 years, 8 months ago) by ariff
Branches: RELENG_6
Diff to: previous 1.53.2.10: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.10: +339 -126 lines
MFC (revision 1.75)

* Fix possible integer overflow during speed calibration. Delay final
  initialization (pcm_setstatus) after calibration finished.

PR:		kern/100169
Tested by:	Kevin Overman <oberman@es.net>

* Fix (or rather workaround) Intel 440MX Errata #36
  - http://www.intel.com/design/chipsets/specupdt/245051.htm

AC97 Soft Audio and Soft Modem Master Abort Errata

Issue:
  Use of either soft audio or soft modem on an Intel® 82443MX PCISet
  based platform running a 100 MHz Processor System Bus and an AC97 codec
  may result in failures. The system continues to function normally while
  the AC97 hardware may not resume and may require a cold-boot to
  recover. As a result of the failure, the Master Abort Status bit will
  be set in the audio or modem function PCI header space.

Workaround:
  Force uncacheable DMA on both BDL and pcm buffers.

Tested by:	Emil Holmstr|m <emil@linux.se>

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat May 5 09:18:05 2007 UTC (4 years, 9 months ago) by ariff
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +116 -58 lines
Fix (or rather workaround) Intel 440MX Errata #36
- http://www.intel.com/design/chipsets/specupdt/245051.htm

AC97 Soft Audio and Soft Modem Master Abort Errata

Issue:
  Use of either soft audio or soft modem on an Intel® 82443MX PCISet
  based platform running a 100 MHz Processor System Bus and an AC97 codec
  may result in failures. The system continues to function normally while
  the AC97 hardware may not resume and may require a cold-boot to
  recover. As a result of the failure, the Master Abort Status bit will
  be set in the audio or modem function PCI header space.

Workaround:
  Force uncacheable DMA on both BDL and pcm buffers.

Tested by:	Emil Holmstr|m <emil@linux.se>

Revision 1.53.2.10: download - view: text, markup, annotated - select for diffs
Thu Apr 26 08:21:44 2007 UTC (4 years, 9 months ago) by ariff
Branches: RELENG_6
Diff to: previous 1.53.2.9: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.9: +3 -0 lines
MFC:

Memory leak killing spree, mostly bus_dma(9) related.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Apr 18 18:26:39 2007 UTC (4 years, 9 months ago) by ariff
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +1 -1 lines
sndbuf_alloc() now accept dmaflags argument which will be forwarded to
internal bus_dmammem_alloc() for greater flexibility on setting up DMA /
page attributes.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Wed Mar 21 18:17:02 2007 UTC (4 years, 10 months ago) by ariff
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -0 lines
Memory leak killing spree, mostly bus_dma(9) related.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Thu Mar 15 16:41:26 2007 UTC (4 years, 10 months ago) by ariff
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +1 -1 lines
Fix severe out-of-bound mtx "type" pointer, causing WITNESS refcount
confusions and panic provided that the following conditions are met:

  1) WITNESS is enabled (watch/trace).
  2) Using modules, instead of statically linked (Not a strict
     requirement, but easier to reproduce this way).
  3) 2 or more modules share the same mtx type ("sound softc").
     - They might share the same name (strcmp() == 0), but it always
       point to different address.
  4) Repetitive kldunload/load on any module that shares the same mtx
     type (Not a strict requirement, but easier to reproduce this way).

     Consider module A and module B:
     - From enroll() - subr_witness.c:
       * Load module A. Everything seems fine right now.
         wA-w_refcount == 1 ; wA-w_name = "sound softc"
       * Load module B.
       * w->w_name == description will always fail.
         ("sound softc" from A and B point to different address).
       * wA->w_refcount > 0 && strcmp(description, wA->w_name) == 0
       * enroll() will return wA instead of returning (possibly unique)
         wB.
         wA->w_refcount++ , == 2.
       * Unload module A, mtx_destroy(), wA->w_name become invalid,
         but wA->w_refcount-- become 1 instead of 0. wA will not be
         removed from witness list.
       * Some other places call mtx_init(), iterating witness list,
         found wA, failed on wA->w_name == description
       * wA->w_refcount > 0 && strcmp(description, wA->w_name)
       * Panic on strcmp() since wA->w_name no longer point to valid
         address.

Note that this could happened in other places as well, not just sound
(eg. consider lots of drivers that share simmilar MTX_NETWORK_LOCK).

Solutions (for sound case):
  1) Provide unique mtx type string for each mutex creation (chosen)
  or
  2) Put "sound softc" global variable somewhere and use it.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Feb 23 13:47:34 2007 UTC (4 years, 11 months ago) by netchild
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -1 lines
MFp4 (114068):
        Use bus_get_dma_tag() to obtain the parent DMA tag to make the drivers
        a little bit more non-ia32/amd64 friendly.

        There is no man page for bus_get_dma_tag, so this is modelled after
        rev. 1.62 of src/sys/dev/sound/pci/es137x.c by marius.

        Inspired by:	commit by marius

Revision 1.53.2.8.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 24 05:44:46 2006 UTC (5 years, 1 month ago) by ariff
Branches: RELENG_6_2
CVS tags: RELENG_6_2_0_RELEASE
Diff to: previous 1.53.2.8: preferred, colored; next MAIN 1.53.2.9: preferred, colored
Changes since revision 1.53.2.8: +6 -0 lines
MFC:

Add inverted amplifier sense quirk for HP Compaq nx4300 and few
NEC VersaPro.

PR:		kern/106104, kern/104715
Submitted by:	Shun-ichi Kobayashi <koba@mbox.kudpc.kyoto-u.ac.jp>
             	KAWATA Masahiko <kawata@mta.biglobe.ne.jp>

Add support for Nvidia Nforce MCP04 AC97 controller.

PR:		kern/106829
Submitted by:	Frédéric Petit <fredantispam@free.fr>

Approved by:	re (kensmith)

Revision 1.53.2.9: download - view: text, markup, annotated - select for diffs
Sun Dec 24 05:44:10 2006 UTC (5 years, 1 month ago) by ariff
Branches: RELENG_6
Diff to: previous 1.53.2.8: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.8: +6 -0 lines
MFC:

Add inverted amplifier sense quirk for HP Compaq nx4300 and few
NEC VersaPro.

PR:		kern/106104, kern/104715
Submitted by:	Shun-ichi Kobayashi <koba@mbox.kudpc.kyoto-u.ac.jp>
             	KAWATA Masahiko <kawata@mta.biglobe.ne.jp>

Add support for Nvidia Nforce MCP04 AC97 controller.

PR:		kern/106829
Submitted by:	Frédéric Petit <fredantispam@free.fr>

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Dec 17 13:23:00 2006 UTC (5 years, 1 month ago) by ariff
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -0 lines
Add support for Nvidia Nforce MCP04 AC97 controller.

PR:		kern/106829
Submitted by:	Frédéric Petit <fredantispam@free.fr>

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Dec 1 06:53:13 2006 UTC (5 years, 2 months ago) by ariff
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +1 -0 lines
Add inverted amplifier sense quirk for HP Compaq nx4300.

PR:		kern/106104
Submitted by:	Shun-ichi Kobayashi <koba@mbox.kudpc.kyoto-u.ac.jp>
MFC after:	3 days

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Nov 26 12:24:04 2006 UTC (5 years, 2 months ago) by ariff
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +228 -103 lines
Welcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes
in every sense.

General
-------

- Multichannel safe, endian safe, format safe
   * Large part of critical pcm filters such as vchan.c, feeder_rate.c,
     feeder_volume.c, feeder_fmt.c and feeder.c has been rewritten so that
     using them does not cause the pcm data to be converted to 16bit little
     endian.
   * Macrosses for accessing pcm data safely are defined within sound.h in
     the form of PCM_READ_* / PCM_WRITE_*
   * Currently, most of them are probably limited for mono/stereo handling,
     but the future addition of true multichannel will be much easier.

- Low latency operation
  * Well, this require lot more works to do not just within sound driver,
    but we're heading towards right direction. Buffer/block sizing within
    channel.c is rewritten to calculate precise allocation for various
    combination of sample/data/rate size. As a result, applying correct
    SNDCTL_DSP_POLICY value will achive expected latency behaviour simmilar
    to what commercial 4front driver do.
  * Signal handling fix. ctrl+c of "cat /dev/zero > /dev/dsp" does not
    result long delay.
  * Eliminate sound truncation if the sound data is too small.
    DIY:
      1) Download / extract
         http://people.freebsd.org/~ariff/lowlatency/shortfiles.tar.gz
      2) Do a comparison between "cat state*.au > /dev/dsp" and
         "for x in state*.au ; do cat $x > /dev/dsp ; done"
         - there should be no "perceivable" differences.
    Double close for PR kern/31445.

  CAVEAT: Low latency come with (unbearable) price especially for poorly
          written applications. Applications that trying to act smarter
	  by requesting (wrong) blocksize/blockcount will suffer the most.
	  Fixup samples/patches can be found at:
	  http://people.freebsd.org/~ariff/ports/

- Switch minimum/maximum sampling rate limit to "1" and "2016000" (48k * 42)
  due to closer compatibility with 4front driver.
  Discussed with: marcus@ (long time ago?)

- All driver specific sysctls in the form of "hw.snd.pcm%d.*" have been
  moved to their own dev sysctl nodes, notably:
  hw.snd.pcm%d.vchans -> dev.pcm.%d.vchans
  Bump __FreeBSD_version.

Driver specific
---------------

- Ditto for sysctls.

- snd_atiixp, snd_es137x, snd_via8233, snd_hda
  * Numerous cleanups and fixes.
  * _EXPERIMENTAL_ polling mode support using simple callout_* mechanisme.
   This was intended for pure debugging and latency measurement, but proven
   good enough in few unexpected and rare cases (such as problematic shared
   IRQ with GIANT devices - USB). Polling can be enabled/disabled through
   dev.pcm.0.polling. Disabled by default.

- snd_ich
  * Fix possible overflow during speed calibration. Delay final
    initialization (pcm_setstatus) after calibration finished.
    PR: kern/100169
    Tested by: Kevin Overman <oberman@es.net>
  * Inverted EAPD for few Nec VersaPro.
    PR: kern/104715
    Submitted by: KAWATA Masahiko <kawata@mta.biglobe.ne.jp>

Thanks to various people, notably Joel Dahl, Yuriy Tsibizov, Kevin Oberman,
those at #freebsd-azalia @ freenode and others for testing.

Joel Dahl will do the manpage update.

Revision 1.53.2.8: download - view: text, markup, annotated - select for diffs
Tue Aug 22 02:37:03 2006 UTC (5 years, 5 months ago) by yongari
Branches: RELENG_6
CVS tags: RELENG_6_2_BP
Branch point for: RELENG_6_2
Diff to: previous 1.53.2.7: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.7: +1 -0 lines
MFC: ich.c, 1.67 to RELENG_6:
 Add inverted amplifier sense quirks for Compaq Presario B3800

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Aug 15 07:37:41 2006 UTC (5 years, 5 months ago) by yongari
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +1 -0 lines
Add inverted amplifier sense quirks for Compaq Presario B3800

Reported by:	Nick Withers < nick AT nickwithers DOT com >
Tested by:	Nick Withers < nick AT nickwithers DOT com >
No objection from:	ariff
MFC after:	1 week

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Jun 18 14:14:41 2006 UTC (5 years, 7 months ago) by netchild
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -0 lines
- Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious.
- Enable 4 automatic vchan's by default.
- Add some comments which provide ides/questions for improvement.
- Prefix some temporary sysctl's with an underscore to denote that it is not
  an official API but a workaround until the real solution is implemented.

Revision 1.53.2.6.2.1: download - view: text, markup, annotated - select for diffs
Tue May 2 13:35:35 2006 UTC (5 years, 9 months ago) by ariff
Branches: RELENG_6_1
CVS tags: RELENG_6_1_0_RELEASE
Diff to: previous 1.53.2.6: preferred, colored; next MAIN 1.53.2.7: preferred, colored
Changes since revision 1.53.2.6: +2 -1 lines
MFC (revision 1.65)

Add inverted amplifier sense quirks for Sony VAIO VGN B1VP/B1XP.

Reported by:	Stan Behrens <s.behrens at kon.de>
Approved by:	re (kensmith)

Revision 1.53.2.7: download - view: text, markup, annotated - select for diffs
Tue May 2 13:35:04 2006 UTC (5 years, 9 months ago) by ariff
Branches: RELENG_6
Diff to: previous 1.53.2.6: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.6: +2 -1 lines
MFC (revision 1.65)

Add inverted amplifier sense quirks for Sony VAIO VGN B1VP/B1XP.

Reported by:	Stan Behrens <s.behrens at kon.de>
Approved by:	re (kensmith)

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon May 1 09:28:28 2006 UTC (5 years, 9 months ago) by ariff
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -1 lines
Add inverted amplifier sense quirks for Sony VAIO VGN B1VP/B1XP.

Reported by:	Stan Behrens <s.behrens at kon.de>

Revision 1.53.2.6: download - view: text, markup, annotated - select for diffs
Tue Apr 4 17:27:57 2006 UTC (5 years, 10 months ago) by ariff
Branches: RELENG_6
CVS tags: RELENG_6_1_BP
Branch point for: RELENG_6_1
Diff to: previous 1.53.2.5: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.5: +7 -0 lines
MFC (revision 1.63)
Don't set primary resume interrupt flag during channel initialization
since it can cause high interrupt rate (storm) and slowdown the entire
system.

Note: Please report back to me if this commit cause any abnormal
      behaviour, especially during suspend / resume.

Reported/Submitted by:	[1] Daan Vreeken [PA4DAN] <Danovitsch_at_vitsch dot net>
Reported/Confirmed by:	[2] Angka H. K. <harikurniawan at gmail dot com>

MFC (revision 1.64)
Add device ID for nForce 410 MCP audio controller.

PR:		kern/95257
Submitted by:	cenix <cenixxx at gmail dot com>

Approved by:	re (scottl)

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Apr 3 17:37:27 2006 UTC (5 years, 10 months ago) by ariff
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -0 lines
Add device ID for nForce 410 MCP audio controller.

PR:		kern/95257
Submitted by:	cenix <cenixxx at gmail dot com>
MFC after:	3 days

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Mar 22 22:24:23 2006 UTC (5 years, 10 months ago) by ariff
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -0 lines
Don't set primary resume interrupt flag during channel initialization
since it can cause high interrupt rate (storm) and slowdown the entire
system.

Note: Please report back to me if this commit cause any abnormal
      behaviour, especially during suspend / resume.

Reported/Submitted by:	[1] Daan Vreeken [PA4DAN] <Danovitsch_at_vitsch dot net>
Reported/Confirmed by:	[2] Angka H. K. <harikurniawan at gmail dot com>

MFC after:		5 days

[1] http://lists.freebsd.org/mailman/htdig/freebsd-hackers/2004-December/009335.html
[2] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-March/003830.html

Revision 1.53.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 11 19:37:26 2006 UTC (5 years, 11 months ago) by ariff
Branches: RELENG_6
Diff to: previous 1.53.2.4: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.4: +2 -0 lines
MFC (revision 1.62):

Add inverted amplifier sense quirks for:
[1] Sony VAIO Type T
[2] Kvazar-Micro Senator 3592XT.

PR:		[1] kern/94056
Submitted by:	[1] Yoshihiko Sarumaru <mistral at imasy.or.jp>
             	[2] Alexandr Krivulya <admin at marcom-group.com>
Approved by:	re (scottl)

[2] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-March/003773.html

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Mar 7 05:48:14 2006 UTC (5 years, 11 months ago) by ariff
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +1 -0 lines
Add another inverted amplifier sense quirk for Kvazar-Micro Senator 3592XT.

Submitted by:	[1] Alexandr Krivulya <admin at marcom-group.com>
MFC after:	3 days

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-March/003773.html

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Mar 5 02:26:51 2006 UTC (5 years, 11 months ago) by ariff
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +1 -0 lines
Add another inverted amplifier sense quirk for Sony VAIO Type T.

PR:		kern/94056
Submitted by:	Yoshihiko Sarumaru <mistral at imasy.or.jp>
MFC after:	3 days

Revision 1.53.2.4: download - view: text, markup, annotated - select for diffs
Thu Mar 2 00:08:28 2006 UTC (5 years, 11 months ago) by ariff
Branches: RELENG_6
Diff to: previous 1.53.2.3: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.3: +15 -14 lines
MFC (revision 1.60):

Fix possible DMA leak and locking violation especially
during suspend <-> resume and module load <-> unload.

PR:		kern/92764
Approved by:	re (scottl)

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Feb 12 10:42:47 2006 UTC (5 years, 11 months ago) by ariff
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +15 -14 lines
Fix possible DMA leak and locking violation especially
during suspend <-> resume and module load <-> unload.

PR:		kern/92764
MFC after:	3 days

Revision 1.53.2.3: download - view: text, markup, annotated - select for diffs
Tue Jan 17 05:13:37 2006 UTC (6 years ago) by ariff
Branches: RELENG_6
Diff to: previous 1.53.2.2: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.2: +1 -0 lines
MFC: Add another inverted EAPD quirk for Gateway 7326GZ.

Tested by:	Jeff Cross <jeff.cross at averageadmins.com>

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Jan 14 23:37:08 2006 UTC (6 years ago) by ariff
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -1 lines
Add another inverted EAPD quirk for Gateway 7326GZ.

Tested by:	Jeff Cross <jeff.cross at averageadmins.com>
MFC after:	3 days

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 13 04:26:48 2006 UTC (6 years ago) by ariff
Branches: RELENG_6
Diff to: previous 1.53.2.1: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.2.1: +17 -0 lines
MFC: More thorough fixes to enable inverted external amplifier sense flag.
     Instead of dragging the entire ICH4/82801DB into this mess, select
     only few boards based on pci subdevice / subvendor.

Tested by:	Daisuke Orikasa <luxury-acura-3.5rl at nifty.com>

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Jan 10 06:52:59 2006 UTC (6 years, 1 month ago) by ariff
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +12 -5 lines
More thorough fixes to enable inverted external amplifier sense flag.
Instead of dragging the entire ICH4/82801DB into this mess, select
only few boards based on pci subdevice / subvendor.

Tested by:	Daisuke Orikasa <luxury-acura-3.5rl at nifty.com>
MFC after:	3 days

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Jan 9 11:20:37 2006 UTC (6 years, 1 month ago) by ariff
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -0 lines
Turn on inverted external amplifier sense flags for ICH4/82801DB.

PR:		kern/66422, kern/75687, kern/84471
MFC after:	2 days

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Fri Dec 30 19:55:53 2005 UTC (6 years, 1 month ago) by netchild
Branches: RELENG_6
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +171 -113 lines
MFC nearly everything of the soundsystem except recent commits and
most of the sysctl's (those which would introduce a new interface).
The spdif_enabled sysctl is still there (or more correctly: added
to another driver).

A rough overview what's there now:
 - new driver for ATI chips (snd_atiixp)
 - support for some Intel HDA chips in AC97 mode (no real HDA
   support!), this doesn't work with every mainboard and is
   subject to the wiring on the mainboard (no servicable parts
   inside)
 - MPSAFE and fixes for snd_als4000(4), snd_es137x(4),
   snd_via82c686(4), snd_via8233(4) and snd_ich(4)
 - 24bit and 32bit sound format support
 - feeder infrastructure (format, rate) has been reworked, new
   feeder (volume) has been introduced
 - lots of LOR and panic issues fixed
 - and a lot of small or not so small fixes I may have forgotten...

As noted in UPDATING: you may want to recompile mplayer (after booting
into the new world) to get all new features.

Tested by:	a lot of people
Requested by:	ariff
Submitted by:	ariff

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Nov 21 03:37:43 2005 UTC (6 years, 2 months ago) by yongari
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +17 -14 lines
Add a hack to ignore PCR bit for 6300ESB, 82801[D-G]B chips. It seems
that enabling busmastering would result in PCR bit ON after codec
reset.
While I'm here add DELAY(1) to codec access routine to give reasonable
time to codec operation. Without the delay, it would cause problems on
super-fast machines(> 2GHz). Also enable legacy audio for all 6300ESB,
82801[D-G]B chips. Previously, it enabled legacy audio for 82801DB(ICH4)
chip only.

Reported by:    Maxim Maximov mcsi AT mcsi DOT pp DOT ru
		Andrew Bliznak andriko.b AT gmail DOT com
Tested by:	brueffer, Maxim Maximov, Andrew Bliznak

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Nov 14 18:18:12 2005 UTC (6 years, 2 months ago) by ariff
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +153 -103 lines
- Added few more Intel HDA ids (ICH 6/7) which does have backward
  compatible AC97 codec.
- As the driver supports so many variants, create a table ids for
  ease of probing and maintenance.
  Submitted by:		yongari
  Reviewed/Tested by:	multimedia@
- From luigi:
	The code to compute fragment sizes in the ich driver almost
	invariably ends up using the full buffer available, no matter
	how the user specifies fragment size and number.
	With audio telephony (8khz, 16bit-stereo) and the 16k buffer
	size this results in an unbearable 500ms delay.
	This patch makes sure that we never use more than 4 fragments,
	(i don't think we need more unless there are huge interrupt
	servicing latencies), and obey to the requested fragment size,
	so that latency is acceptable.
  Based on this (and after much regression tests), I can conclude
  that this driver works best with 2 fragments, thus solving various
  long standing issues of ICH driver not capable to flush or play
  short files perfectly.
  Suggested by:		luigi (the idea of smaller fragments)
- MPSAFE conversion.

Approved by:	netchild (mentor)

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:00:12 2005 UTC (6 years, 4 months ago) by netchild
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -0 lines
Add a comment regarding problems with NForce 2 mainboards and add disabled
code which may help.

People with a ich compatible soundcard which want to help out should
change the "#if 1" to a "#if 0" and try if the soundcard still works.
Reports about working or not-working soundcards with this change to
multimedia@ please.

PR:		73987

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun May 29 23:22:23 2005 UTC (6 years, 8 months ago) by tanimura
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Branch point for: RELENG_6
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +1 -1 lines
s/-1000/BUS_PROBE_LOW_PRIORITY/

Pointed out by:	nyan

Revision 1.42.2.6: download - view: text, markup, annotated - select for diffs
Sat May 28 09:41:40 2005 UTC (6 years, 8 months ago) by tanimura
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5
Diff to: previous 1.42.2.5: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.5: +9 -1 lines
MFC 1.52: 6300ESB.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat May 28 09:32:43 2005 UTC (6 years, 8 months ago) by tanimura
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +9 -1 lines
Add 6300ESB, which should be treated as ICH4.

PR:		kern/81573
Submitted by:	OOTOMO Hiroyuki <ootomo@za.wakwak.com>
MFC after:	1 week

Revision 1.42.2.5: download - view: text, markup, annotated - select for diffs
Wed Mar 30 01:09:21 2005 UTC (6 years, 10 months ago) by murray
Branches: RELENG_5
CVS tags: RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4
Diff to: previous 1.42.2.4: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.4: +4 -0 lines
MFC: Add device ID for nForce 4 audio controller.

Approved by:	re (kensmith)

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Mar 20 20:13:21 2005 UTC (6 years, 10 months ago) by murray
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -1 lines
Return BUS_PROBE_DEFAULT in preference to 0.

Pointed out by:	Nate Lawson <nate@root.org>

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Mar 19 01:39:13 2005 UTC (6 years, 10 months ago) by murray
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -0 lines
Add device id for nForce 4 audio controller.

PR:		kern/78482
Submitted by:	Markus Niemistö <markus.niemisto@iki.fi>
MFC after:	1 week

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Mar 1 08:58:05 2005 UTC (6 years, 11 months ago) by imp
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +16 -16 lines
Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY in
preference to some random negative number to allow other drivers a
bite at the apple.

Revision 1.42.2.4: download - view: text, markup, annotated - select for diffs
Sun Jan 30 01:00:04 2005 UTC (7 years ago) by imp
Branches: RELENG_5
Diff to: previous 1.42.2.3: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.3: +1 -1 lines
MFC: /*- and my license changes for sys/[a-d]*

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Jan 6 01:43:19 2005 UTC (7 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +1 -1 lines
Start each of the license/copyright comments with /*-, minor shuffle of lines

Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Tue Nov 23 08:37:48 2004 UTC (7 years, 2 months ago) by yongari
Branches: RELENG_5
Diff to: previous 1.42.2.2: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.2: +1 -1 lines
MFC to RELENG_5:
ess.c, 1.33
mss.c, 1.92
sb16.c, 1.89
sb8.c, 1.78
au88x0.c, 1.9
aureal.c, 1.30
csapcm.c, 1.32
ds1.c, 1.41
emu10k1.c, 1.53
es137x.c, 1.52
fm801.c, 1.25
ich.c, 1.47
maestro3.c, 1.26
solo.c, 1.33
t4dwave.c, 1.45
via8233.c, 1.18
via82c686.c, 1.32

  Audio drivers failed to detect failure condition and attempted to
  assign DMA address to the wrong address. It can cause system lockup
  or other mysterious errors. Since most sound cards requires low DMA
  address(BUS_SPACE_MAXADDR_24BIT) sndbuf_alloc() would fail when the
  audio driver is loaded after long running of operations.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Oct 13 05:45:16 2004 UTC (7 years, 3 months ago) by yongari
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +1 -1 lines
Audio drivers failed to detect failure condition and attempted to
assign DMA address to the wrong address. It can cause system lockup
or other mysterious errors. Since most sound cards requires low DMA
address(BUS_SPACE_MAXADDR_24BIT) sndbuf_alloc() would fail when the
audio driver is loaded after long running of operations.

Approved by:	jake (mentor)
Reviewed by:	truckman, matk

Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 7 18:38:55 2004 UTC (7 years, 4 months ago) by ps
Branches: RELENG_5
CVS tags: RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.1: +8 -2 lines
MFC: rev 1.46 ICH6 support

Approved by:	re

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Sat Oct 2 22:33:51 2004 UTC (7 years, 4 months ago) by sanpei
Branches: RELENG_5
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +11 -3 lines
MFC ich.c 1.43 - 1.45:
Add support Nvidia nForce2(audio)
Add support nForce3 250 audio
Correct the capitalization of "nVidia".

Approved by:	re(hrs)

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Sep 28 01:32:58 2004 UTC (7 years, 4 months ago) by ps
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +8 -2 lines
Add ICH6 support.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:17:55 2004 UTC (7 years, 4 months ago) by des
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -5 lines
Correct the capitalization of "nVidia".

Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Sep 20 07:19:49 2004 UTC (7 years, 4 months ago) by sanpei
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -0 lines
Add support Nvidia nForce2(audio)

PR:		kern/71317
Submitted by:	Mezz <mezz@freebsd.org>
MFC after:	1 week

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Sep 20 05:59:17 2004 UTC (7 years, 4 months ago) by sanpei
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -0 lines
Add support nForce3 250 audio

PR:		kern/71726
Submitted by:	FUJIMOTO Kou <fujimoto@j.dendai.ac.jp>
MFC after:	1 week

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Jul 16 03:59:27 2004 UTC (7 years, 6 months ago) by tanimura
Branches: MAIN
CVS tags: RELENG_5_BP
Branch point for: RELENG_5
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -1 lines
Rename the sound device drivers:

- `sound'
  The generic sound driver, always required.

- `snd_*'
  Device-dependent drivers, named after the sound module names.
  Configure accordingly to your hardware.

In addition, rename the `snd_pcm' module to `sound' in order to sync
with the driver names.

Suggested by:	cg

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Apr 14 14:57:49 2004 UTC (7 years, 9 months ago) by green
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -1 lines
The newpcm headers currently #define away INTR_MPSAFE and INTR_TYPE_AV
because they bogusly check for defined(INTR_MPSAFE) -- something which
never was a #define.  Correct the definitions.

This make INTR_TYPE_AV finally get used instead of the lower-priority
INTR_TYPE_TTY, so it's quite possible some improvement will be had
on sound driver performance.  It would also make all the drivers
marked INTR_MPSAFE actually run without Giant (which does seem to
work for me), but:
	INTR_MPSAFE HAS BEEN REMOVED FROM EVERY SOUND DRIVER!
It needs to be re-added on a case-by-case basis since there is no one
who will vouch for which sound drivers, if any, willy actually operate
correctly without Giant, since there hasn't been testing because of
this bug disabling INTR_MPSAFE.

Found by:	"Yuriy Tsibizov" <Yuriy.Tsibizov@gfk.ru>

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Mar 31 00:11:24 2004 UTC (7 years, 10 months ago) by matk
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +12 -1 lines
By default, ich4 has NAMBAR and NABMBAR i/o spaces as
read-only.  Need to enable "legacy support", by poking
into pci config space.  (comment from the patch)

Submited by:	Autrijus Tang <autrijus@autrijus.org>
Approved by:	tanimura (mentor)

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Mar 17 17:50:44 2004 UTC (7 years, 10 months ago) by njl
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -3 lines
Convert callers to the new bus_alloc_resource_any(9) API.

Submitted by:	Mark Santcroos <marks@ripe.net>
Reviewed by:	imp, dfr, bde

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Mar 6 15:52:42 2004 UTC (7 years, 11 months ago) by matk
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
Augment /dev/sndstat with the module names, if applicable.

Approved by:	  tanimura (mentor)

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Sep 15 21:16:47 2003 UTC (8 years, 4 months ago) by njl
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +30 -0 lines
Correctly reset ich[3-5] sound cards on resume.  This fixes audio playback
after suspend/resume for me.

PR:
Submitted by:	iwasaki
Reviewed by:	orion
Approved by:	cg
Obtained from:
MFC after:

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Sep 3 07:38:21 2003 UTC (8 years, 5 months ago) by obrien
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -0 lines
Recognize the sound chip on the Opteron-based nForce3 motherboards
(such as the Asus SK8N).

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Aug 28 19:24:49 2003 UTC (8 years, 5 months ago) by obrien
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +0 -0 lines
The AMD-8111 sound (see rev 1.34) is documented at:
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/24674.pdf
with errata at:
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25720.pdf

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Aug 28 19:21:21 2003 UTC (8 years, 5 months ago) by obrien
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -0 lines
Add sound support for the AMD64 8111 chip.

PR:		kern/55932
Submitted by:	Mark Kettenis <kettenis@chello.nl>

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Aug 22 07:04:10 2003 UTC (8 years, 5 months ago) by imp
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
Prefer new location of pci include files (which have only been in the
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.

Revision 1.3.2.13: download - view: text, markup, annotated - select for diffs
Mon Aug 18 15:41:01 2003 UTC (8 years, 5 months ago) by orion
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.3.2.12: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.12: +56 -42 lines
MFC revision 1.32: ICH4 and ICH5 to operation in non-legacy mode.

MFC revision 1.31: ICH5 support.

MFC revision 1.30: Device name string sanitizations.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Aug 10 14:57:47 2003 UTC (8 years, 6 months ago) by orion
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +19 -21 lines
Switch from legacy to native mode for ICH4 and ICH5.

Submitted by: Shin-ichi YOSHIMOTO <yosimoto@waishi.jp>
Test by: Markko Merzin <markko@short.cut.ee>
PR: kern/53242
MFC after: 5 days

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Jul 6 23:54:00 2003 UTC (8 years, 7 months ago) by cg
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +14 -9 lines
* support ich5

PR:		kern/53242
Submitted by:	Shin-ichi Yoshimoto <yosimoto@waishi.jp>  (partly)
Tested by:	Dominic Marks <dom@cus.org.uk> (version in PR)
MFC after:	1 week

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Jul 6 03:11:06 2003 UTC (8 years, 7 months ago) by cg
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +23 -19 lines
* add support for amd-768 audio, as used on many dual athlon boards.  only
tested for playback.

* modify device name strings for ich chips to better conform with their
common names.

* remove superflous 'AC97 controller' from nforce device names.

MFC after: 1 week

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Jul 1 15:52:01 2003 UTC (8 years, 7 months ago) by scottl
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -1 lines
Mega busdma API commit.

Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg.
Lockfunc allows a driver to provide a function for managing its locking
semantics while using busdma.  At the moment, this is used for the
asynchronous busdma_swi and callback mechanism.  Two lockfunc implementations
are provided: busdma_lock_mutex() performs standard mutex operations on the
mutex that is specified from lockfuncarg.  dftl_lock() is a panic
implementation and is defaulted to when NULL, NULL are passed to
bus_dma_tag_create().  The only time that NULL, NULL should ever be used is
when the driver ensures that bus_dmamap_load() will not be deferred.
Drivers that do not provide their own locking can pass
busdma_lock_mutex,&Giant args in order to preserve the former behaviour.

sparc64 and powerpc do not provide real busdma_swi functions, so this is
largely a noop on those platforms.  The busdma_swi on is64 is not properly
locked yet, so warnings will be emitted on this platform when busdma
callback deferrals happen.

If anyone gets panics or warnings from dflt_lock() being called, please
let me know right away.

Reviewed by:	tmm, gibbs

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Apr 16 03:16:55 2003 UTC (8 years, 9 months ago) by mdodd
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +0 -1 lines
- Don't call pci_enable_io() in drivers (unless needed for resume).
- Don't test memory/port status and emit an error message; the PCI
  bus code will do this now.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Apr 4 07:15:19 2003 UTC (8 years, 10 months ago) by orion
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +8 -3 lines
Fix mismatch between bus address stored for buffer descriptors and
actual address of buffer descriptor.  This should fix the reported
calibration failures and subsequent speed problems with ich chipsets.

Minor calibration comment updates.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Feb 20 17:31:11 2003 UTC (8 years, 11 months ago) by cognet
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -5 lines
Implement a "sndbuf_getbufaddr" function and use it instead of vtophys().

Reviewed by:	orion

Revision 1.3.2.12: download - view: text, markup, annotated - select for diffs
Mon Jan 20 03:59:42 2003 UTC (9 years ago) by orion
Branches: RELENG_4
CVS tags: RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8
Diff to: previous 1.3.2.11: preferred, colored
Changes since revision 1.3.2.11: +4 -0 lines
MFC: Addition of nForce2 device id.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Jan 13 17:42:13 2003 UTC (9 years ago) by orion
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -0 lines
Add nForce2 device id.

Submitted by:	"Mikko S. Hyvarinen" <morphy@morphy.iki.fi>
MFC after:	5 days

Revision 1.3.2.11: download - view: text, markup, annotated - select for diffs
Thu Aug 22 16:38:21 2002 UTC (9 years, 5 months ago) by orion
Branches: RELENG_4
CVS tags: RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7
Diff to: previous 1.3.2.10: preferred, colored
Changes since revision 1.3.2.10: +28 -7 lines
MFC: ich4 support.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Aug 19 16:03:56 2002 UTC (9 years, 5 months ago) by orion
Branches: MAIN
CVS tags: RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +26 -9 lines
Cater for ich4 quirks.

Reported by: Jacob Rhoden
Tested by: Jacob Rhoden, mp

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Aug 12 15:45:12 2002 UTC (9 years, 6 months ago) by mp
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -0 lines
Add PCI ID for the ICH4 AC97 controller.

Revision 1.3.2.10: download - view: text, markup, annotated - select for diffs
Tue Jul 2 15:38:36 2002 UTC (9 years, 7 months ago) by orion
Branches: RELENG_4
Diff to: previous 1.3.2.9: preferred, colored
Changes since revision 1.3.2.9: +22 -6 lines
MFC r1.22 - delaying ich calibration until system clock itself is calibrated.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jun 27 22:36:01 2002 UTC (9 years, 7 months ago) by scottl
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +22 -5 lines
Delay the AC97 calibration until after the system clock has been
calibrated.  This fixes the problem where playback and recording do
not run at the correct speed.  It probably also eliminates the
need for the hacks/workarounds/sysctl's that were previously
devised to deal with this, but I will leave that for a different
time.

Reviewed by:	orion

Revision 1.3.2.9: download - view: text, markup, annotated - select for diffs
Sat May 11 02:33:13 2002 UTC (9 years, 9 months ago) by orion
Branches: RELENG_4
CVS tags: RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6
Diff to: previous 1.3.2.8: preferred, colored
Changes since revision 1.3.2.8: +0 -3 lines
MFC r1.21 No longer attempt to power off the ACLINK during suspend - luigi
reports this causes his ich machine to hang.

Approved by:	jhb

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun May 5 15:37:09 2002 UTC (9 years, 9 months ago) by orion
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +0 -3 lines
No longer attempt to power off the ACLINK during suspend - luigi
reports this causes his ich machine to hang.

Revision 1.3.2.8: download - view: text, markup, annotated - select for diffs
Mon Apr 22 15:49:32 2002 UTC (9 years, 9 months ago) by cg
Branches: RELENG_4
Diff to: previous 1.3.2.7: preferred, colored
Changes since revision 1.3.2.7: +9 -8 lines
mfc current pcm state.

this fixes various bugs, improves sndstat output, increases error checking,
allows tuning of hardware buffer sizes for most drivers, enables recording
of formats not native to the hardware, and lots of other things

Revision 1.3.2.7: download - view: text, markup, annotated - select for diffs
Sat Apr 20 07:05:14 2002 UTC (9 years, 9 months ago) by jhay
Branches: RELENG_4
Diff to: previous 1.3.2.6: preferred, colored
Changes since revision 1.3.2.6: +8 -3 lines
MFC:
Fix the play / record rate setting so that it actually works.

The extra microphone channel capability is part of the "normal" ac97
capabilities and not an extended ac97 capability. Now recording on
codecs without a seperate mic channel works.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Apr 15 20:42:40 2002 UTC (9 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -0 lines
Recognize the AC97 interface to the onboard sound controller on the Nvidia
nForce chipset.  Playback at least seems to work fine with the ich driver
out of the box.

Sponsored by:	The Weather Channel
Help from:	cg

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Apr 14 10:39:59 2002 UTC (9 years, 10 months ago) by jhay
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +8 -3 lines
Fix the play / record rate setting so that it actually works.

The extra microphone channel capability is part of the "normal" ac97
capabilities and not an extended ac97 capability. Now recording on
codecs without a seperate mic channel works.

MFC after:	1 week

Revision 1.3.2.6: download - view: text, markup, annotated - select for diffs
Tue Feb 19 01:04:20 2002 UTC (9 years, 11 months ago) by alfred
Branches: RELENG_4
Diff to: previous 1.3.2.5: preferred, colored
Changes since revision 1.3.2.5: +91 -28 lines
MFC: Sis 7012 support.

This also carries some baggage from -current apparently the ability
to record using other versions of this chipset.  It works pretty well
for me.

Submitted by: Mike Meyer <mwm@mired.org>
PR: kern/35012

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Feb 19 00:59:23 2002 UTC (9 years, 11 months ago) by alfred
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +27 -3 lines
Add play (but not record) support for the Sis 7012.

Submitted by: Mike Meyer <mwm@mired.org>

Revision 1.3.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 17:26:57 2002 UTC (10 years ago) by orion
Branches: RELENG_4
CVS tags: RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5
Diff to: previous 1.3.2.4: preferred, colored
Changes since revision 1.3.2.4: +73 -36 lines
MFC: 1.17 changes:

Install interrupt handler before calling ich_init as the initialization
occasionally generates spurious interrupts.

Rework of ich_calibrate.

These changes are derived from cg's modified ich driver.

Approved by:	re

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Jan 18 18:44:41 2002 UTC (10 years ago) by orion
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +80 -43 lines
Change ich_calibrate to busy wait on buffer fill level and use a more
likely looking rate calculation.

Install interrupt handler before calling ich_init as the initialization
occasionally generates spurious interrupts.

These changes are derived from cg's work in progress version of this
driver.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Dec 21 19:20:28 2001 UTC (10 years, 1 month ago) by orion
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +35 -4 lines
Save and restore state for suspend/resume.

PR:		kern/28692
Obtained from:	SAKIYAMA Nobuo <sakichan@sakichan.org>

Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 19 18:36:01 2001 UTC (10 years, 1 month ago) by orion
Branches: RELENG_4
Diff to: previous 1.3.2.3: preferred, colored
Changes since revision 1.3.2.3: +121 -29 lines
MFC 1.8 -- 1.15 changes:

    Sysctl variable "ac97rate" for manually correcting AC97 link rate
    on broken motherboards designs.

    Initialize "ac97rate" by running a calibration test.

    Detect and clear resume interrupts, and report spurious interrupts.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Dec 19 18:26:53 2001 UTC (10 years, 1 month ago) by orion
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -1 lines
Correct unexpected interrupt detection.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Dec 19 18:04:04 2001 UTC (10 years, 1 month ago) by orion
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -9 lines
Nitlets.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Dec 19 17:38:38 2001 UTC (10 years, 1 month ago) by orion
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +38 -22 lines
Clear resume interrupts - these can occur during initialization and
must be cleared to prevent machine hanging (presently aflicts -current
and -stable).

Problem reported by Bruce Montague <brucem@cse.iitkgp.ernet.in>

PR:		kern/29769 (probably)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Dec 18 03:29:31 2001 UTC (10 years, 1 month ago) by orion
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +50 -0 lines
Add calibration test to determine extent of AC97 overclocking (if any).

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Mon Dec 17 21:07:24 2001 UTC (10 years, 1 month ago) by guido
Branches: RELENG_4
Diff to: previous 1.3.2.2: preferred, colored
Changes since revision 1.3.2.2: +6 -2 lines
MFC: Add Id for 82801CA (ICH3?).  The ich driver seems to work fine on the
laptop that had it.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Dec 17 01:57:42 2001 UTC (10 years, 1 month ago) by orion
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +28 -3 lines
Added a sysctl control variable "ac97rate" to allow manual tuning of
the link rate - some ich motherboards overclock ac97 out of the box.

Will hopefully replace this with a callibration loop in time for 4.5R
freeze.

Problem reported by Luigi Rizzo and fix derived from his code (put
diff in ich.c rather than ac97.c).

MFC after:	3 days

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Nov 22 23:38:26 2001 UTC (10 years, 2 months ago) by orion
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -5 lines
Fix typo introduced with last commit.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Nov 21 04:26:04 2001 UTC (10 years, 2 months ago) by orion
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +6 -4 lines
Correct extmode initialization.

MFC after:	3

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Nov 3 05:07:59 2001 UTC (10 years, 3 months ago) by peter
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -2 lines
Add Id for 82801CA (ICH3?).  The ich driver seems to work fine on the
laptop that had it.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Oct 7 23:31:52 2001 UTC (10 years, 4 months ago) by cg
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4 lines
* register the correct number of channels
* include hw buffer size in sndstat info

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Sep 18 14:53:01 2001 UTC (10 years, 4 months ago) by cg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +18 -11 lines
don't enable the mic record channel unless the codec supports it.

allow hardware buffer size to be specified using hints.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 31 07:50:28 2001 UTC (10 years, 5 months ago) by cg
Branches: RELENG_4
CVS tags: RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.3.2.1: preferred, colored
Changes since revision 1.3.2.1: +25 -22 lines
mfc rev 1.5:

* change buffering method a bit
* swap record/mic channels
* initialise all channels
* align dma buffers to 8 bytes

Approved by:	jkh

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Aug 29 02:31:03 2001 UTC (10 years, 5 months ago) by cg
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2, KSE_MILESTONE_2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +31 -41 lines
* change buffering method a bit
* swap record/mic channels
* initialise all channels
* align dma buffers to 8 bytes

Submitted by:	Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp>
(mostly)

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Aug 23 11:30:51 2001 UTC (10 years, 5 months ago) by cg
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +27 -14 lines
many changes:

* add new channels to the end of the list so channels used in order of
addition

* de-globalise definition of struct snddev_info and provide accessor
functions where necessary.

* move the $FreeBSD$ tag in each .c file into a macro and allow the
/dev/sndstat handler to display these when set to maximum verbosity to aid
debugging.

* allow each device to register its own sndstat handler to reduce the amount
of groping sndstat must do in foreign structs.

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 1 05:37:30 2001 UTC (10 years, 6 months ago) by cg
Branches: RELENG_4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -1 lines
mfc of ich sound driver

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jul 3 17:27:13 2001 UTC (10 years, 7 months ago) by cg
Branches: MAIN
Branch point for: RELENG_4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +236 -826 lines
* simplify

* add support for mic record channel

* add support for setblocksize

* make mpsafe

* make getptr accurate

* reduce buffer size from 64k to 16k for better synchronisation

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Jul 2 15:29:38 2001 UTC (10 years, 7 months ago) by green
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
Detect the device on e.g. Dell OptiPlex GX110s.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jul 1 19:38:56 2001 UTC (10 years, 7 months ago) by cg
Branches: MAIN
intel ich/ich2 driver - this needs some work but is functional enough for
the impatient.

Hardware...
Provided by:    ps
Lost by:        <censored>
Found by:       <censored>
Not delivered by:       Ashley Penney <ashp@unloved.org>
Retrieved by:   greid, Andrew McKay <andy@openirc.co.uk>
Delivered by:   Andrew McKay <andy@openirc.co.uk>

PR:             kern/25507
Submitted by:   Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp>

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