diff options
author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2011-02-09 23:26:17 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-02-10 12:49:38 -0500 |
commit | a287ca2adec995395486a9d0a7d2f099f7b16f05 (patch) | |
tree | 23168fec2c4f9c1a128ac73db1c676d407826968 /sound/pci/asihpi/hpi.h | |
parent | bd33c1cad21da3ac3c541e2107a6c46072ca081b (diff) |
ALSA: asihpi - Minor define updates
HPI version 4.05.32
Tweak HPI error code for backward compatibility.
Add BUILD to build-related defines.
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpi.h')
-rw-r--r-- | sound/pci/asihpi/hpi.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/sound/pci/asihpi/hpi.h b/sound/pci/asihpi/hpi.h index ec19df50c183..dec1c30eadef 100644 --- a/sound/pci/asihpi/hpi.h +++ b/sound/pci/asihpi/hpi.h | |||
@@ -43,14 +43,15 @@ i.e 3.05.02 is a development version | |||
43 | #define HPI_VER_RELEASE(v) ((int)(v & 0xFF)) | 43 | #define HPI_VER_RELEASE(v) ((int)(v & 0xFF)) |
44 | 44 | ||
45 | /* Use single digits for versions less that 10 to avoid octal. */ | 45 | /* Use single digits for versions less that 10 to avoid octal. */ |
46 | #define HPI_VER HPI_VERSION_CONSTRUCTOR(4L, 5, 19) | 46 | #define HPI_VER HPI_VERSION_CONSTRUCTOR(4L, 5, 32) |
47 | #define HPI_VER_STRING "4.05.19" | 47 | #define HPI_VER_STRING "4.05.32" |
48 | 48 | ||
49 | /* Library version as documented in hpi-api-versions.txt */ | 49 | /* Library version as documented in hpi-api-versions.txt */ |
50 | #define HPI_LIB_VER HPI_VERSION_CONSTRUCTOR(9, 0, 0) | 50 | #define HPI_LIB_VER HPI_VERSION_CONSTRUCTOR(9, 0, 0) |
51 | 51 | ||
52 | #include <linux/types.h> | 52 | #include <linux/types.h> |
53 | #define HPI_EXCLUDE_DEPRECATED | 53 | #define HPI_BUILD_EXCLUDE_DEPRECATED |
54 | #define HPI_BUILD_KERNEL_MODE | ||
54 | 55 | ||
55 | /******************************************************************************/ | 56 | /******************************************************************************/ |
56 | /******** HPI API DEFINITIONS *****/ | 57 | /******** HPI API DEFINITIONS *****/ |
@@ -933,11 +934,9 @@ enum HPI_ERROR_CODES { | |||
933 | /** Adapter number out of range or not set properly. */ | 934 | /** Adapter number out of range or not set properly. */ |
934 | HPI_ERROR_BAD_ADAPTER_NUMBER = 202, | 935 | HPI_ERROR_BAD_ADAPTER_NUMBER = 202, |
935 | /** 2 adapters with the same adapter number. */ | 936 | /** 2 adapters with the same adapter number. */ |
936 | HPI_DUPLICATE_ADAPTER_NUMBER = 203, | 937 | HPI_ERROR_DUPLICATE_ADAPTER_NUMBER = 203, |
937 | /** DSP code failed to bootload. (unused?) */ | 938 | /** DSP code failed to bootload. (unused?) */ |
938 | HPI_ERROR_DSP_BOOTLOAD = 204, | 939 | HPI_ERROR_DSP_BOOTLOAD = 204, |
939 | /** Communication with DSP failed */ | ||
940 | HPI_ERROR_DSP_COMMUNICATION = 205, | ||
941 | /** Couldn't find or open the DSP code file. */ | 940 | /** Couldn't find or open the DSP code file. */ |
942 | HPI_ERROR_DSP_FILE_NOT_FOUND = 206, | 941 | HPI_ERROR_DSP_FILE_NOT_FOUND = 206, |
943 | /** Internal DSP hardware error. */ | 942 | /** Internal DSP hardware error. */ |
@@ -1056,8 +1055,18 @@ enum HPI_ERROR_CODES { | |||
1056 | /** hpioct32.c can't obtain mutex */ | 1055 | /** hpioct32.c can't obtain mutex */ |
1057 | HPI_ERROR_MUTEX_TIMEOUT = 700, | 1056 | HPI_ERROR_MUTEX_TIMEOUT = 700, |
1058 | 1057 | ||
1059 | /** errors from HPI backends have values >= this */ | 1058 | /** Backend errors used to be greater than this. |
1060 | HPI_ERROR_BACKEND_BASE = 900 | 1059 | \deprecated Now, all backends return only errors defined here in hpi.h |
1060 | */ | ||
1061 | HPI_ERROR_BACKEND_BASE = 900, | ||
1062 | |||
1063 | /** Communication with DSP failed */ | ||
1064 | HPI_ERROR_DSP_COMMUNICATION = 900 | ||
1065 | /* Note that the dsp communication error is set to this value so that | ||
1066 | it remains compatible with any software that expects such errors | ||
1067 | to be backend errors i.e. >= 900. | ||
1068 | Do not define any new error codes with values > 900. | ||
1069 | */ | ||
1061 | }; | 1070 | }; |
1062 | 1071 | ||
1063 | /** \defgroup maximums HPI maximum values | 1072 | /** \defgroup maximums HPI maximum values |