Date: Sun, 30 Oct 2005 10:03:11 +0000 (UTC) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm dsp.c Message-ID: <200510301003.j9UA3Bnt023501@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2005-10-30 10:03:11 UTC FreeBSD src repository Modified files: sys/dev/sound/pcm dsp.c Log: 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 Revision Changes Path 1.86 +8 -2 src/sys/dev/sound/pcm/dsp.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510301003.j9UA3Bnt023501>