The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Sep 24 23:16:02 2022 UTC (4 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -3 lines
Remove unnecessary include of <sys/malloc.h>.

Revision 1.8.10.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:43 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +15 -20 lines
Sync with HEAD.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 21:44:50 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +8 -18 lines
Sync with HEAD.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Apr 3 04:10:30 2021 UTC (5 years, 7 months ago) by isaki
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-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -17 lines
Rework about the rest note in speaker(4).
- Obsolete the sc_rest callback.  The rest note operation can be done by
  the common spkr layer.  This also fixes PR kern/56060.
  This work-in-progress patch was left in my local tree for years. :(
- Improve calculations of tone and rest length.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Apr 3 03:21:53 2021 UTC (5 years, 7 months ago) by isaki
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Improve SPKRDEBUG code.
- Replace wrong aprint_debug_dev() with device_printf().
  By this, it no longer need to print dev_t.
- Improve some messages.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Feb 17 12:37:33 2021 UTC (5 years, 8 months ago) by isaki
Branches: MAIN
Branch point for: thorpej-cfargs
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +9 -4 lines
Attach this only if the parent device has playback capability.

Revision 1.6.8.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:18 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.6.8.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.8.1: +4 -4 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jun 21 09:34:30 2019 UTC (7 years, 4 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4 lines
Use hztoms() instead of incorrect calculation.
This makes spkr work on HZ=1024 like alpha.

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

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:17 2019 UTC (7 years, 6 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -5 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.6.12.3: download - view: text, markup, annotated - select for diffs
Sat May 4 07:20:09 2019 UTC (7 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.6.12.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.12.2: +3 -3 lines
Move dev/audio_if.h -> dev/audio/audio_if.h

Revision 1.6.12.2: download - view: text, markup, annotated - select for diffs
Sat May 4 06:13:46 2019 UTC (7 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.6.12.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.12.1: +3 -3 lines
Move dev/audiobell* -> dev/audio/audiobell*.

Revision 1.6.12.1: download - view: text, markup, annotated - select for diffs
Fri May 3 06:19:42 2019 UTC (7 years, 6 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -3 lines
Remove unnecessary header file.

Revision 1.6.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.6.4.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.4.1: +140 -0 lines
update from HEAD

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

Revision 1.6.4.1
Sun Jun 11 21:54:22 2017 UTC (9 years, 5 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.6: +0 -140 lines
file spkr_audio.c was added on branch tls-maxphys on 2017-12-03 11:36:58 +0000

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jun 11 21:54:22 2017 UTC (9 years, 5 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base
Branch point for: tls-maxphys, phil-wifi, isaki-audio2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +21 -4 lines
Implement xxx_rescan() and xxx_childdet() functions; these will be
needed when child device wsbell(4) becomes a separately-loadable
module.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jun 11 03:33:48 2017 UTC (9 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -2 lines
Add ioctls for setting and getting the beep volume.  Currently only
supported on spkr devices attached to audio.

Ok pgoyette@.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jun 11 03:25:02 2017 UTC (9 years, 5 months ago) by nat
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -77 lines
Remove unused code - it will reappear in a new device.

Ok pgoyette@.

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

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:31 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
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: +195 -0 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.3.6.1
Fri Jan 6 09:32:08 2017 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.3: +0 -195 lines
file spkr_audio.c was added on branch nick-nhusb on 2017-02-05 13:40:26 +0000

Revision 1.3.2.1
Fri Jan 6 09:32:08 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
FILE REMOVED
Changes since revision 1.3: +0 -195 lines
file spkr_audio.c was added on branch pgoyette-localcount on 2017-01-07 08:56:31 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Jan 6 09:32:08 2017 UTC (9 years, 10 months ago) by pgoyette
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, 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-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-localcount, nick-nhusb
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -3 lines
Implement a common spkr_detach() function and call it from the
attachment-specific detach functions.  Returns EBUSY if the
device instance is busy, based on whether or not a sc->sc_inbuf
is allocated.  The buffer is malloc()d at spkropen time, and is
free()d in spkrclose().

Now we can actually implement the MODULE_CMD_FINI command and
unload the driver at will.

Addresses my PR kern/51785

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Dec 15 06:48:14 2016 UTC (9 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -11 lines
Create a single combined module for spkr_pcppi and spkr_audio, and
build it for all architectures.

By doing this, we can handle pcppi, audio, or both attachments with
non-built-in modules.

XXX Still to do: the module currently cannot be unloaded, and the
XXX spkr device(s) currently cannot be detached.  (Really, two
XXX sides of the same problem.)

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Dec 15 04:36:07 2016 UTC (9 years, 11 months ago) by christos
Branches: MAIN
name attachment after parent per existing convention.

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>