Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * <linux/patchkey.h> -- definition of _PATCHKEY macro
0004  *
0005  * Copyright (C) 2005 Stuart Brady
0006  *
0007  * This exists because awe_voice.h defined its own _PATCHKEY and it wasn't
0008  * clear whether removing this would break anything in userspace.
0009  *
0010  * Do not include this file directly.  Please use <sys/soundcard.h> instead.
0011  * For kernel code, use <linux/soundcard.h>
0012  */
0013 #ifndef _LINUX_PATCHKEY_H
0014 #define _LINUX_PATCHKEY_H
0015 
0016 #  include <asm/byteorder.h>
0017 #include <uapi/linux/patchkey.h>
0018 
0019 #  if defined(__BIG_ENDIAN)
0020 #    define _PATCHKEY(id) (0xfd00|id)
0021 #  elif defined(__LITTLE_ENDIAN)
0022 #    define _PATCHKEY(id) ((id<<8)|0x00fd)
0023 #  else
0024 #    error "could not determine byte order"
0025 #  endif
0026 #endif /* _LINUX_PATCHKEY_H */