The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Sep 25 08:42:05 2023 UTC (14 months, 2 weeks ago) by macallan
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1 lines
defflag AUDIO_DEBUG

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Jun 4 20:12:10 2022 UTC (2 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
Include sequencer code conditionally.  Fixes build for sparc and sparc64
(and anything else that has a midi but no sequencer).

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jun 4 03:31:10 2022 UTC (2 years, 6 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -2 lines
Combine the midi and sequencer modules into a single midi_seq module
to avoid a circular dependency as noted in kern/56772.  Retain minimal
modules of the original names to accomodate auto-loading upon access
to the /dev/xxx nodes.

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

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 27 07:06:02 2020 UTC (4 years, 10 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +3 -1 lines
Pull up following revision(s) (requested by nia in ticket #657):

	sys/dev/files.audio: revision 1.13
	sys/dev/files.audio: revision 1.14
	sys/arch/amd64/conf/GENERIC: revision 1.559
	sys/arch/evbarm/conf/GENERIC: revision 1.71
	sys/arch/evbarm/conf/GENERIC64: revision 1.134
	sys/dev/audio/audiodef.h: revision 1.8

Set AUDIO_BLK_MS=4 - unlikely to cause significant overhead on non-m68k.

Several of us have been setting this in /etc/sysctl.conf for months, to
get better performance from applications that require synced audio, etc.
It's also mentioned as a good value with low overhead on most archs here:
href="https://mail-index.netbsd.org/tech-kern/2019/12/07/msg025830.html

We could probably go lower, but this is low enough to make most/all
software run well, removing frame drops. It's also low enough to get
emulators/mednafen to stop complaining in the console.

defopt AUDIO_BLK_MS

Follow amd64 and set AUDIO_BLK_MS=4 by default

defopt -> defparam (oops)

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Sat Jan 25 22:38:45 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +3 -1 lines
Sync with head.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jan 25 19:22:05 2020 UTC (4 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
defopt -> defparam (oops)

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jan 25 12:15:35 2020 UTC (4 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -1 lines
defopt AUDIO_BLK_MS

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

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

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

Revision 1.11.16.3: download - view: text, markup, annotated - select for diffs
Sat May 4 06:13:46 2019 UTC (5 years, 7 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.11.16.2: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.16.2: +2 -2 lines
Move dev/audiobell* -> dev/audio/audiobell*.

Revision 1.11.16.2: download - view: text, markup, annotated - select for diffs
Fri May 3 05:43:46 2019 UTC (5 years, 7 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.11.16.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.16.1: +2 -7 lines
Remove dev/auconv.[ch].
 Now it is handled in dev/audio/audio.c and dev/audio/linear.c.
Remove dev/mulaw.h.
 It already have been just a link to dev/audio/mulaw.h in this
 branch.

Revision 1.11.16.1: download - view: text, markup, annotated - select for diffs
Sun Apr 21 04:28:59 2019 UTC (5 years, 7 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -9 lines
Reimplement audio subsystem.
http://mail-index.netbsd.org/tech-kern/2019/04/01/msg024944.html
At first step, audio and devices tightly coupled to audio.
 audio.c -> dev/audio.c: completely rewritten.
 mulaw.c -> audio/mulaw.c, audio/alaw.c: improve quality.
 audiovar.h, mulaw.h: should be removed.
 audio/linear.c: efficient new linear-linear converter.
 auconv.[ch]: should be removed but need some functions for now.
 aurateconv, auvolconv: removed (new audio.c handles it).
 audiobell.c: efficient and small new bell driver.
 audiobelldata.h: removed 4KB sine wave data.
 pad/pad.c: catch up audio, but not cloneable for now.

Revision 1.11.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.11.8.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.8.1: +35 -0 lines
update from HEAD

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

Revision 1.11.8.1
Tue May 30 02:21:11 2017 UTC (7 years, 6 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.11: +0 -35 lines
file files.audio was added on branch tls-maxphys on 2017-12-03 11:36:58 +0000

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 30 02:21:11 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base
Branch point for: tls-maxphys, phil-wifi, isaki-audio2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Include auvolconv.o in the audio driver, even if there are currently no
children needing it.  Children which need this can be created later (via
loading of a module, such as pad).

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:26 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -3 lines
Sync with HEAD

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:31 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +5 -3 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Dec 25 23:23:46 2016 UTC (7 years, 11 months ago) by nat
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Add mulaw to audio device for auconv_set_converter.

This should address PR kern/51707.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Dec 15 04:36:07 2016 UTC (7 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
name attachment after parent per existing convention.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Dec 13 20:20:34 2016 UTC (7 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -5 lines
Restructure speaker devices so that there can be multiple of them, and have
proper softc's.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Dec 11 06:30:11 2016 UTC (8 years ago) by christos
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
one more vaudiospeaker remove

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Dec 9 04:32:39 2016 UTC (8 years ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
more spkr rework.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Dec 8 11:31:08 2016 UTC (8 years ago) by nat
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -1 lines
Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Dec 8 10:28:44 2016 UTC (8 years ago) by nat
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
The audio sub-system now supports the following features as
posted to tech-kern:

    * Simultaneous playback and mixing of multiple streams
    * Playback streams can be of different encoding, frequency, precision
      and number of channels
    * Simultaneous recording to different formats
    * One audio device per process
    * Sysctls to set the common format frequency, precision and channels
    * Independent mixer controls for recording/playback per stream
    * Utilizes little cpu time for multiple streams / good performance
    * Compatible with existing programs that use OSS/NetBSD audio
    * Changes to audioctl(1) to allow specifying process id for corresponding
      audio device

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Nov 18 01:53:17 2014 UTC (10 years ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -1 lines
Add common audio converters for software volume control. Only supports
slinear16_le and slinear16_be for now.

Convert pad(4) to use the new converters.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Oct 10 17:21:20 2014 UTC (10 years, 2 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +9 -5 lines
Normalize audio related definitions.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Oct 10 12:29:28 2014 UTC (10 years, 2 months ago) by uebayasi
Branches: MAIN
Move audio related definitions.

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>