blob: 77aff0a108f7f07ec06ef827d47d2e9541cd9fa3
1 | #ifndef __SPDIF_API_H__ |
2 | #define __SPDIF_API_H__ |
3 | |
4 | enum { |
5 | STREAM_AC3 = 0, |
6 | STREAM_DTS, |
7 | STREAM_PCM, |
8 | }; |
9 | |
10 | #define AUDIO_SPDIF_GET_958_BUF_SIZE _IOR('s', 0x01, unsigned long) |
11 | #define AUDIO_SPDIF_GET_958_BUF_CONTENT _IOR('s', 0x02, unsigned long) |
12 | #define AUDIO_SPDIF_GET_958_BUF_SPACE _IOR('s', 0x03, unsigned long) |
13 | #define AUDIO_SPDIF_GET_958_BUF_RD_OFFSET _IOR('s', 0x04, unsigned long) |
14 | #define AUDIO_SPDIF_GET_958_ENABLE_STATUS _IOR('s', 0x05, unsigned long) |
15 | #define AUDIO_SPDIF_GET_I2S_ENABLE_STATUS _IOR('s', 0x06, unsigned long) |
16 | #define AUDIO_SPDIF_SET_958_ENABLE _IOW('s', 0x07, unsigned long) |
17 | #define AUDIO_SPDIF_SET_958_INIT_PREPARE _IOW('s', 0x08, unsigned long) |
18 | #define AUDIO_SPDIF_SET_958_WR_OFFSET _IOW('s', 0x09, unsigned long) |
19 | |
20 | extern int iec958_init(); |
21 | extern int iec958_pack_frame(char *buf, int frame_size); |
22 | extern int iec958_packed_frame_write_958buf(char *buf, int frame_size); |
23 | extern int iec958_deinit(); |
24 | extern int iec958_check_958buf_level(); |
25 | extern int iec958buf_fill_zero(); |
26 | #endif |
27 |