Home | History | Annotate | Download | only in dev
History log of /src/sys/dev/spkr_audio.c
RevisionDateAuthorComments
 1.12  24-Sep-2022  thorpej Remove unnecessary include of <sys/malloc.h>.
 1.11  03-Apr-2021  isaki 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.
 1.10  03-Apr-2021  isaki Improve SPKRDEBUG code.
- Replace wrong aprint_debug_dev() with device_printf().
By this, it no longer need to print dev_t.
- Improve some messages.
 1.9  17-Feb-2021  isaki branches: 1.9.2;
Attach this only if the parent device has playback capability.
 1.8  21-Jun-2019  isaki branches: 1.8.10;
Use hztoms() instead of incorrect calculation.
This makes spkr work on HZ=1024 like alpha.
 1.7  08-May-2019  isaki 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
 1.6  11-Jun-2017  pgoyette branches: 1.6.4; 1.6.8; 1.6.12;
Implement xxx_rescan() and xxx_childdet() functions; these will be
needed when child device wsbell(4) becomes a separately-loadable
module.
 1.5  11-Jun-2017  nat Add ioctls for setting and getting the beep volume. Currently only
supported on spkr devices attached to audio.

Ok pgoyette@.
 1.4  11-Jun-2017  nat Remove unused code - it will reappear in a new device.

Ok pgoyette@.
 1.3  06-Jan-2017  pgoyette branches: 1.3.2; 1.3.6;
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
 1.2  15-Dec-2016  pgoyette 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.)
 1.1  15-Dec-2016  christos name attachment after parent per existing convention.
 1.3.6.3  28-Aug-2017  skrll Sync with HEAD
 1.3.6.2  05-Feb-2017  skrll Sync with HEAD
 1.3.6.1  06-Jan-2017  skrll file spkr_audio.c was added on branch nick-nhusb on 2017-02-05 13:40:26 +0000
 1.3.2.2  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.3.2.1  06-Jan-2017  pgoyette file spkr_audio.c was added on branch pgoyette-localcount on 2017-01-07 08:56:31 +0000
 1.6.12.3  04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.6.12.2  04-May-2019  isaki Move dev/audiobell* -> dev/audio/audiobell*.
 1.6.12.1  03-May-2019  isaki Remove unnecessary header file.
 1.6.8.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.6.8.1  10-Jun-2019  christos Sync with HEAD
 1.6.4.2  03-Dec-2017  jdolecek update from HEAD
 1.6.4.1  11-Jun-2017  jdolecek file spkr_audio.c was added on branch tls-maxphys on 2017-12-03 11:36:58 +0000
 1.8.10.1  03-Apr-2021  thorpej Sync with HEAD.
 1.9.2.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed