xref: /openbmc/linux/include/linux/soundcard.h (revision 607ca46e)
11da177e4SLinus Torvalds /*
21da177e4SLinus Torvalds  * Copyright by Hannu Savolainen 1993-1997
31da177e4SLinus Torvalds  *
41da177e4SLinus Torvalds  * Redistribution and use in source and binary forms, with or without
51da177e4SLinus Torvalds  * modification, are permitted provided that the following conditions are
61da177e4SLinus Torvalds  * met: 1. Redistributions of source code must retain the above copyright
71da177e4SLinus Torvalds  * notice, this list of conditions and the following disclaimer. 2.
81da177e4SLinus Torvalds  * Redistributions in binary form must reproduce the above copyright notice,
91da177e4SLinus Torvalds  * this list of conditions and the following disclaimer in the documentation
101da177e4SLinus Torvalds  * and/or other materials provided with the distribution.
111da177e4SLinus Torvalds  *
121da177e4SLinus Torvalds  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
131da177e4SLinus Torvalds  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
141da177e4SLinus Torvalds  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
151da177e4SLinus Torvalds  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
161da177e4SLinus Torvalds  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
171da177e4SLinus Torvalds  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
181da177e4SLinus Torvalds  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
191da177e4SLinus Torvalds  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
201da177e4SLinus Torvalds  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
211da177e4SLinus Torvalds  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
221da177e4SLinus Torvalds  * SUCH DAMAGE.
231da177e4SLinus Torvalds  */
24607ca46eSDavid Howells #ifndef SOUNDCARD_H
25607ca46eSDavid Howells #define SOUNDCARD_H
261da177e4SLinus Torvalds 
2760d300c0SStuart Brady #  include <asm/byteorder.h>
28607ca46eSDavid Howells #include <uapi/linux/soundcard.h>
2960d300c0SStuart Brady 
3060d300c0SStuart Brady #  if defined(__BIG_ENDIAN)
311da177e4SLinus Torvalds #    define AFMT_S16_NE AFMT_S16_BE
3260d300c0SStuart Brady #  elif defined(__LITTLE_ENDIAN)
331da177e4SLinus Torvalds #    define AFMT_S16_NE AFMT_S16_LE
3460d300c0SStuart Brady #  else
3560d300c0SStuart Brady #    error "could not determine byte order"
3660d300c0SStuart Brady #  endif
371da177e4SLinus Torvalds #endif
38