diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/pcm.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/firmware/export/pcm.h b/firmware/export/pcm.h index 97a1939dbb..1660f0670d 100644 --- a/firmware/export/pcm.h +++ b/firmware/export/pcm.h | |||
@@ -23,6 +23,30 @@ | |||
23 | 23 | ||
24 | #include <sys/types.h> | 24 | #include <sys/types.h> |
25 | 25 | ||
26 | #define DMA_REC_ERROR_DMA (-1) | ||
27 | #ifdef HAVE_SPDIF_REC | ||
28 | #define DMA_REC_ERROR_SPDIF (-2) | ||
29 | #endif | ||
30 | |||
31 | /** Warnings **/ | ||
32 | /* pcm (dma) buffer has overflowed */ | ||
33 | #define PCMREC_W_PCM_BUFFER_OVF 0x00000001 | ||
34 | /* encoder output buffer has overflowed */ | ||
35 | #define PCMREC_W_ENC_BUFFER_OVF 0x00000002 | ||
36 | /** Errors **/ | ||
37 | /* failed to load encoder */ | ||
38 | #define PCMREC_E_LOAD_ENCODER 0x80001000 | ||
39 | /* error originating in encoder */ | ||
40 | #define PCMREC_E_ENCODER 0x80002000 | ||
41 | /* filename queue has desynced from stream markers */ | ||
42 | #define PCMREC_E_FNQ_DESYNC 0x80004000 | ||
43 | /* I/O error has occurred */ | ||
44 | #define PCMREC_E_IO 0x80008000 | ||
45 | #ifdef DEBUG | ||
46 | /* encoder has written past end of allotted space */ | ||
47 | #define PCMREC_E_CHUNK_OVF 0x80010000 | ||
48 | #endif /* DEBUG */ | ||
49 | |||
26 | /** RAW PCM routines used with playback and recording **/ | 50 | /** RAW PCM routines used with playback and recording **/ |
27 | 51 | ||
28 | /* Typedef for registered callback */ | 52 | /* Typedef for registered callback */ |