Logo Search packages:      
Sourcecode: alsa-driver version File versions  Download package

void HPI_GetErrorText ( HW16  wError,
char *  pszErrorText 
)

Deprecated:
This function was marked obsolete - don't know why?

Definition at line 4056 of file hpifunc.c.

References HPI_DUPLICATE_ADAPTER_NUMBER, HPI_ERROR_AES18BG_BLOCKSPERSEC, HPI_ERROR_BAD_ADAPTER_NUMBER, HPI_ERROR_BUFFER_EMPTY, HPI_ERROR_BUFFER_FULL, HPI_ERROR_DSP_BOOTLOAD, HPI_ERROR_DSP_FILE_FORMAT, HPI_ERROR_DSP_FILE_NOT_FOUND, HPI_ERROR_DSP_SELFTEST, HPI_ERROR_INCOMPATIBLE_SAMPLERATE, HPI_ERROR_INVALID_BITRATE, HPI_ERROR_INVALID_CHANNELS, HPI_ERROR_INVALID_DATA_TRANSFER, HPI_ERROR_INVALID_DATASIZE, HPI_ERROR_INVALID_FORMAT, HPI_ERROR_INVALID_FUNC, HPI_ERROR_INVALID_NODE, HPI_ERROR_INVALID_OBJ, HPI_ERROR_INVALID_OBJ_INDEX, HPI_ERROR_INVALID_OPERATION, HPI_ERROR_INVALID_RESOURCE, HPI_ERROR_INVALID_RESPONSE, HPI_ERROR_INVALID_SAMPLERATE, HPI_ERROR_INVALID_STREAM, HPI_ERROR_INVALID_TYPE, HPI_ERROR_NETWORK_TIMEOUT, HPI_ERROR_NVMEM_BUSY, HPI_ERROR_PLD_LOAD, HPI_ERROR_PROCESSING_MESSAGE, and HPI_ERROR_SUBSYSFINDADAPTERS_GETINFO.

Referenced by HPI_GetLastErrorDetail().

{
    strcpy(pszErrorText," ");
    sprintf(pszErrorText, "#%3d - ", wError);

    switch(wError)
       {
       case 0:
              strcat( pszErrorText, "No Error");
              break;
       case HPI_ERROR_INVALID_TYPE:            //100 // message type does not exist
              strcat( pszErrorText, "Invalid message type");
              break;
       case HPI_ERROR_INVALID_OBJ:             //101 // object type does not exist
        strcat( pszErrorText, "Invalid object type");
        break;
    case HPI_ERROR_INVALID_FUNC:            //102 // function does not exist
        strcat( pszErrorText, "Invalid function");
        break;
    case HPI_ERROR_INVALID_OBJ_INDEX:     //103 // the specified object (adapter/Stream) does not exist
        strcat( pszErrorText, "Invalid object (adapter/stream/mixer/control) index");
        break;
    case HPI_ERROR_OBJ_NOT_OPEN:          //104
        strcat( pszErrorText, "Object not open");
        break;
    case HPI_ERROR_OBJ_ALREADY_OPEN:                //105
        strcat( pszErrorText, "Object already in use (opened)");
        break;
    case HPI_ERROR_INVALID_RESOURCE:                //106 // PCI, ISA resource not valid
        strcat( pszErrorText, "Invalid bus/port resource");
        break;
    case HPI_ERROR_SUBSYSFINDADAPTERS_GETINFO:                //107
        strcat( pszErrorText, "GetInfo call from SubSysFindAdapters failed");
        break;
    case HPI_ERROR_INVALID_RESPONSE:                // 108
        strcat( pszErrorText, "Response structure not updated");
        break;
      case HPI_ERROR_PROCESSING_MESSAGE:    // 109
            strcat( pszErrorText, "wSize field of response was not updated");
            break;
      case HPI_ERROR_NETWORK_TIMEOUT:      //110
            strcat( pszErrorText, "Network timeout waiting for response");
            break;

    case HPI_ERROR_TOO_MANY_ADAPTERS:     //200
        strcat( pszErrorText, "Too many adapters");
        break;
    case HPI_ERROR_BAD_ADAPTER:                     //201
        strcat( pszErrorText, "Bad adapter");
        break;
    case HPI_ERROR_BAD_ADAPTER_NUMBER:      //202    // adapter number out of range or not set properly
        strcat( pszErrorText, "Invalid adapter index");
        break;
    case HPI_DUPLICATE_ADAPTER_NUMBER:      //203    // 2 adapters with the same adapter number
        strcat( pszErrorText, "Duplicate adapter index");
        break;
    case HPI_ERROR_DSP_BOOTLOAD:      //204
        strcat( pszErrorText, "DSP failed bootload");
        break;
    case HPI_ERROR_DSP_SELFTEST:      //205
        strcat( pszErrorText, "DSP failed selftest");
        break;
    case HPI_ERROR_DSP_FILE_NOT_FOUND:      //206
        strcat( pszErrorText, "Failed to find/open DSP code file");
        break;
    case HPI_ERROR_PLD_LOAD:      //209
        strcat( pszErrorText, "PLD could not be configured");
        break;
    case HPI_ERROR_DSP_FILE_FORMAT:      //210
        strcat( pszErrorText, "Invalid DSP code file format (corrupt file?)");
        break;

    case HPI_ERROR_INVALID_STREAM:                      //300
        strcat( pszErrorText, "Invalid stream");
        break;
    case HPI_ERROR_INVALID_FORMAT:  //301
        strcat( pszErrorText, "Invalid Format");
        break;
    case HPI_ERROR_INVALID_SAMPLERATE:  //  302
        strcat( pszErrorText, "Invalid format sample rate");
        break;
    case HPI_ERROR_INVALID_CHANNELS:    //  303
        strcat( pszErrorText, "Invalid format number of channels");
        break;
    case HPI_ERROR_INVALID_BITRATE:     //  304
        strcat( pszErrorText, "Invalid format bitrate");
        break;
    case HPI_ERROR_INVALID_DATASIZE:    // 305
        strcat( pszErrorText, "Invalid datasize used for stream read/write");
        break;
    case HPI_ERROR_BUFFER_FULL:    // 306
        strcat( pszErrorText, "Stream buffer is full during stream write");
        break;
    case HPI_ERROR_BUFFER_EMPTY:    // 307
        strcat( pszErrorText, "stream buffer is empty during stream read");
        break;
    case HPI_ERROR_INVALID_DATA_TRANSFER:    // 308
        strcat( pszErrorText, "invalid datasize used for stream read/write");
        break;
    case HPI_ERROR_INVALID_OPERATION:    // 310
        strcat( pszErrorText, "Invalid operation - object can't do requested operation in its current state");
        break;
    case HPI_ERROR_INCOMPATIBLE_SAMPLERATE:    // 311
        strcat( pszErrorText, "Cannot change to requested samplerate");
        break;
    case HPI_ERROR_BAD_ADAPTER_MODE:    // 312
        strcat( pszErrorText, "Invalid adapter mode");
        break;

    case HPI_ERROR_INVALID_NODE:                 //400
        strcat( pszErrorText, "Invalid mixer node");
        break;
    case HPI_ERROR_INVALID_CONTROL:                 //401
        strcat( pszErrorText, "Invalid mixer control");
        break;
    case HPI_ERROR_INVALID_CONTROL_VALUE:    // 402
        strcat( pszErrorText, "Invalid mixer control value");
        break;
      case HPI_ERROR_INVALID_CONTROL_ATTRIBUTE: // 403
        strcat( pszErrorText, "Invalid mixer control attribute");
        break;
      case HPI_ERROR_CONTROL_DISABLED: // 404
        strcat( pszErrorText, "Mixer control disabled");
        break;

      case HPI_ERROR_NVMEM_BUSY: // 450
        strcat( pszErrorText, "Non-volatile memory is busy");
        break;

      case HPI_ERROR_AES18BG_BLOCKSPERSEC: //  500
      case HPI_ERROR_AES18BG_PRIORITYMASK: //  501
      case HPI_ERROR_AES18BG_MODE: //          502
      case HPI_ERROR_AES18_INVALID_PRIORITY: //    503
      case HPI_ERROR_AES18_INVALID_ADDRESS: // 504
      case HPI_ERROR_AES18_INVALID_REPETITION: //  505
      case HPI_ERROR_AES18BG_CHANNEL_MODE: //      506
      case HPI_ERROR_AES18_INVALID_CHANNEL: //  507
        strcat( pszErrorText, "an AES18 error");
        break;

    default:
        strcat(pszErrorText, "Unknown Error");
    }
}


Generated by  Doxygen 1.6.0   Back to index