The NetBSD Project

CVS log for src/sys/dev/audio.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.234.6.6 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:04 2008 UTC (2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.234.6.5: +8 -8 lines
Diff to previous 1.234.6.5 (colored) to branchpoint 1.234 (colored) next main 1.235 (colored)

Sync with HEAD.

Revision 1.239.4.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:57 2008 UTC (2 months, 1 week ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.239: +53 -32 lines
Diff to previous 1.239 (colored) next main 1.240 (colored)

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

Revision 1.242.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:03 2008 UTC (2 months, 1 week ago) by simonb
Branch: simonb-wapbl
Changes since 1.242: +9 -9 lines
Diff to previous 1.242 (colored) next main 1.243 (colored)

Sync with head.

Revision 1.238.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:24 2008 UTC (2 months, 1 week ago) by yamt
Branch: yamt-pf42
Changes since 1.238.2.2: +10 -10 lines
Diff to previous 1.238.2.2 (colored) to branchpoint 1.238 (colored) next main 1.239 (colored)

sync with head.

Revision 1.243 / (download) - annotate - [select for diffs], Tue Jun 10 22:53:08 2008 UTC (2 months, 2 weeks ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, simonb-wapbl-nbase, simonb-wapbl-base, mjf-devfs2-base, haad-dm-base, haad-dm, HEAD
Changes since 1.242: +9 -9 lines
Diff to previous 1.242 (colored)

device_private(device_lookup()) -> device_lookup_private()
ok cube@

Revision 1.242 / (download) - annotate - [select for diffs], Sun Jun 8 18:18:33 2008 UTC (2 months, 3 weeks ago) by tsutsui
Branch: MAIN
Branch point for: simonb-wapbl
Changes since 1.241: +3 -3 lines
Diff to previous 1.241 (colored)

Use device_lookup_private() rather than using cd_devs[] directly to get softc.

XXX maybe we should change a type of cd_devs[] in struct cfdriver
    from (void *) to device_t.

Revision 1.234.6.5 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:35 2008 UTC (2 months, 3 weeks ago) by mjf
Branch: mjf-devfs2
Changes since 1.234.6.4: +43 -22 lines
Diff to previous 1.234.6.4 (colored) to branchpoint 1.234 (colored)

Sync with HEAD.

Also fix build.

Revision 1.238.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:09 2008 UTC (2 months, 3 weeks ago) by yamt
Branch: yamt-pf42
Changes since 1.238.2.1: +45 -24 lines
Diff to previous 1.238.2.1 (colored) to branchpoint 1.238 (colored)

sync with head

Revision 1.215.2.1.2.2 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:19 2008 UTC (2 months, 3 weeks ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.215.2.1.2.1: +5 -4 lines
Diff to previous 1.215.2.1.2.1 (colored) next main 1.215.2.2 (colored)

Sync with netbsd-4.

Revision 1.241 / (download) - annotate - [select for diffs], Tue Jun 3 06:21:17 2008 UTC (2 months, 3 weeks ago) by bjs
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.240: +13 -9 lines
Diff to previous 1.240 (colored)



 - Fix the conditions for POLLOUT to match those elsewhere

 - Refactor pause attribute handling so that it it's preserved
   appropriately and reset in audio_clear().

Now audio/jack-devel works with the native driver.

Revision 1.240 / (download) - annotate - [select for diffs], Tue Jun 3 02:16:18 2008 UTC (2 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.239: +34 -17 lines
Diff to previous 1.239 (colored)

pmf: in audio_volume_up and audio_volume_down, honour the mixer control's
delta field rather than arbitrary '32' when stepping up or down master
volume.

Revision 1.234.6.4 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:11 2008 UTC (2 months, 3 weeks ago) by mjf
Branch: mjf-devfs2
Changes since 1.234.6.3: +8 -8 lines
Diff to previous 1.234.6.3 (colored) to branchpoint 1.234 (colored)

Sync with HEAD.

Revision 1.238.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:30 2008 UTC (3 months, 1 week ago) by yamt
Branch: yamt-pf42
Changes since 1.238: +8 -8 lines
Diff to previous 1.238 (colored)

sync with head.

Revision 1.239 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:27 2008 UTC (4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-nfs-mp, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.238: +8 -8 lines
Diff to previous 1.238 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.234.6.3 / (download) - annotate - [select for diffs], Sun Apr 6 09:58:49 2008 UTC (4 months, 3 weeks ago) by mjf
Branch: mjf-devfs2
Changes since 1.234.6.2: +3 -3 lines
Diff to previous 1.234.6.2 (colored) to branchpoint 1.234 (colored)

- after some discussion with agc@ i agreed it would be a good idea to move
  device_unregister_* to device_deregister_* to be more like the pmf(9)
  functions, especially since a lot of the time the function calls are next
  to each other.

- add device_register_name() support for dk(4).

Revision 1.234.6.2 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:20 2008 UTC (4 months, 3 weeks ago) by mjf
Branch: mjf-devfs2
Changes since 1.234.6.1: +16 -2 lines
Diff to previous 1.234.6.1 (colored) to branchpoint 1.234 (colored)

- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
  as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
  list of device drivers yet to be converted see,
  http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
  names associated with a device_t, which saves us having to construct
  device names when the driver is detached.

- add a DEV_AUDIO type for devices.

Revision 1.234.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:36 2008 UTC (4 months, 3 weeks ago) by mjf
Branch: mjf-devfs2
Changes since 1.234: +49 -46 lines
Diff to previous 1.234 (colored)

Sync with HEAD.

Revision 1.238 / (download) - annotate - [select for diffs], Tue Apr 1 00:52:11 2008 UTC (4 months, 4 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.237: +4 -4 lines
Diff to previous 1.237 (colored)

Fix audio_volume_toggle. How did this ever work for me? Thinkpad T61
mutes audio automatically when the mute key is pressed.

Revision 1.234.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:11 2008 UTC (5 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.234: +47 -44 lines
Diff to previous 1.234 (colored) next main 1.235 (colored)

sync with head.

Revision 1.223.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:34 2008 UTC (5 months, 1 week ago) by matt
Branch: matt-armv6
Changes since 1.223.2.2: +74 -46 lines
Diff to previous 1.223.2.2 (colored) to branchpoint 1.223 (colored) next main 1.224 (colored)

sync with HEAD

Revision 1.197.2.10 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:36 2008 UTC (5 months, 1 week ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.197.2.9: +47 -44 lines
Diff to previous 1.197.2.9 (colored) to branchpoint 1.197 (colored) next main 1.198 (colored)

sync with head.

Revision 1.237 / (download) - annotate - [select for diffs], Wed Mar 12 18:02:21 2008 UTC (5 months, 2 weeks ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.236: +11 -11 lines
Diff to previous 1.236 (colored)

Use device_t and its accessors throughout.  Use aprint_*_dev().

Improve PMF-ability.

        Add a 'flags' argument to suspend/resume handlers and
        callers such as pmf_system_suspend().

        Define a flag, PMF_F_SELF, which indicates to PMF that a
        device is suspending/resuming itself.  Add helper routines,
        pmf_device_suspend_self(dev) and pmf_device_resume_self(dev),
        that call pmf_device_suspend(dev, PMF_F_SELF) and
        pmf_device_resume(dev, PMF_F_SELF), respectively.  Use
        PMF_F_SELF to suspend/resume self in ath(4), audio(4),
        rtw(4), and sip(4).

        In ath(4) and in rtw(4), replace the icky sc_enable/sc_disable
        callbacks, provided by the bus front-end, with
        self-suspension/resumption.  Also, clean up the bus
        front-ends.  Make sure that the interrupt handler is
        disestablished during suspension.  Get rid of driver-private
        flags (e.g., RTW_F_ENABLED, ath_softc->sc_invalid); use
        device_is_active()/device_has_power() calls, instead.

        In the network-class suspend handler, call if_stop(, 0)
        instead of if_stop(, 1), because the latter is superfluous
        (bus- and driver-suspension hooks will 'disable' the NIC),
        and it may cause recursion.

        In the network-class resume handler, prevent infinite
        recursion through if_init() by getting out early if we are
        self-suspending (PMF_F_SELF).

rtw(4) improvements:

        Destroy rtw(4) callouts when we detach it.  Make rtw at
        pci detachable.  Print some more information with the "rx
        frame too long" warning.

Remove activate() methods:

        Get rid of rtw_activate() and ath_activate().  The device
        activate() methods are not good for much these days.

Make ath at cardbus resume with crypto functions intact:

        Introduce a boolean device property, "pmf-powerdown".  If
        pmf-powerdown is present and false, it indicates that a
        bus back-end should not remove power from a device.

        Honor this property in cardbus_child_suspend().

        Set this property to 'false' in ath_attach(), since removing
        power from an ath at cardbus seems to lobotomize the WPA
        crypto engine.  XXX Should the pmf-powerdown property
        propagate toward the root of the device tree?

Miscellaneous ath(4) changes:

        Warn if ath(4) tries to write crypto keys to suspended
        hardware.

        Reduce differences between FreeBSD and NetBSD in ath(4)
        multicast filter setup.

        Make ath_printrxbuf() print an rx descriptor's status &
        key index, to help debug crypto errors.

        Shorten a staircase in ath_ioctl().  Don't check for
        ieee80211_ioctl() return code ERESTART, it never happens.

Revision 1.236 / (download) - annotate - [select for diffs], Tue Mar 4 18:23:44 2008 UTC (5 months, 3 weeks ago) by cube
Branch: MAIN
Changes since 1.235: +31 -33 lines
Diff to previous 1.235 (colored)

Split device_t and softc for audio(4), and other related cosmetic changes.

Revision 1.235 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:50 2008 UTC (5 months, 4 weeks ago) by rmind
Branch: MAIN
Changes since 1.234: +9 -4 lines
Diff to previous 1.234 (colored)

Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>

Revision 1.197.2.9 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:31 2008 UTC (6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.197.2.8: +26 -2 lines
Diff to previous 1.197.2.8 (colored) to branchpoint 1.197 (colored)

sync with head.

Revision 1.224.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:31 2008 UTC (6 months, 1 week ago) by mjf
Branch: mjf-devfs
Changes since 1.224.4.2: +29 -4 lines
Diff to previous 1.224.4.2 (colored) to branchpoint 1.224 (colored) next main 1.225 (colored)

Sync with HEAD.

Revision 1.234 / (download) - annotate - [select for diffs], Wed Feb 13 18:31:51 2008 UTC (6 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.233: +26 -2 lines
Diff to previous 1.233 (colored)

Disable audio idle timer. It was a fun experiment, but causes more issues
than it was worth.

Revision 1.197.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:17 2008 UTC (6 months, 3 weeks ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.197.2.7: +5 -4 lines
Diff to previous 1.197.2.7 (colored) to branchpoint 1.197 (colored)

sync with head.

Revision 1.215.2.4 / (download) - annotate - [select for diffs], Sun Feb 3 19:08:41 2008 UTC (6 months, 3 weeks ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-base
Changes since 1.215.2.3: +5 -4 lines
Diff to previous 1.215.2.3 (colored) to branchpoint 1.215 (colored) next main 1.216 (colored)

Pull up following revision(s) (requested by gson in ticket #1054):
	sys/dev/audio.c: revision 1.233
Don't enter an infinite loop in audio_read() when the sc->sc_rustream
buffer is full.  Fixes kern/34659.

Revision 1.227.2.3 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:32 2008 UTC (7 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.227.2.2: +3 -2 lines
Diff to previous 1.227.2.2 (colored) next main 1.228 (colored)

Sync with HEAD.

Revision 1.233 / (download) - annotate - [select for diffs], Wed Jan 23 14:14:55 2008 UTC (7 months ago) by gson
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase
Changes since 1.232: +5 -4 lines
Diff to previous 1.232 (colored)

Don't enter an infinite loop in audio_read() when the sc->sc_rustream
buffer is full.  Fixes kern/34659.

Revision 1.197.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:42:22 2008 UTC (7 months, 1 week ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.197.2.6: +281 -37 lines
Diff to previous 1.197.2.6 (colored) to branchpoint 1.197 (colored)

sync with head

Revision 1.223.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:09 2008 UTC (7 months, 3 weeks ago) by matt
Branch: matt-armv6
Changes since 1.223.2.1: +292 -46 lines
Diff to previous 1.223.2.1 (colored) to branchpoint 1.223 (colored)

sync with HEAD

Revision 1.227.2.2 / (download) - annotate - [select for diffs], Wed Jan 2 21:53:44 2008 UTC (7 months, 3 weeks ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.227.2.1: +3 -1 lines
Diff to previous 1.227.2.1 (colored)

Sync with HEAD

Revision 1.224.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:44:44 2007 UTC (8 months ago) by mjf
Branch: mjf-devfs
Changes since 1.224.4.1: +281 -37 lines
Diff to previous 1.224.4.1 (colored) to branchpoint 1.224 (colored)

Sync with HEAD.

Revision 1.225.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:19 2007 UTC (8 months ago) by ad
Branch: vmlocking2
Changes since 1.225.2.1: +281 -37 lines
Diff to previous 1.225.2.1 (colored) to branchpoint 1.225 (colored) next main 1.226 (colored)

Sync with head.

Revision 1.232 / (download) - annotate - [select for diffs], Sun Dec 23 19:14:03 2007 UTC (8 months ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-base
Changes since 1.231: +4 -2 lines
Diff to previous 1.231 (colored)

Deregister activity handler on detach.

Revision 1.231 / (download) - annotate - [select for diffs], Sat Dec 22 18:34:56 2007 UTC (8 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.230: +3 -3 lines
Diff to previous 1.230 (colored)

Use M_NOWAIT in audio_stream_ctor; it can be called from a softintr context
through pmf_resume.

Revision 1.227.2.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:55:19 2007 UTC (8 months, 2 weeks ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.227: +18 -10 lines
Diff to previous 1.227 (colored)

Sync with HEAD

Revision 1.230 / (download) - annotate - [select for diffs], Thu Dec 13 14:40:36 2007 UTC (8 months, 2 weeks ago) by joerg
Branch: MAIN
Changes since 1.229: +11 -10 lines
Diff to previous 1.229 (colored)

Don't count poll(2) and select(2) as device activity. Don't activate the
device on write(2) if it is suspended and was not idle.

Revision 1.229 / (download) - annotate - [select for diffs], Thu Dec 13 14:02:53 2007 UTC (8 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.228: +8 -2 lines
Diff to previous 1.228 (colored)

When resuming the audio device, call audiosetinfo with the last known good
parameters. Fixes an issue with suspending the audio device while playback
is paused.

Revision 1.226.2.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:22:25 2007 UTC (8 months, 2 weeks ago) by yamt
Branch: yamt-kmem
Changes since 1.226: +271 -36 lines
Diff to previous 1.226 (colored) next main 1.227 (colored)

sync with head.

Revision 1.228 / (download) - annotate - [select for diffs], Tue Dec 11 00:08:14 2007 UTC (8 months, 2 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Changes since 1.227: +3 -2 lines
Diff to previous 1.227 (colored)

When collecting mixer values while suspending, initialize the number
of channels from the mixer device info. Fixes PR kern/37512.
OK: jmcneill

Revision 1.227 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:51 2007 UTC (8 months, 2 weeks ago) by jmcneill
Branch: MAIN
Branch point for: bouyer-xeni386
Changes since 1.226: +270 -36 lines
Diff to previous 1.226 (colored)

Merge jmcneill-pm branch.

Revision 1.222.6.12 / (download) - annotate - [select for diffs], Sun Dec 9 19:37:39 2007 UTC (8 months, 2 weeks ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.222.6.11: +3 -3 lines
Diff to previous 1.222.6.11 (colored) to branchpoint 1.222 (colored) next main 1.223 (colored)

Sync with HEAD.

Revision 1.224.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:16 2007 UTC (8 months, 3 weeks ago) by mjf
Branch: mjf-devfs
Changes since 1.224: +13 -11 lines
Diff to previous 1.224 (colored)

Sync with HEAD.

Revision 1.225.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:14 2007 UTC (8 months, 3 weeks ago) by ad
Branch: vmlocking2
Changes since 1.225: +3 -3 lines
Diff to previous 1.225 (colored)

Sync with head.

Revision 1.222.6.11 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:01 2007 UTC (8 months, 3 weeks ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.222.6.10: +16 -16 lines
Diff to previous 1.222.6.10 (colored) to branchpoint 1.222 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.197.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:29:14 2007 UTC (8 months, 3 weeks ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.197.2.5: +13 -11 lines
Diff to previous 1.197.2.5 (colored) to branchpoint 1.197 (colored)

sync with head

Revision 1.222.6.10 / (download) - annotate - [select for diffs], Thu Dec 6 14:20:47 2007 UTC (8 months, 3 weeks ago) by joerg
Branch: jmcneill-pm
Changes since 1.222.6.9: +18 -2 lines
Diff to previous 1.222.6.9 (colored) to branchpoint 1.222 (colored)

Readd lost splaudio around suspend/resume/volume management.

Revision 1.226 / (download) - annotate - [select for diffs], Wed Dec 5 17:19:47 2007 UTC (8 months, 3 weeks ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem
Changes since 1.225: +3 -3 lines
Diff to previous 1.225 (colored)

Do not "return 1" from kqfilter for errors.  That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.

Revision 1.222.6.9 / (download) - annotate - [select for diffs], Sat Dec 1 05:13:25 2007 UTC (8 months, 4 weeks ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.222.6.8: +12 -10 lines
Diff to previous 1.222.6.8 (colored) to branchpoint 1.222 (colored)

Sync with HEAD.

Revision 1.225 / (download) - annotate - [select for diffs], Sat Dec 1 05:11:08 2007 UTC (8 months, 4 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase
Branch point for: vmlocking2
Changes since 1.224: +12 -10 lines
Diff to previous 1.224 (colored)

aprintify

Revision 1.223.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:25:25 2007 UTC (9 months, 3 weeks ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.223: +10 -9 lines
Diff to previous 1.223 (colored)

sync with HEAD

Revision 1.222.6.8 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:11 2007 UTC (9 months, 3 weeks ago) by joerg
Branch: jmcneill-pm
Changes since 1.222.6.7: +151 -101 lines
Diff to previous 1.222.6.7 (colored) to branchpoint 1.222 (colored)

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

Revision 1.197.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:29:56 2007 UTC (10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.197.2.4: +10 -9 lines
Diff to previous 1.197.2.4 (colored) to branchpoint 1.197 (colored)

sync with head.

Revision 1.222.6.7 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:08 2007 UTC (10 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.222.6.6: +10 -9 lines
Diff to previous 1.222.6.6 (colored) to branchpoint 1.222 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.222.6.6 / (download) - annotate - [select for diffs], Sun Oct 21 19:10:28 2007 UTC (10 months, 1 week ago) by joerg
Branch: jmcneill-pm
Changes since 1.222.6.5: +3 -3 lines
Diff to previous 1.222.6.5 (colored) to branchpoint 1.222 (colored)

Fix compilation with DIAGNOSTIC.

Revision 1.222.6.5 / (download) - annotate - [select for diffs], Thu Oct 18 02:07:20 2007 UTC (10 months, 1 week ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.222.6.4: +110 -7 lines
Diff to previous 1.222.6.4 (colored) to branchpoint 1.222 (colored)

Improve PNP audio power management. Instead of starting an idle timer
to power down the audio device on last close, allow the pm policy to
power down the device while it's still open.

Since X mixers typically poll /dev/mixer with AUDIO_GET_INFO ioctls, we need
to avoid resetting the idle timer when these applications are running. As a
result, introduce audio_mixer_{capture,restore} in MI audio and use them in
its power handler. When an audio device is asleep, we simply return cached
values on AUDIO_GET_INFO ioctls. A nice side effect is that MI audio now
properly captures and restores mixer values across hw device suspend/resume.

XXX: I've added locking in pnp_power(), but I'm using mutex_owned() in
a way that mutex(9) claims I shouldn't be doing. Needs to be revisited.

Revision 1.223.4.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:47:58 2007 UTC (10 months, 2 weeks ago) by yamt
Branch: yamt-x86pmap
Changes since 1.223: +10 -9 lines
Diff to previous 1.223 (colored) next main 1.224 (colored)

sync with head.

Revision 1.224 / (download) - annotate - [select for diffs], Mon Oct 8 16:18:02 2007 UTC (10 months, 3 weeks ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.223: +10 -9 lines
Diff to previous 1.223 (colored)

Use the softint API.

Revision 1.222.6.4 / (download) - annotate - [select for diffs], Thu Sep 13 04:45:12 2007 UTC (11 months, 2 weeks ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.222.6.3: +5 -2 lines
Diff to previous 1.222.6.3 (colored) to branchpoint 1.222 (colored)

If outputs.master doesn't exist, fallback to inputs.dac as the next best
possible candidate.

Revision 1.222.6.3 / (download) - annotate - [select for diffs], Fri Sep 7 23:55:29 2007 UTC (11 months, 3 weeks ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.222.6.2: +2 -7 lines
Diff to previous 1.222.6.2 (colored) to branchpoint 1.222 (colored)

Remove azalia mixer hack that should never have been commited in the first
place.

Revision 1.197.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:33:08 2007 UTC (11 months, 3 weeks ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.197.2.3: +93 -72 lines
Diff to previous 1.197.2.3 (colored) to branchpoint 1.197 (colored)

sync with head.

Revision 1.215.2.1.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:17 2007 UTC (11 months, 3 weeks ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.215.2.1: +35 -14 lines
Diff to previous 1.215.2.1 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.192.4.7 / (download) - annotate - [select for diffs], Sun Aug 26 19:08:02 2007 UTC (12 months ago) by bouyer
Branch: netbsd-3
Changes since 1.192.4.6: +6 -4 lines
Diff to previous 1.192.4.6 (colored) to branchpoint 1.192 (colored) next main 1.193 (colored)

Pull up following revision(s) (requested by uwe in ticket #1831):
	sys/dev/audio.c: revision 1.223
au_setup_ports - don't hide ports->nports++ inside another expression,
especially if that other expression is the right hand side operand of
&& which is short-circuiting.  The effect was that audiorecord(1)
would always fail trying to set recording port with AUDIO_SETINFO.
Tested on wss@pnpbios.  It looks like this problem has been reported
as PR/35239, filed against port-hp700.

Revision 1.215.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 20:23:09 2007 UTC (12 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-base-1, 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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.215.2.2: +6 -4 lines
Diff to previous 1.215.2.2 (colored) to branchpoint 1.215 (colored)

Pull up following revision(s) (requested by uwe in ticket #835):
	sys/dev/audio.c: revision 1.223
au_setup_ports - don't hide ports->nports++ inside another expression,
especially if that other expression is the right hand side operand of
&& which is short-circuiting.  The effect was that audiorecord(1)
would always fail trying to set recording port with AUDIO_SETINFO.
Tested on wss@pnpbios.  It looks like this problem has been reported
as PR/35239, filed against port-hp700.

Revision 1.221.2.3 / (download) - annotate - [select for diffs], Mon Aug 20 18:36:36 2007 UTC (12 months, 1 week ago) by ad
Branch: vmlocking
Changes since 1.221.2.2: +6 -4 lines
Diff to previous 1.221.2.2 (colored) to branchpoint 1.221 (colored) next main 1.222 (colored)

Sync with HEAD.

Revision 1.222.6.2 / (download) - annotate - [select for diffs], Thu Aug 16 11:03:02 2007 UTC (12 months, 2 weeks ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.222.6.1: +6 -4 lines
Diff to previous 1.222.6.1 (colored) to branchpoint 1.222 (colored)

Sync with HEAD.

Revision 1.222.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:11 2007 UTC (12 months, 2 weeks ago) by skrll
Branch: nick-csl-alignment
Changes since 1.222: +6 -4 lines
Diff to previous 1.222 (colored) next main 1.223 (colored)

Sync with HEAD.

Revision 1.223 / (download) - annotate - [select for diffs], Tue Aug 14 21:34:03 2007 UTC (12 months, 2 weeks ago) by uwe
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Changes since 1.222: +6 -4 lines
Diff to previous 1.222 (colored)

au_setup_ports - don't hide ports->nports++ inside another expression,
especially if that other expression is the right hand side operand of
&& which is short-circuiting.  The effect was that audiorecord(1)
would always fail trying to set recording port with AUDIO_SETINFO.

Tested on wss@pnpbios.  It looks like this problem has been reported
as PR/35239, filed against port-hp700.

Revision 1.222.6.1 / (download) - annotate - [select for diffs], Fri Aug 3 22:17:12 2007 UTC (12 months, 3 weeks ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.222: +99 -32 lines
Diff to previous 1.222 (colored)

Pull in power management changes from private branch.

Revision 1.221.2.2 / (download) - annotate - [select for diffs], Sun Jul 15 13:21:05 2007 UTC (13 months, 2 weeks ago) by ad
Branch: vmlocking
Changes since 1.221.2.1: +31 -12 lines
Diff to previous 1.221.2.1 (colored) to branchpoint 1.221 (colored)

Sync with head.

Revision 1.221.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:04:56 2007 UTC (13 months, 2 weeks ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.221: +31 -12 lines
Diff to previous 1.221 (colored) next main 1.222 (colored)

Sync with head.

Revision 1.221.2.1 / (download) - annotate - [select for diffs], Sun Jun 17 21:30:48 2007 UTC (14 months, 1 week ago) by ad
Branch: vmlocking
Changes since 1.221: +10 -9 lines
Diff to previous 1.221 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.215.2.2 / (download) - annotate - [select for diffs], Tue Jun 12 10:11:08 2007 UTC (14 months, 2 weeks ago) by liamjfoy
Branch: netbsd-4
Changes since 1.215.2.1: +31 -12 lines
Diff to previous 1.215.2.1 (colored) to branchpoint 1.215 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #716):
	share/man/man4/audio.4: revision 1.66
	sys/compat/ossaudio/ossaudio.c: revision 1.56
	sys/sys/audioio.h: revision 1.32
	lib/libossaudio/ossaudio.c: revision 1.21
	sys/dev/audio.c: revision 1.222
Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but
doesn't obtain the ports, gain and balance related parameters.
Those generally require reading from the hardware and therefore are
much
more expensive to obtain. Modify OSS emulation to use the new ioctl
where possible.
This reduces CPU usage of mplayer during mp3 playback with my Thinkpad
from 20% to < 1% and from 50% to 20% during Xvid playback.
Review and comments from jmcneill@

Revision 1.222 / (download) - annotate - [select for diffs], Mon Jun 11 13:05:46 2007 UTC (14 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.221: +31 -12 lines
Diff to previous 1.221 (colored)

Add a new ioctl AUDIO_GETBUFINFO. It works like AUDIO_GETINFO, but
doesn't obtain the ports, gain and balance related parameters.
Those generally require reading from the hardware and therefore are much
more expensive to obtain. Modify OSS emulation to use the new ioctl
where possible.

This reduces CPU usage of mplayer during mp3 playback with my Thinkpad
from 20% to < 1% and from 50% to 20% during Xvid playback.

Review and comments from jmcneill@

Revision 1.217.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:02 2007 UTC (17 months, 2 weeks ago) by rmind
Branch: yamt-idlelwp
Changes since 1.217.2.1: +60 -60 lines
Diff to previous 1.217.2.1 (colored) next main 1.218 (colored)

Sync with HEAD.

Revision 1.215.2.1 / (download) - annotate - [select for diffs], Sat Mar 10 12:06:05 2007 UTC (17 months, 3 weeks ago) by bouyer
Branch: netbsd-4
Branch point for: wrstuden-fixsa
Changes since 1.215: +3 -3 lines
Diff to previous 1.215 (colored)

Pull up following revision(s) (requested by kent in ticket #499):
	sys/dev/audio.c: revision 1.221
return information about playing buffer, not recording bufer,
for AUDIO_WSEEK.
PR#35171

Revision 1.192.4.5.2.1 / (download) - annotate - [select for diffs], Sat Mar 10 11:50:54 2007 UTC (17 months, 3 weeks ago) by bouyer
Branch: netbsd-3-1
CVS Tags: netbsd-3-1-1-RELEASE
Changes since 1.192.4.5: +1 -1 lines
Diff to previous 1.192.4.5 (colored) next main 1.192.4.6 (colored)

Pull up following revision(s) (requested by kent in ticket #1678):
	sys/dev/audio.c: revision 1.221
return information about playing buffer, not recording bufer,
for AUDIO_WSEEK.
PR#35171

Revision 1.192.4.2.2.3 / (download) - annotate - [select for diffs], Sat Mar 10 11:50:05 2007 UTC (17 months, 3 weeks ago) by bouyer
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE
Changes since 1.192.4.2.2.2: +3 -3 lines
Diff to previous 1.192.4.2.2.2 (colored) to branchpoint 1.192.4.2 (colored) next main 1.192.4.3 (colored)

Pull up following revision(s) (requested by kent in ticket #1678):
	sys/dev/audio.c: revision 1.221
return information about playing buffer, not recording bufer,
for AUDIO_WSEEK.
PR#35171

Revision 1.192.4.6 / (download) - annotate - [select for diffs], Sat Mar 10 11:46:52 2007 UTC (17 months, 3 weeks ago) by bouyer
Branch: netbsd-3
Changes since 1.192.4.5: +1 -1 lines
Diff to previous 1.192.4.5 (colored) to branchpoint 1.192 (colored)

Pull up following revision(s) (requested by kent in ticket #1678):
	sys/dev/audio.c: revision 1.221
return information about playing buffer, not recording bufer,
for AUDIO_WSEEK.
PR#35171

Revision 1.221 / (download) - annotate - [select for diffs], Fri Mar 9 13:20:12 2007 UTC (17 months, 3 weeks ago) by kent
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.220: +3 -3 lines
Diff to previous 1.220 (colored)

return information about playing buffer, not recording bufer,
for AUDIO_WSEEK.

PR#35171

Revision 1.220 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:40 2007 UTC (17 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.219: +7 -7 lines
Diff to previous 1.219 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.219 / (download) - annotate - [select for diffs], Thu Mar 1 17:31:35 2007 UTC (17 months, 4 weeks ago) by thorpej
Branch: MAIN
Changes since 1.218: +54 -54 lines
Diff to previous 1.218 (colored)

TRUE -> true, FALSE -> false

Revision 1.217.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:46 2007 UTC (18 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.217: +5 -5 lines
Diff to previous 1.217 (colored)

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

Revision 1.218.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 14:15:55 2007 UTC (18 months ago) by ad
Branch: ad-audiomp
Changes since 1.218: +338 -148 lines
Diff to previous 1.218 (colored) next main 1.219 (colored)

Add MP locking for audio drivers.

Revision 1.197.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:09:50 2007 UTC (18 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.197.2.2: +66 -25 lines
Diff to previous 1.197.2.2 (colored) to branchpoint 1.197 (colored)

sync with head.

Revision 1.218 / (download) - annotate - [select for diffs], Wed Feb 21 22:59:58 2007 UTC (18 months, 1 week ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base
Branch point for: ad-audiomp
Changes since 1.217: +5 -5 lines
Diff to previous 1.217 (colored)

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.217 / (download) - annotate - [select for diffs], Thu Feb 15 18:12:05 2007 UTC (18 months, 1 week ago) by ad
Branch: