The NetBSD Project

CVS log for src/sys/dev/usb/uaudio.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.136 / (download) - annotate - [select for diffs], Sun May 12 09:54:55 2013 UTC (12 days, 20 hours ago) by wiz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.135: +15 -15 lines
Diff to previous 1.135 (colored)

Atomicly swap out pipe pointer before closing the pipe.
Hopefully fixes "ohci_device_isoc_start: not in progress 0xfffffe874ec259c0"

At least, for me, it increased the uptime during my normal use of uaudio@ohci
from 1,5d to over 3d.

Remove some trailing whitespace and unnecessary initialization
(memset before that) while here.

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

oops, turn uaudiodebug off by default again.

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

- Add a USBD_MPSAFE flag to usbd_open_pipe. If not set, acquire KERNEL_LOCK
  before invoking xfer callbacks on this pipe.
- Add an extra flags parameter to usb_init_task. If USBD_TASKQ_MPSAFE is not
  present, acquire KERNEL_LOCK before invoking the task callback.

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

merge the jmcneill-usbmp branch.  many thanks to jared for the
initial work, and every one else who has tested things for me.
this is largely my fault at this point :-)

the main changes are something like:

        - usbd_bus_methods{} gains a get_lock() to enable the
          host controller to provide a lock for the USB code.
          if the lock isn't provided, old-style protection is
          (partially) applied.

        - ehci/ohci/uhci have been converted to the new
          interfaces, including mutex/cv/etc conversion.

        - usbdivar.h contains a discussion about locking and
          what locks are held for which method calls.  more
          to come for usbdi(9) here.

        - audio drivers (uaudio, umidi, auvitek) have been
          properly SMPified now that USB is ready.

        - scsi drivers have been modified to take the kernel
          lock explicitly before calling into scsi code.

        - usb pipes are associated with a lock, that is the
          same as the controller lock.  (this could be split
          up further in the future.)

        - several usbfoo_locked() or usbfoo_unlocked()
          functions have been added to the usbdi(9) to
          enable functionality with or without the USB
          lock (per controller) already being held.

the TODO.usbmp file has specific details on what is left to
do, including what device-specific changes should be done now
that the whole framework is ready.

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

Increase the number of frequencies in the usb_audio_streaming_type1_descriptor
to be the same number that we support elsewhere (AUFMT_MAX_FREQUENCIES).
Set frequency_type to be AUFMT_MAX_FREQUENCIES in the case where a uaudio
device reports more frequencies than we handle.
Fixes a crash in uaudio_chan_ptransfer() because we read uninitialised data
in uaudio_identify_as().

Revision 1.131 / (download) - annotate - [select for diffs], Sun Apr 22 01:31:48 2012 UTC (13 months ago) by jakllsch
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.130: +6 -4 lines
Diff to previous 1.130 (colored)

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

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

Also print and bail out if the hardware returned a too large bSamFreqType,
instead of reading past descriptor array. Found by gcc -O3

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

remove any remnants of freebsd/openbsd code.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Dec 23 00:51:44 2011 UTC (17 months ago) by jakllsch
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base2
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored)

Revert previous due to active usbmp branch(es).

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

Adjust-away inconsistent and trailing whitespace.

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

- convert the audio softintr's to SOFTINT_SERIAL.  right now they're on
  the same priority level as USB and if an audio softintr is blocked
  waiting for a usb event, they'll dead lock.  also, audio being higher
  priority is a fine idea.

- revert the previous audio.c changes as they were unsafe and this change
  obviates the need for them.

XXX:  convert the audio softint's to use a high priority thread or a
XXX:  workqueue would be better again.

Revision 1.125 / (download) - annotate - [select for diffs], Fri Dec 9 05:03:18 2011 UTC (17 months, 2 weeks ago) by mrg
Branch: MAIN
Changes since 1.124: +6 -2 lines
Diff to previous 1.124 (colored)

from the usbmp branch:
- drop the thread lock when usbd might sleep on us.

this also makes mixerctl -s vs play work without usbmp.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Nov 27 07:36:54 2011 UTC (17 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.123: +7 -4 lines
Diff to previous 1.123 (colored)

also apply the previous spin mutex hack to uaudio_trigger_input()

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

drop sc_intr_lock when calling into uaudio_chan_ptransfer().

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

re-write most of the debug messages using c99 varaidic macros and always
include the __func__ and pid:lid.  remove the handful of other __func__
uses and the 100+ other hard coded function name uses.

Revision 1.121 / (download) - annotate - [select for diffs], Wed Nov 23 23:07:36 2011 UTC (18 months ago) by jmcneill
Branch: MAIN
Changes since 1.120: +84 -19 lines
Diff to previous 1.120 (colored)

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

  Add MP locking to the audio drivers.

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

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

Welcome to 5.99.57.

Revision 1.120 / (download) - annotate - [select for diffs], Tue Dec 28 20:11:18 2010 UTC (2 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-audiomp3
Changes since 1.119: +12 -18 lines
Diff to previous 1.119 (colored)

Address PR#44279.

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

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

fill audio_info.config with the string "usb:<cookie>" instead of "uaudio",
where <cookie> comes from the usbd device handle:

  $ audioctl -d /dev/sound1 config
  config=usb:00000009

this can be used by software to find the audio device(s) associated with a
USB video capture device

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

Stop using the compatibility macros USB_ATTACH(), USB_DETACH(),
USB_MATCH(), et cetera.  These files produce the same assembly
(according to objdump -d) before and after the change

Revision 1.117 / (download) - annotate - [select for diffs], Thu Nov 12 19:50:01 2009 UTC (3 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.116: +8 -15 lines
Diff to previous 1.116 (colored)

Simplify activation hook.  (sc_dying must die!)

s/device_ptr_t/device_t/.

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

fix up USB drivers printing of autoconf information

1. expand the USB_ATTACH_SETUP macro (requested by jmcneill)

2. reorder the attach function so that the first thing it does is print
   newlines.

3. after this, we can call usbd_devinfo_alloc(), which polls the device
   allowing a context switch, and aprint_normal() the device information.

this avoids problems where autoconf messages are getting mixed up.

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

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

Revision 1.114 / (download) - annotate - [select for diffs], Sat Jun 28 09:14:56 2008 UTC (4 years, 10 months ago) by kent
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base2, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend
Changes since 1.113: +75 -2 lines
Diff to previous 1.113 (colored)

Make uaudio compilable as a kmod.

XXX:
"modload uaudio.kmod" doesn't attach the uaudio driver to
plugged USB devices for now because uhub_rescan() is not
implemented yet.  We need to re-plug USB devices after modload.

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

Split device_t and softc for all USB device drivers, and related cosmetic
changes.

Matthias Drochner kindly reviewed this patch, and tested ums, ubt, uaudio
and ral.  I tested umass myself.

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

Remove clause 3 and 4 from TNF licenses

Revision 1.111 / (download) - annotate - [select for diffs], Mon Feb 18 05:31:24 2008 UTC (5 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.110: +24 -6 lines
Diff to previous 1.110 (colored)

Use device_t and its accessor functions.

Register _childdetached methods with drivers that attach children.
Wait to set child references to NULL there, instead of doing that
in the detach method.

Replace many uses of USB_DECLARE_DRIVER() with CFATTACH_DECL2().

Revision 1.110 / (download) - annotate - [select for diffs], Tue Mar 13 13:51:54 2007 UTC (6 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6
Changes since 1.109: +6 -12 lines
Diff to previous 1.109 (colored)

Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
 stage, but did configuration again. I've converted them to match
 in the device stage.
ustir, utoppy: matched in the interface stage, but only against
 vendor/device information, and used any configuration/interface
 without checking. Changed to match in device stage, and added
 some simple code to configure and use the first interface.
If you have one of those devices, please test!

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

Don't assume that usb_descriptor_t contains a bDescriptorSubtype field.
This is class specific and shouldn't be in a generic definition.

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

Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:26 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.106: +11 -11 lines
Diff to previous 1.106 (colored)

__unused removal on arguments; approved by core.

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

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

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

fix empty if

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

add missing initializer

Revision 1.103 / (download) - annotate - [select for diffs], Thu May 11 19:09:25 2006 UTC (7 years ago) by mrg
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.102: +4 -2 lines
Diff to previous 1.102 (colored)

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

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

Coverity CID 730: Ifdef dead code appropriately.

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

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

Revision 1.100 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, elad-kernelauth
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

merge ktrace-lwp.

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

- const poisoning
- eliminate variable shadowing

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

Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Feb 24 08:19:38 2005 UTC (8 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.96: +5 -3 lines
Diff to previous 1.96 (colored)

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

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

* uaudio_round_blocksize()
  calculate playing blocksize and recording blocksize independently

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

Make this compile (after previous commit) with UAUDIO_DEBUG defined

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

ansify and KNF

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

merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

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

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

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

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

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

* all of audio HW drivers follow audio_hw_if and ac97 changes

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

adopt auconv_set_converter()

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

print cluster information if UAUDIO_DEBUG is defined.

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

* uaudio_chan_open()
  Call uaudio_set_speed() if and only if the selected Audio Streaming
interface supports multiple sampling rates.
  Address PR#27237

Revision 1.89 / (download) - annotate - [select for diffs], Fri Oct 29 16:42:47 2004 UTC (8 years, 6 months ago) by kent
Branch: MAIN
Changes since 1.88: +31 -31 lines
Diff to previous 1.88 (colored)

replace printf() inside UAUDIO_DEBUG with logprintf()

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

constify audio_hw_if, midi_hw_if, and radio_hw_if.

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

assign AudioNlfe to UATO_SUBWOOFER
assign "phone" to telephony terimnal types.  The label "phone" is used
in ac97 though it is not defined as AudioN* macro.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Oct 22 16:01:49 2004 UTC (8 years, 7 months ago) by kent
Branch: MAIN
Changes since 1.85: +142 -149 lines
Diff to previous 1.85 (colored)

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

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

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

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

fix wrong realloc() usage.
from OpenBSD

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

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

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

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

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

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

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

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

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

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

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

- add some debug prints
- no parameter names in prototypes
- use const pointers if dereferenced object should not be modified

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

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

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

The previous change was not complete.  /brick me

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

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

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

Clean up a little.

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

Previous fix was not right.  Also fix a couple of other problems -- we were
never actually setting the mode if using audioctl.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Jul 7 20:21:06 2004 UTC (8 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.71: +14 -13 lines
Diff to previous 1.71 (colored)

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

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

use bounded string ops (snprintf, strl*)

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

sprintf -> snprintf

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

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

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

Update URLs.  From PR 23004.

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

DMA, not dma nor Dma.

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

uaudio_match_alt_sub(): fix the rate check in UA_SAMP_CONTNUOUS case
to match if UA_SAMP_LO() == UA_SAMP_HI() == rate
problem reported and fix provided in PR kern/18986 by Yasushi Oshima

Revision 1.65 / (download) - annotate - [select for diffs], Sun Mar 30 04:47:13 2003 UTC (10 years, 1 month ago) by toshii
Branch: MAIN
Changes since 1.64: +15 -14 lines
Diff to previous 1.64 (colored)

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

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

Remove assigned-to but not used variable.

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

Rework the mixer controls somewhat and give the controls in a FEATURE
unit alias names so normal mixer programs can access them.

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

Don't stuff extra data when we receive data less than expected.
This situation is normal for asynchronous sources, and the byte stuffing
algorithm used generates unpleasant noise.
Also take care of scattered data buffer and do memcpy correctly.

This should fix PR kern/16385.

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

Correct test for busy-ness when setting parameters.

Revision 1.60 / (download) - annotate - [select for diffs], Sat May 18 15:14:39 2002 UTC (11 years ago) by kent
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, kqueue-base, gehenna-devsw-base
Branch point for: netbsd-1-6
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored)

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

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

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

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

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

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

Make recording functional again.

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

whitespace and folding fix.

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

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

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

Create new uaudio_chan_init() and move sample_size/bytes_per_frame
initialization to it from uaudio_chan_set_param().  uaudio_set_params()
calls uaudio_chan_init().
These are required because bytes_per_frame is used in
uaudio_round_blocksize(), which is called before uaudio_set_params().

Noise of 4ch playing disappears by this change.  6ch playing still has
cyclic noise.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Mar 17 16:14:22 2002 UTC (11 years, 2 months ago) by kent
Branch: MAIN
Changes since 1.52: +35 -50 lines
Diff to previous 1.52 (colored)

aurateconv.c:
  - Simplify the source
  - Accept any convresions such that sample_rate < hw_sample_rate

uaudio.c:
  - Request the above conversion.  This is needed for 4ch-only devices to
    play monaural/stereo data.

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

uaudio_set_params(): Set conversions:
  - 8bit slinear/ulinear to 16bit slinear for playing
  - 16bit slinear to 8bit slinear/ulinear for recording

Revision 1.51 / (download) - annotate - [select for diffs], Tue Mar 12 15:12:03 2002 UTC (11 years, 2 months ago) by kent
Branch: MAIN
Changes since 1.50: +14 -9 lines
Diff to previous 1.50 (colored)

Accept 24bit precision.

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

Sampling rate and mono-stereo conversion described in
http://mail-index.netbsd.org/tech-kern/2002/03/04/0005.html

auconv.c: Add conversion functions

audio.c: Sample alignment, calling conversion functions, etc.

audio_if.h: Add four hw_* members to "struct audio_params"

audiovar.h: Add conversion buffers, etc.

auich and uaudio: Add conversion request code to *_set_params().

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

Fix indentation botch.

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

uaudio_set_params() for mulaw:
Give priority to 16bit again in the case the device has no hardware
support for mulaw.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Feb 12 19:52:43 2002 UTC (11 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.46: +103 -66 lines
Diff to previous 1.46 (colored)

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

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

uaudio_chan_set_param:
  Take care of param->factor.

uaudio_set_params:
  Fix a problem of precision matching for mulaw/alaw with 16bit.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Feb 10 06:37:45 2002 UTC (11 years, 3 months ago) by kent
Branch: MAIN
Changes since 1.44: +24 -22 lines
Diff to previous 1.44 (colored)

uaudio_set_params:
  Use slinear16_to_mulaw_le() if ULAW recording is requested and the device
supports neither signed 8bit nor unsigned 8bit and supports 16bit.

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

add RCSIDs

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

Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).

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

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

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

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

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

Cosmetic changes.

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

Don't #define UAUDIO_DEBUG here.

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

Set the play and record parameters separately.
If the device is unidirectional, just ignore parameters in the other direction.
(XXX We need a better way of dealing with this.)
Only set curaltidx if we're setting usemode.
This makes both the Altec Lansing speaker set and the Telex bidirectional frob
work again.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jan 4 06:20:49 2001 UTC (12 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +48 -40 lines
Diff to previous 1.36 (colored)

Several things:
* Only match an alternate which is in the same direction.
* Use 16-bit ulaw and alaw conversions for output, if possible.
* Store the interface handle in the `alternate' table, so we use the right
  interface when creating pipes for devices with both play and record.
Record doesn't seem to actually return any data from the Telex frob, but at
least it doesn't crash or return EIO now.

XXXXXXXX
This is a big f*cking hack.  Play and record need to be separated completely
if this code is ever going to even pretend to support full duplex.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jan 4 05:25:24 2001 UTC (12 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored)

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

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

Make some vague attempt to handle devices that do both input and output.  This
probably needs more work, but at least my Telex frob can play music now.
Also, AUDIO_DEBUG -> UAUDIO_DEBUG.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Dec 29 14:49:28 2000 UTC (12 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.33: +12 -10 lines
Diff to previous 1.33 (colored)

Try to get rounding right when setting mixer values.

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

Set the mixer delta field.

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

Update location of specs.

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

Add two more quirks:
  UQ_AU_NO_FRAC for audio devices that cannot handle adjustment for fractional
    sample size.
  UQ_AU_INP_ASYNC for input devices that claim to be adaptive, but are in fact
    asynchronous (an easy mistake to make unless you read the specs carefully :)

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 28 01:01:42 2000 UTC (12 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Make message about ignored endpoint a little clearer.

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

Allow 16-bit only speakers to work.

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

Add a quirk for audio devices that claim to have an extension unit, but it
can't be manipulated.

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

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

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

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

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

NULL != 0

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

Change my email address.

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

Some OpenBSD portability fixes.

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

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

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

Change (almost) all static to Static.  The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Mar 24 13:02:00 2000 UTC (13 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.19: +6 -2 lines
Diff to previous 1.19 (colored)

Some more debug when selecting sample rate.

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

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

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

Use NULL instead of 0.

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

Generate usb events on attach and detach.

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

Start of implementation of UpDown processing unit control.

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

Implement the ENABLE control for processig units.

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

Cosmetics and a couple of diagnostic messages.

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

Generate an error message when attachment fails.

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

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

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

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

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

Add quirk for speakers that pretend to support the audio class, but don't.
Add quirk for mice that geberate spurious button up events (XXX fix not fully
implemented).

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

A number of stylistic changes to increase readability (many suggested
by Nick Hibma):
	use NULL not 0
	declare all local definitions static
	rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
	rename s/r/err/
	use implicit test for no err
	KNF

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 9 16:52:14 1999 UTC (13 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.7: +14 -1 lines
Diff to previous 1.7 (colored)

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

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

Print a little more information when attaching.

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

Make little endian and big endian version of all functions
that deal with 16 bit samples.  Let the drivers decide which ones
to use.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 25 10:16:49 1999 UTC (13 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.4: +207 -50 lines
Diff to previous 1.4 (colored)

Add some code for recording, still untested.

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

Give uaudio its own debug flag.

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

Format tag and format type tests were interchanged.

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

Add a flag in the request to determine if the data copying is done by the
driver or the usbdi layer.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Sep 9 12:28:25 1999 UTC (13 years, 8 months ago) by augustss
Branch: MAIN

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

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




CVSweb <webmaster@jp.NetBSD.org>