NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/43869: /usr/tests/dev/audio fails on big endian machines



The following reply was made to PR kern/43869; it has been noted by GNATS.

From: "Jared D. McNeill" <jmcneill%invisible.ca@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/43869: /usr/tests/dev/audio fails on big endian machines
Date: Sat, 11 Sep 2010 22:16:12 -0400

 There are problems with the test case:
 
   - /dev/pad always outputs 44.1kHz, slinear16_le, 2ch
   - the test case opens /dev/audio, which is supposed to reset the audio =
 device to mulaw 1ch mode. it never invokes AUDIO_SETINFO to put the =
 device into the desired mode.
   - even if the audio device is set to the same format as /dev/pad, the =
 bytestream can still be manipulated by the software volume controls
 
 For this test to succeed, the code needs to do something like:
 
   open /dev/soundX, /dev/mixerX
   ioctl AUDIO_SETINFO 44.1kHz slinear16_le 2ch
   ioctl AUDIO_MIXER_WRITE inputs.dac=3D255 (effectively disables swvol =
 manipulation)
   write to /dev/soundX
   ioctl AUDIO_FLUSH
   read from /dev/padY
   compare src and dst buffers=
 


Home | Main Index | Thread Index | Old Index