cvs commit: src/sys/dev/sound/pcm dsp.c

Dag-Erling Smorgrav des at FreeBSD.org
Sun Oct 30 02:03:12 PST 2005


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


More information about the cvs-all mailing list