ia64/xen-unstable

changeset 8633:c4ae9456a459

The arguments to memset are ordered incorrectly in the
pcm_hw_clear function of audio.c.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jan 20 20:31:09 2006 +0100 (2006-01-20)
parents 911b6d8cd666
children d270db8a9092
files tools/ioemu/audio/audio.c
line diff
     1.1 --- a/tools/ioemu/audio/audio.c	Thu Jan 19 20:11:09 2006 +0100
     1.2 +++ b/tools/ioemu/audio/audio.c	Fri Jan 20 20:31:09 2006 +0100
     1.3 @@ -257,11 +257,11 @@ void pcm_hw_clear (HWVoice *hw, void *bu
     1.4      switch (hw->fmt) {
     1.5      case AUD_FMT_S16:
     1.6      case AUD_FMT_S8:
     1.7 -        memset (buf, len << hw->shift, 0x00);
     1.8 +        memset (buf, 0x00, len << hw->shift);
     1.9          break;
    1.10  
    1.11      case AUD_FMT_U8:
    1.12 -        memset (buf, len << hw->shift, 0x80);
    1.13 +        memset (buf, 0x80, len << hw->shift);
    1.14          break;
    1.15  
    1.16      case AUD_FMT_U16: