mt8192-interconnection.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Mediatek MT8192 audio driver interconnection definition
  4. *
  5. * Copyright (c) 2020 MediaTek Inc.
  6. * Author: Shane Chien <[email protected]>
  7. */
  8. #ifndef _MT8192_INTERCONNECTION_H_
  9. #define _MT8192_INTERCONNECTION_H_
  10. /* in port define */
  11. #define I_I2S0_CH1 0
  12. #define I_I2S0_CH2 1
  13. #define I_ADDA_UL_CH1 3
  14. #define I_ADDA_UL_CH2 4
  15. #define I_DL1_CH1 5
  16. #define I_DL1_CH2 6
  17. #define I_DL2_CH1 7
  18. #define I_DL2_CH2 8
  19. #define I_PCM_1_CAP_CH1 9
  20. #define I_GAIN1_OUT_CH1 10
  21. #define I_GAIN1_OUT_CH2 11
  22. #define I_GAIN2_OUT_CH1 12
  23. #define I_GAIN2_OUT_CH2 13
  24. #define I_PCM_2_CAP_CH1 14
  25. #define I_ADDA_UL_CH3 17
  26. #define I_ADDA_UL_CH4 18
  27. #define I_DL12_CH1 19
  28. #define I_DL12_CH2 20
  29. #define I_PCM_2_CAP_CH2 21
  30. #define I_PCM_1_CAP_CH2 22
  31. #define I_DL3_CH1 23
  32. #define I_DL3_CH2 24
  33. #define I_I2S2_CH1 25
  34. #define I_I2S2_CH2 26
  35. #define I_I2S2_CH3 27
  36. #define I_I2S2_CH4 28
  37. /* in port define >= 32 */
  38. #define I_32_OFFSET 32
  39. #define I_CONNSYS_I2S_CH1 (34 - I_32_OFFSET)
  40. #define I_CONNSYS_I2S_CH2 (35 - I_32_OFFSET)
  41. #define I_SRC_1_OUT_CH1 (36 - I_32_OFFSET)
  42. #define I_SRC_1_OUT_CH2 (37 - I_32_OFFSET)
  43. #define I_SRC_2_OUT_CH1 (38 - I_32_OFFSET)
  44. #define I_SRC_2_OUT_CH2 (39 - I_32_OFFSET)
  45. #define I_DL4_CH1 (40 - I_32_OFFSET)
  46. #define I_DL4_CH2 (41 - I_32_OFFSET)
  47. #define I_DL5_CH1 (42 - I_32_OFFSET)
  48. #define I_DL5_CH2 (43 - I_32_OFFSET)
  49. #define I_DL6_CH1 (44 - I_32_OFFSET)
  50. #define I_DL6_CH2 (45 - I_32_OFFSET)
  51. #define I_DL7_CH1 (46 - I_32_OFFSET)
  52. #define I_DL7_CH2 (47 - I_32_OFFSET)
  53. #define I_DL8_CH1 (48 - I_32_OFFSET)
  54. #define I_DL8_CH2 (49 - I_32_OFFSET)
  55. #define I_DL9_CH1 (50 - I_32_OFFSET)
  56. #define I_DL9_CH2 (51 - I_32_OFFSET)
  57. #define I_I2S6_CH1 (52 - I_32_OFFSET)
  58. #define I_I2S6_CH2 (53 - I_32_OFFSET)
  59. #define I_I2S8_CH1 (54 - I_32_OFFSET)
  60. #define I_I2S8_CH2 (55 - I_32_OFFSET)
  61. #endif