1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright by Hannu Savolainen 1993-1997 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Redistribution and use in source and binary forms, with or without 5*4882a593Smuzhiyun * modification, are permitted provided that the following conditions are 6*4882a593Smuzhiyun * met: 1. Redistributions of source code must retain the above copyright 7*4882a593Smuzhiyun * notice, this list of conditions and the following disclaimer. 2. 8*4882a593Smuzhiyun * Redistributions in binary form must reproduce the above copyright notice, 9*4882a593Smuzhiyun * this list of conditions and the following disclaimer in the documentation 10*4882a593Smuzhiyun * and/or other materials provided with the distribution. 11*4882a593Smuzhiyun * 12*4882a593Smuzhiyun * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY 13*4882a593Smuzhiyun * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 14*4882a593Smuzhiyun * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 15*4882a593Smuzhiyun * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 16*4882a593Smuzhiyun * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 17*4882a593Smuzhiyun * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 18*4882a593Smuzhiyun * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 19*4882a593Smuzhiyun * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 20*4882a593Smuzhiyun * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 21*4882a593Smuzhiyun * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 22*4882a593Smuzhiyun * SUCH DAMAGE. 23*4882a593Smuzhiyun */ 24*4882a593Smuzhiyun #ifndef SOUNDCARD_H 25*4882a593Smuzhiyun #define SOUNDCARD_H 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun # include <asm/byteorder.h> 28*4882a593Smuzhiyun #include <uapi/linux/soundcard.h> 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun # if defined(__BIG_ENDIAN) 31*4882a593Smuzhiyun # define AFMT_S16_NE AFMT_S16_BE 32*4882a593Smuzhiyun # elif defined(__LITTLE_ENDIAN) 33*4882a593Smuzhiyun # define AFMT_S16_NE AFMT_S16_LE 34*4882a593Smuzhiyun # else 35*4882a593Smuzhiyun # error "could not determine byte order" 36*4882a593Smuzhiyun # endif 37*4882a593Smuzhiyun #endif 38