freebsd-skq/sys/dev/sound
Dag-Erling Smørgrav 85cc3851ff Add some safeguards to AIOSFMT:
- Return EINVAL if play_format or rec_format is set but the corresponding
   sample rate is 0.

 - Don't try to set the playback or recording format to 0.  Previously,
   issuing an AIOSFMT ioctl with an all-zeroes snd_chan_param would
   trigger a KASSERT in chn_fmtchain(); I'm unsure about the effects on
   a kernel without INVARIANTS.  After this commit, issuing AIOSFMT with
   an all-zeroes snd_chan_param is equivalent to issuing AIOGFMT.

MFC after:	2 weeks
2005-10-30 10:03:11 +00:00
..
isa more #ifndef PC98. This really fix the pc98 tinderbox. 2005-09-12 13:40:10 +00:00
pci - Locking improvements. 2005-10-05 20:05:52 +00:00
pcm Add some safeguards to AIOSFMT: 2005-10-30 10:03:11 +00:00
sbus Take advantage of ebus(4) having switched to SYS_RES_MEMORY for the 2005-05-19 18:13:49 +00:00
usb Emulate pcm mixer controller for any uaudio device without it. 2005-10-02 15:51:19 +00:00
chip.h
driver.c Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00