aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorEliot Blennerhassett <eblennerhassett@audioscience.com>2011-02-09 23:26:17 -0500
committerTakashi Iwai <tiwai@suse.de>2011-02-10 12:49:38 -0500
commita287ca2adec995395486a9d0a7d2f099f7b16f05 (patch)
tree23168fec2c4f9c1a128ac73db1c676d407826968 /sound/pci
parentbd33c1cad21da3ac3c541e2107a6c46072ca081b (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')
-rw-r--r--sound/pci/asihpi/hpi.h25
-rw-r--r--sound/pci/asihpi/hpi_internal.h7
-rw-r--r--sound/pci/asihpi/hpios.h6
3 files changed, 22 insertions, 16 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
diff --git a/sound/pci/asihpi/hpi_internal.h b/sound/pci/asihpi/hpi_internal.h
index ca5b844ceabf..af678be0aa15 100644
--- a/sound/pci/asihpi/hpi_internal.h
+++ b/sound/pci/asihpi/hpi_internal.h
@@ -309,8 +309,8 @@ enum HPI_CONTROL_ATTRIBUTES {
309 309
310#define HPI_ETHERNET_UDP_PORT (44600) /*!< UDP messaging port */ 310#define HPI_ETHERNET_UDP_PORT (44600) /*!< UDP messaging port */
311 311
312/** Base network time out is set to 100 milli-seconds. */ 312/** Default network timeout in milli-seconds. */
313#define HPI_ETHERNET_TIMEOUT_MS (100) 313#define HPI_ETHERNET_TIMEOUT_MS 500
314 314
315/** Locked memory buffer alloc/free phases */ 315/** Locked memory buffer alloc/free phases */
316enum HPI_BUFFER_CMDS { 316enum HPI_BUFFER_CMDS {
@@ -389,8 +389,7 @@ enum HPI_OBJECT_TYPES {
389}; 389};
390 390
391#define HPI_OBJ_FUNCTION_SPACING 0x100 391#define HPI_OBJ_FUNCTION_SPACING 0x100
392#define HPI_FUNC_ID(obj, index) \ 392#define HPI_FUNC_ID(obj, i) (HPI_OBJ_##obj * HPI_OBJ_FUNCTION_SPACING + i)
393 (HPI_OBJ_##obj * HPI_OBJ_FUNCTION_SPACING + index)
394 393
395#define HPI_EXTRACT_INDEX(fn) (fn & 0xff) 394#define HPI_EXTRACT_INDEX(fn) (fn & 0xff)
396 395
diff --git a/sound/pci/asihpi/hpios.h b/sound/pci/asihpi/hpios.h
index 90879b15d3c6..03273e729f99 100644
--- a/sound/pci/asihpi/hpios.h
+++ b/sound/pci/asihpi/hpios.h
@@ -27,9 +27,7 @@ HPI Operating System Specific macros for Linux Kernel driver
27#define HPI_OS_LINUX_KERNEL 27#define HPI_OS_LINUX_KERNEL
28 28
29#define HPI_OS_DEFINED 29#define HPI_OS_DEFINED
30#define HPI_KERNEL_MODE 30#define HPI_BUILD_KERNEL_MODE
31
32#define HPI_REASSIGN_DUPLICATE_ADAPTER_IDX
33 31
34#include <linux/io.h> 32#include <linux/io.h>
35#include <asm/system.h> 33#include <asm/system.h>
@@ -142,7 +140,7 @@ static inline void cond_unlock(struct hpios_spinlock *l)
142#define hpios_dsplock_unlock(obj) cond_unlock(&(obj)->dsp_lock) 140#define hpios_dsplock_unlock(obj) cond_unlock(&(obj)->dsp_lock)
143 141
144#ifdef CONFIG_SND_DEBUG 142#ifdef CONFIG_SND_DEBUG
145#define HPI_DEBUG 143#define HPI_BUILD_DEBUG
146#endif 144#endif
147 145
148#define HPI_ALIST_LOCKING 146#define HPI_ALIST_LOCKING