Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: wavefront: Drop obsoleted comments and definitions

The header file contains lots of outdated comments and definitions.
Drop those as cleanup.

Link: https://lore.kernel.org/r/20231025132314.5878-11-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

-51
-51
include/sound/wavefront.h
··· 8 8 * Copyright (c) by Paul Barton-Davis <pbd@op.net> 9 9 */ 10 10 11 - #if (!defined(__GNUC__) && !defined(__GNUG__)) 12 - 13 - You will not be able to compile this file correctly without gcc, because 14 - it is necessary to pack the "wavefront_alias" structure to a size 15 - of 22 bytes, corresponding to 16-bit alignment (as would have been 16 - the case on the original platform, MS-DOS). If this is not done, 17 - then WavePatch-format files cannot be read/written correctly. 18 - The method used to do this here ("__attribute__((packed)") is 19 - completely compiler dependent. 20 - 21 - All other wavefront_* types end up aligned to 32 bit values and 22 - still have the same (correct) size. 23 - 24 - #else 25 - 26 - /* However, note that as of G++ 2.7.3.2, g++ was unable to 27 - correctly parse *type* __attribute__ tags. It will do the 28 - right thing if we use the "packed" attribute on each struct 29 - member, which has the same semantics anyway. 30 - */ 31 - 32 - #endif /* __GNUC__ */ 33 - 34 - /***************************** WARNING ******************************** 35 - PLEASE DO NOT MODIFY THIS FILE IN ANY WAY THAT AFFECTS ITS ABILITY TO 36 - BE USED WITH EITHER C *OR* C++. 37 - **********************************************************************/ 38 - 39 11 #ifndef NUM_MIDIKEYS 40 12 #define NUM_MIDIKEYS 128 41 13 #endif /* NUM_MIDIKEYS */ ··· 15 43 #ifndef NUM_MIDICHANNELS 16 44 #define NUM_MIDICHANNELS 16 17 45 #endif /* NUM_MIDICHANNELS */ 18 - 19 - /* These are very useful/important. the original wavefront interface 20 - was developed on a 16 bit system, where sizeof(int) = 2 21 - bytes. Defining things like this makes the code much more portable, and 22 - easier to understand without having to toggle back and forth 23 - between a 16-bit view of the world and a 32-bit one. 24 - */ 25 - 26 - #ifndef __KERNEL__ 27 - /* keep them for compatibility */ 28 - typedef short s16; 29 - typedef unsigned short u16; 30 - typedef int s32; 31 - typedef unsigned int u32; 32 - typedef char s8; 33 - typedef unsigned char u8; 34 - typedef s16 INT16; 35 - typedef u16 UINT16; 36 - typedef s32 INT32; 37 - typedef u32 UINT32; 38 - typedef s8 CHAR8; 39 - typedef u8 UCHAR8; 40 - #endif 41 46 42 47 /* Pseudo-commands not part of the WaveFront command set. 43 48 These are used for various driver controls and direct