1 /* 2 * Copyright (c) 2022 Intel Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef __INTEL_DAI_DRIVER_ALH_MAP_H__ 8 #define __INTEL_DAI_DRIVER_ALH_MAP_H__ 9 10 /** 11 * \brief ALH Handshakes for audio I/O 12 * Stream ID -> DMA Handshake map 13 * -1 identifies invalid handshakes/streams 14 */ 15 static const uint8_t alh_handshake_map[64] = { 16 -1, /* 0 - INVALID */ 17 -1, /* 1 - INVALID */ 18 -1, /* 2 - INVALID */ 19 -1, /* 3 - INVALID */ 20 -1, /* 4 - INVALID */ 21 -1, /* 5 - INVALID */ 22 -1, /* 6 - INVALID */ 23 22, /* 7 - BIDIRECTIONAL */ 24 23, /* 8 - BIDIRECTIONAL */ 25 24, /* 9 - BIDIRECTIONAL */ 26 25, /* 10 - BIDIRECTIONAL */ 27 26, /* 11 - BIDIRECTIONAL */ 28 27, /* 12 - BIDIRECTIONAL */ 29 -1, /* 13 - INVALID */ 30 -1, /* 14 - INVALID */ 31 -1, /* 15 - INVALID */ 32 -1, /* 16 - INVALID */ 33 -1, /* 17 - INVALID */ 34 -1, /* 18 - INVALID */ 35 -1, /* 19 - INVALID */ 36 -1, /* 20 - INVALID */ 37 -1, /* 21 - INVALID */ 38 -1, /* 22 - INVALID */ 39 32, /* 23 - BIDIRECTIONAL */ 40 33, /* 24 - BIDIRECTIONAL */ 41 34, /* 25 - BIDIRECTIONAL */ 42 35, /* 26 - BIDIRECTIONAL */ 43 36, /* 27 - BIDIRECTIONAL */ 44 37, /* 28 - BIDIRECTIONAL */ 45 -1, /* 29 - INVALID */ 46 -1, /* 30 - INVALID */ 47 -1, /* 31 - INVALID */ 48 -1, /* 32 - INVALID */ 49 -1, /* 33 - INVALID */ 50 -1, /* 34 - INVALID */ 51 -1, /* 35 - INVALID */ 52 -1, /* 36 - INVALID */ 53 -1, /* 37 - INVALID */ 54 -1, /* 38 - INVALID */ 55 42, /* 39 - BIDIRECTIONAL */ 56 43, /* 40 - BIDIRECTIONAL */ 57 44, /* 41 - BIDIRECTIONAL */ 58 45, /* 42 - BIDIRECTIONAL */ 59 46, /* 43 - BIDIRECTIONAL */ 60 47, /* 44 - BIDIRECTIONAL */ 61 -1, /* 45 - INVALID */ 62 -1, /* 46 - INVALID */ 63 -1, /* 47 - INVALID */ 64 -1, /* 48 - INVALID */ 65 -1, /* 49 - INVALID */ 66 -1, /* 50 - INVALID */ 67 -1, /* 51 - INVALID */ 68 -1, /* 52 - INVALID */ 69 -1, /* 53 - INVALID */ 70 -1, /* 54 - INVALID */ 71 52, /* 55 - BIDIRECTIONAL */ 72 53, /* 56 - BIDIRECTIONAL */ 73 54, /* 57 - BIDIRECTIONAL */ 74 55, /* 58 - BIDIRECTIONAL */ 75 56, /* 59 - BIDIRECTIONAL */ 76 57, /* 60 - BIDIRECTIONAL */ 77 -1, /* 61 - INVALID */ 78 -1, /* 62 - INVALID */ 79 -1, /* 63 - INVALID */ 80 }; 81 82 #endif 83